:root {
    --primary: #192A56;
    --primary-light: #273c75;
    --background: #f8f9fa;
    --surface: #ffffff;
    --text: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --font-family: 'Lato', sans-serif;
    --cursor-light-color: rgba(25, 42, 86, 0.15);
}

body.dark-mode {
    --primary: #5dade2;
    --primary-light: #85c1e9;
    --background: #121212;
    --surface: #1e1e1e;
    --text: #e0e0e0;
    --text-muted: #9e9e9e;
    --border: #333333;
    --cursor-light-color: rgba(93, 173, 226, 0.1);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: radial-gradient(
            600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
            var(--cursor-light-color),
            transparent 80%
    );
    transition: background 0.1s ease-out;
}

body {
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 48px;
    color: var(--primary);
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    opacity: 0;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.navbar-brand img {
    height: 40px;
    object-fit: contain;
}

#site-logo {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 50px;
}

.lang-switcher a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 50px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.lang-switcher a.active {
    background-color: var(--primary);
    color: white;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
}

.theme-toggle-btn svg {
    width: 22px;
    height: 22px;
}

.theme-toggle-btn .moon {
    display: none;
}

body.dark-mode .theme-toggle-btn .sun {
    display: none;
}

body.dark-mode .theme-toggle-btn .moon {
    display: block;
}

.hamburger {
    display: none;
}

.hero {
    padding: 120px 0;
    text-align: center;
    background-color: var(--surface);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 16px;
    opacity: 0;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

.certificates, .students, .partners {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.certificates {
    background-color: var(--surface);
}

.certificate-swiper, .student-swiper, .partner-swiper {
    width: 100%;
    padding-bottom: 50px !important;
    position: relative;
    z-index: 2;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 20px;
    opacity: 0;
}

.teacher-card,
.student-card,
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--surface);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.teacher-card:hover,
.student-card:hover,
.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.teacher-card img,
.student-card img,
.partner-card img {
    display: block;
    margin: 0 auto 16px auto;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20%;
    border: 3px solid var(--primary-light);
}

.teacher-card h3,
.student-card h3,
.partner-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.teacher-card p,
.student-card p,
.partner-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 100%;
    word-wrap: break-word;
}

.cta {
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 32px;
    opacity: 0;
}

.footer {
    padding: 32px 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary);
    animation: move-particle 20s linear infinite;
    opacity: 0;
}

body.dark-mode .particle {
    background-color: #ffffff;
}

.particle:nth-child(1) {
    width: 5px;
    height: 5px;
    left: 15%;
    animation-delay: -2s;
    animation-duration: 22s;
}

.particle:nth-child(2) {
    width: 3px;
    height: 3px;
    left: 25%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.particle:nth-child(20) {
    width: 5px;
    height: 5px;
    left: 1%;
    animation-delay: -7s;
    animation-duration: 31s;
}

@keyframes move-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text);
        border-radius: 3px;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--surface);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .hero h1 {
        font-size: 3rem;
    }

    body::before {
        display: none;
    }
}


.tests-page {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.test-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.test-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-card-icon svg {
    width: 28px;
    height: 28px;
}

.test-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.start-button {
    font-weight: 700;
    color: var(--primary);
    transition: color 0.2s;
}

.test-card:hover .start-button {
    color: var(--primary-light);
}

.hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;

    justify-content: flex-start;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface);
    padding: 32px 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s;
}

.contact-link:hover {
    background-color: var(--primary);
    color: white;
}

.redirect-notice {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 16px;
    color: var(--text-muted);
}


.coming-soon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.soon-text {
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.8;
    z-index: 2;
}

.particles-extra {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.podcast-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.podcast-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.podcast-item audio {
    width: 100%;
    margin-bottom: 16px;
}

.toggle-description-btn {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.toggle-description-btn:hover {
    background-color: var(--primary);
    color: white;
}

.podcast-description-content {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background-color: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    max-height: 300px;
    overflow-y: auto;
}

.podcast-description-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
}

.pdf-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pdf-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.pdf-modal-content {
    position: relative;
    background-color: var(--background);
    width: 100%;
    height: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-modal-close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.pdf-modal-close-btn:hover {
    color: var(--primary);
}

#pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.qa-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.question-text {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.qa-item audio {
    width: 100%;
    margin-bottom: 16px;
}

.transcript {
    background-color: var(--background);
    padding: 16px;
    border-radius: 8px;
}

.transcript b {
    color: var(--primary);
}

.gap-fill-input {
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1rem;
    margin: 0 5px;
    background-color: var(--surface);
    color: var(--text);
    transition: border-color 0.3s;
}

.gap-fill-input.correct {
    border-color: #28a745;
}

.gap-fill-input.incorrect {
    border-color: #dc3545;
}

.correct-answer-span {
    color: #28a745;
    font-weight: bold;
    margin-left: 8px;
}

.test-box {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.test-box h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.test-card-icon {
    font-size: 1.5rem;
    font-weight: 700;
}
