/* Global Styles and Resets */
/* Color scheme: Cream background (#FFFDF9), soft gold accents (#D4AF37), dark text (#000), blue accents (#003366) */
* {
    box-sizing: border-box; /* Ensure padding is included in width to prevent overflow */
}

body {
    margin: 0;
    font-family: 'EB Garamond', serif;
    background-color: #FFFDF9;
    color: #000;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

h1, h2, h3 {
    font-family: 'PT Serif', serif;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem 2rem;
    z-index: 10;
}

.home #hero {
    position: relative;
}

.home header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: none; /* Remove white border */
}

.home header nav a,
.home header h1 {
    color: white;
}

h1 {
    margin: 0;
    color: #003366;
    padding-right: 2rem; /* Extra padding on right for title */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav li,
nav a {
    font-weight: normal;
    text-decoration: none;
    color: #003366;
    font-size: 1.2rem;
}
nav a:hover {
    color: #7F6921; /* Darker gold hover color for better contrast and visibility */
}

.hamburger {
    display: none; /* Hidden on desktop */
}

.nav-toggle {
    display: none;
}

.home header .hamburger span {
    background-color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #D4AF37;
    background-color: #FFFDF9;
}

/* Home Page Styles */
.full-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Scrollable background */
}

#hero.full-page {
    min-height: 115vh; 
}

.hero-text {
    position: absolute;
    top: 20%;
    left: 5%;
    text-align: left;
}

.hero-text h2 {
    font-size: 6rem;
    color: #e5e6d9; 
    line-height: 0.8;
    margin: 0;
}

.hero-text p {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.centered {
    text-align: left;
    margin: 0 auto;
    padding: 0 25%;
}

#description .centered h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
}

#description .centered p {
    font-size: 1.8rem; /* Increased for eye-catching */
    font-weight: normal; /* Easy and fine text */
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #003366;
    color: #FFFDF9;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #D4AF37;
}

.button:hover {
    background-color: #D4AF37; /* Gold on hover */
    color: #003366; /* Blue text on hover */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

#get-started {
    background-color: white;
    background-image: none;
}

#programs-preview {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #FFFDF9;
}

.cards-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 5rem;
}

.card {
    position: relative;
    width: 210px;
    height: 350px; 
    border: 1px solid #D4AF37;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: block;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text contrast */
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    color: white; /* White text for contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.card h3 {
    color: white; /* Override for white */
    margin: 0;
}

.card p {
    color: white; /* Override for white */
    margin: 0.5rem 0 0;
}

/* About Page Styles */
#about-us {
    background-color: #FFF; /* White background */
}

#about-us .centered h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #003366; /* Blue for title */
}

#about-us .centered p {
    font-size: 1.2rem;
    font-weight: 400; /* Softer weight */
    color: #333; /* Slightly lighter for "softer" feel */
}

#about-us .centered p strong {
    color: #003366; /* Blue for strong text */
}

#our-team {
    display: flex;
    justify-content: space-between;
    padding: 2rem 25%;
    background-color: #FFFDF9;
    min-height: 100vh; /* Even larger vertical height */
    align-items: center; /* Vertically center content */
}

.team-summary {
    flex: 1;
    padding-right: 2rem;
    text-align: left;
}

.ceo-image {
    width: 200px;
    height: auto;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.ceo-contact {
    flex: 1;
    text-align: center; /* Center image and text */
    border-left: 1px solid #D4AF37;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#our-team h3 {
    font-weight: bold;
    color: #003366;
}

#our-team p {
    font-weight: normal;
    color: #000;
}

/* Contact Page Styles */
#contact-group {
    display: flex;
    justify-content: space-between;
    background-color: #FFFDF9;
    min-height: 100vh;
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    padding-right: 2rem;
    text-align: center;
}

.contact-info-inner {
    justify-content: center; 
    max-width: 400px;
    margin: 0 auto; 
    text-align: left;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 4rem; 
    border-left: 1px solid #D4AF37; 
}

.form-field,
.name-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Consistent small gap between label and input/textarea */
}

.name-row {
    display: flex;
    gap: 0.5rem;
}

.name-field {
    flex: 1;
}

label {
    font-weight: bold;
}

input,
textarea {
    height: 2rem; /* For inputs; textarea overrides below */
    width: 100%; /* Full width for consistency across fields */
    padding: 0.5rem;
    border: 1px solid #D4AF37;
    border-radius: 5px;
}

textarea {
    height: 10rem; /* Override height for textarea */
}

.iti {
    width: 100%; /* Full container width for phone input with flag */
    display: block;
}

#phone {
    width: 100%; /* Ensure phone input fills container */
}

button {
    padding: 1rem 2rem;
    background-color: #003366;
    color: #FFFDF9;
    border: 1px solid #D4AF37;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    width: 50%;
}
button:hover {
    background-color: #D4AF37; /* Gold on hover */
    color: #003366; /* Blue text on hover */
    border: 1px solid #003366; /* Blue border on hover for contrast */
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease; /* Smooth transition */
}

/* Mobile/Responsive Styles */
@media (max-width: 768px) {
    /* Header and Nav Mobile Fixes */
    header {
        flex-direction: column; /* Stack for mobile */
        align-items: center; /* Center horizontally */
        padding: 1rem;
    }

    h1 {
        text-align: center; /* Center title */
        padding-right: 0; /* Remove desktop padding */
        order: -1; /* Title above nav */
        margin-bottom: 1rem;
    }

    .nav-toggle {
        display: none; /* Hidden checkbox */
    }

    .hamburger {
        display: flex; /* Visible on mobile */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        position: absolute;
        left: 2rem; /* Switched to left */
        right: unset;
        top: 1.5rem;
    }

   .hamburger span {
        width: 100%;
        height: 3px;
        background-color: #003366; /* Default dark blue for non-home pages */
        transition: all 0.3s;
    }

    .nav-menu {
        display: none; /* Hidden by default */
        flex-direction: column;
        gap: 1rem;
        width: 100vw;
        text-align: center;
        background-color: #FFFDF9;
        padding: 1rem 0;
    }

    .nav-menu a {
        color: #003366; /* Blue text for visibility on cream background */
        font-size: 3rem;
        padding: 0.6rem;
        display: block;
    }

    .home header .nav-menu a {
        color: #003366; /* Specific override for home page to prevent white text */
   
    }
    nav a:hover {
        color: #7F6921; /* Darker gold hover color for better contrast and visibility */
    }

    .nav-toggle:checked + .hamburger + nav .nav-menu {
        display: flex; /* Show on toggle */
        height: 90vh; /* 80% vertical height */
        justify-content: center; /* Center links vertically */
    }

    .nav-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem; /* Better spacing */
        padding: 0 1rem; /* Proper padding */
    }

    .centered {
        max-width: 90%;
        padding: 0 5%; /* Adjusted padding */
        text-align: center; /* Center texts/titles */
    }

    .hero-text h2 {
        font-size: 3rem; /* Smaller title */
        text-align: center; /* Center */
        left: 0;
        width: 100%;
    }

    .hero-text p {
        font-size: 1.2rem;
        text-align: center;
    }

    #our-team, #contact-group {
        padding: 2rem 5%; /* Proper padding */
        align-items: center;
    }

    .team-summary, .contact-info-inner {
        text-align: center; /* Center texts */
        padding: 1rem 0; /* Proper padding */
    }

    .full-page {
        min-height: 50vh;
    }

    #get-started {
        min-height: 90vh; /* Increased vertical height for mobile */
    }

    #about-us {
        min-height: 90vh; /* Increased vertical height for mobile on about page */
    }

    #contact-group {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .contact-info {
        padding: 6rem 2rem;
        max-width: fit-content;
    }

    .contact-form {
        border-left: none;
        border-top: 1px solid #D4AF37;
        padding: 4rem 2rem;
        width: 100%;
        max-width: 500px;
    }

    .contact-form label {
        display: block; 
        text-align: left;
        /* margin-bottom: 0.5rem;  */
    }

    .iti {
        width: 100%; 
        display: block; 
    }

    #phone {
        width: 100%;
    }

    .name-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-field,
    .name-field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem; 
    }

    input, textarea, button {
        width: 100%; /* 80% width for mobile form boxes */
        margin: 0 auto; /* Center horizontally */
    }

    .button:active,
    button:active {
        background-color: #D4AF37; /* Gold on active/tap */
        color: #003366; /* Blue text on active */
        border: 1px solid #003366; /* Blue border on active for contrast */
        transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease; /* Smooth transition */
    }
  
    .card {
        width: 75vw; /* 75% of viewport width for better horizontal portrait scaling */
        height: calc(75vw * 5 / 3); /* Maintain 3:5 ratio */
    }

    #our-team {
        flex-direction: column;
        align-items: center;
    }

    .team-summary {
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .ceo-contact {
        border-left: none;
        border-top: 1px solid #D4AF37;
        padding-left: 0;
        padding-top: 1rem;
    }
}
