@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}


/* Optimize scroll performance */
html {
    scroll-behavior: smooth;
}

/* Reduce repaints and reflows */
.school-card, .gallery-item, .director-card {
    contain: layout style;
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Elements start hidden */
.fade-in-scroll,
.slide-in-left,
.slide-in-right,
.scale-up-scroll {
    opacity: 0;
}

/* Animation classes */
.fade-in-scroll.animate-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-in-left.animate-in {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right.animate-in {
    animation: slideInRight 0.6s ease-out forwards;
}

.scale-up-scroll.animate-in {
    animation: scaleUp 0.5s ease-out forwards;
}

/* Stagger animation delays for multiple elements */
.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }
.animate-in.delay-5 { animation-delay: 0.5s; }
.animate-in.delay-6 { animation-delay: 0.6s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in-scroll,
    .slide-in-left,
    .slide-in-right,
    .scale-up-scroll {
        opacity: 1;
        animation: none !important;
    }
}


body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* Navigation Styles */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo a {
    display: block;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.2s ease;
}

.nav-logo img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: #800020;
    color: white;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out, transform 0.2s ease-out;
    border-radius: 0 0 5px 5px;
    z-index: 1001;
    pointer-events: none;
    will-change: opacity, visibility, transform;
}

/* Chevron icon rotation for dropdown states */
.dropdown > a i {
    transition: transform 0.2s ease;
}

.dropdown.dropdown-open > a i {
    transform: rotate(180deg);
}

/* Smooth dropdown transitions */

/* Enhanced hover detection - Only show via JavaScript classes */
.dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Add hover area around dropdown link for better UX */
.dropdown > a {
    position: relative;
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Clean dropdown focus styles - no conflicts */

/* Override any browser default link styles for dropdown menu items */
.dropdown-menu li a:link,
.dropdown-menu li a:visited,
.dropdown-menu li a:active {
    color: #333 !important;
    background-color: white !important;
    text-decoration: none;
}

/* Override any external CSS (Font Awesome, etc.) that might cause blue hover effects */
.dropdown-menu li a:hover,
.dropdown-menu li a:focus,
.dropdown-menu li a:active,
.dropdown-menu li a:link:hover,
.dropdown-menu li a:visited:hover {
    background-color: #800020 !important;
    color: white !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Nuclear option: Override ALL possible link states for dropdown menu items */
.dropdown-menu li a,
.dropdown-menu li a:link,
.dropdown-menu li a:visited,
.dropdown-menu li a:active,
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background-color: white !important;
    color: #333 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background-color: #800020 !important;
    color: white !important;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333 !important;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    outline: none;
    background-color: white !important;
    text-decoration: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background-color: #800020 !important;
    color: white !important;
    outline: 2px solid #800020;
    outline-offset: -2px;
    text-decoration: none;
}

/* Focus styles for dropdown links */
.dropdown > a:focus {
    outline: 2px solid #800020;
    outline-offset: 2px;
    background-color: rgba(128, 0, 32, 0.1);
}

/* Sub Menu */
.sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.2s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
                url('../images/School/Admin_Block.jpg') center/cover;
    background-position: center 70%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 20px;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    animation: heroSlideIn 600ms ease-out both;
    max-width: 900px;
}

/* Hero heading color (light blue) */
.hero .hero-content h1,
.hero .hero-content h2,
.hero .hero-content h3 {
    color: #87CEEB;
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* Desktop sizing approximating the reference */
 .hero .hero-content h1 {
 	font-weight: 300;
 	font-size: 2rem;
 	letter-spacing: 0.02em;
     color: #ffffff;
 }
 
 .hero .hero-content h2 {
 	font-weight: 800;
 	font-size: 5.8rem;
 	line-height: 0.95;
 }
 
 .hero .hero-content h3 {
 	font-weight: 600;
 	font-size: 1.9rem;
     color: #ffffff;
 }

@keyframes heroSlideIn {
	from { opacity: 0; transform: translateX(-24px); }
	to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.hero-content { animation: none; }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 20px;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content h3 {
    color: #4682B4;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.vision-mission {
    margin-bottom: 25px;
}

.motto, .vision, .mission {
    margin-bottom: 25px;
}

.motto h4, .vision h4, .mission h4 {
    color: #800020;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.motto p, .vision p, .mission p {
    color: #666;
    line-height: 1.7;
}

.motto {
    background: linear-gradient(135deg, #800020, #87CEEB);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.motto h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.motto p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.read-more {
    display: inline-block;
    padding: 12px 30px;
    background: #800020;
    color: white;
    border-radius: 25px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.read-more:hover {
    background: #800020;
    transform: translateY(-2px);
}

/* School Sections */
.school-sections {
    padding: 60px 0;
    background: #f8f9fa;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
}

.school-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.school-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.school-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #800020;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.school-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.school-card:hover .school-image img {
    transform: scale(1.05);
}

.school-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.school-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.school-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Lists inside school cards */
.school-content ul {
	list-style: disc inside;
	margin: 0;
	padding-left: 18px;
	text-align: left;
	color: #666;
	line-height: 1.6;
	flex-grow: 1;
}

.school-content li {
	margin-bottom: 6px;
}

.school-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.school-details span {
    display: block;
    color: #800020;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.discover-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 20px;
    align-items: center;
}

.discover-content h2 {
    color: #4682B4;
    margin-bottom: 20px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.discover-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35%;
    height: 3px;
    background: linear-gradient(90deg, #800020, #87CEEB);
    border-radius: 2px;
}

/* Stylized underline for other headings */
.underline-partial::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35%;
    height: 3px;
    background: linear-gradient(90deg, #800020, #87CEEB);
    border-radius: 2px;
}

/* Specific underline widths for different headings - more uniform relative to text length */
.underline-short::after {
    width: 28%;
}

.underline-medium::after {
    width: 32%;
}

.underline-long::after {
    width: 35%;
}

.underline-very-long::after {
    width: 38%;
}

.underline-extra-short::after {
    width: 25%;
}

.underline-tiny::after {
    width: 22%;
}

/* Ensure h3 headings with underlines have proper positioning */
h3.underline-partial {
    position: relative;
    display: inline-block;
}

/* Center underline for centered headings */
h2.underline-partial {
    position: relative;
    display: inline-block;
}

/* Position underline to start from the left edge of centered heading */
.gallery-intro h2.underline-partial::after {
    left: 0;
    transform: none;
}

/* Position underline to start from the left edge of centered headings on admissions page */
.admissions-intro h2.underline-partial::after,
.admissions-process h3.underline-partial {
    display: inline-block;
}
.admissions-process h3.underline-partial::after {
    left: 0;
    transform: none;
}
.admissions-process {
    text-align: center;
}

.discover-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.discover-image {
    text-align: center;
}

.discover-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-left {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.discover-section h2 {
    color: #4682B4;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.discover-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.learn-more {
    display: inline-block;
    padding: 12px 30px;
    background: #800020;
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.learn-more:hover {
    background: #800020;
    transform: translateY(-2px);
}

.chapel-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.chapel-section h3 {
    color: #4682B4;
    margin-bottom: 15px;
    font-size: 1.3rem;
}


/* Daily Bread Section */
.daily-bread {
    padding: 60px 0;
    background: #f8f9fa;
}

.daily-bread h3 {
    text-align: center;
    color: #4682B4;
    margin-bottom: 40px;
    font-size: 2rem;
}

.bread-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bread-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.bread-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.bread-item p {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.bread-item .date {
    color: #800020;
    font-weight: 500;
}

.bread-item .verse {
    margin-top: 15px;
    font-style: italic;
    color: #333;
}

/* Curriculum Section */
.curriculum {
    padding: 40px 0;
    background: #800020;
    color: white;
    text-align: center;
}

.curriculum p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
}

.curriculum p strong {
    color: white;
}

/* Intakes Section */
.intakes {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.intakes h3 {
    color: #4682B4;
    margin-bottom: 30px;
    font-size: 2rem;
}

.intake-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.intake-item {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.apply-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #800020;
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    background: #800020;
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: underline;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #800020;
}

/* Improved footer spacing and layout */
.footer-section {
    padding: 0 15px;
}

.footer-section:first-child {
    padding-left: 0;
}

.footer-section:last-child {
    padding-right: 0;
}



.footer-bottom {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    border-top: 1px solid #444;
}

.social-section h3 {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #800020;
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright p {
    text-align: center;
    margin: 0;
}

/* ============================
   ENHANCED RESPONSIVE DESIGN
   ============================ */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .school-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h2 {
        font-size: 4.5rem;
    }

    .hero h3 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.6rem;
    }
    
    .bread-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Screens (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .school-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* Standard Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

/* Additional responsive improvements for mid-range screens */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Enhanced navigation for tablets */
    .nav-menu > li > a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    /* Better hero section */
    .hero {
        height: 65vh;
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    .hero h2 {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    .hero h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    /* Grid improvements */
    .school-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-grid,
    .discover-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Better spacing */
    .about-section,
    .school-sections,
    .main-content,
    .daily-bread {
        padding: 50px 0;
    }
}

/* Responsive adjustments for hero typography */
@media (max-width: 1200px) {
	.hero .hero-content h2 { font-size: 4.4rem; }
	.hero .hero-content h3 { font-size: 1.6rem; }
    .hero { height: 85vh; }
}

@media (max-width: 768px) {
	.hero .hero-content { max-width: 100%; padding-right: 20px; }
	.hero .hero-content h1 { font-size: 1.4rem; }
	.hero .hero-content h2 { font-size: 2.6rem; line-height: 1.05; }
	.hero .hero-content h3 { font-size: 1.1rem; }
    .hero { height: 70vh; }
}

/* Mobile Landscape & Small Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* Enhanced Mobile Navigation */
    .nav-content {
        position: relative;
        padding: 10px 0;
    }

    .nav-logo img {
        height: 45px;
        transition: all 0.2s ease;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        background: white;
        flex-direction: column;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border-radius: 0 0 15px 15px;
        padding: 20px 0;
        z-index: 1002;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        margin: 0;
    }
    
    .nav-menu > li > a {
        padding: 15px 30px;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.2s ease;
    }
    
    .nav-menu > li > a:hover {
        background-color: #800020;
        color: white;
        padding-left: 35px;
    }

    .nav-menu.active .dropdown.dropdown-open .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        margin-top: 0;
        animation: expandDown 0.3s ease-out;
    }
    
    @keyframes expandDown {
        from {
            max-height: 0;
            opacity: 0;
        }
        to {
            max-height: 300px;
            opacity: 1;
        }
    }

    .nav-menu.active .dropdown-menu li a {
        padding: 12px 50px;
        font-size: 0.9rem;
        color: #666;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu.active .dropdown-menu li a:hover {
        background-color: #800020;
        color: white;
        padding-left: 55px;
    }

    /* Enhanced hamburger menu */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .nav-toggle:hover {
        background-color: rgba(128, 0, 32, 0.1);
    }

    .nav-toggle span {
        width: 28px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: all 0.2s ease;
        border-radius: 2px;
    }

    /* Hero section improvements */
    .hero {
        height: 60vh;
        padding: 30px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .hero h2 {
        font-size: 2.2rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .hero h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* Grid layouts */
    .about-grid,
    .discover-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-image img,
    .discover-image img {
        height: 220px;
    }
    
    .school-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bread-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Enhanced content spacing */
    .about-section,
    .school-sections,
    .main-content,
    .daily-bread {
        padding: 40px 0;
    }
    
    .intakes {
        padding: 40px 0;
    }
    
    /* Better buttons and interactive elements */
    .read-more,
    .learn-more,
    .apply-btn {
        padding: 14px 32px;
        font-size: 1rem;
        border-radius: 30px;
        min-height: 48px; /* Touch-friendly */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Footer improvements */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Small Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation for small screens */
    .nav-logo img {
        height: 40px;
    }
    
    .nav-menu {
        left: -15px;
        right: -15px;
        padding: 15px 0;
    }
    
    .nav-menu > li > a {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .nav-menu.active .dropdown-menu li a {
        padding: 10px 40px;
        font-size: 0.85rem;
    }

    /* Enhanced hero for very small screens */
    .hero {
        height: 55vh;
        padding: 25px 0;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
        line-height: 1.1;
    }

    .hero h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.4;
        margin: 0 10px;
    }

    /* Compact content sections */
    .about-section,
    .school-sections,
    .main-content,
    .daily-bread {
        padding: 30px 0;
    }
    
    .intakes {
        padding: 30px 0;
    }
    
    /* School cards optimization */
    .school-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .school-image {
        height: 160px;
    }

    .school-content {
        padding: 15px;
    }
    
    .school-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .school-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Enhanced typography */
    .about-content h3,
    .discover-content h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .about-content p,
    .discover-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Images */
    .about-image img,
    .discover-image img {
        height: 180px;
    }

    /* Touch-friendly elements */
    .read-more,
    .learn-more,
    .apply-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px;
        margin: 5px;
    }

    /* Intake section improvements */
    .intake-items {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .intake-item {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Daily bread section */
    .bread-items {
        gap: 15px;
    }
    
    .bread-item {
        padding: 20px 15px;
    }
    
    .bread-item h4 {
        font-size: 1rem;
    }
    
    .bread-item p {
        font-size: 0.85rem;
    }

    /* Footer optimizations */
    .main-footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section {
        text-align: center;
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 15px;
    }
    
    /* Enhanced spacing and readability */
    h1, h2, h3, h4 {
        line-height: 1.3;
    }
    
    p {
        margin-bottom: 15px;
    }
    
    /* Back to top button optimization */
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 1rem !important;
    }
}

/* ============================
   RESPONSIVE UTILITY CLASSES
   ============================ */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dropdown-menu {
        border: 2px solid #000;
    }
    
    .nav-menu > li > a {
        border: 1px solid transparent;
    }
    
    .nav-menu > li > a:hover,
    .nav-menu > li > a:focus {
        border-color: #000;
    }
}

/* Print styles */
@media print {
    .nav-toggle,
    .back-to-top,
    .main-nav {
        display: none !important;
    }
    
    .hero {
        height: auto !important;
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Focus management for better accessibility */
.nav-menu a:focus,
.dropdown-menu a:focus,
button:focus,
.read-more:focus,
.learn-more:focus,
.apply-btn:focus {
    outline: 2px solid #800020;
    outline-offset: 2px;
    background-color: rgba(128, 0, 32, 0.1);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #800020;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading * {
    cursor: wait !important;
}

/* Responsive images by default */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Hide scrollbar but keep functionality on mobile */
@media (max-width: 768px) {
    .nav-menu {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
}

/* Touch device optimizations */
.touch-device a,
.touch-device button,
.touch-device .nav-toggle {
    -webkit-tap-highlight-color: rgba(128, 0, 32, 0.2);
    /* tap-highlight-color: rgba(128, 0, 32, 0.2); Future CSS property */
}

.touch-active {
    background-color: rgba(128, 0, 32, 0.1) !important;
    transform: scale(0.98);
    transition: all 0.15s ease;
}

/* Touch dropdown active state */
.touch-dropdown-active > a {
    background-color: #800020;
    color: white;
    position: relative;
}

/* Removed tap hint for cleaner UI on mobile */
.touch-dropdown-active > a::after {
    content: "";
}

/* Main page link styling for touch devices */
.main-page-link-item .main-page-link {
    background-color: #f8f9fa;
    color: #800020 !important;
    font-weight: 600;
    border-left: 3px solid #800020;
    padding-left: 17px !important;
}

.main-page-link-item .main-page-link:hover {
    background-color: #e9ecef;
    color: #87CEEB !important;
}

.main-page-link-item .main-page-link i {
    margin-right: 8px;
    color: #800020;
}

/* Dropdown separator */
.dropdown-separator {
    margin: 0;
    padding: 0;
}

.dropdown-separator hr {
    margin: 8px 15px;
    border: none;
    border-top: 1px solid #eee;
    opacity: 0.6;
}

/* Enhanced mobile dropdown indicators */
@media (max-width: 768px) {
    .dropdown > a {
        position: relative;
        padding-right: 50px;
    }
    
    /* Remove duplicate chevron icons - use HTML icons only */
    
    /* Mobile chevron rotation */
    .dropdown > a i {
        transition: transform 0.2s ease;
    }
    
    .dropdown.dropdown-open > a i,
    .touch-dropdown-active > a i {
        transform: rotate(180deg);
    }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    .dropdown-menu li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 20px;
        touch-action: manipulation;
    }
    
    .main-page-link-item .main-page-link {
        min-height: 48px;
        font-weight: 600;
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #4682B4;
    margin-bottom: 0.5em;
}

/* Remove underlines from all headings sitewide */
h1, h2, h3, h4, h5, h6 {
    text-decoration: none !important;
}

/* Disable decorative underline pseudo-elements on headings */
.discover-content h2::after,
.underline-partial::after,
.gallery-intro h2.underline-partial::after,
.admissions-process h3.underline-partial::after {
    content: none !important;
    display: none !important;
}

/* Ensure footer and social section headings are not underlined */
.footer-section h3,
.social-section h3 {
    text-decoration: none !important;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Navigation typography */
.nav-menu > li > a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* Button typography */
.read-more, .learn-more, .apply-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Hero section typography */
.hero h1 {
    font-family: 'Poppins', serif;
    font-weight: 300;
    font-size: 3rem;
    line-height: 1.1;
}

.hero h2 {
    font-family: 'Poppins', serif;
    font-weight: 700;
    font-size: 4rem;
    line-height: 1.1;
}

.hero h3 {
    font-family: 'Poppins', serif;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2;
}

.hero p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Card typography */
.school-content h3, .bread-item h4, .value-item h4 {
    font-family: 'Poppins', serif;
    font-weight: 600;
    color: #4682B4;
}

.school-content p, .bread-item p, .value-item p {
    font-family: 'Poppins', sans-serif;
    color: #666;
    line-height: 1.6;
}

.value-item p {
    text-align: left;
}

/* Footer typography */
.footer-section h3 {
    font-family: 'Poppins', serif;
    font-weight: 700;
    color: white;
    text-decoration: underline;
}

.footer-section p, .footer-section a {
    font-family: 'Poppins', sans-serif;
    color: #ccc;
    line-height: 1.6;
}

/* Form typography */
input, textarea, select {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #2c3e50;
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero h3 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero h3 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}


/* Performance optimizations */
.school-card,
.bread-item,
.nav-menu,
.dropdown-menu {
    will-change: transform;
    backface-visibility: hidden;
}

/* Additional mobile-first improvements */
@media (max-width: 567px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .school-content,
    .bread-item {
        padding: 12px;
    }
    
    .footer-section {
        padding: 0 5px;
    }
}
