@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #071B3B;
    --primary-rgb: 7, 27, 59;
    --accent: #C8A45A;
    --accent-hover: #b59147;
    --bg-page: #F5F6F8;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #0a0a0a;
    --border: #E2E8F0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(7, 27, 59, 0.08);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(7, 27, 59, 0.06), 0 8px 16px -6px rgba(7, 27, 59, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(7, 27, 59, 0.1), 0 10px 20px -10px rgba(7, 27, 59, 0.06);

    /* Transitions & Corners */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Dark Mode Variables */
.dark-mode {
    --primary: #0a224a;
    --primary-rgb: 10, 34, 74;
    --bg-page: #040A18;
    --bg-card: #0D162B;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #1E293B;

    /* Glassmorphism */
    --glass-bg: rgba(13, 22, 43, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.4);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
    color: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
input,
textarea,
select {
    font-family: 'Cairo', sans-serif;
    outline: none;
    border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography helper for English text */
.en {
    font-family: 'Outfit', 'Inter', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* Header & Sticky Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: var(--transition);
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.scrolled .navbar {
    padding: 10px 5%;
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 55px;
    width: 55px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-logo:hover {
    transform: rotate(360deg);
}

.nav-titles {
    display: flex;
    flex-direction: column;
}

.nav-title-ar {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.2px;
}

.nav-title-en {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-actions {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.nav-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.app-install-item {
    display: none; /* Hidden on desktop */
}

.nav-action-label-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.nav-label-ar {
    color: var(--primary);
}

.dark-mode .nav-label-ar {
    color: var(--accent);
}

.nav-label-en {
    color: var(--accent);
}

.dark-mode .nav-label-en {
    color: var(--text-muted);
}

/* Dark mode overrides for header text contrast */
.dark-mode .nav-title-ar {
    color: var(--text-main);
}

.dark-mode .nav-link {
    color: var(--text-main);
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
    color: var(--accent);
}

/* Dark mode overrides for other elements */
.dark-mode .stat-number {
    color: var(--text-main);
}

.dark-mode .modal-body p {
    color: var(--text-main) !important;
}

.notif-status-val {
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 2px;
}

/* Visibility based on language class */
body.ltr-mode .nav-label-ar,
body.ltr-mode #notif-status-ar {
    display: none !important;
}

body:not(.ltr-mode) .nav-label-en,
body:not(.ltr-mode) #notif-status-en {
    display: none !important;
}

/* Theme Switcher Button */
.theme-toggle-btn {
    background: var(--border);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent);
    color: white;
}

.dark-mode .theme-toggle-btn {
    background: var(--primary);
    color: var(--accent);
}

.admin-nav-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3b68 100%);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-nav-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle-wrapper {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    background: linear-gradient(rgba(7, 27, 59, 0.85), rgba(7, 27, 59, 0.92)), url('../assets/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 50px;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-container {
    margin-bottom: 25px;
}

.hero-logo {
    height: 160px;
    width: 160px;
    border-radius: 50%;
    border: 5px solid var(--accent);
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(200, 164, 90, 0.3);
    animation: pulse 3s infinite alternate;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 35px;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(200, 164, 90, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* Page Section Base */
.page-section {
    padding-top: 100px;
}


.section {
    padding: 60px 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Home Section Layouts */
/* About Brief Section */
.section-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.section-box:hover {
    box-shadow: var(--shadow-lg);
}

.section-box-gold {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(200, 164, 90, 0.08), inset 0 0 20px rgba(200, 164, 90, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section-box-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, #ecd79c 50%, var(--accent) 100%);
}

.section-box-gold:hover {
    box-shadow: 0 20px 45px rgba(200, 164, 90, 0.15), inset 0 0 25px rgba(200, 164, 90, 0.06);
    transform: translateY(-2px);
}

.about-brief-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.about-brief-text:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.about-brief {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-brief-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-brief-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: justify;
}

.about-brief-image-container {
    position: relative;
}

.about-brief-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-card);
    transition: var(--transition);
}

.about-brief-img:hover {
    transform: scale(1.02);
}

.about-brief-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--primary);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-weight: 800;
    text-align: center;
}

/* Home Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Card Grids for News */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* News Card Youtube style */
.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    isolation: isolate;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-thumb-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
    border-top-left-radius: calc(var(--radius-md) - 1px);
    border-top-right-radius: calc(var(--radius-md) - 1px);
}

.news-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-thumb {
    transform: scale(1.08);
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.4rem;
}

.news-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8rem;
    line-height: 1.6;
}

.news-more-btn {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.news-more-btn:hover {
    color: var(--accent);
}

.news-more-btn i {
    transition: var(--transition);
}

.news-more-btn:hover i {
    transform: translateX(-5px);
}

/* Timeline Layout for Achievements Page */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    right: 50%;
    margin-right: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item-right {
    right: 0;
}

.timeline-item-left {
    right: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: -10px;
    background-color: var(--bg-page);
    border: 4px solid var(--accent);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item-right::after {
    left: auto;
    right: -10px;
}

.timeline-item:hover::after {
    background-color: var(--accent);
    transform: scale(1.3);
}

.timeline-card {
    padding: 25px;
    background-color: var(--bg-card);
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.timeline-img-wrapper {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

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

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

.timeline-date {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(200, 164, 90, 0.15);
    border-radius: var(--radius-sm);
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Admin / Add Timeline Button Container */
.timeline-header-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* Image Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--bg-card);
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 27, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* Members Section Style */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.member-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.member-img-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid var(--accent);
    padding: 5px;
    background: var(--bg-page);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-role {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.member-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    width: 100%;
}

/* About Section Details */
.about-vision {
    background: linear-gradient(135deg, var(--primary) 0%, #17335d 100%);
    color: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.about-vision::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 300px;
    height: 300px;
    background: rgba(200, 164, 90, 0.1);
    border-radius: 50%;
}

.about-vision-title {
    color: var(--accent) !important;
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-vision-p {
    font-size: 1.35rem;
    line-height: 1.8;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.about-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-history {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.about-history:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.about-history h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-history p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.about-objectives h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.objective-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.objective-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.objective-item i {
    font-size: 1.25rem;
    color: var(--accent);
}

/* About Message (Highlighted container) */
.about-message {
    background: var(--bg-card);
    border-right: 6px solid var(--accent);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
}

.about-message h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.about-message blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.8;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.value-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon {
    font-size: 2rem;
    color: var(--accent);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Us Section Page */
.contact-section-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.dark-mode .form-label {
    color: var(--accent);
}

.form-control {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(200, 164, 90, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Contact Info Side */
.contact-info-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-header h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

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

.contact-info-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.contact-info-item:hover .contact-info-icon {
    background: var(--accent);
    color: var(--primary);
}

.contact-info-text {
    display: flex;
    flex-direction: column;
}

.contact-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    word-break: break-all;
    max-width: 100%;
}

.dark-mode .contact-info-value {
    color: var(--accent);
}

/* Motivational Callout */
.motivational-box {
    background: linear-gradient(135deg, #0f274c 0%, var(--primary) 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-top: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.motivational-title {
    color: var(--accent) !important;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.motivational-text {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Admin Dashboard CSS */
.admin-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    min-height: 500px;
    margin-top: 20px;
}

.admin-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar-btn {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.admin-sidebar-btn:hover,
.admin-sidebar-btn.active {
    background: rgba(200, 164, 90, 0.15);
    color: var(--accent);
}

.admin-sidebar-btn.active {
    border-right: 4px solid var(--accent);
}

.admin-content-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.admin-panel-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: right;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 800;
    color: var(--primary);
    background: var(--bg-page);
}

.dark-mode .admin-table th {
    color: var(--accent);
}

.admin-table tr:hover {
    background: rgba(7, 27, 59, 0.02);
}

.dark-mode .admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-actions-cell {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background-color: #EF4444;
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-edit {
    background-color: #3B82F6;
    color: white;
}

.btn-edit:hover {
    background-color: #2563EB;
}

/* Modals (News detailed view, Admin entry forms, Image upload preview) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-dialog {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.open .modal-dialog {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.modal-close {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Image preview in form */
.img-upload-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
    background: var(--bg-page);
}

.img-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer Section */
footer {
    background: var(--primary);
    color: #FFFFFF;
    padding: 70px 5% 30px;
    margin-top: 80px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 50px;
}

.footer-about-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.footer-title-ar {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
}

.footer-title-en {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-col-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-social-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFFFFF;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: var(--accent);
}

/* Page Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    pointer-events: none;
}

.transition-overlay.active {
    transform: translateX(0);
}

/* Search Bar Wrapper */
.search-wrapper {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 14px 25px 14px 60px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(200, 164, 90, 0.2);
    }

    100% {
        box-shadow: 0 0 45px rgba(200, 164, 90, 0.5);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .about-brief,
    .about-details-grid,
    .contact-section-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-brief-image-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-brief-text {
        padding: 30px 20px;
    }

    .section-box {
        padding: 30px 20px;
    }

    .about-history {
        padding: 30px 20px;
    }

    .section-box-gold {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Layout Adjustments */
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .scrolled .navbar {
        padding: 8px 15px;
    }

    .nav-brand {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px;
        padding-left: 45px; /* Leave space for left-aligned hamburger menu in RTL */
        padding-right: 15px; /* Normal spacing on the right side */
    }

    body.ltr-mode .nav-brand {
        padding-left: 15px; /* Normal spacing on the left side */
        padding-right: 45px; /* Leave space for right-aligned hamburger menu in LTR */
    }

    .nav-logo {
        height: 42px;
        width: 42px;
        border-width: 1.5px;
    }

    .nav-titles {
        align-items: center;
        text-align: center;
    }

    .nav-title-ar {
        font-size: 1.1rem !important; /* Adjusted to fit full name on one line on mobile */
        white-space: nowrap;
        line-height: 1.3;
        letter-spacing: -0.1px;
    }

    .nav-title-en {
        font-size: 0.65rem !important; /* Adjusted to fit English name on one line on mobile */
        white-space: nowrap;
        line-height: 1.3;
        letter-spacing: 0.2px;
    }

    .nav-actions {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 20px; /* Spacing between columns on mobile */
        width: 100%;
        margin-top: 2px;
    }

    .theme-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        padding: 0 !important;
    }

    .app-install-item {
        display: flex; /* Visible on mobile next to theme toggle */
    }

    .contact-form-container,
    .contact-info-container {
        padding: 20px; /* Prevent horizontal overflow on mobile */
    }

    .menu-toggle-wrapper {
        position: absolute;
        top: 14px;
        left: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        cursor: pointer;
        color: var(--text-main);
        transition: var(--transition);
        user-select: none;
        z-index: 1001;
    }

    body.ltr-mode .menu-toggle-wrapper {
        left: auto;
        right: 15px;
    }

    .menu-toggle-wrapper:hover {
        color: var(--accent);
    }

    .menu-toggle-wrapper .menu-toggle {
        display: block;
        font-size: 1.5rem;
    }

    .menu-toggle-label {
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 5%;
        right: 5%;
        width: 90%;
        height: auto;
        max-height: calc(100vh - 100px);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        flex-direction: column;
        align-items: center;
        padding: 24px 16px;
        gap: 12px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        border-left: none;
    }

    .dark-mode .nav-links {
        background: rgba(15, 23, 42, 0.96);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered load delays for links */
    .nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.open li:nth-child(6) { transition-delay: 0.3s; }

    .nav-link {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--primary);
        display: block;
        padding: 10px 20px;
        border-radius: var(--radius-md);
        transition: var(--transition);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(200, 164, 90, 0.12);
        color: var(--accent);
    }

    .nav-link::after {
        display: none !important;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .timeline-container::after {
        right: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-right: 55px;
        padding-left: 0;
        right: 0 !important;
    }

    .timeline-item::after {
        right: 20px !important;
        left: auto !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .admin-sidebar-btn {
        white-space: nowrap;
    }

    /* Spacing and Readability Overrides for Mobile Devices */
    .page-section {
        padding-top: 140px !important;
    }


    .section, 
    [style*="padding: 80px"], 
    [style*="padding: 90px"], 
    [style*="padding: 60px"] {
        padding: 40px 20px 30px 20px !important;
    }

    body {
        font-weight: 500; /* Bolder rendering for Cairo on mobile */
    }

    p:not(.hero-subtitle):not(footer p):not(.about-vision-p):not(.motivational-text), 
    .news-desc, 
    .member-desc, 
    .timeline-desc,
    .about-brief-text p {
        color: #0F172A !important; /* Rich slate dark color instead of pale gray */
        font-weight: 500;
    }

    .dark-mode p:not(.hero-subtitle):not(footer p):not(.about-vision-p):not(.motivational-text), 
    .dark-mode .news-desc, 
    .dark-mode .member-desc, 
    .dark-mode .timeline-desc,
    .dark-mode .about-brief-text p {
        color: #E2E8F0 !important; /* Soft white in dark mode */
    }

    /* Mobile LTR layout overrides */
    body.ltr-mode .timeline-container::after {
        left: 30px;
        right: auto;
        margin-left: -2px;
        margin-right: 0;
    }
    
    body.ltr-mode .timeline-item {
        padding-left: 55px;
        padding-right: 0;
        left: 0 !important;
        right: auto !important;
    }
    
    body.ltr-mode .timeline-item::after {
        left: 20px !important;
        right: auto !important;
    }

    .nav-action-label-container {
        display: flex !important;
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        max-width: 65px;
    }

    .nav-action-item {
        gap: 4px !important;
    }

    .nav-actions {
        gap: 10px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

/* Language-based Brand Visibility Controls */
body.ltr-mode .nav-title-ar,
body.ltr-mode .footer-title-ar {
    display: none !important;
}
body:not(.ltr-mode) .nav-title-en,
body:not(.ltr-mode) .footer-title-en {
    display: none !important;
}

/* =========================================================================
   Mobile Swipe Navigation Hint Banner
   ========================================================================= */
.mobile-swipe-hint {
    display: none;
}

@media (max-width: 768px) {
    .mobile-swipe-hint {
        display: flex;
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%) translateY(120%);
        z-index: 1005;
        background: linear-gradient(135deg, var(--primary) 0%, #17335d 100%);
        border: 2px solid var(--accent);
        padding: 12px 24px;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
        cursor: pointer;
        width: max-content;
        max-width: 90%;
    }

    .mobile-swipe-hint.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .swipe-hint-body {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #FFFFFF;
        font-family: 'Cairo', sans-serif;
        font-weight: 700;
        font-size: 0.9rem;
        direction: rtl;
    }
    
    body.ltr-mode .swipe-hint-body {
        direction: ltr;
    }

    .swipe-arrow-icon {
        color: var(--accent);
        font-size: 1.15rem;
        display: flex;
        align-items: center;
    }

    /* Swipe animations */
    @keyframes swipeRight {
        0% { transform: translateX(0); opacity: 0.4; }
        50% { transform: translateX(6px); opacity: 1; }
        100% { transform: translateX(0); opacity: 0.4; }
    }
    
    @keyframes swipeLeft {
        0% { transform: translateX(0); opacity: 0.4; }
        50% { transform: translateX(-6px); opacity: 1; }
        100% { transform: translateX(0); opacity: 0.4; }
    }

    .animate-swipe-right {
        animation: swipeRight 1.5s infinite ease-in-out;
    }
    
    .animate-swipe-left {
        animation: swipeLeft 1.5s infinite ease-in-out;
    }
}

/* News Modal Controls & Hover States */
.font-size-btn:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border-color: var(--accent) !important;
}

#btn-print-news:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: var(--primary) !important;
}

#btn-copy-link:hover {
    background: #17335d !important;
    border-color: #17335d !important;
    color: #FFFFFF !important;
}

.news-action-toolbar .share-btn:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border-color: var(--accent) !important;
}