/* Aurora Academy - Main Stylesheet */

:root {
    --color-primary: #0D2240;
    --color-primary-light: #1E3A5F;
    --color-accent: #3B82F6;
    --color-white: #FFFFFF;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F7FA;
    --color-border: #E8ECF1;
    --color-text: #0D2240;
    --color-text-secondary: #6B7280;
    --color-card-bg: #FFFFFF;
    --color-header-bg: #FFFFFF;
    --color-header-shadow: rgba(13, 34, 64, 0.08);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 1200px;
    --topbar-height: 40px;
    --header-height: 72px;
    --total-header-height: calc(var(--topbar-height) + var(--header-height));
    --logo-filter: none;
}

[data-theme="dark"] {
    --color-primary: #FFFFFF;
    --color-primary-light: #E2E8F0;
    --color-accent: #60A5FA;
    --color-white: #0F172A;
    --color-bg: #0F172A;
    --color-bg-alt: #1E293B;
    --color-border: #334155;
    --color-text: #F1F5F9;
    --color-text-secondary: #94A3B8;
    --color-card-bg: #1E293B;
    --color-header-bg: #0F172A;
    --color-header-shadow: rgba(0, 0, 0, 0.3);
    --logo-filter: brightness(0) invert(1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Content */
.page-content {
    padding-top: calc(var(--total-header-height) + 40px);
    padding-bottom: 80px;
    min-height: 70vh;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.breadcrumbs a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs span:not(:last-child) {
    color: var(--color-border);
}

/* Page Title */
.page-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Info Table */
.info-table {
    background: var(--color-card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.info-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    padding: 20px 24px;
    background: var(--color-bg-alt);
    font-weight: 600;
    font-size: 15px;
}

.info-value {
    padding: 20px 24px;
    font-size: 16px;
}

.info-value a {
    color: var(--color-accent);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.content-section p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--color-text);
    display: block;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #8B5CF6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5) translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--color-accent);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #8B5CF6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--color-accent);
}

.card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
    padding-right: 48px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 16px;
    transition: gap 0.3s ease;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card:hover .card-link {
    gap: 12px;
}

.card:hover .card-link svg {
    transform: translateX(4px);
}

/* Static cards (no link, no arrow) */
.card--static {
    cursor: default;
}

.card--static::after {
    display: none;
}

.card--static p {
    padding-right: 0;
}

/* Card variations */
.card--highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, #2563EB 100%);
    border: none;
    color: #fff;
}

.card--highlight h3,
.card--highlight p {
    color: #fff;
}

.card--highlight p {
    opacity: 0.9;
}

.card--highlight::before {
    display: none;
}

.card--highlight:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

/* Dark mode adjustments */
[data-theme="dark"] .card::after {
    background-color: var(--color-bg-alt);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='2'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 20px 40px rgba(96, 165, 250, 0.2);
}

/* Person Card */
.person-card {
    display: flex;
    gap: 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.person-photo {
    width: 120px;
    height: 150px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.person-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.person-position {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.person-contacts {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.person-contacts p {
    margin-bottom: 8px;
}

.person-contacts a {
    color: var(--color-text);
    text-decoration: none;
}

.person-contacts a:hover {
    color: var(--color-accent);
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.document-item:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.document-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.document-name {
    flex: 1;
    font-weight: 500;
}

.document-size {
    font-size: 14px;
    opacity: 0.7;
}

/* Program Card */
.program-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.program-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.program-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.program-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.program-meta-item svg {
    width: 18px;
    height: 18px;
}

.program-description {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.program-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 20px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--color-accent);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--color-text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    gap: 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.news-item-image {
    width: 280px;
    height: 180px;
    background: var(--color-bg-alt);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.news-item-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-date {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.news-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-item p {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text);
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-text p, .contact-text a {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--color-accent);
}

.contact-map {
    background: var(--color-bg-alt);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
}

/* Contact Form */
.contact-form {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--color-text-secondary);
}

/* Sidebar Navigation */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.sidebar-nav {
    position: sticky;
    top: calc(var(--total-header-height) + 40px);
    height: fit-content;
}

.sidebar-nav h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

/* Mobile Header Actions */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 16px;
        margin-bottom: 32px;
    }

    .sidebar-nav ul {
        display: flex;
        gap: 8px;
    }

    .sidebar-nav li {
        margin: 0;
    }

    .sidebar-nav a {
        white-space: nowrap;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .info-label {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding-top: calc(72px + 32px);
    }

    .page-title {
        font-size: 28px;
    }

    .header-actions {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
    }

    .logo {
        height: 44px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .person-card {
        flex-direction: column;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 200px;
    }

    .program-meta {
        flex-direction: column;
        gap: 12px;
    }
}
