/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties */
:root {
    --primary-color: #1a1a1a;
    /* Koyu siyah */
    --secondary-color: #e63946;
    /* Kırmızı */
    --accent-color: #ff4d4d;
    /* Parlak kırmızı */
    --text-color: #ffffff;
    /* Beyaz */
    --text-light: #cccccc;
    /* Açık gri */
    --dark-bg: #121212;
    /* Koyu arka plan */
    --card-bg: rgba(255, 255, 255, 0.05);
    /* Yarı saydam kart arka planı */
    --white: #ffffff;
    /* Beyaz */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --max-width: 1400px;
    --section-padding: 6rem 5%;
}

/* Base Styles */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

/* Header & Navigation */
/* Header & Navigation */
header {
    background: transparent;
    /* Fully transparent */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding-top: 20px;
    /* Slight spacing from top */
}

header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    /* Solid dark when scrolled */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding-top: 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.login-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.signup-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Student Cards Styles */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.student-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    aspect-ratio: 1 / 1;
    /* Make it square */
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.student-photo-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.student-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.student-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #333;
    color: #555;
    font-size: 4rem;
}

.student-card:hover .student-photo-img {
    transform: scale(1.1);
}

.student-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.student-card:hover .student-overlay {
    opacity: 1;
}

.student-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.student-class {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.student-quote {
    color: #ddd;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.3s;
}

.view-profile-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    transform: translateY(20px);
    transition: transform 0.3s ease 0.4s, background 0.3s ease;
}

.student-card:hover .student-name,
.student-card:hover .student-class,
.student-card:hover .student-quote,
.student-card:hover .view-profile-btn {
    transform: translateY(0);
}

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

.edit-student-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-student-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    display: block;
}

.empty-state h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ef4444;
    display: block;
}

.error-state h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

@media (max-width: 900px) {

    .nav-links,
    .auth-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
        /* Account for fixed header */
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .globe-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .student-actions {
        flex-direction: column;
    }

    .edit-student-btn {
        width: 100%;
        border-radius: 8px;
    }
}

/* Hero Section */
.hero {
    /* Minimalist background - Students in exam */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        url('depositphotos_23102500-stock-photo-students-in-an-exam.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    position: relative;
    margin-top: 0;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    padding: 0;
    /* Removed glassmorphism/borders/shadows for simplistic look */
    transform: translateY(0);
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    /* Smaller size */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
    /* White text, no gradient */
    letter-spacing: -0.5px;
    /* No shadows */
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    /* Mildly rounded */
    box-shadow: none;
    border: none;
}

.btn-primary.btn-lg {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary.btn-lg:hover {
    background: white;
    color: var(--primary-color);
    /* Dark text on white background */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary.btn-lg {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Very subtle border or none? User said delete button borders. */
    border: none;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.btn-secondary.btn-lg:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    border: none;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    z-index: 2;
    border: none;
    background: none;
    width: auto;
    height: auto;
    backdrop-filter: none;
}

.scroll-down:hover {
    opacity: 1;
    background: none;
    color: var(--white);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CAS Pillars Section */
.cas-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--dark-bg);
}

.pillar {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.pillar i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.pillar h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.pillar p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Pillar Links */
.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition);
}

.pillar-link i {
    font-size: 1rem;
    transition: var(--transition);
}

.pillar-link:hover {
    color: var(--accent-color);
}

.pillar-link:hover i {
    transform: translateX(4px);
}

/* About CAS Section */
.about-cas {
    padding: var(--section-padding);
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.about-cas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.about-cas h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.about-cas>p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.cas-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Icons */
.contact-info p i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 900px) {

    .nav-links,
    .auth-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
        /* Account for fixed header */
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .globe-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.mobile-menu .auth-buttons {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    width: 80%;
    max-width: 300px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.pillar,
.feature {
    animation: fadeIn 1s ease-out;
}

/* Globe Section */
.globe-section {
    position: relative;
    padding: 0;
    background: var(--dark-bg);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.globe-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.globe-content {
    position: relative;
    z-index: 2;
    padding: 6vw 4vw 6vw 6vw;
    max-width: 600px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.95) 80%, rgba(18, 18, 18, 0.0) 100%);
}

.globe-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.globe-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

#globe {
    position: absolute;
    right: -60vw;
    bottom: -90vw;
    width: 180vw;
    height: 180vw;
    min-width: 1200px;
    min-height: 1200px;
    max-width: none;
    max-height: none;
    border-radius: 50%;
    overflow: visible;
    background: transparent;
    z-index: 1;
    box-shadow: none;
}

.globe-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat .label {
    font-size: 1.1rem;
    color: var(--text-light);
}

.globe-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature p {
    color: var(--light-bg);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .globe-content {
        padding: 4vw 2vw 4vw 2vw;
        max-width: 90vw;
        align-items: flex-start;
    }

    #globe {
        right: -100vw;
        bottom: -130vw;
        width: 250vw;
        height: 250vw;
        min-width: 800px;
        min-height: 800px;
    }
}

@media (max-width: 768px) {
    .globe-section {
        min-height: unset;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        display: flex;
    }

    .globe-container {
        flex-direction: column;
        height: auto;
        min-height: unset;
        width: 100vw;
        justify-content: flex-start;
        align-items: flex-start;
        display: flex;
    }

    .globe-content {
        position: static;
        padding: 1.5rem 1rem 2rem 1rem;
        min-height: unset;
        background: var(--primary-color);
        align-items: flex-start;
        max-width: 100vw;
        width: 100vw;
        box-sizing: border-box;
    }

    #globe {
        position: static;
        width: 100vw;
        height: 60vw;
        min-width: 0;
        min-height: 200px;
        max-width: 100vw;
        max-height: 60vw;
        border-radius: 0;
        transform: none;
        margin: 0 auto 1.5rem auto;
        display: block;
        background: transparent;
    }
}

/* Offline Message */
.offline-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--darker-bg);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border: 1px solid var(--secondary-color);
}

.offline-message i {
    color: var(--secondary-color);
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Articles & Videos Sections */
.articles-section,
.videos-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
    position: relative;
}

.articles-section::before,
.videos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

.view-all-btn:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.view-all-btn i {
    transition: var(--transition);
}

.view-all-btn:hover i {
    transform: translateX(4px);
}

/* Articles Grid */
.articles-grid,
.videos-grid,
#latest-articles-container,
#latest-videos-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px)) !important;
    gap: 1.5rem !important;
    max-width: var(--max-width);
    margin: 0 auto;
    justify-content: center !important;
}

/* Article Card */
.article-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    max-width: 450px !important;
    width: 100% !important;
    margin: 0 auto;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-color);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.editors-pick {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fbbf24;
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-meta>div {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-meta i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Video Card */
.video-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    max-width: 450px !important;
    width: 100% !important;
    margin: 0 auto;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-color);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(230, 57, 70, 0.9);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.video-card:hover .play-button {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc2626;
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-category::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.video-meta>div {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-meta i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Loading and Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.loading-state i,
.empty-state i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.loading-state h3,
.empty-state h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.loading-state p,
.empty-state p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu .nav-links {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-links li {
    margin: 0;
}

.mobile-menu .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: block;
}

.mobile-menu .nav-links a:hover,
.mobile-menu .nav-links a.active {
    color: var(--secondary-color);
    background: rgba(230, 57, 70, 0.1);
    transform: scale(1.05);
}

.mobile-menu .auth-buttons {
    margin-top: 3rem;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
    display: flex;
}

.mobile-menu .auth-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.mobile-menu .lang-toggle {
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.mobile-menu .lang-toggle:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav .nav-links {
        display: none;
    }

    .main-nav .auth-buttons {
        display: none;
    }

    .articles-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card,
    .video-card {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .view-all-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* CSS Version: 2024-01-15 - Card Width Fix */