

        /* Professional Gallery Hover Zoom Effect */
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            cursor: pointer;
        }
        .gallery-img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            padding: 20px;
            color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
            text-align: left;
        }
        .gallery-item:hover .gallery-img {
            transform: scale(1.1);
        }
        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        /* CSS Lightbox Zoom View for Gallery Click */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 2000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            text-align: center;
            padding: 40px;
        }
        .lightbox:target {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        .lightbox-img {
            max-width: 90%;
            max-height: 80vh;
            border: 4px solid white;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(255,255,255,0.2);
        }
        .lightbox h3 {
            color: white; 
            margin-top: 15px;
        }
        .close-btn {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 40px;
            text-decoration: none;
            font-weight: bold;
        }
        .close-btn:hover {
            color: #e91e63;
        }
        
        /* Navbar Styles */
        .navbar {
            background-color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 5%;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        /* Logo Area */
        .logo a {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            font-size: 26px;
            font-weight: bold;
        }
        
        .logo img {
            height: 47px;
            width: auto;
            object-fit: contain;
        }

        .logo .text-kids { color: #4caf50; }  /* Green */
        .logo .text-castle { color: #ff9800; } /* Orange */

        /* Nav Links Container */
        .nav-links {
            display: flex;
            list-style: none;
            align-items: center;
        }

        /* Main Menu Items */
        .nav-item {
            position: relative;
            padding: 10px 15px;
        }

        .nav-item > a {
            text-decoration: none;
            font-weight: 700;
            font-size: 17px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Colors */
        .link-home { color: #ff9800 !important; }       /* Orange */
        .link-about { color: #4caf50 !important; }      /* Green */
        .link-facilities { color: #e91e63 !important; } /* Pink/Magenta */
        .link-programs { color: #00bcd4 !important; }   /* Cyan/Blue */

        /* Dropdown Arrow Indicator */
        .nav-item.dropdown > a::after {
            content: '▼';
            font-size: 10px;
            transition: transform 0.3s ease;
            margin-left: 2px;
        }
        
        .nav-item.dropdown:hover > a::after {
            transform: rotate(180deg);
        }

        /* Sub-menu (Desktop Dropdown) */
        .submenu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(15px);
            background-color: #ffffff;
            min-width: 200px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            list-style: none;
            padding: 10px 0;
            opacity: 0;
            visibility: hidden;
            pointer-events: none; 
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
            z-index: 999;
        }

        /* Desktop Hover Trigger */
        @media (min-width: 993px) {
            .nav-item:hover .submenu {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: translateX(-50%) translateY(0);
            }
        }

        .submenu li a {
            display: block;
            padding: 12px 20px;
            text-decoration: none;
            color: #555555;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .submenu li a:hover {
            background-color: #fff0ec;
            padding-left: 25px;
        }

        /* Contact Us Button Style */
        .cta-btn {
            background-color: #e91e63;
            color: white !important;
            padding: 12px 28px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            font-size: 16px;
            transition: transform 0.3s ease, background-color 0.3s ease;
            white-space: nowrap;
        }

        .cta-btn:hover {
            background-color: #d81b60;
            transform: scale(1.03);
        }

        /* Hamburger Menu */
        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
            z-index: 1001;
        }

        .menu-toggle span {
            width: 25px;
            height: 3px;
            background-color: #333;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Hamburger Animation */
        .menu-toggle.active span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }
        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        /* --- New CSS Classes Migrated from Inline Styles --- */
        
        /* Hero Section */
        .hero-section {
            background-image: url('banner-bg-1.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            padding: 120px 50px;
            min-height: 520px;
            display: flex;
            align-items: center;
            border-bottom-left-radius: 50px;
            border-bottom-right-radius: 50px;
        }
        .hero-content {
            max-width: 550px;
            text-align: left;
        }
        .hero-title {
            font-size: 44px;
            color: #d84315;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
            margin-bottom: 20px;
            line-height: 1.2;
            font-weight: 800;
        }
        .hero-desc {
            font-size: 18px;
            color: #4e342e;
            font-weight: 600;
            margin-bottom: 35px;
            line-height: 1.6;
        }
        .hero-btn-container {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        .btn-tour, .btn-explore {
            text-decoration: none;
            color: white;
            padding: 12px 28px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }
        .btn-tour { background-color: #4caf50; }
        .btn-explore { background-color: #e91e63; }

        /* About Section */
        #about {
            padding: 60px 50px;
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }
        .section-title-pink {
            font-size: 36px;
            color: #e91e63;
            margin-bottom: 20px;
        }
        .orange-divider {
            width: 80px;
            height: 5px;
            background-color: #ff9800;
            margin: 0 auto 30px auto;
            border-radius: 2px;
        }
        .about-text {
            font-size: 18px;
            line-height: 1.8;
            color: #555;
            max-width: 900px;
            margin: 0 auto;
        }

        /* Programs Section */
        #programs {
            background-color: #fff9e6;
            padding: 60px 50px;
        }
        .programs-container {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }
        .section-title-green {
            font-size: 36px;
            color: #4caf50;
            margin-bottom: 20px;
        }
        .cyan-divider {
            width: 80px;
            height: 5px;
            background-color: #00bcd4;
            margin: 0 auto 40px auto;
            border-radius: 2px;
        }
        .programs-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
        }
        .program-card {
            background-color: #ffffff;
            border-radius: 20px;
            width: 250px;
            padding: 30px 20px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        }
        .program-card .emoji {
            font-size: 40px;
            margin-bottom: 15px;
        }
        .program-card h3 {
            margin-bottom: 10px;
            font-size: 22px;
        }
        .program-card p {
            color: #666;
            font-size: 15px;
            line-height: 1.5;
        }
        .card-playgroup { border: 2px solid #ffb74d; }
        .card-playgroup h3 { color: #ff9800; }
        .card-nursery { border: 2px solid #81c784; }
        .card-nursery h3 { color: #4caf50; }
        .card-lkg { border: 2px solid #4dd0e1; }
        .card-lkg h3 { color: #00bcd4; }
        .card-ukg { border: 2px solid #f06292; }
        .card-ukg h3 { color: #e91e63; }

        /* Facilities Section */
        #facilities {
            display: flex;
            width: 100%;
            background-color: #ffffff;
            min-height: 550px;
            overflow: hidden;
        }
        .facilities-left {
            flex: 1;
            background-color: #cf3d3a;
            color: white;
            padding: 60px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .facilities-tag {
            font-size: 16px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
            display: block;
            opacity: 0.9;
        }
        .facilities-title {
            font-size: 40px;
            font-weight: bold;
            margin: 0 0 20px 0;
            line-height: 1.2;
        }
        .facilities-desc {
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 40px;
            opacity: 0.85;
            max-width: 680px;
        }
        .facilities-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }
        .facility-box {
            background-color: white;
            color: #333;
            width: calc(33.33% - 14px);
            min-width: 140px;
            padding: 25px 15px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        .facility-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px auto;
            font-size: 24px;
        }
        .facility-box h4 {
            font-size: 14px;
            font-weight: 700;
            color: #1e3d59;
            margin: 0;
        }
        .bg-purple { background-color: #ba68c8; }
        .bg-blue { background-color: #4fc3f7; }
        .bg-green { background-color: #81c784; }
        .bg-orange { background-color: #ff8a65; }
        .bg-teal { background-color: #4db6ac; }
        .bg-yellow { background-color: #ffd54f; }

        .facilities-right {
            flex: 1;
            position: relative;
        }
        .facilities-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            min-height: 400px;
        }

        /* Gallery Section */
        #gallery {
            background-color: #ffffff;
            padding: 60px 50px;
            border-top-left-radius: 50px;
            border-top-right-radius: 50px;
        }
        .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }
        .section-title-purple {
            font-size: 36px;
            color: #9c27b0;
            margin-bottom: 20px;
        }
        .pink-divider {
            width: 80px;
            height: 5px;
            background-color: #e91e63;
            margin: 0 auto 40px auto;
            border-radius: 2px;
        }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }
        .gallery-grid a {
            text-decoration: none;
        }
        .gallery-overlay h4 {
            margin: 0 0 5px 0;
            font-size: 18px;
        }
        .gallery-overlay p {
            margin: 0;
            font-size: 13px;
            opacity: 0.9;
        }

        /* Contact Section */
        #contact {
            background-color: #00bcd4;
            padding: 60px 50px;
            color: white;
        }
        .contact-container {
            max-width: 600px;
            margin: 0 auto;
            text-align: center;
        }
        .contact-container h2 {
            font-size: 36px;
            margin-bottom: 10px;
        }
        .contact-container p {
            font-size: 16px;
            margin-bottom: 30px;
        }
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
            text-align: left;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            box-sizing: border-box;
        }
        .form-group select {
            color: #555;
        }
        .btn-submit {
            background-color: #ff9800;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        /* Mobile View Framework Optimization */
        @media (max-width: 768px) {
            .mobile-flex-col { flex-direction: column !important; }
            .mobile-w-100 { width: 100% !important; min-width: 100% !important; }
            .mobile-pad { padding: 30px 20px !important; }
            .facility-box { width: 100% !important; }
            
            .hero-section { background-position: right center !important; min-height: auto !important; padding: 60px 20px !important; }
            .hero-content { background: rgba(255, 255, 255, 0.85); padding: 25px; border-radius: 20px; }
            .hero-title { color: #d84315 !important; font-size: 32px !important; }
            .hero-desc { color: #333333 !important; }
            .gallery-grid { grid-template-columns: 1fr !important; }
        }
        
        @media (max-width: 992px) {
            .menu-toggle {
                display: flex;
            }

            /* Mobile Menu Smooth Open */
            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: #ffffff;
                flex-direction: column;
                align-items: flex-start;
                padding: 0 5%;
                box-shadow: 0 10px 20px rgba(0,0,0,0.05);
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
            }

            .nav-links.active {
                max-height: 800px;
                padding: 20px 5%;
            }

            .nav-item {
                width: 100%;
                padding: 12px 0;
                border-bottom: 1px solid #f0f0f0;
            }

            .nav-item > a {
                justify-content: space-between;
            }

            /* Mobile Submenu Smooth Open Setup */
            .submenu {
                position: relative;
                top: 0;
                left: 0;
                transform: none;
                box-shadow: none;
                width: 100%;
                padding: 0;
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                background-color: #fcfcfc;
                border-radius: 0;
                display: block;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease;
            }

            /* When Submenu is Active/Open */
            .nav-item.open .submenu {
                max-height: 300px;
                margin-top: 10px;
            }

            .nav-item.open > a::after {
                transform: rotate(180deg);
            }

            .submenu li a {
                padding: 10px 20px;
                color: #555555 !important;
            }

            .cta-btn {
                display: block;
                text-align: center;
                margin-top: 20px;
                width: 100%;
            }
            
            .navbar > .cta-btn {
                display: none;
            }
        }
