#navbar {
    background: var(--green-dark);
}

#navbar .logo img {
    height: 75px;
    transition: height 0.3s ease;
    margin: 0.2rem 0 0.2rem 1.5rem;
}

#navbar .desktop-nav a:not(.apply-btn) {
    transition: font-size 0.3s ease;
}

/* About Hero Section - Gallery Hero Style */
.about-hero {
    position: relative;
    height: 70vh;
    height: -webkit-fill-available;
    min-height: 500px;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 10vh;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 2rem;
}

.about-hero-content h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-hero-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
}

/* About Content Section */
.about-content-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.about-content-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content-wrapper {
    display: block;
    margin-bottom: 2.5rem;
}

.about-desc-first {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-desc-rest {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

.about-content-cta {
    text-align: center;
}

.about-cta-btn {
    display: inline-block;
    background: var(--green-pastel);
    color: var(--green);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 1.2rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.about-cta-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: translateX(5px);
    -webkit-transform: translateX(5px);
}

/* Mobile */
@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .about-hero-content h1 {
        font-size: 2rem;
    }
    
    .about-hero-content p {
        font-size: 1rem;
    }
    
    .about-content-section {
        padding: 3rem 1.5rem;
    }
    
    .about-content-wrapper {
        gap: 1rem;
    }
    
    .about-desc-first {
        font-size: 0.95rem;
    }
    
    .about-desc-rest {
        font-size: 0.9rem;
    }
    
    .about-cta-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        text-align: center;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-hero {
        height: 60vh;
    }
    
    .about-hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Video Section */
.reel-section {
    background-color: var(--green);
    padding: 5rem 2rem;
    position: relative;
}

.reel-container {
    max-width: 900px;
    margin: 0 auto;
}

.reel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reel-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.reel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.reel-divider {
    width: 60px;
    height: 3px;
    background-color: var(--red);
    margin: 0 auto 1.5rem;
}

.reel-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

.reel-embed {
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
}

.embed-wrapper {
    max-width: 800px;
    width: 100%;
    background: var(--green-dark);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Safari fix for border-radius + overflow */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.embed-wrapper:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Custom Video Styling */
.custom-video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    border-radius: 12px;
    display: block;
    background: #000;
    outline: none;
}

.custom-video:focus {
    outline: none;
}

/* Mobile */
@media (max-width: 768px) {
    .reel-section {
        padding: 3rem 1rem;
    }
    
    .reel-title {
        font-size: 1.6rem;
    }
    
    .reel-icon {
        font-size: 2rem;
    }
    
    .reel-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .embed-wrapper {
        padding: 0.5rem;
    }
    
    .custom-video {
        min-height: 250px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .embed-wrapper {
        max-width: 700px;
    }
    
    .reel-title {
        font-size: 2rem;
    }
}

/* Programs Section */
.programs-section {
    padding: 5rem 0rem;
    background: var(--off-white);
}

.programs-container {
    max-width: 80vw;
    margin: 0 auto;
}

/* Section Header */
.programs-header {
    text-align: center;
    margin-bottom: 4rem;
}

.programs-tag {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.programs-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.3;
}

/* Program Cards Grid */
.programs-cards {
    display: -webkit-grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Individual Card */
.program-card {
    display: -webkit-grid;
    display: grid;
    grid-template-columns: 40% 60%;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px;
    /* Safari fix */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.program-card:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Card Left Side - Image */
.card-left {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Right Side - Content */
.card-right {
    padding: 0 2rem;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-name {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.program-age {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    margin-top: 0.3rem;
}

.program-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 2.3rem;
}

.program-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    width: fit-content;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.program-cta:hover {
    transform: translateX(5px);
    -webkit-transform: translateX(5px);
    opacity: 0.9;
}

/* Bottom CTAs */
.programs-bottom-cta {
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.bottom-cta-btn {
    display: inline-block;
    background: var(--green-pastel);
    color: var(--green-dark);
    text-decoration: none;
    padding: 1.4rem 3rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.bottom-cta-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .programs-section {
        padding: 3rem 0.3rem;
    }

    .programs-container{  
        max-width: none;
    }
    
    .programs-title {
        font-size: 1.75rem;
    }
    
    .programs-tag {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .programs-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 0.5rem 3rem 0.5rem;
    }
    
    .program-card {
        height: auto;
    }
    
    .card-right {
        padding: 1.5rem;
    }
    
    .program-name {
        font-size: 1.5rem;
    }
    
    .program-desc {
        font-size: 0.875rem;
    }
    
    .program-cta {
        text-align: left;
        font-size: 0.8rem;
    }
    
    /* Bottom CTAs stack vertically */
    .programs-bottom-cta {
        flex-direction: column;
        gap: 1rem;
        margin-left: 2rem;
        margin-right: 2rem;
        margin-top: 3rem;
    }
    
    .bottom-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .programs-section {
        padding: 4rem 2rem;
    }

    .programs-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .program-card {
        height: 320px;
    }
    
    .programs-title {
        font-size: 2rem;
    }
    
    .card-right {
        padding: 1.75rem;
    }
    
    .program-name {
        font-size: 1.5rem;
    }
    
    .program-desc {
        font-size: 0.875rem;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin: 0;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #666;
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Philosophy Section */
.philosophy-section {
    padding: 5rem 0;
    background: var(--green);
}

.philosophy-grid {
    display: -webkit-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    transition: transform 0.3s ease;
    /* Safari fix */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-left: var(--red) solid 7px;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
}

.philosophy-item p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.5;
}

/* Educators Section */
.educators-section {
    padding: 5rem 0;
    background: var(--white);
}

.educators-grid {
    display: -webkit-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.educator-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray);
    border-radius: 24px;
    transition: transform 0.3s ease;
    /* Safari fix */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.educator-card:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
}

.educator-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.educator-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.educator-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.educator-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .philosophy-section {
        padding: 3rem 0;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .philosophy-item {
        padding: 1.25rem;
    }
    
    .approach-section {
        padding: 3rem 0;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .approach-image {
        order: -1;
    }
    
    .educators-section {
        padding: 3rem 0;
    }
    
    .educators-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .educator-card {
        padding: 1.5rem;
    }
    
    .educator-placeholder {
        width: 120px;
        height: 120px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-grid {
        gap: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Safari/iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS specific */
    .about-hero {
        height: -webkit-fill-available;
    }
    
    /* Fix for sticky/hover issues on iOS */
    .program-card, .philosophy-item, .educator-card {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Fix for border-radius + overflow hidden on iOS */
    .embed-wrapper, .program-card, .educator-card {
        -webkit-mask-image: -webkit-radial-gradient(white, black);
    }
}