/*
Theme Name: JWIT Custom Theme
Theme URI: http://localhost/usa-jwit/
Author: Anna Tran
Description: Custom WordPress theme developed for Jaguar Women in Technology.
Version: 1.0
*/


/*---------------------------------------------
   GENERAL
----------------------------------------------*/

* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: 'Spectral', sans-serif;
    color: #47322d;
    background-color: white;
}
h1 {
  font-family: 'Spectral', serif;
  font-size: 60px;
  color: #47322d;
}

h2 {
  font-family: 'Spectral', serif;
  font-size: 60px;
  color: #47322d;
}

a {
    text-decoration: none;
}



/*---------------------------------------------
   HEADER AND MAIN NAVIGATION
----------------------------------------------*/

.site-header {
    position: relative;
    z-index: 100;
    background-color: #D8C5F5;
}

.header-container {
    width: 94%;
    max-width: 1500px;
    min-height: 95px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo-link {
    display: block;
    flex-shrink: 0;
}

.jwit-logo {
    display: block;
    width: 75px;
    height: auto;
}

.site-title {
    color: #00205B;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: 1px;
   
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    margin-left: auto;
}

.main-navigation a {
    color: #00205B;
    font-size: 15px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: #702FBE;
}

.main-navigation a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid #00205B;
    outline-offset: 4px;
}

/* Hamburger button: hidden on desktop */
.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background-color: #00205B;
    transition: transform 0.2s ease;
}



/*---------------------------------------------
   JWIT BRANDING
----------------------------------------------*/

.site-brand {
    display: flex;
    align-items: center;
    gap: 20px;

    color: #111111;
}

.jwit-logo {
    width: 85px;
    height: auto;
    display: block;

}

.site-title {
    font-size: 23px;
    line-height: 1.05;
    letter-spacing: 1px;
}


/*---------------------------------------------
   THE FRONT/HOME PAGE
----------------------------------------------*/

.homepage {
    width: 100%;
}

/* Shared section layout */

.front-section {
    width: 100%;
    padding: 65px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}

/* Welcome section with miss pawla */

.front-welcome {
    
    min-height: 520px;
    background-image: url("images/striped_stars.jpg");
    background-size: 500px 500px;
    background-position: center;
    background-repeat: repeat;
    padding: 5rem 2rem;
    display: block;
}
/* White welcome card  with borders*/
.welcome-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;

    background-color: #FFFFFF;
    border-radius: 25px;
    border: 8px solid #D8C5F5;
}

.front-image img { /* fix pawla img with responsiveness pls and pic pls*/
    width: 100%;
    max-width: 420px;
    height: 420px;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    border: 5px solid #ffb7e8;
}

.front-content {
    text-align: center;
}

.front-content h1 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 25px;
}

.front-content h2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 25px;
}

.front-content p {
    font-size: 22px;
    line-height: 1.6;
    margin: 0 0 30px;
}



/*---------------------------------------------
   JWIT INTRO BLOCK
----------------------------------------------*/

/* section backgound- right side */
.front-about {
    background-color: #ffdcf4;
}

.front-quote {
    background-color: transparent;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.front-quote p {
    font-size: 26px;
    line-height: 1.5;
    font-style: italic;
}
/* section backgound- left side */
.front-about .front-content {
    background-color: #fffff5;
    padding: 40px;
    border: 5px solid #ffb7e8;
    border-radius: 25px;
    text-align: center;
}

/* Buttons */

.learn-more-button {
    display: inline-block;
    background-color: #d39dff;
    color: #47322d;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    letter-spacing: 1px;
    transition: 0.2s;
}

.learn-more-button:hover {
    background-color: #bf75ff;
    color: white;
}
/*---------------------------------------------
   WHAT WE DO - BLOCK
----------------------------------------------*/


/* WHAT WE DO SECTION */
.front-activities {
    gap: 60px;
    min-height: 520px;
    background-image: url("images/purple_gingham.jpg");
    background-size: 500px 500px;
    background-position: center;
    background-repeat: repeat;
    padding: 5rem 2rem;
    display: block;
}

/* box */
.activities-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    background-color: #FFFFFF;
    border: 5px solid #D8C5F5;
    border-radius: 25px;
    text-align: center;
}


/* heading and introduction */
.activities-intro {
    text-align: center;
    padding-bottom: 30px;
}

.activities-intro h2 {
    color: #bd99ff;
    font-size: 45px;
    line-height: 1.25;
    letter-spacing: 2px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    padding-top: 20px;
}
/* mini desc */
.activities-intro p {
    color: #47322d;
    font-size: 25px;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 30px;
}

/* Three cards in a centered row */
.activity-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
/* make items hover?

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 32, 91, 0.10);
}*/

/* Individual benefit cards */
.activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 25px 20px;
    background-color: #F5F0FC;
    border: 2px solid #d3b6ff;
    border-radius: 18px;
    text-align: center;
}


/* Card text */
.activity-text h3 {
    color: #00205B;
    font-size: 25px;
    margin: 0 0 10px;
}

.activity-text p {
    color: #47322d;
    font-size: 21px;
    line-height: 1.5;
    margin: 0;
}


/*---------------------------------------------
   RESOURCES SECTION
----------------------------------------------*/

.front-resources {
    display: block;
    background-color: #FFFFFF;
}


/* Heading and introduction */
.resources-intro {
    text-align: center;
    margin: 0 auto 35px;
    max-width: 700px;
}

.resources-intro h2 {
    color: #00205B;
    font-size: 45px;
    line-height: 1.25;
    letter-spacing: 2px;
    margin: 0 0 15px;
}

.resources-intro p {
    color: #47322d;
    font-size: 25px;
    line-height: 1.6;
    margin: 0;
}

/*  resource cards */
.resource-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Individual cards */

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;

    padding: 25px 18px;
    background-color: #FFFFFF;
    border: 2px solid #D8C5F5;
    border-radius: 18px;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}


.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 32, 91, 0.10);
}


/* Resource icons */
.resource-icon {
    width: 180px;
    height: 190px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background-color: #F5F0FC;
    color: #00205B;
    font-size: 27px;
    overflow: hidden;
}

.resource-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}



/* Card headings */
.resource-card h3 {
    color: #00205B;
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 12px;
}

/* Card descriptions */
.resource-card p {
    color: #47322d;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 22px;
}

/* Resource links */
.resource-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    color: #00205B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-bottom: 2px solid #D8C5F5;
    padding-bottom: 5px;
}

.resource-link:hover {
    color: #47322d;
    border-color: #00205B;
}

/*---------------------------------------------
   THE EVENTS PAGE
----------------------------------------------*/

.events-page {
    width: 100%;
    margin: 0;
    color: #47322D;
}


/*---------------------------------------------
   CALENDAR SECTION
   Repeated background pattern
----------------------------------------------*/

.events-calendar-section {
    width: 100%;
    padding: 55px 5%;

    background-image: url("images/purple_gingham.jpg");
    background-size: 500px 500px;
    background-position: center;
    background-repeat: repeat;
}


/* WHITE ROUNDED CALENDAR CONTAINER */

.calendar-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px;

    background-color: #FFFFFF;
    border: 6px solid #D8C5F5;
    border-radius: 25px;

    box-shadow: 0 4px 12px rgba(71, 50, 45, 0.08);
}


/*---------------------------------------------
   CALENDAR HEADING
----------------------------------------------*/

.events-intro {
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}

.events-intro h1 {
    font-family: 'Spectral', serif;
    color: #47322D;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.2;

    margin: 0 0 12px;
}

.events-intro p {
    color: #47322D;
    font-size: 19px;
    line-height: 1.5;

    margin: 0;
}


/*---------------------------------------------
   GOOGLE CALENDAR EMBED
----------------------------------------------*/

.calendar-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    overflow: hidden;
    border-radius: 10px;
}

.calendar-container iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 600px;

    border: 0;
}


/*---------------------------------------------
   LOCATION SECTION
   Solid pink background
----------------------------------------------*/

.events-location {
    width: 100%;
    padding: 60px 8%;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;
    gap: 55px;

    background-color: #FFDCF4;
}


/*---------------------------------------------
   LEFT COLUMN
   Location information on pink background
----------------------------------------------*/

.calendar-information {
    width: 100%;
    max-width: 480px;
}

.calendar-information h2 {
    font-family: 'Spectral', serif;
    color: #00205B;

    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;

    margin: 0 0 22px;
}

.calendar-information p {
    color: #47322D;

    font-size: 19px;
    line-height: 1.7;

    margin: 0 0 15px;
}


/*---------------------------------------------
   RIGHT COLUMN
   Google Maps inside a white rounded box
----------------------------------------------*/

.map-card {
    width: 100%;
    min-width: 0;
    padding: 15px;

    background-color: #FFFFFF;
    border: 5px solid #D8C5F5;
    border-radius: 25px;

    box-shadow: 0 4px 12px rgba(71, 50, 45, 0.08);
}

.map-section {
    width: 100%;
    overflow: hidden;

    border-radius: 12px;
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 350px;

    border: 0;
}


/*---------------------------------------------
   RESPONSIVE EVENTS PAGE
----------------------------------------------*/

@media (max-width: 800px) {

    /* Calendar section */

    .events-calendar-section {
        padding: 35px 5%;
    }

    .calendar-card {
        padding: 20px;
        border-width: 4px;
        border-radius: 20px;
    }

    .events-intro {
        margin-bottom: 25px;
    }

    .events-intro h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .events-intro p {
        font-size: 17px;
    }

    .calendar-container iframe {
        min-height: 600px;
    }


    /* Location section */

    .events-location {
        grid-template-columns: 1fr;
        gap: 30px;

        padding: 40px 7%;
    }

    .calendar-information {
        max-width: none;
    }

    .calendar-information h2 {
        font-size: 27px;
    }

    .calendar-information p {
        font-size: 17px;
    }

    .map-card {
        padding: 12px;
        border-width: 4px;
        border-radius: 20px;
    }

    .map-section iframe {
        height: 300px;
    }

}

 



/*---------------------------------------------
   THE ABOUT PAGE
----------------------------------------------*/

.about-page {
    width: 90%;
    max-width: 1250px;
    margin: 25px auto 15px;
}


/* TWO COLUMN SECTION */

.about-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 55px;
    align-items: center;
}


/* TWO COLUMN LAYOUT */

.about-section {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 55px;
    align-items: center;
}

/* ABOUT HEADING */

.about-content h1 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0 0 14px;
}

/* SECTION HEADINGS */

.about-content h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 3px;
}

/* BODY TEXT */

.about-content p {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 18px;
}

/* MISSION, WHAT WE DO, JOINING */

.about-subsection {
    margin-bottom: 18px;
}

.about-content ul {
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
    padding-left: 25px;
}

/* RIGHT SIDE IMAGES */

.about-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-image img,
.about-map img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* GET INVOLVED BUTTON */

.involved-button {
    display: table;
    width: auto;
    margin: 0 auto;
    background-color: #D8C5F5;
    color: #111111;
    padding: 4px 12px;
    font-size: 18px;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.involved-button:hover {
    background-color: #B28BDC;
    color: white;
}

/* MOBILE */
@media (max-width: 800px) {

    /* Calendar section */

    .events-calendar-section {
        padding: 35px 5%;
    }

    .calendar-card {
        padding: 20px;
        border-width: 4px;
        border-radius: 20px;
    }

    .events-intro {
        margin-bottom: 25px;
    }

    .events-intro h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .events-intro p {
        font-size: 17px;
    }

    .calendar-container iframe {
        min-height: 600px;
    }


    /* Location section */

    .events-location {
        grid-template-columns: 1fr;
        gap: 30px;

        padding: 40px 7%;
    }

    .calendar-information {
        max-width: none;
    }

    .calendar-information h2 {
        font-size: 27px;
    }

    .calendar-information p {
        font-size: 17px;
    }

    .map-card {
        padding: 12px;
        border-width: 4px;
        border-radius: 20px;
    }

    .map-section iframe {
        height: 300px;
    }


@media (max-width: 850px) {
    .about-page {
        width: 90%;
        margin: 30px auto;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* GROUP PHOTO */

.about-image img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}


/* MAP IMAGE */

.about-map img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}


/* GET INVOLVED BUTTON */

.involved-button {
    display: inline-block;
    background-color: #D8C5F5;
    color: #111111;
    padding: 7px 14px;
    font-size: 18px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.2s;
}

.involved-button:hover {
    background-color: #B28BDC;
    color: white;
}


/*---------------------------------------------
   RESPONSIVE ABOUT PAGE
----------------------------------------------*/

@media (max-width: 850px) {

    .about-page {
        width: 90%;
        margin: 35px auto;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-content h1 {
        font-size: 30px;
    }

    .about-content p,
    .about-content ul {
        font-size: 17px;
    }

    .about-image img,
    .about-map img {
        height: 280px;
    }

}
/*---------------------------------------------
   GALLERY PAGE
----------------------------------------------*/

.gallery-container {
    width: 110%;
    max-width: 1500px;
    margin: 50px auto;
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery {
    border: 1px solid #ccc;
    background: white;
    transition: 0.2s;
}

.gallery:hover {
    border-color: #777;
}

.gallery img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.gallery .desc {
    padding: 15px;
    text-align: center;
    font-size: 16px;
}


/* TABLET */

@media (max-width: 900px) {

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

.activity-list {
    grid-template-columns: 1fr;
}

.activity-item {
    padding: 25px;
}

}


/* PHONE / MOBILE MOBILE MOBILE*/

@media (max-width: 500px) {

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .welcome-card {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
    }
    .events-calendar-section {
        padding: 25px 4%;
    }

    .calendar-card {
        padding: 15px;
    }

    .events-intro h1 {
        font-size: 27px;
    }

    .events-intro p {
        font-size: 16px;
    }

    .calendar-container iframe {
        min-height: 550px;
    }

    .events-location {
        padding: 30px 6%;
        gap: 25px;
    }

    .calendar-information h2 {
        font-size: 24px;
    }

    .calendar-information p {
        font-size: 16px;
    }

    .map-section iframe {
        height: 260px;
    }
}

/* reason to join styling - what we do 4 u */

.activities-intro {
    text-align: center;
}

.activities-box {
    padding: 25px 18px;
}

.activities-intro h2 {
    font-size: 28px;
}

.activities-intro p {
    font-size: 16px;
}
/* keeps them as a row on a tablet screen */
@media (max-width: 700px) {
    .activity-list {
        grid-template-columns: 1fr;
    }
}

}
/* Makes resources on homepage stack into cube */


@media (max-width: 900px) {
   
.resource-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

}

@media (max-width: 500px) {
    
.resources-box {
    padding: 25px 18px;
}

.resources-intro h2 {
    font-size: 30px;
}

.resources-intro p {
    font-size: 16px;
}

.resource-cards {
    grid-template-columns: 1fr;
}

.resource-card {
    padding: 25px 20px;
}

}



/*---------------------------------------------
   FOOTER
----------------------------------------------*/

.site-footer {
    background-color: #D8C5F5;
    color: #00205B;
    padding: 35px 5% 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 45px;
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-brand img {
    display: block;
    width: 85px;
    height: auto;
}

.footer-brand h2 {
    color: #00205B;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links h3 {
    color: #00205B;
    font-size: 17px;
    margin: 0 0 8px;
}

.footer-links a {
    color: #47322D;
    font-size: 14px;
    line-height: 1.5;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #702FBE;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 32, 91, 0.2);
    text-align: center;
    padding: 15px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}



/*---------------------------------------------
   CONTACT US PAGE
----------------------------------------------*/

/* PAGE WRAPPER */
.contact-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FULL-WIDTH BANNER */
.contact-banner {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 40px 4% 5px;
    min-height: 180px;

    background:#ffdcf4;
        
    background-size: cover;
    background-position: center;
    text-align: center;
}

.contact-banner h1 {
    color: #00205B;
    font-size: 55px;
    line-height: 1.25;
    letter-spacing: 2px;
    margin: 0 0 15px;
}

.contact-banner > p {
    color: #47322d;
    font-size: 25px;
    margin: 0 0 30px;
}

/* SOCIAL LINKS BELOW THE BANNER */
.contact-social {
    width: 100%;
    box-sizing: border-box;
    padding: 35px 8%;
    text-align: center;
    background-color: #FFFFFF;
}

/* CENTER THE ICONS HORIZONTALLY */
.social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 150px;
}

/* MAKE THE ICON CONTAINERS BIGGER */
.social-grid a {
    width: 270px;
    height: 270px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #F5F0FC;
    border-radius: 20px;
    transition: transform 0.2s ease;
}

/* SCALE THE IMAGES INSIDE THE CONTAINERS */
.social-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-grid a:hover {
    transform: translateY(-4px);
}

/* FULL-WIDTH PINK CONTACT SECTION */
.contact-details {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 60px 8% 70px;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 60px;

    background-color: #ffdcf4;
}

/* LEFT COLUMN */
.contact-information {
    padding-top: 0.5rem;
}

.contact-information h2 {
    color: #00205B;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.contact-information p {
    color: #47322d;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 1.25rem;
}

/* RIGHT COLUMN: GOOGLE FORM */
.contact-form-section {
    width: 100%;
    min-width: 0;
}

.jwit-google-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.jwit-google-form iframe {
    display: block;
    width: 100%;
    height: 800px;
    border: none;
}

/* Hide the checkbox */
.menu-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

/* Hamburger lines */
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background-color: #00205B;
    transition: transform 0.2s ease;
}

/* Mobile navigation */
@media (max-width: 850px) {
    .header-container {
        min-height: 85px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .jwit-logo {
        width: 60px;
    }

    .site-title {
        font-size: 16px;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hide navigation until checked */
    .main-navigation {
        display: none;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(0, 32, 91, 0.18);
    }

    /* Show navigation when checkbox is checked */
    .menu-checkbox:checked ~ .main-navigation {
        display: flex;
    }

    .main-navigation a {
        padding: 13px 10px;
        text-align: center;
    }

    /* Turn hamburger into an X */
    .menu-checkbox:checked + .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-checkbox:checked + .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked + .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/*---------------------------------------------
   MOBILE LAYOUT
----------------------------------------------*/

@media (max-width: 700px) {

    .contact-banner {
        padding: 45px 5% 40px;
    }

    .contact-banner h1 {
        font-size: 30px;
        letter-spacing: 1px;
    }

    .contact-banner > p {
        font-size: 17px;
    }

    .social-grid {
        gap: 1rem;
    }

    .social-grid a {
        width: 95px;
        height: 95px;
        padding: 8px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 40px 6% 45px;
    }

    .contact-information h2 {
        font-size: 1.6rem;
    }

    .contact-information p {
        font-size: 1rem;
    }

    .jwit-google-form iframe {
        height: 850px;
    }
}


/*---------------------------------------------
   MOBILE RESPONSIVENESS
----------------------------------------------*/

@media (max-width: 500px) {

    .site-header {
        height: auto;
        padding: 15px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    
    .front-section {
        grid-template-columns: 1fr;
        padding: 40px 6%;
        gap: 30px;
    }

    .front-image img {
        height: 300px;
    }

    .front-content h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .front-content h2 {
        font-size: 25px;
    }

    .front-content p {
        font-size: 16px;
    }

    .front-quote {
        min-height: 180px;
        padding: 25px;
    }

    .front-quote p {
        font-size: 21px;
    }

    .resource-cards {
        grid-template-columns: 1fr;
    }


}


/*---------------------------------------------
   RESPONSIVE NAVIGATION AND FOOTER
----------------------------------------------*/

@media (max-width: 850px) {

    .header-container {
        min-height: 85px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .jwit-logo {
        width: 60px;
    }

    .site-title {
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-navigation {
        display: none;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(0, 32, 91, 0.18);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation a {
        padding: 13px 10px;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 500px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand {
        grid-column: auto;
    }
}



/* Keep the footer at the bottom of the page */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}
