/* GOOGLE FONT IMPORT - POPPINS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* GOOGLE FONT IMPORT - BARLOW SEMI CONDENSED */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* GLOBAL VARIABLES */
:root {
    --background: #fff;
    --background-colour-transparent: rgb(255, 255, 255, 0.9);
    --body-text: #1a3947;
    --nav-text: #4d4d4d;
    --accent-colour: #1A3947;
    --accent-colour-hover: #377795;
    --active-colour: #F5751D;
    --active-colour-hover: #FCA26E;
}

/* GLOBAL STYLES */
*, *::before, *::after {
    box-sizing: border-box;
  }

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 16px;
    color: var(--body-text);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--body-text);
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 3.8rem;
    margin-top: 6px;
    margin-bottom: 24px;
}

.sub-title {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

h5 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 18px;
    margin-bottom: 4px;
}

p {
    margin-bottom: 10px;
}

section p {
    line-height: 1.4rem;
}

p > a {
    color: var(--accent-colour);
    font-weight: 600;
    text-decoration: none;
}

p > a:hover {
    color: var(--active-colour);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.card-detail-text-container a, .event-schedule-container a {
    color: var(--body-text);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.v-spaced-paragraph {
    margin: 20px 0;
}

body {
    max-width: 960px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

main > *, footer {
    padding: 40px 40px 40px;
}

main ul {
    margin: 0 0 30px 20px;
}

main li {
    margin-bottom: 4px;
}

.emphasised-text {
    font-weight: 600;
    font-style: italic;
}

/* RESPONSIVE GLOBAL STYLES */
@media screen and (max-width: 800px) {
    main > *, footer {
        padding: 26px 22px 26px;
    }
    
    h1 {
        font-size: 2.6rem;
        line-height: 2.6rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .sub-title {
        font-size: 1.1rem;
        line-height: 1.4rem;
    }
}

/* NAVIGATION */
.nav-container {
    background-color: var(--background);
}

.nav-bar img {
    max-height: 52px;
}

.nav-bar {
    max-width: 1200px;
    height: 104px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.nav-item {
    list-style: none;
}

.nav-item a.active {
    color: var(--active-colour);
}

.nav-link {
    color: var(--body-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

/* This uses :not - the negation pseudo class - to prevent the class="active" page link from underlining on hover */
.nav-link:not(.active):hover {
    color: var(--active-colour);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-link a.active {
    color: var(--active-colour);
    text-decoration: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.menu-bar {
    display: block;
    width: 36px;
    height: 2px;
    background-color: var(--body-text);
    margin: 10px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* MEDIA QUERY FOR MOBILE NAVIGATION MENU DISPLAY */
@media screen and (max-width: 800px) {
    .nav-bar {
        padding: 0 26px;
    }
    .hamburger {
        display: block;
    }

    .hamburger.active .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .menu-bar:nth-child(1) {
        transform: translateY(12px) rotate(45deg)
    }

    .hamburger.active .menu-bar:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg)
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 104px;
        gap: 0;
        flex-direction: column;
        justify-content: start;
        background-color: var(--background);
        width: 100%;
        height: 100%;
        padding-top: 30px;
        text-align: center;
        transition: 0.4s ease-in-out;

    }

    .nav-item {
        margin: 10px 0;
        height: 40px;
    }

    .nav-menu.active {
        left: 0;
        transition: 0.6s ease-in-out;
    }
}

/* HERO SECTION */
.hero {
    background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.05)), url(images/cardiff-students-aikido-hero-image-2.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    max-width: 100%;
    height: 400px;
}

.hero-short {
    background-image: linear-gradient(110deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url(images/shizengeiko-2024-aikido-2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    max-width: 100%;
    height: 320px;
}

.hero-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.hero-title {
    margin-top: 40px;
    font-size: 4rem;
    font-weight: 600;
    line-height: 3.9rem;
    color: #ffffff;
}

.hero-short-title {
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 3.5rem;
    color: #ffffff;
    max-width: 80%;
}

.hero-title > p {
    display: inline-block;
}

.hero-divider {
    display: none;
    height: 2px;
    background-color: var(--active-colour);
    margin: 16px 0;
}

.hero-cta {
    display: flex;
    flex-direction: row;
}

.hero-cta-button {
    background-color: var(--active-colour);
    border-radius: 50px;
    text-align: center;
    max-width: fit-content;
    padding: 10px 30px;
}

.hero-cta-button > a {
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    color: var(--background);
}

.hero-cta-button:hover {
    background-color: var(--active-colour-hover);
}

.hero-title-mobile, .hero-short-title-mobile {
    display: none;
}

/* HERO MEDIA QUERIES */
@media screen and (max-width: 800px) {
    .hero {
        background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)), url(images/cardiff-students-aikido-hero-image-2.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        
        max-width: 100%;
        height: 300px;
        padding: 30px;
    }

    .hero-short {
        background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(images/shizengeiko-2024-aikido-2.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        max-width: 100%;
        height: 320px;
        padding: 30px;
    }

    .hero-content {
        justify-content: space-between;
    }

    .hero-short > .hero-content {
        justify-content: start;

    }

    .hero-title {
        margin-top: 30px;
        font-size: 2.8rem;
        font-weight: 600;
        line-height: 2.7rem;
        color: #ffffff;
    }

    .hero-short-title {
        display: none;
    }

    .hero-short-title-mobile {
        font-size: 2.8rem;
        font-weight: 600;
        line-height: 3rem;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.7);
        color: var(--accent-colour);
        display: inline-block;
        max-width: fit-content;
        padding: 15px 20px 8px;
        border-radius: 8px;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
    }

    .hero-cta-button {
        padding: 8px 20px;
        width: fit-content;
    }
    
    .hero-cta-button > a {
        font-size: 1.1rem;
        font-weight: 400;
        text-decoration: none;
        color: var(--background);
    }
}

/* BODY CONTAINER STYLES */
.home-container-a {
    background-color: #fafafa;
}

.home-container-b {
    background-color: #efeff0;
}

.card-container {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.card {
    background-color: var(--background);
    padding: 24px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card-details-container {
    display: flex;
}

.card-icon-container {
    min-width: 18px;
    margin-right: 12px;
}

.body-button {
    background-color: var(--accent-colour);
    border-radius: 50px;
    text-align: center;
    width: fit-content;
    padding: 8px 26px;
    margin: 32px 0 6px;
}

.body-button > a {
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    color: var(--background);
}

.body-button:hover {
    background-color: var(--accent-colour-hover);
}

.email-line {
    margin-bottom: 10px;
}

.email-line > i {
    margin-right: 8px;
}

.email-line > a {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-colour);
}

.email-line > a:hover {
    color: var(--active-colour);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.v-spacer {
    height: 12px;
}

/* BODY CONTAINER MEDIA QUERIES */
@media screen and (max-width: 800px) {
    .card-container {
        flex-direction: column;
        gap: 30px;
    }

    .body-button {
        max-width: 100%;
    }

    .email-cta, .email-cta > i {
        font-size: 1.1rem;
    }
}

/* FOOTER STYLES */
footer {
    background-color: var(--body-text);
    padding-bottom: 50px;
}

footer * {
    color: var(--background);
}

footer h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 4px;
}

footer li a {
    font-size: 0.9rem;
    text-decoration: none;
}

footer li a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--active-colour);
}

/* EVENTS PAGE STYLES */
.event-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

.event-details-item {
    display: inline-block;
    font-size: 22px;
    font-weight: 300;
    text-align: center;
}

.event-details-item > i {
    display: none;
}

.details-divider {
    margin: 0 12px 10px 12px;
    width: 1px;
    height: 22px;
    text-align: center;
    background-color: var(--active-colour);
}

.event-title, .event-subtitle {
    margin-bottom: 20px;
}

.event-title > h2 {
    font-size: 2.4rem;
    line-height: 3rem;
}

.event-subtitle > h3 {
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 2rem;
}

.event-schedule-container {
    margin: 0 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 8%;
    
}

.schedule-item {
    width: 40%;
}

.schedule-item p {
    margin-bottom: 8px;
    line-height: 1.3rem;
}

.media-container {
    margin: 24px 0;
}

iframe {
  height: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* EVENT PAGE MEDIA QUERIES */
@media screen and (max-width: 800px) {
    .event-details {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .event-details-item {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .event-details-item > i {
        display: inline;
        margin-right: 10px;
    }

    .details-divider {
        display: none;
    }

    .event-title {
        margin-bottom: 20px;
    }

    .event-title > h2 {
        font-size: 1.6rem;
        line-height: 1.8rem;
    }

    .event-subtitle {
        margin-bottom: 20px;
    }
    
    .event-subtitle > h3 {
        font-size: 1.2rem;
        font-weight: 300;
        line-height: 1.4rem;
    }

    .event-schedule-container {
        display: flex;
        flex-direction: column;
    }

    .schedule-item {
        width: 100%;
    }
}