 :root {
            --primary: #0d3b66;
            --secondary: #f4d35e;
            --accent: #ee964b;
            --accent2: #f95738;
            --dark: #1a2a3a;
            --light: #f8fafc;
            --admin-bg: rgba(10, 30, 51, 0.95);
            --text: #333;
            --light-blue: #e6f0ff;
            --success: #28a745;
            --danger: #dc3545;
            --study-btn: #6a11cb;
            --formula-color: rgba(13, 59, 102, 0.15);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Open Sans', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #e6f0ff 0%, #f0f8ff 100%);
            color: var(--text);
            min-height: 100vh;
            padding-bottom: 2rem;
            position: relative;
            overflow-x: hidden;
        }
        
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 10% 20%, rgba(244, 211, 94, 0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(13, 59, 102, 0.05) 0%, transparent 20%);
            z-index: -1;
        }
        
        .formula-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1; 
            pointer-events: none;
            overflow: hidden;
        }
        
        .formula {
            position: absolute;
            color: var(--formula-color);
            font-size: 24px;
            font-family: 'Times New Roman', serif;
            font-weight: bold;
            white-space: nowrap;
            user-select: none;
            opacity: 0;
            animation: float 20s linear infinite;
            text-shadow: 0 0 2px rgba(0,0,0,0.1);
        }
        
        @keyframes float {
            0% {
                transform: translateX(-100px) translateY(var(--start-y)) rotate(0deg);
                opacity: 0;
            }
            5% {
                opacity: 1;
            }
            80% {
                opacity: 1;
            }
            100% {
                transform: translateX(calc(100vw + 100px)) translateY(var(--end-y)) rotate(var(--rotation));
                opacity: 0;
            }
        }
        
        header {
            background: linear-gradient(120deg, var(--primary), #1a5288);
            color: white;
            padding: 1.5rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-bottom: 4px solid var(--secondary);
            z-index: 10;
        }
        
        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
            position: relative;
        }
        
        .logo {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid white;
            box-shadow: 0 0 20px rgba(244, 211, 94, 0.7);
            z-index: 2;
            transition: transform 0.3s ease;
        }
        
        .logo:hover {
            transform: rotate(15deg) scale(1.05);
        }
        
        .logo i {
            font-size: 2.8rem;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        h1 {
            font-family: 'Poppins', sans-serif;
            font-size: 2.8rem;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
            text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
            position: relative;
            z-index: 2;
        }
        
        .animated-title {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            display: inline-block;
            position: relative;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: titleGlow 3s infinite alternate;
        }
        
        @keyframes titleGlow {
            0% { text-shadow: 0 0 5px rgba(244, 211, 94, 0.5); }
            100% { text-shadow: 0 0 15px rgba(244, 211, 94, 0.8), 0 0 25px rgba(238, 150, 75, 0.6); }
        }
        
        .header-content p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        
     
        .section {
            background: linear-gradient(145deg, #ffffff, #f8faff);
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(13, 59, 102, 0.1);
            padding: 2.5rem;
            margin-bottom: 3rem;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            border-top: 4px solid var(--secondary);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: var(--primary);
        }
        
        .section:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(13, 59, 102, 0.18);
        }
        
        .section-title {
            color: var(--primary);
            border-bottom: 2px solid var(--secondary);
            padding-bottom: 1rem;
            margin-bottom: 2rem;
            font-family: 'Poppins', sans-serif;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
        }
        
        .section-title i {
            background: var(--primary);
            color: var(--secondary);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            box-shadow: 0 4px 8px rgba(13, 59, 102, 0.2);
        }
        
        .quote-container {
            display: flex;
            justify-content: center;
            min-height: 200px;
        }
        
        .quote-card {
            background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
            border-left: 4px solid var(--secondary);
            padding: 2rem;
            border-radius: 0 12px 12px 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            width: 90%;
            max-width: 800px;
            transition: all 0.5s ease;
            animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
            opacity: 0;
            transform: translateY(20px);
        }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .quote-card:hover {
            transform: translateY(-8px) rotate(1deg);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .quote-card::before {
            content: " ";
            position: absolute;
            top: -20px;
            left: 10px;
            font-size: 8rem;
            color: rgba(13, 59, 102, 0.05);
            font-family: Georgia, serif;
            font-weight: bold;
        }
        
        .quote-text {
            font-size: 1.3rem;
            font-style: italic;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
            color: #444;
            text-align: center;
        }
        
        .quote-author {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            color: var(--primary);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .quote-author::before {
            content: "—";
            margin-right: 5px;
        }
        
        .links-grid {
            display: flex;
            justify-content: center;
            min-height: 180px;
        }
        
        .link-card {
            background: linear-gradient(to right, #f8fafc, #edf2ff);
            border-radius: 12px;
            padding: 1.8rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            position: relative;
            overflow: hidden;
            width: 90%;
            max-width: 800px;
            min-height: 160px;
        }
        
        .link-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 12px 25px rgba(0,0,0,0.1);
            background: linear-gradient(to right, #e0f2fe, #dbeafe);
            border-color: var(--secondary);
        }
        
        .link-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: var(--secondary);
        }
        
        .link-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary), #1a5288);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            font-size: 2rem;
            flex-shrink: 0;
            box-shadow: 0 6px 12px rgba(13, 59, 102, 0.2);
            transition: transform 0.3s ease;
        }
        
        .link-card:hover .link-icon {
            transform: rotate(10deg) scale(1.1);
        }
        
        .link-content {
            flex-grow: 1;
        }
        
        .link-name {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-size: 1.4rem;
        }
        
        .link-desc {
            color: #666;
            font-size: 1.1rem;
            line-height: 1.5;
        }
        
        .timetable-container {
            overflow-x: auto;
            border-radius: 12px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.08);
            border: 1px solid #e2e8f0;
            margin-bottom: 1.5rem;
        }
        
        .timetable {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 900px;
        }
        
        .timetable th {
            background: linear-gradient(to bottom, var(--primary), var(--dark));
            color: white;
            padding: 1.3rem 1rem;
            text-align: center;
            position: sticky;
            top: 0;
            font-family: 'Poppins', sans-serif;
            font-weight: 500;
            border-right: 1px solid rgba(255,255,255,0.1);
            font-size: 1.1rem;
        }
        
        .timetable th:first-child {
            border-radius: 12px 0 0 0;
        }
        
        .timetable th:last-child {
            border-radius: 0 12px 0 0;
            border-right: none;
        }
        
        .timetable td {
            padding: 1.1rem;
            text-align: center;
            border: 1px solid #e2e8f0;
            transition: all 0.2s ease;
            font-size: 1rem;
        }
        
        .timetable tr:nth-child(even) {
            background-color: #f8fafc;
        }
        
        .timetable tr:hover {
            background-color: #f0f7ff;
        }
        
        .class-cell {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            background: linear-gradient(to right, #edf2ff, #e0f2fe) !important;
            color: var(--primary);
            position: sticky;
            left: 0;
            z-index: 1;
            border-right: 3px solid var(--secondary);
            min-width: 120px;
        }
        
        .lunch-cell {
            background: linear-gradient(45deg, #f8f9fa, #e9ecef) !important;
            font-weight: 600;
            color: #e44d26;
        }
        
        .editable {
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .editable:hover {
            background-color: #f9f9e0 !important;
        }
        
        .editable:focus {
            background-color: #fffdf0 !important;
            box-shadow: inset 0 0 0 2px var(--secondary);
            outline: none;
        }
        
        .footer {
            text-align: center;
            padding: 2rem;
            color: var(--primary);
            font-size: 1rem;
            opacity: 0.9;
            font-weight: 500;
            border-top: 1px solid rgba(13, 59, 102, 0.1);
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 12px;
            backdrop-filter: blur(5px);
            margin-top: 2rem;
        }
        
  
        
        @keyframes pulseBorder {
            0% { box-shadow: 0 0 0 0 rgba(244, 211, 94, 0.5); }
            70% { box-shadow: 0 0 0 10px rgba(244, 211, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(244, 211, 94, 0); }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .events-container {
            display: flex;
            justify-content: center;
            min-height: 200px;
        }
        
        .event-card {
            background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
            border-left: 4px solid var(--accent);
            padding: 2rem;
            border-radius: 0 12px 12px 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            width: 90%;
            max-width: 800px;
            transition: all 0.5s ease;
        }
        
        .event-title {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .event-title i {
            color: var(--accent2);
            font-size: 1.8rem;
        }
        
        .event-date {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            color: var(--accent);
            font-weight: 600;
        }
        
        .event-date i {
            color: var(--accent2);
        }
        
        .event-description {
            color: #555;
            line-height: 1.7;
            font-size: 1.1rem;
        }
        
        .grade-title {
            background: linear-gradient(90deg, var(--primary), #1a5288);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 8px 8px 0 0;
            font-family: 'Poppins', sans-serif;
            font-weight: 500;
            margin-top: 2rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            display: inline-block;
        }
        
        .study-section {
            display: flex;
            justify-content: center;
            padding: 3rem 1rem;
        }
        
        .study-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1.2rem 2.5rem;
            background: linear-gradient(45deg, var(--study-btn), #2575fc);
            color: white;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            font-size: 1.3rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .study-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #2575fc, var(--study-btn));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .study-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 30px rgba(106, 17, 203, 0.6);
        }
        
        .study-btn:hover::before {
            opacity: 1;
        }
        
        .study-btn i {
            margin-left: 10px;
            font-size: 1.4rem;
            transition: transform 0.4s ease;
        }
        
        .study-btn:hover i {
            transform: translateX(5px);
        }
        
        .study-btn .pulse {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            animation: pulseStudy 2s infinite;
            z-index: -2;
        }
        
        @keyframes pulseStudy {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            100% {
                transform: scale(1.8);
                opacity: 0;
            }
        }
        
        @media (max-width: 992px) {
            .admin-bar {
                flex-direction: column;
                gap: 1rem;
                padding: 1rem;
            }
            
            .admin-controls {
                width: 100%;
                flex-direction: column;
            }
            
            .password-container {
                width: 100%;
            }
            
            .password-input {
                width: 100%;
            }
            
            .section {
                padding: 1.8rem;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .logo {
                width: 70px;
                height: 70px;
            }
            
            .quote-text, .link-name {
                font-size: 1.2rem;
            }
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }
            
            .section {
                padding: 1.5rem;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .section-title {
                font-size: 1.6rem;
            }
            
            .header-content p {
                font-size: 1rem;
            }
            
            .quote-text, .link-name {
                font-size: 1.1rem;
            }
            
            .link-icon {
                width: 60px;
                height: 60px;
                font-size: 1.6rem;
            }
            
            .study-btn {
                padding: 1rem 2rem;
                font-size: 1.2rem;
            }
            
            .formula {
                font-size: 18px; /* Smaller formulas on mobile */
            }
        }
        
        @media (max-width: 576px) {
            h1 {
                font-size: 1.8rem;
            }
            
            .logo {
                width: 60px;
                height: 60px;
            }
            
            .logo i {
                font-size: 2.2rem;
            }
            
            .section-title {
                font-size: 1.5rem;
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }
            
            .section-title i {
                margin: 0 auto;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
            
            .quote-card, .link-card, .event-card {
                padding: 1.5rem;
                flex-direction: column;
                text-align: center;
            }
            
            .link-icon {
                margin-bottom: 1rem;
            }
            
            .quote-text {
                font-size: 1.1rem;
            }
            
            .study-btn {
                padding: 0.9rem 1.8rem;
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 480px) {
            h1 {
                font-size: 1.6rem;
            }
            
            .header-content p {
                font-size: 0.95rem;
            }
            
            .section-title {
                font-size: 1.4rem;
            }
            
            .quote-text, .link-name {
                font-size: 1rem;
            }
            
            .link-desc, .event-description {
                font-size: 0.95rem;
            }
        }
        
        @media (max-width: 380px) {
            h1 {
                font-size: 1.5rem;
            }
            
            .logo {
                width: 50px;
                height: 50px;
            }
            
            .logo i {
                font-size: 1.8rem;
            }
            
            .section {
                padding: 1.2rem;
            }
            
            .section-title {
                font-size: 1.3rem;
            }
        }