/* Landing Page Styles - Modern & Elegant News/Blog Design */

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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', 'Cairo', 'Tahoma', Arial, sans-serif;
    direction: rtl;
    background: #0a0a0f;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo (Video) - Small in left corner */
.logo-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.landing-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-menu-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Login Button */
.login-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn svg {
    transition: transform 0.3s ease;
}

.login-btn:hover svg {
    transform: translateX(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* News Section */
.news-section {
    background: #0f0f15;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive: 2 columns on tablets, 1 column on mobile */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.5);
}

.news-card.featured {
    /* Featured cards stay in the 3-column grid, but can be styled differently */
    border-width: 2px;
}

.news-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card.featured .news-image {
    height: 250px;
}

/* Ensure all news images are the same size */
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-card.featured .news-title {
    font-size: 1.8rem;
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-link:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

/* Articles Section */
.articles-section {
    background: #0a0a0f;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive: 2 columns on tablets, 1 column on mobile */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

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

    .service-header {
        gap: 10px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .service-icon-emoji {
        font-size: 1.8rem;
    }

    .service-title {
        font-size: 1.1rem;
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--bg-primary, #0a0a0a);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    text-align: right;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-direction: row-reverse;
}

.service-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.service-icon-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.service-icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-icon-default {
    font-size: 2rem;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.service-description {
    font-size: 1rem;
    color: var(--text-secondary, #a1a1aa);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.5);
}

.article-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6.8em;
    /* Approximately 4 lines */
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.article-link:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

/* Staff Section */
.staff-section {
    background: #0a0a0f;
    padding: 100px 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.staff-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.5);
}

.staff-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.staff-info {
    padding: 25px 20px;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.staff-position {
    display: block;
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.staff-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Gallery Section - Slider Style */
.gallery-section {
    background: #0f0f15;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-slider {
    height: 600px;
    position: relative;
    margin-top: 0;
}

.gallery-slider .gallery-list {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slider .gallery-list .gallery-item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slider .gallery-list .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slider .gallery-list .gallery-item::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(to top, #000 5%, transparent);
}

.gallery-slider .gallery-list .gallery-item .gallery-content {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
    color: #eee;
}

.gallery-slider .gallery-list .gallery-item .gallery-content p:nth-child(1) {
    text-transform: uppercase;
    letter-spacing: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.gallery-slider .gallery-list .gallery-item .gallery-content h2 {
    font-size: 60px;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.gallery-slider .gallery-list .gallery-item .gallery-content p:nth-child(3) {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.gallery-slider .gallery-list .gallery-item.active {
    opacity: 1;
    z-index: 10;
}

@keyframes showGalleryContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.gallery-slider .gallery-list .gallery-item.active p:nth-child(1),
.gallery-slider .gallery-list .gallery-item.active h2,
.gallery-slider .gallery-list .gallery-item.active p:nth-child(3) {
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showGalleryContent 0.5s 0.7s ease-in-out 1 forwards;
}

.gallery-slider .gallery-list .gallery-item.active h2 {
    animation-delay: 1s;
}

.gallery-slider .gallery-list .gallery-item.active p:nth-child(3) {
    animation-duration: 1.3s;
}

.gallery-arrows {
    position: absolute;
    top: 30%;
    right: 50px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-arrows button {
    background-color: rgba(238, 238, 238, 0.3);
    border: none;
    font-family: monospace;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: x-large;
    color: #eee;
    transition: 0.5s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrows button:hover {
    background-color: #eee;
    color: #000;
}

.gallery-thumbnail {
    position: absolute;
    bottom: -110px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 250px;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
    direction: rtl;
}

.gallery-thumbnail::-webkit-scrollbar {
    width: 0;
}

.gallery-thumbnail .gallery-thumb-item {
    width: 150px;
    height: 220px;
    filter: brightness(0.5);
    transition: 0.5s;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-thumbnail .gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-thumbnail .gallery-thumb-item.active {
    filter: brightness(1.5);
}

.gallery-thumbnail .gallery-thumb-item .gallery-thumb-content {
    position: absolute;
    inset: auto 10px 10px 10px;
    color: #eee;
    font-size: 0.85rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}

/* Gallery View More Button */
.gallery-view-more-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: rgba(238, 238, 238, 0.2);
    border: 2px solid rgba(238, 238, 238, 0.5);
    color: #eee;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-view-more-btn:hover {
    background: rgba(238, 238, 238, 0.9);
    color: #000;
    border-color: #eee;
    transform: translateY(-2px);
}

/* Gallery Full Size Modal */
.gallery-fullsize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-fullsize-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-fullsize-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.gallery-fullsize-content {
    position: relative;
    z-index: 10001;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-fullsize-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.gallery-fullsize-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(238, 238, 238, 0.2);
    border: 2px solid rgba(238, 238, 238, 0.5);
    color: #eee;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.gallery-fullsize-close:hover {
    background: rgba(238, 238, 238, 0.9);
    color: #000;
    border-color: #eee;
    transform: rotate(90deg);
}

.gallery-fullsize-caption {
    margin-top: 20px;
    color: #eee;
    font-size: 1.2rem;
    text-align: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* About Section */
.about-section {
    background: #0a0a0f;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* About Wrapper - Side by Side Layout */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-text-wrapper {
    text-align: right;
    display: flex;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    text-align: right;
}

/* About Image Wrapper */
.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.about-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    background: #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .news-card.featured {
        grid-column: span 1;
    }

    .news-card.featured .news-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .gallery-slider {
        height: 500px;
    }

    .gallery-slider .gallery-list .gallery-item .gallery-content h2 {
        font-size: 40px;
    }

    .gallery-arrows {
        top: 10%;
        right: 20px;
    }

    .gallery-arrows button {
        width: 35px;
        height: 35px;
        font-size: large;
    }

    .gallery-thumbnail {
        justify-content: start;
        height: 200px;
        padding: 0 20px;
    }

    .gallery-thumbnail .gallery-thumb-item {
        width: 120px;
        height: 180px;
    }

    .header-container {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid,
    .articles-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    /* Stack About Section on Mobile */
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-wrapper {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-image {
        max-width: 300px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 50px;
        height: 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .login-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    animation: modalFadeIn 0.3s ease;
}

.news-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#news-modal-body {
    padding: 40px;
}

#news-modal-body .news-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

#news-modal-body .news-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

#news-modal-body .news-modal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

#news-modal-body .news-modal-content-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

#news-modal-body .news-modal-author {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

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

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================== */

/* Tablet styles (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-container {
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-slider {
        height: 450px;
    }

    .gallery-slider .gallery-list .gallery-item .gallery-content h2 {
        font-size: 40px;
    }

    .gallery-thumbnail {
        height: 180px;
        padding: 0 20px;
    }

    .gallery-thumbnail .gallery-thumb-item {
        width: 120px;
        height: 160px;
    }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {

    /* Header & Navigation */
    .header-container {
        padding: 10px 15px;
        flex-wrap: nowrap;
        gap: 10px;
        position: relative;
    }

    .logo-container {
        width: 45px;
        height: 45px;
        border-radius: 8px;
    }

    .landing-menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(9, 12, 22, 0.96);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(18px);
    }

    body.landing-nav-open .main-nav {
        display: flex;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
        width: 100%;
    }

    .login-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-right: auto;
    }

    .login-btn span {
        display: none;
    }

    .login-btn svg {
        margin: 0;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-stats {
        gap: 20px;
        flex-direction: column;
        justify-content: center;
    }

    .stat-item {
        min-width: 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Sections General */
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
        padding-bottom: 15px;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* News & Articles Cards */
    .news-content {
        padding: 15px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-card.featured .news-title {
        font-size: 1.2rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .news-image {
        height: 180px;
    }

    .article-card {
        padding: 20px;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .article-excerpt {
        font-size: 0.9rem;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 50px 0 180px;
    }

    .gallery-slider {
        height: 350px;
    }

    .gallery-slider .gallery-list .gallery-item .gallery-content {
        left: 5%;
        top: 15%;
        width: 90%;
        max-width: 90%;
    }

    .gallery-slider .gallery-list .gallery-item .gallery-content p:nth-child(1) {
        letter-spacing: 3px;
        font-size: 0.7rem;
    }

    .gallery-slider .gallery-list .gallery-item .gallery-content h2 {
        font-size: 24px;
    }

    .gallery-slider .gallery-list .gallery-item .gallery-content p:nth-child(3) {
        font-size: 0.85rem;
        margin-top: 10px;
    }

    .gallery-arrows {
        top: auto;
        bottom: 20px;
        right: 20px;
        flex-direction: row;
    }

    .gallery-arrows button {
        width: 35px;
        height: 35px;
        font-size: large;
    }

    .gallery-thumbnail {
        bottom: -130px;
        height: 150px;
        padding: 0 15px;
        gap: 8px;
    }

    .gallery-thumbnail .gallery-thumb-item {
        width: 80px;
        height: 120px;
    }

    .gallery-thumbnail .gallery-thumb-item .gallery-thumb-content {
        font-size: 0.7rem;
        inset: auto 5px 5px 5px;
        padding: 3px;
    }

    .gallery-view-more-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    /* About Section */
    .about-section .about-content {
        padding: 0;
    }

    .about-section .about-text {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
    }

    /* Footer */
    .main-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        width: 100%;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* Modal */
    .news-modal-content {
        margin: 10px;
        max-height: 95vh;
        border-radius: 12px;
    }

    #news-modal-body {
        padding: 20px;
    }

    #news-modal-body .news-modal-title {
        font-size: 1.4rem;
    }

    #news-modal-body .news-modal-content-text {
        font-size: 1rem;
    }

    /* Gallery Full Size Modal */
    .gallery-fullsize-content {
        padding: 10px;
    }

    .gallery-fullsize-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Small Mobile styles (max-width: 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }

    .logo-container {
        width: 40px;
        height: 40px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    .login-btn {
        padding: 6px 12px;
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-item {
        min-width: 70px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .news-image {
        height: 150px;
    }

    .news-content {
        padding: 12px;
    }

    .news-title {
        font-size: 1rem;
    }

    .article-card {
        padding: 15px;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .gallery-slider {
        height: 280px;
    }

    .gallery-slider .gallery-list .gallery-item .gallery-content h2 {
        font-size: 20px;
    }

    .gallery-thumbnail {
        bottom: -110px;
        height: 120px;
    }

    .gallery-thumbnail .gallery-thumb-item {
        width: 60px;
        height: 90px;
    }

    #news-modal-body .news-modal-title {
        font-size: 1.2rem;
    }

    #news-modal-body .news-modal-content-text {
        font-size: 0.9rem;
    }
}
