:root {
    --color-cream: #FAF9F6;
    --color-gold: #E1B487;
    --color-maroon-dark: #49141A;
    --color-green:#437909;
    --color-white:#fff;
    --color-maroon-dark: #49141A;
    --font-main: "Outfit", sans-serif;
    --font-serif: "Playfair Display", serif;
    --transition-speed: .3s
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-main);
    background-color: var(--color-cream);
    color: var(--color-maroon-dark);
    overflow-x: hidden;
    transition: background-color 1s ease
}

body.dark-mode {
    background-color: var(--color-maroon-dark)
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    background: #49141A;
    color: #fff;
    padding: .2rem 1.25rem;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .25px;
    border-bottom: 1px solid rgba(255,255,255,.2);
    z-index: 1200;
    min-height: 36px;
}

.topbar .topbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .8rem;
}

.topbar .topbar-left span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #fff;
    font-size: .72rem;
}

.topbar .topbar-right {
    display: flex;
    gap: .35rem;
}

.topbar .topbar-right a {
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform .2s ease, background .2s ease;
}

.topbar .topbar-right a:hover {
    transform: translateY(-1px);
    background: #fff;
    color: #E1B487;
}

.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid #ebefff;
    z-index: 1100;
    transition: all .3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    min-width: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: .98rem;
    color: #49141A;
    letter-spacing: .2px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-text .school-name {
    display: block;
    font-size: .95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.logo-text .school-tagline {
    font-size: .62rem;
    font-weight: 500;
    color: #437909;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}


.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-maroon-dark);
    letter-spacing: .5px;
    line-height: 1.2
}

.logo-text .school-name {
    display: block
}

.logo-text .school-tagline {
    font-size: .65rem;
    font-weight: 400;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.desktop-nav {
    display: none;
    list-style: none;
    gap: 1.4rem;
    align-items: center;
    margin-left: 1.25rem;
}

.desktop-nav li a {
    text-decoration: none;
    color: var(--color-maroon-dark);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .2px;
    position: relative;
    padding: .25rem .1rem;
    transition: color .2s ease;
    border-radius: 4px;
}

.desktop-nav li a:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: ;
    transition: width .2s ease;
}

.desktop-nav li a {
    color: var(--color-maroon-dark);
}

.desktop-nav li a.active {
    color: var(--color-gold);
    font-weight: 700;
}

.desktop-nav li a {
    position: relative;
    transition: all .2s ease;
}

.desktop-nav li a:hover,
.desktop-nav li a.active {
    color: var(--color-gold);
}

.desktop-nav li a:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width .2s ease;
}

.desktop-nav li a:hover:after,
.desktop-nav li a.active:after {
    width: 100%;
}

.cta-button {
    background-color: var(--color-maroon-dark);
    color: var(--color-white);
    padding: .58rem 1.05rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .6px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(245, 221, 6);
    background: var(--color-gold);
}

.menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-trigger .line {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background-color: #E1B487;
}

@media (max-width: 900px) {
    .topbar {
        display: none;
    }
    .navbar {
        padding: .6rem 1rem;
    }
    .logo-text {
        font-size: .86rem;
    }
    .logo-text .school-name {
        font-size: .88rem;
    }
    .logo-text .school-tagline {
        font-size: .58rem;
    }
    .cta-button {
        padding: .5rem .85rem;
        font-size: .75rem;
    }
}

@media (min-width: 900px) {
    .topbar {
        display: flex;
    }
    .desktop-nav {
        display: flex;
    }

    .menu-trigger {
        display: none!important;
    }

    .navbar {
        padding: .7rem 3rem;
    }

    .school-name {
        display: block;
    }
}

.cta-button {
    background-color: var(--color-maroon-dark);
    color: #fff;
    padding: .6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: transform .2s ease,box-shadow .2s ease;
    text-transform: uppercase;
    font-size: .9rem;
    letter-spacing: .5px
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px #49141A4d;
}

.menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.menu-trigger .line {
    width: 24px;
    height: 3px;
    background-color: var(--color-maroon-dark);
    transition: transform .3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 45%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-maroon-dark);
    z-index: 2000;
    transform: translate(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 20px #0003;
}

.menu-overlay.active {
    transform: translate(0);
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease,transform .4s ease;
}

.menu-overlay.active .menu-links li {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.active .menu-links li:nth-child(1) {
    transition-delay: .1s;
}

.menu-overlay.active .menu-links li:nth-child(2) {
    transition-delay: .2s;
}

.menu-overlay.active .menu-links li:nth-child(3) {
    transition-delay: .3s;
}

.menu-overlay.active .menu-links li:nth-child(4) {
    transition-delay: .4s;
}

.menu-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    transition: color .3s ease;
}

.menu-links a:hover {
    color: var(--color-gold);
}

.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1
}

.hero-bg-picture:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,#6d3237b3,#49141Ab3);
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateZ(0);
    will-change: transform
}

@media (min-width: 900px) {
    .hero-bg {
        object-position:center 40%;
        height: 110%;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 1rem;
}

.hero-tag {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards .2s;
    letter-spacing: .2px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 700
}

.line-1,
.line-2 {
    color: var(--color-white);
    display: block;
    opacity: 0;
    font-size: 40px;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 1s;
    text-shadow: 0 0 20px rgba(255,255,255,.7),2px 2px 3px rgba(255,255,255,.4);
    filter: brightness(1.1)
}

.line-1 {
    animation: fadeIn 1s ease forwards .25s;
    font-size: clamp(2rem, 4.8vw, 3.7rem);
    letter-spacing: .5px;
}

.line-2 {
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    font-weight: 600;
    animation: fadeIn 1s ease forwards .5s;
}

.hero-ctas {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .8rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards 0.9s;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-maroon-dark);
    background: var(--color-white);
    border: 1px solid var(--color-maroon-dark);
    border-radius: 999px;
    padding: .7rem 1.2rem;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .4px;
    text-transform: uppercase;
    transition: all .25s ease;
}

.hero-btn:hover {
    background: #fff;
    color: var(--color-gold);
    border-color: #fff;
    transform: translateY(-2px);
}

.hero-btn.ghost {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.35);
    color: #fff;
}

.hero-btn.ghost:hover {
    background: #fff;
    color: var(--color-gold);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .line-2 {
        font-size: 1.8rem;
    }
    .hero-tag {
        font-size: .95rem;
    }
}

.pillars-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px
}

.pillar-card {
    background-color: var(--color-cream);
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease,box-shadow .3s ease;
    cursor: default
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px #0003
}

.pillar-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: .1;
    transition: opacity .4s ease;
    z-index: 0;
    pointer-events: none
}

#pillar-academic:before {
    background-image: url("../img/fcmc-hero.jpeg");
}

#pillar-moral:before {
    background-image: url("../img/fcmc-hero.jpeg");
}

#pillar-spiritual:before {
    background-image: url("../img/fcmc-hero.jpeg");
}

.pillar-card:before {
    background-color: var(--color-gold);
}

.pillar-card:hover:before {
    opacity: .15;
}

.pillar-card picture {
    display: none;
}

.card-content {
    position: relative;
    z-index: 1;
}

.pillar-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-maroon-dark);
    margin-bottom: 1rem;
}

.pillar-card p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}


/*==================
    ADMISSION SECTION 
===================== */

.admissions-section {
    padding: 6rem 2rem;
    background-color: var(--color-cream);
    position: relative;
    overflow: hidden
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-maroon-dark);
    text-align: center;
    margin-bottom: 4rem
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--color-maroon-dark);
    transform: translate(-50%)
}

.timeline-step {
    position: relative;
    width: 50%;
    padding: 2rem;
    opacity: 0;
    transition: opacity .6s ease,transform .6s ease
}

.timeline-step.left {
    left: 0;
    text-align: right;
    padding-right: 4rem;
    transform: translate(-20px)
}

.timeline-step.right {
    left: 50%;
    text-align: left;
    padding-left: 4rem;
    transform: translate(20px)
}

.timeline-step.visible {
    opacity: 1;
    transform: translate(0)
}

.timeline-node {
    position: absolute;
    top: 2.5rem;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border: 2px solid var(--color-maroon-dark);
    border-radius: 50%;
    z-index: 10;
    transition: box-shadow .3s ease
}

.timeline-step.left .timeline-node {
    right: -11px
}

.timeline-step.right .timeline-node {
    left: -11px
}

.timeline-step.visible .timeline-node {
    animation: flicker .5s ease forwards
}

@keyframes flicker {
    0% {
        opacity: .5;
        box-shadow: 0 0 #d4af3700
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px #d4af37cc
    }

    to {
        opacity: 1;
        box-shadow: 0 0 #d4af3700
    }
}

.timeline-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px #0000000d;
    border-left: 4px solid var(--color-maroon-dark);
}

.timeline-step.right .timeline-content {
    border-left: none;
    border-right: 4px solid var(--color-maroon-dark);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    margin-bottom: .5rem;
    font-size: 1.5rem
}

.timeline-content p {
    color: #333;
}

.admissions-cta {
    text-align: center;
    margin-top: 4rem
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}



.faculty-section {
    padding: 6rem 2rem;
    background-color: #fff
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem
}

.faculty-card {
    background-color: var(--color-cream);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .3s ease,box-shadow .3s ease;
    cursor: pointer
}

.faculty-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 30px #00000026;
    z-index: 10
}

.faculty-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden
}

.faculty-image-wrapper picture {
    width: 100%;
    height: 100%;
    display: block
}

.faculty-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform .5s ease
}

.faculty-info {
    padding: 1.5rem;
    text-align: center;
    background-color: #fff;
    border-top: 4px solid var(--color-maroon-dark);
}

.faculty-info h3 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    font-size: 1.2rem
}

.navy-divider {
    width: 40px;
    height: 2px;
    background-color: var(--color-maroon-dark);
    margin: .5rem auto
}

.faculty-info p {
    font-size: .9rem;
    color: #666;
    font-weight: 600
}

.campus-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 250px
}

.gallery-item picture {
    width: 100%;
    height: 100%;
    display: block
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease
}

.gallery-item:hover img {
    transform: scale(1.1)
}

.footer-section {
    position: relative;
    background-color: var(--color-maroon-dark);
    color: var(--color-cream);
    padding: 1.5rem 2rem 1rem;
    overflow: hidden;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/fcmc-logo2.png");
    background-size: 250px;
    background-repeat: repeat;

    opacity: 0.05;
    pointer-events: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem
}

.footer-col {
    flex: 1;
    min-width: 200px
}

.footer-col.center-col {
    text-align: center
}

.footer-col.right-col {
    text-align: right
}

.footer-col.right-col .social-links {
    justify-content: flex-end
}

.footer-logo {
    width: 70px;
    height: auto
}

.footer-col h3 {
    font-family: var(--font-serif);
    color: var(--color-white);
    margin-bottom: .75rem;
    font-size: 1.1rem
}

.footer-col ul {
    list-style: none
}

.footer-col ul li {
    margin-bottom: .25rem
}

.footer-col ul li a {
    color: var(--color-cream);
    text-decoration: none;
    transition: color .2s
}

.footer-col ul li a:hover {
    color: var(--color-gold)
}

.footer-col p {
    margin-bottom: .5rem;
    font-size: .95rem
}

.social-links {
    margin-top: .5rem;
    display: flex;
    gap: .75rem
}

.social-links a {
    color: var(--color-white);
    font-size: 1.4rem;
    padding: .5rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    transition: color .2s ease,transform .2s ease;
}

.social-links a:hover {
    color: var(--color-cream);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--color-white);
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .3rem;
    font-size: .9rem;
    color: #e6eaf8;
}

.contact-pill i {
    color: #ffd369;
    width: 16px;
    text-align: center;
}

.social-links {
    margin-top: .6rem;
    display: flex;
    gap: .45rem;
}

.social-links a {
    color: var(--color-maroon-dark);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.12);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.social-links a:hover {
    background: #ffd369;
    color: #0b143c;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--color-white);
}

@media (max-width: 960px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(200px,1fr));
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-col {
        padding: 1rem;
    }
    .footer-bottom {
        font-size: .8rem;
    }
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-col {
        border-color: rgba(255,255,255,.1);
    }
}

@media (min-width: 900px) {
    .footer-bottom {
        text-align: center;
    }
}

.page-hero {
    height: 50vh;
    min-height: 350px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg,var(--color-maroon) 0%,#4a2225 100%)
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    z-index: 1
}

.page-hero-overlay:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,#6d3237b3,#49141Ab3);
    mix-blend-mode: multiply;
    z-index: 2
}

.academics-hero .page-hero-overlay {
    background-image: url("../img/fcmc-hero.jpeg");
    background-position: center 20%
}

.gallery-hero .page-hero-overlay {
    background-image:  url("../img/fcmc-hero.jpeg");
    background-position: center 20% !important;
}

@media (min-width: 900px) {
    .gallery-hero .page-hero-overlay {
        background-position:center 20%
    }
}

.admissions-hero .page-hero-overlay {
    background-image:  url("../img/fcmc-hero.jpeg");
    background-position: center 20%
}

.contact-hero .page-hero-overlay {
    background-image: url("../img/fcmc-hero.jpeg");
    background-position: center 20%
}

.page-hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255,255,255,.7),2px 2px 3px rgba(255,255,255,.4);
    animation: fadeUp .8s ease forwards
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-cream);
    text-shadow: 0 0 20px rgba(255,255,255,.7),2px 2px 3px rgba(255,255,255,.4);
    font-weight: 300;
    animation: fadeUp .8s ease forwards .3s
}

.academic-levels {
    padding: 6rem 2rem;
    background-color: var(--color-cream)
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 4rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto
}

.level-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px #00000014;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: all .5s ease
}

.level-card.visible {
    opacity: 1;
    transform: translateY(0)
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px #0000001f
}

.level-icon {
    background: linear-gradient(135deg,var(--color-maroon-dark) 0%, var(--color-maroon-dark) 100%);
    padding: 2.5rem;
    text-align: center
}

.level-icon i {
    font-size: 3rem;
    color: var(--color-gold);
}

.level-content {
    padding: 2rem;
    flex: 1
}

.level-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-maroon-dark);
    margin-bottom: .5rem
}

.age-range {
    color: var(--color-gold);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px
}

.level-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem
}

.level-features {
    list-style: none
}

.level-features li {
    padding: .5rem 0;
    color: #333;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .75rem
}

.level-features li i {
    color: var(--color-maroon-dark);
    font-size: .8rem;
}


/* ======================
CURRICULUM & PHILOSOPHY 
=========================*/
.curriculum-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg,#fff 0%,var(--color-cream) 100%);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.curriculum-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px #0000000d;
    border-bottom: 4px solid transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s ease;
}

.curriculum-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.curriculum-card:hover {
    border-bottom-color: var(--color-maroon-dark);
    transform: translateY(-5px);
}

.curriculum-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--color-maroon-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curriculum-icon i {
    font-size: 1.8rem;
    color: var(--color-gold);
}

.curriculum-card h3 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    margin-bottom: .75rem;
    font-size: 1.3rem;
}

.curriculum-card p {
    color: #666;
    font-size: .95rem;
    line-height: 1.6;
}

.philosophy-section {
    padding: 8rem 2rem;
    background: var(--color-maroon-dark);
    position: relative;
    overflow: hidden;
}

.philosophy-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/fcmc-logo2.png) repeat;
    background-size: 250px;
    opacity: .05
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 8rem;
    color: var(--color-white);
    opacity: .3;
    line-height: .5;
    margin-bottom: 1rem
}

.philosophy-content blockquote p {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-cream);
    line-height: 1.6;
    font-style: italic
}

.quote-author {
    margin-top: 2rem;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem
}

.academics-cta {
    padding: 6rem 2rem;
    background: var(--color-cream);
    text-align: center;
}

.academics-cta h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-maroon-dark);
    margin-bottom: 1rem;
}

.academics-cta p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.why-bis-section {
    padding: 6rem 2rem;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-cream);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s ease
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0)
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px #0000001a
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-maroon-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.feature-icon i {
    font-size: 2rem;
    color: var(--color-white)
}

.feature-card h3 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem
}

.feature-card p {
    color: #666;
    line-height: 1.6
}

.requirements-section {
    padding: 6rem 2rem;
    background: var(--color-cream)
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto
}

.accordion-item {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px #0000000d
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-maroon-dark);
    transition: all .3s ease
}

.accordion-header:hover {
    background: #f9f9f9
}

.accordion-header i {
    color: var(--color-maroon-dark);
    transition: transform .3s ease
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg)
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease
}

.accordion-item.active .accordion-content {
    max-height: 500px
}

.accordion-body {
    padding: 0 2rem 2rem
}

.accordion-body p {
    color: #333;
    margin-bottom: 1rem
}

.accordion-body ul {
    list-style: none
}

.accordion-body ul li {
    padding: .5rem 0;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: .75rem
}

.accordion-body ul li i {
    color: var(--color-maroon-dark);
    margin-top: .25rem
}

.apply-cta-section {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-maroon-dark) 0%, var(--color-maroon-dark) 100%);
    text-align: center;
    overflow: hidden;
}

.apply-cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/fcmc-logo2.png");
    background-size: 250px;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
}

.apply-cta-section h2 {
    font-family: var(--font-serif);
    color: var(--color-cream);
    font-size: 2.5rem;
    margin-bottom: 1rem
}

.apply-cta-section p {
    color: #fffc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto
}

.cta-button.gold {
    background: var(--color-green);
    color: var(--color-white)
}

.cta-button.gold:hover {
    box-shadow: 0 4px 20px #00640066
}

.faq-section {
    padding: 6rem 2rem;
    background: #fff
}

.contact-grid-section {
    padding: 6rem 2rem;
    background: var(--color-cream)
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto
}

.contact-form-container {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px #00000014
}

.contact-form-container h2 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    font-size: 2rem;
    margin-bottom: .5rem
}

.contact-form-container>p {
    color: #333;
    margin-bottom: 2rem
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.form-group label {
    font-weight: 600;
    color: var(--color-maroon-dark);
    font-size: .9rem
}

.form-group input,.form-group select,.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color .3s ease,box-shadow .3s ease
}

.form-group input:focus,.form-group select:focus,.form-group textarea:focus {
    outline: none;
    border-color: var(--color-maroon-dark);
    box-shadow: 0 0 0 2px #49141A;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.submit-button {
    background: var(--color-maroon-dark);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    text-transform: uppercase;
    letter-spacing: 1px
}

.submit-button:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px #49141A4d
}

.contact-info-container h2 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    font-size: 2rem;
    margin-bottom: 2rem
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px #0000000d;
    transition: transform .3s ease
}

.info-card:hover {
    transform: translate(5px)
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: var(--color-maroon-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon i {
    color: var(--color-white);
    font-size: 1.2rem;
}

.info-card-content h3 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    font-size: 1.1rem;
    margin-bottom: .25rem;
}

.info-card-content p {
    color: #333;
    font-size: .95rem;
}

.info-card-content a {
    color: #333;
    text-decoration: none;
    transition: color .2s ease;
}

.info-card-content a:hover {
    color: var(--color-maroon-dark);
}

.map-section {
    padding: 0;
    height: 400px;
    background: #e0e0e0;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,var(--color-maroon) 0%,#4a2225 100%);
    color: var(--color-cream);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--color-maroon-dark);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.2rem
}

.social-section {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center
}

.social-section h2 {
    font-family: var(--font-serif);
    color: var(--color-maroon-dark);
    font-size: 2rem;
    margin-bottom: 2rem
}

.large-social-links {
    display: flex;
    justify-content: center;
    gap: 2rem
}

.large-social-links a {
    width: 60px;
    height: 60px;
    background: var(--color-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-maroon-dark);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all .3s ease
}

.large-social-links a:hover {
    background: var(--color-maroon-dark);
    color: var(--color-white);
    transform: translateY(-5px);
}

.gallery-page-section {
    padding: 4rem 2rem;
    background: var(--color-cream);
}

.gallery-intro {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: .75rem 1.5rem;
    background: #fff;
    border: 2px solid var(--color-maroon-dark);
    color: #333;
    font-family: var(--font-main);
    font-size: .9rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all .3s ease;
}

.filter-btn:hover,.filter-btn.active {
    background: var(--color-maroon-dark);
    color: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 15px #0000001a;
    transition: transform .3s ease,box-shadow .3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px #00000026;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, var(--color-maroon-dark));
    color: var(--color-cream);
    transform: translateY(100%);
    transition: transform .3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
}

.gallery-card-overlay h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: .25rem;
}

.gallery-card-overlay p {
    font-size: .85rem;
    opacity: .9
}

.gallery-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-maroon-dark);
    color: var(--color-cream);
    padding: .35rem .75rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px
}

.gallery-placeholder {
    background: linear-gradient(135deg, var(--color-maroon-dark), #000060);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
}

/*======================
    LIGHTBOX STYLES
=======================*/
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000ff;
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-cream);
    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.lightbox-caption {
    text-align: center;
    color: var(--color-cream);
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.curriculum-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.curriculum-card-link .curriculum-card {
    cursor: pointer;
}

.curriculum-card-link .curriculum-card:hover {
    border-bottom-color: var(--color-maroon-dark);
    transform: translateY(-5px);
}

.view-gallery-hint {
    display: inline-block; 
    margin-top: 1rem;
    color: var(--color-maroon-dark);
    font-size: .85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
}

.curriculum-card:hover .view-gallery-hint {
    opacity: 1; 
    transform: translateY(0);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .menu-overlay {
        width:55%;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-img {
        width: 40px;
        height: 40px
    }

    .gallery-grid,.curriculum-grid,.features-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width: 768px) {
    .menu-overlay {
        width:280px;
        max-width: 75%;
        padding-top: 2rem
    }

    .menu-links li {
        margin: 1.5rem 0
    }

    .menu-links a {
        font-size: 1.8rem
    }

    .logo-text {
        font-size: .9rem;
        display: none;
    }

    .logo-text .school-tagline {
        display: none;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .gallery-filters {
        gap: .5rem
    }

    .filter-btn {
        padding: .5rem 1rem;
        font-size: .8rem
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }

    .gallery-card-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 30%, var(--color-maroon-dark));
    }

    .hero-bg {
        transform: none!important;
        background-attachment: scroll
    }

    .hero-title {
        font-size: 2rem
    }

    .line-2 {
        font: 1.2rem !important;
    }

    .navbar {
        padding: 1rem 1.5rem
    }

    .pillars-container {
        grid-template-columns: 1fr
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem
    }

    .admissions-section {
        padding: 3rem 1rem
    }

    .timeline-line,.timeline-node {
        display: none
    }

    .timeline-step {
        width: 100%;
        padding: 0;
        text-align: left;
        margin-bottom: 1.5rem
    }

    .timeline-step.left,.timeline-step.right {
        left: 0;
        padding-left: 0;
        padding-right: 0;
        transform: translate(0)
    }

    .timeline-content {
        border-left: 4px solid var(--color-maroon-dark);
        border-right: none;
        padding: 1.5rem
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: .95rem;
        line-height: 1.5;
    }

    .admissions-cta {
        margin-top: 2rem;
    }

    .cta-button.large {
        padding: .8rem 1.5rem;
        font-size: .9rem;
        display: inline-block;
        max-width: 90%;
        white-space: nowrap;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .faculty-card:hover {
        transform: none;
        box-shadow: none;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-col.right-col {
        text-align: center;
    }

    .footer-col.right-col .social-links {
        justify-content: center;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .levels-grid,.curriculum-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-content blockquote p {
        font-size: 1.3rem;
    }

    .quote-mark {
        font-size: 5rem
    }

    .academics-cta h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .apply-cta-section h2 {
        font-size: 1.8rem
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .contact-form-container {
        padding: 2rem
    }

    .large-social-links {
        gap: 1rem
    }

    .large-social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem
    }
}
