/* ===== MOBILE FIRST APPROACH ===== */
/* Base styles for mobile devices (320px+) */

.footer {
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    min-height: fit-content;
    padding: 1rem 0;
    width: 100%;
}

.footer::before {
    content: '';            
    position: absolute;
    inset: 0;   
    background: linear-gradient(rgb(4 60 116 / 84%), rgb(15 71 124));
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    background-size: cover;
    z-index: 0;
}

/* Mobile-first container - stacked vertically */
.footerContainer {
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    z-index: 1;
    padding: 1.5rem 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
/* School Info Section - Mobile First */
.school-info {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.school-name {
    font-family: "PT Serif", serif;
    color: #ddecff;
    font-weight: 900;
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin: 0.5rem 0;
    word-wrap: break-word;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.school-description {
    font-size: clamp(0.875rem, 3vw, 1rem);
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0.5rem 0;
}

.school-info img {
    width: clamp(2rem, 8vw, 3.25rem);
    height: auto;
    border-radius: 25%;
    vertical-align: middle;
    background-color: rgba(255, 255, 255, 0.61);
    margin: 0;
}

.school-text {
    font-family: "PT Serif", serif;
    color: #ddecff;
    font-weight: 500;
    font-size: clamp(0.75rem, 3vw, 1rem);
    margin: 0.5rem 0;
    word-wrap: break-word;
    text-align: center;
}

.sub-text {
    margin-top: 0.5rem;
}

.short-text {
    font-size: clamp(0.875rem, 3vw, 1rem);
    color: #e0e0e0;
    margin: 0;
    text-align: center !important;
}

/* Contact Section - Mobile First */
.info-container {
    width: 100%;
    max-width: 100%;
}

.contact-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    width: 100%;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.emailNlocation,
.fbNsched {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

/* Contact Items - Mobile First */
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
    width: 100%;
    text-align: center;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
}

.sched-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-link:hover,
.contact-item:hover {
    color: #ffd700;
}

.contact-text {
    width: 100%;
    word-wrap: break-word;
    text-align: center;
}

.contact-title {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    font-weight: bold;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    line-height: 1.4;
}

.contact-detail {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    color: #b0b0b0;
    line-height: 1.3;
}

.schedule-hours {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    color: #b0b0b0;
    line-height: 1.5;
}

/* Animations */
.contact-link:nth-child(2),
.contact-item:nth-child(2) { 
    animation: fadeInLeft 1s ease-out 0.7s forwards; 
}

.contact-link:nth-child(3),
.contact-item:nth-child(3) { 
    animation: fadeInLeft 1s ease-out 0.9s forwards; 
}

.contact-link:nth-child(4),
.contact-item:nth-child(4) { 
    animation: fadeInLeft 1s ease-out 1.1s forwards; 
}

.contact-link:nth-child(5),
.contact-item:nth-child(5) { 
    animation: fadeInLeft 1s ease-out 1.3s forwards; 
}

/* Copyright - Mobile First */
.copyright {
    text-align: center;
    padding: 0.75rem 1rem 1.5rem;
    border-top: 1px solid #eeb534;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    color: rgb(201, 201, 201);
    overflow: hidden;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Small Mobile Devices (377px - 480px) */
@media (min-width: 377px) {
    .footerContainer {
        padding: 1.5rem 1.25rem;
        gap: 1.75rem;
    }

    .school-name {
        font-size: clamp(1.125rem, 4vw, 1.375rem);
    }

    .contact-title {
        font-size: clamp(0.9375rem, 3.5vw, 1.0625rem);
    }

    .contact-detail,
    .schedule-hours {
        font-size: clamp(0.8125rem, 3vw, 0.9375rem);
    }
}

/* Tablets - Portrait (481px - 768px) */
@media (min-width: 481px) {
    .footerContainer {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .school-name {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
        flex-direction: row;
        gap: 0.75rem;
    }

    .school-info img {
        width: clamp(2.5rem, 6vw, 3rem);
        margin-right: 0.5rem;
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-title {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
    }

    .contact-detail,
    .schedule-hours {
        font-size: clamp(0.875rem, 2.2vw, 1rem);
    }

    .copyright {
        font-size: clamp(0.875rem, 2vw, 1rem);
        padding: 1rem 1.5rem 2rem;
    }
}

/* Tablets - Landscape (769px - 1024px) */
@media (min-width: 769px) {
    .footerContainer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
        padding: 2.5rem 2rem;
        max-width: 1200px;
    }

    .school-info {
        text-align: left;
        padding: 0;
    }

    .school-name {
        justify-content: flex-start;
        text-align: left;
    }

    .sub-text .short-text {
        text-align: left !important;
    }

    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }

    .contact-item {
        align-items: flex-start;
        text-align: left;
    }

    .contact-link {
        align-items: flex-start;
    }

    .contact-text {
        text-align: left;
    }

    .sched-container {
        align-items: flex-start;
    }

    .contact-title {
        font-size: clamp(1rem, 1.8vw, 1.125rem);
    }

    .contact-detail,
    .schedule-hours {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
    }
}

/* Small Laptops (1025px - 1440px) */
@media (min-width: 1025px) {
    .footerContainer {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
        padding: 2.5rem 2.5rem;
        max-width: 1400px;
    }

    .school-name {
        font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    }

    .school-description,
    .short-text {
        font-size: clamp(1rem, 1.5vw, 1.125rem);
    }

    .school-info img {
        width: clamp(2.75rem, 4vw, 3.25rem);
    }

    .contact-container {
        gap: 1.5rem 2.5rem;
    }

    .emailNlocation,
    .fbNsched {
        gap: 1.25rem;
    }

    .contact-title {
        font-size: clamp(1.0625rem, 1.5vw, 1.125rem);
    }

    .contact-detail,
    .schedule-hours {
        font-size: clamp(0.9375rem, 1.3vw, 1rem);
    }

    .copyright {
        font-size: clamp(0.9375rem, 1.3vw, 1rem);
    }
}

/* Large Laptops / Desktop (1441px - 1920px) */
@media (min-width: 1441px) {
    .footerContainer {
        max-width: 1600px;
        padding: 3rem 3rem;
        gap: 4rem;
    }

    .school-name {
        font-size: 2rem;
    }

    .school-description,
    .short-text {
        font-size: 1.125rem;
    }

    .school-info img {
        width: 3.25rem;
    }

    .contact-container {
        gap: 1.75rem 3rem;
    }

    .emailNlocation,
    .fbNsched {
        gap: 1.5rem;
    }

    .contact-title {
        font-size: 1.125rem;
    }

    .contact-detail,
    .schedule-hours {
        font-size: 1rem;
    }

    .copyright {
        font-size: 1rem;
        padding: 1rem 0 2.5rem;
    }
}

/* Full HD (1921px - 2560px) */
@media (min-width: 1921px) {
    .footerContainer {
        max-width: 1800px;
        padding: 3.5rem 4rem;
        gap: 5rem;
    }

    .school-name {
        font-size: 2.375rem;
    }

    .school-description,
    .short-text {
        font-size: 1.25rem;
    }

    .school-info img {
        width: 3.5rem;
    }

    .contact-container {
        gap: 2rem 3.5rem;
    }

    .emailNlocation,
    .fbNsched {
        gap: 1.75rem;
    }

    .contact-title {
        font-size: 1.25rem;
    }

    .contact-detail,
    .schedule-hours {
        font-size: 1.125rem;
    }

    .copyright {
        font-size: 1.125rem;
    }
}

/* 4K and Ultra-Wide (2561px+) */
@media (min-width: 2561px) {
    .footerContainer {
        max-width: 2200px;
        padding: 4rem 5rem;
        gap: 6rem;
    }

    .school-name {
        font-size: 2.625rem;
    }

    .school-description,
    .short-text {
        font-size: 1.375rem;
    }

    .school-info img {
        width: 4rem;
    }

    .contact-container {
        gap: 2.5rem 4rem;
    }

    .emailNlocation,
    .fbNsched {
        gap: 2rem;
    }

    .contact-title {
        font-size: 1.375rem;
    }

    .contact-detail,
    .schedule-hours {
        font-size: 1.25rem;
    }

    .copyright {
        font-size: 1.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.teachers-bg {
    background-size: cover;
    width: 100%;
    height: auto;
    min-height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

/* Ensure no element breaks layout */
* {
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
.footer,
.footerContainer,
.school-info,
.contact-section,
.contact-container {
    overflow-x: hidden;
}