  @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }
        
        @keyframes wiggle {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(3deg); }
            75% { transform: rotate(-3deg); }
        }

        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .bg-pattern {
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(5, 150, 105, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(13, 148, 136, 0.1) 0%, transparent 50%);
        }
        
        /* Mega Menu Overlay Styles */
        .mega-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(255, 255, 255, 0.98);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .mega-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mega-menu-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 0;
            padding: 3rem;
            width: 90vw;
            max-width: 1200px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: none;
            animation: slideUp 0.3s ease;
        }

        .mega-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .mega-menu-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #6b7280;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 0.5rem;
            transition: all 0.2s ease;
        }

        .mega-menu-close:hover {
            background: #f3f4f6;
            color: #374151;
        }

        .mega-menu-section h3 {
            color: #047857;
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #047857;
        }

        .mega-menu-section ul li {
            margin-bottom: 0.5rem;
        }

        .mega-menu-section ul li a {
            color: #6b7280;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s ease;
            display: flex;
            align-items: center;
        }

        .mega-menu-section ul li a:hover {
            color: #047857;
        }

        .mega-menu-section ul li a::before {
            content: '▶';
            font-size: 0.6rem;
            margin-right: 0.5rem;
            color: #d1d5db;
            transition: color 0.2s ease;
        }

        .mega-menu-section ul li a:hover::before {
            color: #047857;
        }

        .mega-menu-help {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-top: 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .mega-menu-help-icon {
            background: #047857;
            color: white;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            flex-shrink: 0;
        }
        
        .dropdown-menu {
            transform: translateY(-10px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .dropdown-menu.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        
        /* Carousel Styles */
        .carousel-container {
            position: relative;
            overflow: hidden;
            padding: 0 4rem; /* room for the arrows beside the slides */
        }

        /* Added around .carousel-track by custom.js so slides are clipped inside the arrows */
        .carousel-viewport {
            overflow: hidden;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s ease;
        }

        .carousel-item {
            flex-shrink: 0;
            padding: 0 12px;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(4, 120, 87, 0.9);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-btn:hover {
            background: rgba(4, 120, 87, 1);
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-btn.prev {
            left: 0;
        }

        .carousel-btn.next {
            right: 0;
        }

        /* Phones: arrows sit under the slide instead of on top of the text */
        @media (max-width: 767px) {
            .carousel-container {
                padding: 0 0 4.5rem;
            }

            .carousel-btn {
                top: auto;
                bottom: 0.5rem;
                transform: none;
            }

            .carousel-btn:hover {
                transform: scale(1.1);
            }

            .carousel-btn.prev {
                left: calc(50% - 58px);
            }

            .carousel-btn.next {
                right: calc(50% - 58px);
            }
        }
        
        .counter {
            font-size: 2.5rem;
            font-weight: bold;
            color: #047857;
        }
        
        .service-card {
            transition: all 0.3s ease;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
        }
        
        .animated-bg {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
        }

        /* Professor Card Styles */
        .professor-card-new {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 2rem;
            margin: 0 1rem;
        }

        .professor-image {
            width: 200px;
            height: 250px;
            border-radius: 1rem;
            object-fit: cover;
            flex-shrink: 0;
        }

        .professor-details {
            flex: 1;
        }

        .professor-name-badge {
            background: #047857;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 1.5rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 0.5rem;
        }

        .professor-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }

        .professor-rate {
            font-size: 1.5rem;
            font-weight: bold;
            color: #374151;
            margin: 1rem 0;
        }

        .professor-rate span {
            color: #047857;
        }

        @media (max-width: 767px) {
            .professor-card-new {
                flex-direction: column;
                align-items: stretch;
                gap: 1.25rem;
                padding: 1.5rem;
                margin: 0;
            }

            .professor-image {
                width: 160px;
                height: 200px;
                margin: 0 auto;
            }

            .professor-stats {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }

        /* Testimonials Styles */
        .testimonials-bg {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            position: relative;
            overflow: hidden;
        }

        .testimonial-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.6;
        }

        .testimonial-shape-1 {
            width: 300px;
            height: 300px;
            background: linear-gradient(135deg, #0891b2, #0e7490);
            top: -150px;
            left: -150px;
        }

        .testimonial-shape-2 {
            width: 200px;
            height: 200px;
            background: linear-gradient(135deg, #047857, #047857);
            bottom: -100px;
            left: 10%;
        }

        .testimonial-shape-3 {
            width: 150px;
            height: 150px;
            background: linear-gradient(135deg, #0f766e, #0f766e);
            top: 20%;
            right: -75px;
        }

        .testimonial-wave {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E") no-repeat;
            background-size: cover;
        }

        .testimonial-content {
            position: relative;
            z-index: 10;
        }

        .testimonial-rating {
            background: white;
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
        }

        .testimonial-image {
            width: 400px;
            height: 300px;
            border-radius: 50%;
            object-fit: cover;
            border: 8px solid white;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        /* Subject Icons */
        .subject-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 1rem;
            background: #f8fafc;
            transition: all 0.3s ease;
        }

        .subject-card:hover .subject-icon {
            background: #047857;
            color: white;
            transform: scale(1.1);
        }

        .subject-card {
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .subject-card:hover {
            transform: translateY(-5px);
        }

        /* Enhanced Background Elements */
        .bg-element {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            pointer-events: none;
        }

        .bg-element-1 { width: 100px; height: 100px; background: #047857; }
        .bg-element-2 { width: 80px; height: 80px; background: #0f766e; }
        .bg-element-3 { width: 60px; height: 60px; background: #7c3aed; }
        .bg-element-4 { width: 40px; height: 40px; background: #047857; }
        .bg-element-5 { width: 120px; height: 120px; background: #0f766e; }

        /* Mobile Menu */
        .mobile-menu {
            max-height: calc(100vh - 4rem);
        }

        .mobile-menu-link {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 0;
            font-weight: 500;
            color: #374151;
            cursor: pointer;
            list-style: none;
            transition: color 0.2s ease;
        }

        .mobile-menu-link:hover {
            color: #047857;
        }

        .mobile-menu summary::-webkit-details-marker {
            display: none;
        }

        .mobile-menu details[open] > summary .fa-chevron-down {
            transform: rotate(180deg);
        }

        @media (max-width: 640px) {
            .mega-menu-content {
                width: 100vw;
                max-height: 100vh;
                padding: 1.5rem;
            }

            .mega-menu-help {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
        }

        /* Enquiry Forms */
        .hp-field {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }

        .field-invalid {
            border-color: #ef4444 !important;
        }

        .field-error {
            color: #dc2626;
            font-size: 0.875rem;
            margin-top: 0.25rem;
            text-align: left;
        }

        .form-status {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            text-align: left;
        }

        .form-status[hidden] {
            display: none;
        }

        .form-status i {
            margin-top: 0.2rem;
        }

        .form-status-success {
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            color: #065f46;
        }

        .form-status-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }

        /* Keyboard focus: always show where focus is */
        a:focus-visible,
        button:focus-visible,
        summary:focus-visible {
            outline: 2px solid #047857;
            outline-offset: 2px;
        }

        /* Phones: the large review-section blobs sit on top of the content */
        @media (max-width: 767px) {
            .testimonial-shape {
                display: none;
            }
        }