@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

/* ====== CSS Variables ====== */
:root {
    --deep-plum: #481f24;
    --golden-yellow: #eac57a;
    --warm-brown: #a5713a;
    --modern-green: #3ec381;
    --forest-green: #55883b;
    --background: #fff;
    --section-bg: #f6f6f6;
    --text-main: #222;
    --text-light: #fff;
    --gray: #e9e9e9;
}

/* ====== Reset ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ====== Base Styles ====== */
html {
      scroll-behavior:smooth;
    }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== Navigation ====== */
.site-header {
    background: var(--deep-plum);
    color: var(--text-light);
    border-bottom: 3px solid var(--golden-yellow);
    box-shadow: 0 2px 8px rgba(72, 31, 36, 0.08);
    padding: 0.5rem 0;
    height: 106px;
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    width: 100%;
}

.nav-list {
    display: flex;
    gap: 1.5rem; /* Reduced gap for consistency */
    list-style: none;
    align-items: center;
    white-space: nowrap;
}

.nav-links-left {
    flex: 0;
    display: flex;
    justify-content: flex-end; /* Aligns items to the right of the left section */
    margin-right: 1rem; /* Consistent margin */
    margin-left: 220px;
}

.nav-links-right {
    flex: 0;
    display: flex;
    justify-content: flex-start; /* Aligns items to the left of the right section */
    margin-left: 1rem; /* Consistent margin */
    margin-right:220px;
}

.logo-center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Remove margins to prevent uneven spacing */
    z-index: 2;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-center img {
    height: 90px;
    width: auto;
    display: block;
    border-radius: 50%;
    background: var(--background);
    border: 2px solid var(--golden-yellow);
    box-shadow: 0 2px 8px rgba(72, 31, 36, 0.08);
}

.school-name {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-left: 1rem;
    white-space: nowrap;
}

/* ====== Sticky Navigation ====== */
.sticky-nav {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: var(--deep-plum);
    border-bottom: 3px solid var(--golden-yellow);
    box-shadow: 0 4px 16px rgba(72, 31, 36, 0.2);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.sticky-nav .logo-center {
    margin: 0;
}

.sticky-nav .logo-center img {
    height: 60px;
}

.sticky-nav .nav-links {
    flex: 1;
    justify-content: flex-end;
    margin-right: 1rem;
    gap: 1rem;
}

.site-header.sticky .main-nav {
    display: none;
}

/* ====== Navigation Link Styles ====== */
.main-nav a,
.sticky-nav a {
    position: relative;
    display: flex;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: none;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    z-index: 1;
    overflow: visible;
    text-decoration: none;
}

.main-nav ul a::after,
.sticky-nav ul a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%) scaleY(0);
    width: 50%;
    height: 3px;
    background: var(--golden-yellow);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    z-index: -1;
}

.main-nav ul a:hover,
.main-nav ul a:focus,
.sticky-nav ul a:hover,
.sticky-nav ul a:focus {
    color: var(--golden-yellow);
    transform: translateY(-3px);
    transition: transform 0.3s ease, color 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after,
.sticky-nav a:hover::after,
.sticky-nav a:focus::after,
.sticky-nav a.active::after {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.main-nav a.active {
    color: var(--golden-yellow);
}

.sticky-nav a.active {
    color: var(--golden-yellow);
}

/* ====== Hamburger Menu (Mobile) ====== */
.hamburger {
    display: none;
    width: 52px;
    height: 52px;
    padding: 12px;
    z-index: 1002;
    background: transparent;
    border: none;
    position: fixed;
    top: 10px;
    right: 10px;
    box-sizing: border-box;
    cursor: pointer;
}

.hamburger svg {
    width: 100%;
    height: 100%;
    stroke: var(--golden-yellow);
    stroke-width: 2.5;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.hamburger svg path {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active svg path.top {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active svg path.middle {
    opacity: 0;
}

.hamburger.active svg path.bottom {
    transform: translateY(-6px) rotate(-45deg);
}

.hamburger:hover svg {
    stroke: var(--golden-yellow);
    transform: scale(1.1);
}

/* ====== Mobile Navigation ====== */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--section-bg);
    box-shadow: 0 4px 16px rgba(72, 31, 36, 0.08);
    z-index: 1000;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
}

.mobile-nav li {
    width: 100%;
}

.mobile-nav a {
    position: relative;
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    color: var(--deep-plum);
    font-size: 1.1rem;
    border-radius: 0;
    background: none;
    transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.4, 2, 0.6, 1);
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleY(0);
    width: 70%;
    height: 3px;
    background: var(--golden-yellow);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    z-index: -1;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--golden-yellow);
    transform: translateY(-3px);
}

.mobile-nav a:hover::after,
.mobile-nav a:focus::after,
.mobile-nav a.active::after {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
}

/* ====== Responsive Navigation ====== */
@media (max-width: 1300px) {
    .sticky-nav li a{
        font-size: 14px;
    }

    .sticky-nav .nav-list {
        gap: 0rem;
    }

    .school-name {
        font-size: 1rem;
    }
}

@media (max-width: 1050px) {
    .nav-list {
        gap: 0rem;
    }

    .logo-center {
        margin: 0 1rem;
    }
    .school-name {
        margin-left: 5px;
    }
}

@media (max-width: 1000px) {
    .site-header {
        height: 60px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .nav-links-left,
    .nav-links-right {
        display: none;
    }

    .logo-center {
        margin: 0;
        order: 1;
    }

    .logo-center img {
        height: 44px;
    }

    .sticky-nav {
        display: none;
        height: 60px;
    }

    .hamburger {
        display: flex !important;
        position: fixed;
        top: 3px;
        right: 10px;
        z-index: 1002;
    }

    .mobile-nav.open {
        display: flex;
        animation: fadeInNav 0.25s;
    }

    @keyframes fadeInNav {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ====== Navigation Ends ===== */

/* ====== Hero Section ====== */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--section-bg);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    zatorial: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(76, 28, 34, 0.466) 60%, rgb(234, 197, 122, 0.466) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: "Merriweather", serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--golden-yellow);
    color: var(--deep-plum);
    padding: 0.8em 2em;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.3s cubic-bezier(0.4, 2, 0.6, 1), letter-spacing 0.3s cubic-bezier(0.4, 2, 0.6, 1), padding 0.3s cubic-bezier(0.4, 2, 0.6, 1);
    box-shadow: 0 2px 8px rgba(62, 195, 129, 0.12);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.btn-primary:hover,
.btn-primary:focus {
    padding: 1em 1.5em;
    letter-spacing: 2.5px;
    box-shadow: 0 0 0 2px var(--text-light), 0 0 0 3px var(--golden-yellow), 0 0 0 2px var(--text-light) inset, 0 0 0 5px var(--golden-yellow), 7.5px 7.5px 0 2.5px var(--text-light), 10px 10px 0 5px var(--golden-yellow);
}

/* ====== Responsive Hero ====== */
@media (max-width: 600px) {
    .hero-video-section {
        height: 50vh;
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .highlight-box {
        padding: 1.2rem 1rem;
    }
}

/* ====== Welcome Section (Modern Design) ====== */
.school-intro {
    background: linear-gradient(135deg, var(--section-bg) 0%, #e8f0f5 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.school-intro__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    padding: 2rem;
}

.school-intro__content {
    background: var(--background);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(72, 31, 36, 0.15);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-left: 4px solid var(--modern-green);
}

.school-intro__content:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(72, 31, 36, 0.2);
}

.school-intro__title {
    font-family: "Merriweather", serif;
    font-size: 2.4rem;
    color: var(--deep-plum);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(to right, var(--deep-plum), var(--forest-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.school-intro__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--golden-yellow), var(--modern-green));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 1s ease forwards 0.5s;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

.school-intro__text {
    font-size: 1.15rem;
    color: var(--deep-plum);
    line-height: 1.9;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.school-intro__list {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.school-intro__list li {
    font-size: 1.1rem;
    color: var(--deep-plum);
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s ease forwards;
}

.school-intro__list li:nth-child(1) { animation-delay: 1s; }
.school-intro__list li:nth-child(2) { animation-delay: 1.2s; }
.school-intro__list li:nth-child(3) { animation-delay: 1.4s; }
.school-intro__list li:nth-child(4) { animation-delay: 1.6s; }

.school-intro__list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--golden-yellow);
    font-size: 1.3rem;
    font-weight: bold;
}

.school-intro__cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, var(--golden-yellow), #f4d38e);
    color: var(--deep-plum);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(234, 197, 122, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.8s;
}

.school-intro__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--modern-green);
    transition: left 0.4s ease;
    z-index: 0;
}

.school-intro__cta:hover::before {
    left: 0;
}

.school-intro__cta:hover {
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(234, 197, 122, 0.6);
    transform: translateY(-5px);
}

.school-intro__cta span {
    position: relative;
    z-index: 1;
}

.school-intro__photo {
    position: relative;
    z-index: 1;
    width: 500px;
    height: 400px;
}

.school-intro__photo img {
    width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid var(--golden-yellow);
    box-shadow: 0 8px 24px rgba(72, 31, 36, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: scale(0.95);
    animation: imagePop 0.8s ease forwards 0.3s;
}

.school-intro__photo img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(72, 31, 36, 0.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes imagePop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====== Responsive Design for School Intro ====== */
@media (max-width: 1200px) {
    .school-intro__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
        justify-items: center;
    }

    .school-intro__photo {
        width: 500px;
        height: 400px;
    }

    .school-intro__content {
        padding: 2rem;
        max-width: 600px;
    }

    .school-intro__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .school-intro {
        padding: 3rem 0;
    }

    .school-intro__photo {
        width: 400px;
        height: 320px;
    }

    .school-intro__photo img {
        width: 400px;
        height: 320px;
    }

    .school-intro__title {
        font-size: 1.8rem;
    }

    .school-intro__text {
        font-size: 1rem;
    }

    .school-intro__list li {
        font-size: 1rem;
    }

    .school-intro__cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .school-intro {
        padding: 2rem 0;
    }

    .school-intro__container {
        padding: 1rem;
    }

    .school-intro__content {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .school-intro__photo {
        width: 300px;
        height: 240px;
    }

    .school-intro__photo img {
        width: 300px;
        height: 240px;
        border-radius: 12px;
    }

    .school-intro__title {
        font-size: 1.5rem;
    }

    .school-intro__text {
        font-size: 0.95rem;
    }

    .school-intro__list li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .school-intro__cta {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* --- STEP CARD --- */
.step-card {
    position: relative;
    background: var(--background);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 2rem 1.5rem;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-plum);
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(45deg, var(--golden-yellow), #f4d38e);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.step-card:hover::before,
.step-card:focus::before {
    opacity: 0.2;
}

.step-card > * {
    position: relative;
    z-index: 2;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--modern-green);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ====== Footer Styles ====== */
.school-footer {
    background: #481f24; /* Deep plum background */
    position: relative;
    padding: 4rem 2rem;
    color: #fff; /* White text for contrast */
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -5px 15px rgba(72, 31, 36, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Three columns on desktop */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-logo {
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 50%;
    background: var(--background);
    border: 2px solid var(--golden-yellow);
    box-shadow: 0 2px 8px rgba(72, 31, 36, 0.08);
}

.footer-logo:hover {
    transform: scale(1.1);
}

.footer-brand h3 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    font-weight: 800;
    color: #f7deaa; /* Warm color for contrast */
}

.footer-brand p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: #fff;
    opacity: 0.85;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: #f7deaa;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    position: relative;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: #a8545e; /* Lighter plum for hover */
    left: 0;
    bottom: -2px;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: #a8545e; /* Lighter plum for hover */
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-contact {
    padding: 0;
}

.footer-contact p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    gap: 0.2rem;
    flex-direction: row;
    align-items: baseline;
}

.footer-contact .email-footer {
    display: inline;
}

.emails{
        display: inline-flex;
    flex-direction: column;
        font-size: 1.07rem;
}

.footer-contact i {
    color: #f7deaa; /* Warm color for icons */
    font-size: clamp(1rem, 3vw, 1.2rem);
    width: 20px; /* Fixed width for alignment */
    text-align: center;
    transition: color 0.3s ease;
    display: inline-block; /* Ensure icons are visible */
}

.footer-contact i:before {
    font-family: 'Font Awesome 5 Free', 'FontAwesome' !important; /* Ensure correct font-family */
    font-weight: 900; /* Solid icons */
}

.footer-contact p:hover i {
    color: #a8545e; /* Lighter plum on hover */
}

/* Fallback for Contact Info icons */
.footer-contact .icon-fallback {
    display: none;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: normal;
}

.footer-contact i.fa-failed:before {
    content: '';
}

.footer-contact i.fa-failed + .icon-fallback {
    display: inline;
}

.footer-contact a {
    color: #f7deaa;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-contact a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: #a8545e;
    left: 0;
    bottom: -2px;
    transition: width 0.3s ease;
}

.footer-contact a:hover::after {
    width: 100%;
}

.footer-contact a:hover {
    color: #a8545e;
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-icon {
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--golden-yellow);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon i {
    color: #f7deaa; /* Warm color for icons */
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Ensure icons are visible */
}

.social-icon i:before {
    font-family: 'Font Awesome 5 Brands', 'FontAwesome' !important;
}

.social-icon:hover i {
    color: var(--deep-plum);
    transform: scale(1.1);
}

/* Fallback for Social Media icons */
.social-icon .icon-fallback {
    display: none;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #f7deaa;
    transition: color 0.3s ease;
}

.social-icon i.fa-failed:before {
    content: '';
}

.social-icon i.fa-failed + .icon-fallback {
    display: inline;
}

.social-icon:hover .icon-fallback {
    color: #a8545e;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: #fff;
    opacity: 0.85;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    color: #f7deaa;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: #a8545e;
    left: 0;
    bottom: -2px;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.footer-bottom-links a:hover {
    color: #a8545e;
}

.back-to-top {
    color: #f7deaa;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-to-top i {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: color 0.3s ease;
    display: inline-block; /* Ensure icon is visible */
}

.back-to-top i:before {
    font-family: 'Font Awesome 5 Free', 'FontAwesome' !important;
    font-weight: 900;
}

.back-to-top:hover {
    color: #a8545e;
    transform: translateY(-3px);
}

.back-to-top:hover i {
    color: #a8545e;
}

/* ====== Responsive Footer ====== */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* Two columns for tablets */
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 2rem;
    }

    .footer-right {
        gap: 1.5rem;
    }

    .footer-logo {
        width: 60px;
        height: 60px;
    }

    .footer-brand h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    }

    .footer-brand p {
        font-size: clamp(0.9rem, 2.8vw, 1rem);
    }

    .footer-links h4,
    .footer-social h4,
    .footer-contact h4 {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }

    .footer-links a,
    .footer-contact p {
        font-size: clamp(0.9rem, 2.8vw, 1rem);
    }

    .footer-contact i {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        width: 18px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon i {
        font-size: clamp(1.2rem, 3.5vw, 1.3rem);
    }

    .footer-bottom-links {
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .school-footer {
        padding: 2rem 1rem; /* Reduced padding for small screens */
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .footer-brand h3 {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }

    .footer-brand p {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }

    .footer-links h4,
    .footer-social h4,
    .footer-contact h4 {
        font-size: clamp(1rem, 2.8vw, 1.2rem);
    }

    .footer-links a,
    .footer-contact p {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }

    .footer-contact i {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        width: 16px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon i {
        font-size: clamp(1.1rem, 3vw, 1.2rem);
    }

    .footer-bottom {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
        gap: 0.8rem;
    }

    .footer-bottom-links {
        flex-direction: column; /* Stack links vertically */
        gap: 0.6rem;
    }

    .back-to-top {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }
}
/* ====== Footer Ends ====== */

/* SVG for Wave Background */
svg#wave-defs {
    position: absolute;
    width: 0;
    height: 0;
}