:root {
    --primary: #004aad;
    --secondary: #00c2ff;
    --bg: #f8fbff;
    --text: #1a2b4b;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 74, 173, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Navbar Premium Fixes */
.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
}

.site-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 30px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #003a8c 100%);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 74, 173, 0.25);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 74, 173, 0.4);
}

.btn-secondary {
    background: rgba(0, 194, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 194, 255, 0.2);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    font-size: 1.1rem;
    padding: 16px 40px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-5px) scale(1.03);
}

.btn-lg {
    padding: 18px 45px;
    font-size: 1.1rem;
}

.center {
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #021b3d 0%, #004aad 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background: #f0f4f8;
}

.bg-dark {
    background: var(--primary);
    color: white;
}

.bg-dark h2 {
    color: var(--secondary) !important;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Teacher Cards */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-img {
    height: 350px;
    position: relative;
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    padding: 30px;
}

.teacher-name {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.teacher-specialty {
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.teacher-bio-container {
    height: 160px;
    overflow-y: auto;
    padding-right: 8px;
}

.teacher-bio {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Modals (CRITICAL: HIDDEN BY DEFAULT) */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

/* Admin Bar */
.admin-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 43, 75, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    border-top: 3px solid var(--secondary);
}

.admin-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Animations */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}