/*
    ------------------------------------------------------
    Global Styles & Reset
    ------------------------------------------------------
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Preferred font with fallbacks */
}

body {
    color: #333; /* Default text color */
    line-height: 1.6; /* Standard line height for readability */
    -webkit-font-smoothing: antialiased; /* Improves text rendering on macOS/iOS */
    -moz-osx-font-smoothing: grayscale; /* Improves text rendering on macOS/iOS */
}

/* Prevents scrolling when mobile menu is active */
body.no-scroll {
    overflow: hidden;
}

/*
    ------------------------------------------------------
    Layout & Utility Classes
    ------------------------------------------------------
*/
/* General container for content width limitation */
.container {
    max-width: 1200px; /* Maximum width of the content area */
    margin: 0 auto; /* Centers the container horizontally */
    padding: 0 15px; /* Adds horizontal padding to prevent content from touching edges */
}

/* Wrapper for main content to ensure header/footer placeholders work correctly */
.content-wrapper {
    min-height: calc(100vh - 100px); /* Adjust based on actual header/footer height if needed */
    display: flex;
    flex-direction: column;
    padding-top: 50px; /* Adjust this value based on your header's height */
    /* Add existing styles for content-wrapper if any, e.g., max-width, margin: auto */
    margin: 0 auto; /* Center the content wrapper */
    padding-bottom: 80px; /* Ensure space before footer */
}

/* Main Call-to-Action Button Style */
.btn {
    display: inline-block; /* Allows padding and horizontal alignment */
    background: #ffb300; /* Primary button color (Yellow) */
    color: #1a3c27; /* Dark green text for contrast */
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px; /* Highly rounded corners */
    transition: all 0.4s ease; /* Smooth transition for hover effects */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.btn:hover {
    background: #ffc107; /* Slightly lighter yellow on hover */
    transform: translateY(-3px); /* Lifts the button slightly */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Larger shadow on hover */
}

/* Secondary Button Style */
.btn-secondary {
    background: #0b4d3e; /* Dark green button */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #1a3c27; /* Slightly darker green on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Smaller Button Style */
.btn-small {
    padding: 8px 20px;
    font-size: 16px;
    border-radius: 25px;
}

/* General Section Styling */
section {
    padding: 80px 5%; /* Vertical and horizontal padding for sections */
    text-align: center; /* Default text alignment for sections */
}

/* Main Section Title Style */
.section-title {
    font-size: 2.8rem;
    color: #0b4d3e; /* Dark green title color */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block; /* Critical: Makes the element only as wide as its content */
}

/* Red Underline for Main Section Titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Align to the left edge of the inline-block parent */
    width: 100%; /* Span the full width of the text */
    height: 4px;
    background: #ce111a; /* Red color */
    border-radius: 2px;
    transform: none; /* Ensures no horizontal transformation */
}

/* General Section Description Style */
.section-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/*
    ------------------------------------------------------
    Header & Navigation
    ------------------------------------------------------
*/
/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 1000;
    transition: background 0.5s ease, transform 0.3s ease-out, opacity 0.3s ease-out; /* Add transform and opacity for smooth hide/show */
}

/* Header Hide/Show on Scroll */
header.header-hidden {
    transform: translateY(-100%); /* Move header fully up to hide it */
    pointer-events: none; /* Disable interaction when hidden */
    opacity: 0; /* Make it invisible */
}

/* Ensure the header is visible by default or when not hidden */
header:not(.header-hidden) {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Header style when scrolled */
header.scrolled {
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Logo Styling */
.logo {
    display: flex;
    flex-direction: column;
    z-index: 1001; /* Above header for mobile close button context */
}

.logo-top {
    font-size: 35px;
    font-weight: 700;
    color: white; /* White on transparent header */
    letter-spacing: 1px;
}

.logo-bottom {
    font-size: 16px;
    font-weight: 600;
    color: white; /* White on transparent header */
    text-align: center;
    letter-spacing: 0.5px;
}

/* Logo color change when header is scrolled */
header.scrolled .logo-top,
header.scrolled .logo-bottom {
    color: #0b4d3e; /* Dark green on scrolled header */
}

/* Desktop Navigation List */
nav ul {
    display: flex;
    list-style: none; /* Removes bullet points */
}

nav ul li {
    margin-left: 25px; /* Spacing between menu items */
    position: relative; /* For dropdown positioning */
}

nav ul li > a {
    text-decoration: none;
    color: white; /* White on transparent header */
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

/* Dropdown arrow icon */
nav ul li > a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

/* Rotate dropdown arrow on hover */
nav ul li:hover > a i {
    transform: rotate(180deg);
}

/* Nav link color change when header is scrolled */
header.scrolled nav ul li > a {
    color: #0b4d3e; /* Dark green on scrolled header */
}

/* Underline effect for nav links */
nav ul li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Starts hidden */
    height: 2px;
    background: #ce111a; /* Red underline */
    transition: width 0.4s ease-out; /* Smooth growth of underline */
}

/* Expand underline on hover */
nav ul li > a:hover::after {
    width: 100%;
}

/* Active nav link styling */
nav ul li > a.active {
    color: #ce111a; /* Red for active link */
}

/* Desktop Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Positions below the parent link */
    left: 0;
    width: 220px; /* Fixed width for dropdown */
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transform: translateY(10px); /* Starts slightly below */
    transition: all 0.4s ease; /* Smooth appearance */
    display: block; /* Ensures items stack vertically */
}

/* Show dropdown menu on parent hover */
nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slides up to position */
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.dropdown-menu li a {
    display: block; /* Makes the entire area clickable */
    padding: 10px 20px;
    color: #0b4d3e; /* Dark green text */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Dropdown item hover effects */
.dropdown-menu li a:hover {
    background: rgba(11, 77, 62, 0.05); /* Light green background */
    color: #ce111a; /* Red text on hover */
    padding-left: 25px; /* Slight indent on hover */
}

/* Hamburger Menu Icon (Mobile) */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    font-size: 28px;
    color: white; /* White on transparent header */
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease;
}

/* Hamburger menu color change when header is scrolled */
header.scrolled .hamburger-menu {
    color: #0b4d3e; /* Dark green on scrolled header */
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Starts off-screen to the right */
    width: 100%;
    max-width: 350px; /* Max width for smaller screens */
    height: 100%;
    overflow-y: auto; /* Enables scrolling for long menus */
    -webkit-overflow-scrolling: touch; /* Improves iOS scrolling */
    background: rgba(11, 77, 62, 0.98); /* Dark background for overlay */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: right 0.5s ease-in-out; /* Smooth slide-in */
    padding: 20px;
    padding-top: 80px; /* Space for the close button */
}

/* Show mobile nav overlay */
.mobile-nav-overlay.active {
    right: 0; /* Slides into view */
}

/* Hide hamburger when overlay is active */
.mobile-nav-overlay.active + header .hamburger-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Close Button for Mobile Nav */
.close-mobile-nav {
    position: fixed; /* Stays visible even when overlay scrolls */
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1003; /* Ensures it's always on top */
    transition: color 0.3s ease;
    display: none; /* Hidden by default, toggled by JS */
}

.close-mobile-nav:hover {
    color: #ce111a; /* Red on hover */
}

/* Mobile Nav List Styling */
.mobile-nav-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    flex-grow: 1; /* Allows the list to take available vertical space */
    justify-content: center; /* Vertically centers items within the scrollable area */
}

.mobile-nav-overlay ul li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
    position: relative;
}

.mobile-nav-overlay ul li a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
}

.mobile-nav-overlay ul li a:hover {
    color: #ce111a;
}

.mobile-nav-overlay ul li a .fas {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.mobile-nav-overlay ul li a.expanded .fas {
    transform: rotate(180deg);
}

/* Mobile Dropdown Menu */
.mobile-nav-overlay .dropdown-menu {
    position: static; /* Overrides absolute positioning for mobile */
    opacity: 1; /* Always visible in mobile overlay */
    visibility: visible;
    transform: translateY(0);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1); /* Lighter background for submenus */
    max-height: 0; /* Hidden by default, controlled by JS for slide effect */
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth expand/collapse */
    border-radius: 0;
    width: 100%;
    margin-top: 10px;
}

/* Show mobile dropdown menu */
.mobile-nav-overlay .dropdown-menu.active {
    max-height: 300px; /* Max height to allow expansion */
    padding: 10px 0;
}

.mobile-nav-overlay .dropdown-menu li a {
    font-size: 18px;
    padding: 8px 0;
    color: #f0f0f0; /* Lighter white for submenu items */
    justify-content: center;
}

.mobile-nav-overlay .dropdown-menu li a:hover {
    color: #ce111a;
    background: transparent; /* No background hover for mobile submenus */
}


/*
    ------------------------------------------------------
    Homepage Sections
    ------------------------------------------------------
*/
/* Hero Section */
.hero {
    height: 100vh; /* Full viewport height */
    background:
        linear-gradient(rgba(0, 0, 0, 0.00001)), /* Nearly transparent layer */
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%), /* Gradient overlay */
        url('hero-bg.png') center/cover no-repeat; /* Background image */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligns content to the bottom */
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px 200px; /* Adjusted bottom padding */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Text shadow for readability */
    animation: fadeIn 1.5s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease;
}

/* About Us Section */
.about-us {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    flex-direction: column; /* Stacks columns by default */
    align-items: center;
    gap: 40px;
    text-align: left;
}

.about-text {
    flex: 1; /* Takes equal space in flex layout */
    padding-right: 20px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Academics Section (Homepage overview) */
.academics {
    background-color: white;
}

.curriculum-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.curriculum-card {
    background-color: #f0f8f8; /* Light blue-green background */
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.curriculum-card i {
    font-size: 3.5rem;
    color: #ce111a; /* Red icon */
    margin-bottom: 25px;
}

.curriculum-card h3 {
    font-size: 1.8rem;
    color: #0b4d3e; /* Dark green heading */
    margin-bottom: 15px;
}

.curriculum-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

/* Admissions Section (Homepage overview) */
.admissions {
    background-color: #eef7f6; /* Very light green */
}

.admissions-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-top: 50px;
}

.info-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 3rem;
    color: #ffb300; /* Yellow icon */
    margin-bottom: 20px;
}

.info-item h4 {
    font-size: 1.4rem;
    color: #0b4d3e;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Facilities Section */
.facilities {
    background-color: white;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.facility-item {
    background-color: #f8f8f8; /* Light gray */
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.facility-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f5f4; /* Slightly darker light green */
}

.facility-item i {
    font-size: 3.2rem;
    color: #ffc107; /* Yellow icon */
    margin-bottom: 20px;
}

.facility-item h3 {
    font-size: 1.5rem;
    color: #1a3c27; /* Darker green */
    margin-bottom: 10px;
}

.facility-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Hiring Section */
.hiring-section {
    background-color: #f8f8f8;
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.hiring-section .section-title {
    color: #0b4d3e;
}

.hiring-section .section-description {
    color: #555;
    margin-bottom: 40px;
}

.hiring-section .btn {
    background: #ffc107;
    color: white; /* Changed button text color to white for better contrast on yellow */
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.hiring-section .btn:hover {
    background: #ffb300;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*
    ------------------------------------------------------
    Curriculum Page Specific Styles
    ------------------------------------------------------
*/
/* Curriculum Hero Section */
.curriculum-hero {
    background: linear-gradient(135deg, #e0f2f1, #ffffff); /* Soft gradient background */
    padding: 150px 5% 80px; /* Increased top padding for more space from header */
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.curriculum-hero .section-title {
    color: #0b4d3e;
    font-size: 2.8rem;
    margin-bottom: 25px;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.curriculum-hero .section-title::after {
    content: '';
    display: block; /* Ensures it's on its own line */
    width: 100%; /* Spans the full width of the text */
    height: 4px;
    background: #ce111a;
    margin: 15px auto 0; /* Centers the underline below the text */
    border-radius: 2px;
}

.curriculum-hero .curriculum-intro {
    max-width: 900px;
    margin: 30px auto 60px;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
    text-align: center;
    padding: 0 15px;
}

.curriculum-hero-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.curriculum-hero-icons i {
    font-size: 4rem;
    color: #0b4d3e;
    opacity: 0;
    animation: iconBounce 1s ease-out forwards;
}

.curriculum-hero-icons .delay-1 { animation-delay: 0.6s; }
.curriculum-hero-icons .delay-2 { animation-delay: 0.9s; }

/* Individual Curriculum Sections (NCTB, IGCSE) */
.curriculum-section {
    padding: 100px 5%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.curriculum-section.alternate-bg {
    background-color: #f8fcfb; /* Lighter shade for alternate sections */
}

.curriculum-section .section-title {
    text-align: left; /* Titles within these sections are left-aligned */
    margin-bottom: 30px;
    color: #0b4d3e;
    font-size: 2.2rem;
    position: relative;
    display: inline-block; /* Ensure width matches text */
}

.curriculum-section .section-title::after {
    content: '';
    display: block;
    width: 100%; /* Spans full width of the text */
    height: 3px;
    background: #ce111a;
    margin-top: 10px;
    border-radius: 2px;
    left: 0;
    transform: none; /* No transformation needed as left is 0 */
}

/* Wrapper for Curriculum Boxes */
.curriculum-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer, larger shadow */
    padding: 50px; /* Inner padding for content */
    margin-bottom: 60px; /* Spacing between boxes and below last one */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0; /* Subtle border */
}

.curriculum-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Ensure titles within the curriculum-box are correctly aligned */
.curriculum-box .section-title {
    text-align: left; /* Explicitly ensure left alignment */
}

.curriculum-box .section-title::after {
    left: 0; /* Ensure underline aligns with left-aligned title */
    transform: none;
}

/* Button container within curriculum boxes */
.button-container {
    text-align: center; /* Center the enroll button */
    margin-top: 50px; /* Spacing above button within the box */
}

/* Enroll Now Button Specific Styles */
.enroll-btn {
    display: inline-block;
    background-color: #ce111a; /* Red color for prominence */
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
}

.enroll-btn:hover {
    background-color: #b00f15; /* Darker red on hover */
    transform: translateY(-3px);
}


/* Layout for curriculum content (image/icon and text side-by-side) */
.curriculum-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.curriculum-layout.reverse {
    flex-direction: row-reverse; /* Reverses order for alternate sections */
}

.curriculum-text {
    flex: 1;
    min-width: 300px;
    line-height: 1.8;
    color: #333;
}

.curriculum-text p {
    margin-bottom: 18px;
}

.curriculum-text ul {
    list-style: none; /* Remove default bullets */
    margin-left: 0;
    margin-bottom: 25px;
    padding-left: 0;
}

.curriculum-text ul li {
    margin-bottom: 12px;
    display: flex; /* Allows icon and text to be on one line */
    align-items: flex-start;
    color: #555;
    font-size: 1.05rem;
}

.curriculum-text .list-icon {
    color: #0b4d3e; /* Green checkmark */
    margin-right: 10px;
    font-size: 1.2em;
    position: relative;
    top: 2px;
}

.curriculum-visual {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* Ensure space for visual */
}

.curriculum-visual .curriculum-icon {
    font-size: 8rem; /* Large icon */
    color: #ce111a; /* Red color for main icons */
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.curriculum-visual:hover .curriculum-icon {
    transform: scale(1.05);
}

.curriculum-visual .visual-shape {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: rgba(11, 77, 62, 0.1); /* Semi-transparent green */
    border-radius: 50%; /* Circle shape */
    z-index: 1;
    transition: transform 0.5s ease;
}

.curriculum-visual:hover .visual-shape {
    transform: scale(1.1);
}

.visual-shape.shape-nctb {
    background-color: rgba(11, 77, 62, 0.1); /* Greenish tint */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic blob shape */
}

.visual-shape.shape-igcse {
    background-color: rgba(206, 17, 26, 0.1); /* Reddish tint */
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; /* Another organic blob shape */
}


/*
    ------------------------------------------------------
    Footer
    ------------------------------------------------------
*/
footer {
    background: #1a3c27; /* Dark green footer background */
    color: #f0f0f0; /* Light text color */
    padding: 70px 5% 30px;
    position: relative;
    overflow: hidden;
}

/* Subtle top border effect for footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ce111a; /* Red line */
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid columns */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: white; /* White heading color */
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block; /* Critical: Makes the element only as wide as its content */
}

/* Red underline for footer headings */
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Position below the text */
    left: 0;
    width: 100%; /* Span the full width of the text */
    height: 3px;
    background: #ce111a;
}

/* Address section specific styles */
.address p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.address p a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-flex; /* Allows icon and text to align */
    align-items: center;
}

.address p a i {
    margin-right: 8px; /* Space next to icons */
}

.address p a:hover {
    color: #ce111a; /* Red on hover */
    transform: translateX(5px); /* Slides slightly to the right */
}

/* Useful links section */
.useful-links ul {
    list-style: none;
}

.useful-links ul li {
    margin-bottom: 12px;
}

.useful-links ul li a {
    color: #f0f0f0;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
    transition: color 0.3s;
}

/* Underline effect for useful links */
.useful-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ce111a;
    transition: width 0.4s ease-out;
}

.useful-links ul li a:hover::after {
    width: 100%;
}

.useful-links ul li a:hover {
    color: #ce111a;
}

/* Social links styling */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 50%; /* Circle shape */
    color: white;
    font-size: 18px;
    transition: all 0.4s ease;
}

.social-links a:hover {
    background: #ce111a; /* Red background on hover */
    color: #1a3c27; /* Dark green icon on hover */
    transform: translateY(-5px); /* Lifts icon */
}

/* Copyright section */
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/*
    ------------------------------------------------------
    Animations
    ------------------------------------------------------
*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes iconBounce {
    0% { opacity: 0; transform: translateY(20px); }
    60% { opacity: 1; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Apply animations to specific elements/sections */
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 1s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 1s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 1s ease-out forwards; }

/* Animation delays for sequential appearance */
.curriculum-section:nth-of-type(2) .animate-fade-in-up,
.curriculum-section:nth-of-type(2) .animate-slide-in-left {
    animation-delay: 0.2s;
}

.curriculum-section:nth-of-type(3) .animate-fade-in-up,
.curriculum-section:nth-of-type(3) .animate-slide-in-right {
    animation-delay: 0.2s;
}

/*
    ------------------------------------------------------
    Responsive Design (Media Queries)
    ------------------------------------------------------
*/

/* Desktop to Tablet adjustments */
@media (max-width: 992px) {
    /* Header & Nav */
    .hero h1 {
        font-size: 3rem;
    }

    nav ul li {
        margin-left: 15px;
    }

    /* General Sections */
    .section-title {
        font-size: 2.4rem;
    }

    /* Curriculum Page */
    .curriculum-hero {
        padding: 120px 5% 80px; /* Adjust padding for smaller screens */
    }
    .curriculum-layout {
        flex-direction: column; /* Stacks image/text vertically */
        gap: 40px;
    }

    .curriculum-layout.reverse {
        flex-direction: column; /* Ensures consistent stacking */
    }

    .curriculum-layout .curriculum-text,
    .curriculum-layout .curriculum-visual {
        min-width: unset; /* Resets minimum width */
        width: 100%; /* Takes full width when stacked */
    }

    .curriculum-section .section-title {
        text-align: center; /* Center align title on smaller screens */
    }

    .curriculum-section .section-title::after {
        left: 50%; /* Center underline */
        transform: translateX(-50%);
    }

    .curriculum-visual {
        min-height: 250px;
    }

    .curriculum-visual .curriculum-icon {
        font-size: 6rem;
    }

    .curriculum-visual .visual-shape {
        width: 200px;
        height: 200px;
    }

    /* Curriculum box padding */
    .curriculum-box {
        padding: 40px;
    }

    /* Facility Grid */
    .facility-grid {
        display: flex; /* Switch to flexbox for better wrapping */
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .facility-item {
        flex-basis: calc(33.33% - 20px); /* 3 items per row on tablet */
        max-width: calc(33.33% - 20px);
    }
}

/* Tablet to Mobile adjustments */
@media (max-width: 768px) {
    /* Header & Nav */
    nav {
        display: none; /* Hide desktop nav */
    }
    .hamburger-menu {
        display: block; /* Show hamburger menu */
        opacity: 1;
        visibility: visible;
    }

    header {
        padding: 15px 5%;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        margin-bottom: 0;
    }

    .mobile-nav-overlay {
        max-width: 100%; /* Allow full width on very small screens */
    }

    /* Homepage Sections */
    section {
        padding: 60px 5%; /* Reduced section padding */
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column; /* Ensure stacking on smaller screens */
        text-align: center;
    }
    .about-text {
        padding-right: 0; /* Remove padding when stacked */
    }

    .curriculum-card, .info-item, .facility-item {
        min-width: unset;
        width: 100%; /* Cards take full width */
        margin-bottom: 20px;
    }
    .curriculum-cards, .admissions-info, .facility-grid {
        gap: 20px; /* Reduced gap */
    }
    .facility-item {
        flex-basis: 100%; /* Stack facilities on mobile */
        max-width: 100%;
    }

    .hiring-section {
        padding: 60px 5%;
    }
    .hiring-section .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Curriculum Page */
    .curriculum-hero {
        padding: 100px 5% 60px;
    }

    .curriculum-hero .section-title {
        font-size: 2.2rem;
    }

    .curriculum-hero .curriculum-intro {
        font-size: 1rem;
    }

    .curriculum-hero-icons {
        gap: 20px;
    }

    .curriculum-hero-icons i {
        font-size: 3rem;
    }

    .curriculum-section {
        padding: 60px 5%;
    }

    .curriculum-section .section-title {
        font-size: 1.8rem;
    }

    .curriculum-visual {
        min-height: 200px;
    }

    .curriculum-visual .curriculum-icon {
        font-size: 5rem;
    }

    .curriculum-visual .visual-shape {
        width: 150px;
        height: 150px;
    }

    .curriculum-text p, .curriculum-text ul li {
        font-size: 0.95rem;
    }

    /* Curriculum box padding & button spacing */
    .curriculum-box {
        padding: 30px;
        margin-bottom: 40px;
    }

    .button-container {
        margin-top: 30px;
    }

    .enroll-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr; /* Stacks footer sections */
    }
}

/* Small Mobile devices adjustments */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    .curriculum-hero .section-title {
        font-size: 1.8rem;
    }

    .curriculum-hero-icons {
        flex-direction: column; /* Stack icons vertically */
        gap: 15px;
    }

    /* Curriculum box padding */
    .curriculum-box {
        padding: 20px;
    }
}



/* Responsive adjustment for content-wrapper padding on smaller screens if header height changes */
@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 80px; /* Slightly less padding on mobile if header is smaller */
        margin-top: 0; /* Ensure no extra margin is inherited */
    }
}

/* Basic styling for section titles on content pages for consistency */
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #0b4d3e; /* Green color */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ce111a; /* Red color */
    border-radius: 2px;
}