/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 50;
    
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

#header.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    transition: all 0.3s ease;
    width: 12em;
    height: 10em;
}
.logo-footer {
    width: 12em;
    margin-top: 2em;
}

#header.scrolled .logo-container {
    width: 120px;
    height: 60px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

nav {
    display: flex;
    gap: 3rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

nav a {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero-section {
    padding: 13rem 1.5rem 5rem;
    margin-top: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    display: flex;
    justify-content: center;
}

.hero-text h1 {
    font-family: "Newsreader", serif;
    font-size: 48px;
    font-weight: 350;
    line-height: 1.2;
    letter-spacing: -1.28px;
    text-align: center;
    max-width: 600px;
    color: #006ca7;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 578px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Belief Section */
.belief-section {
    padding: 4rem 1.5rem;
    background: #f9f9f9;
}

.belief-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.section-label {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.footer-label {
    font-weight: 200;
    font-size: 1.5em;
    letter-spacing: 0.56px;
    margin-bottom: 0;
    padding-top: 1em;
}

.content-text {
    font-size: 20px;
    line-height: 1.6;
    text-align: justify;
}

.content-text p {
    margin-bottom: 1rem;
}

/* IFFD Section */
.iffd-section {
    padding: 4rem 1.5rem;
    text-align: justify;

}

.iffd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.iffd-content {
    font-size: 20px;
    line-height: 1.6;
}

.iffd-content p {
    margin-bottom: 1rem;
}
.iffd-content a {
font-style: normal;
color: #006ca7;
text-decoration: none;
}

.iffd-content ol {
    margin-left: 2em;
}

.italic {
    font-style: italic;
}

.iffd-logo {
    display: flex;
    align-items: flex-start;
    width: 16em;
    padding-left: 30%;
    padding-top: 2em;
    
}

.member-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    font-size: 18px;
}

/* Programs Section */
.programs-section {
    padding: 4rem 1.5rem;
    background: #f9f9f9;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.programs-content {
    font-size: 20px;
    line-height: 1.6;
    text-align: justify;

}

.programs-content p {
    margin-bottom: 1rem;
}

.programs-image {
    display: flex;
    justify-content: center;
}

.programs-image img {
    width: 100%;
    max-width: 562px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.programs-list {
    font-size: 20px;
    line-height: 1.6;
    
    font-family: "Montserrat", sans-serif;
    /*justify-self: anchor-center;*/
    
}

.programs-list ol {
    list-style: none;
}

.programs-list li {
    margin-bottom: 0.5rem;
}

.program-item {
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 0;
}

.program-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.program-title {
    flex: 1;
    font-weight: 500;
}

.program-arrow {
    width: 1rem;
    height: 1rem;
    position: relative;
    flex-shrink: 0;
}

.program-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.2s ease;
}

.program-item.open .program-arrow::before {
    transform: translate(-50%, -40%) rotate(225deg);
}

.program-details {
    max-height: 0;
    overflow: hidden;
    font-size: 0.95em;
    color: #444;
    margin-top: 0.25rem;
    transition: max-height 0.3s ease;
    text-align: justify;
}

.program-item.open .program-details {
    max-height: 200px;
}

/* Final Section */
.final-section {
    padding: 0;
}

.final-section .container {
    max-width: none;
    padding: 0;
}

.final-selection-wrap {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.final-selection-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("family2-colored.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
}

.final-selection-bg {
    display: none;
}

.final-selection-title {
    position: relative;
    z-index: 1;
    font-family: "Newsreader", serif;
    font-weight: 350;
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -1.28px;
    color: #006ca7;
    text-align: center;
    margin: 0;
    padding: 1rem;
}

/* Footer */
footer {
    padding: 3rem 1.5rem;
    background: #f9f9f9;
    text-align: center;
}

.footer-logo {
    height: 112px;
    width: auto;
    display: inline-block;
    margin-bottom: 2rem;
    opacity: 0.4;
}

.footer-content {
margin-top: 1em;
}
.footer-label-container  {
    font-size: 25px;
}


.footer-content a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-content a:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 14px;
    color: #666;
    margin-top: 1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    nav {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 64px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .belief-grid {
        grid-template-columns: 1fr 2fr;
    }

    .iffd-grid {
        grid-template-columns: 2fr 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .final-selection-title {
        font-size: 64px;
    }
}

@media (max-width: 767px) {
    nav {
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 1.5rem;
        font-size: 14px;
    }
    nav a{
        font-size: 14px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .content-text,
    .iffd-content,
    .programs-content,
    .programs-list {
        font-size: 18px;
        text-align: left;
    }

    .final-selection-title {
        font-size: 36px;
    }
    .iffd-logo {
        
        width: 12em;
        padding-left: 10%;
        
    }
}