/* ===========================================
   LEARNMAP - MAIN STYLESHEET
   =========================================== */

/* ===========================================
   RESET AND BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Smooth transition for all interactive elements */
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f5f2ed;
    color: #22334f;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

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

/* ===========================================
   NAVIGATION BAR
   =========================================== */
.navbar {
    background-color: #f5f2ed;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05) rotate(3deg);
}

.logo-text {
    font-size: 1rem;
    font-weight: bold;
    color: #c89a66;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #22334f;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #c89a66, #c89a66);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #c89a66;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

/* Buttons */
.btn-secondary {
    background: transparent;
    border: none;
    color: #22334f;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-secondary:hover {
    color: #c89a66;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #c89a66, #c89a66);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(200, 154, 102, 0.5);
}

.btn-dark-mode {
    background-color: #fff;
    color: #22334f;
    border: 1px solid #ddd;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-dark-mode:hover {
    background-color: #f5f2ed;
    transform: translateY(-2px);
}

/* Dropdowns */
.nav-menu li {
    position: relative;
    white-space: nowrap;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 0.5rem 0;
    z-index: 1100;
    border: 1px solid #f0f0f0;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    top: -0.5rem;
    right: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 0.5rem 0;
    border: 1px solid #f0f0f0;
}

.nav-menu li:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li:hover > .dropdown-submenu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
    position: relative;
}

.dropdown-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #22334f;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s, padding-right 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f5f2ed;
    color: #c89a66;
    padding-right: 1.8rem;
}

.dropdown-menu li.has-submenu > a::before {
    content: '◀';
    font-size: 0.7rem;
    margin-left: 10px;
    color: #c89a66;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #152238 40%, #1e3a5f 70%, #2d4a75 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

/* Hero Background Animations */
.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -150px;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
    position: relative;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0px 0px 5px hsl(0, 0%, 0%);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #d4a574;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0px 0px 5px hsl(0, 0%, 0%);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-hero {
    background: linear-gradient(135deg, #d4a574, #c49560);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    margin: 2%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.5);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    background: #0f1224;
    color: white;
    overflow: hidden;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-right: 2rem;
}

/* --- HERO IMAGES --- */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: bottom left;
    animation: growToBottomLeft 3s ease-in-out forwards;
    will-change: transform;
    transition: transform 2s ease;
}

.hero-img:hover {
    transform: scale(1.03);
}

/* The Main Hero Image with Desktop Styles */
.hero2-img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    margin-right: 20rem; /* Default Desktop Spacing */
}

@keyframes growToBottomLeft {
    0% { transform: scale(1) translate(-50%, 50%); opacity: 1; }
    100% { transform: scale(5) translate(-87%, 70%); opacity: 1; }
}

/* ===========================================
   AWARENESS SECTION (Fields)
   =========================================== */
.awareness-section {
    padding: 5rem 0;
    background-color: #f5f2ed;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #22334f;
    margin-bottom: 3.5rem;
    font-weight: 700;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.fields-grid2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.field-card {
    background: linear-gradient(135deg, #2d3e5f, #1e2f47);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.field-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.field-icon {
    width: 90px;
    height: 90px;
    background: rgba(200, 154, 102, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c89a66;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.field-card:hover .field-icon {
    transform: scale(1.15) rotate(5deg);
    background-color: rgba(200, 154, 102, 0.25);
}

.field-card h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.field-card:hover h3 {
    transform: translateY(-3px);
    color: #c89a66;
}

.field-subtitle {
    color: #d4a574;
    font-size: 0.95rem;
    margin: 0;
}

.btn-field {
    background: linear-gradient(135deg, #c89a66, #c89a66);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-field:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(200, 154, 102, 0.4);
}

/* ===========================================
   RECOMMENDATION & VIDEO SECTION
   =========================================== */
.recommendation-section {
    padding: 5rem 0;
    background: #f5f2ed;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.video-card {
    background: linear-gradient(135deg, #2d3e5f, #1e2f47);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.35s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.video-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #c89a66, #c89a66);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.video-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.video-player {
    background: #0a1628;
    border-radius: 15px;
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(200, 154, 102, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-player:hover .play-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(200, 154, 102, 1);
}

.video-overlay { width: 100%; height: 100%; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; }

.video-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    margin-bottom: 1rem;
}

.control-btn {
    background: rgba(212, 165, 116, 0.3);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.15);
    background: rgba(212, 165, 116, 0.6);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, #c89a66, #c89a66);
}

/* ===========================================
   CHARTS SECTION
   =========================================== */
.charts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chart-card h4 {
    color: #22334f;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    gap: 1rem;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #c49560, #d4a574);
    border-radius: 8px 8px 0 0;
    transition: height 0.5s, transform 0.3s ease;
}

.bar-group:hover .bar {
    transform: scaleY(1.1);
}

.bar-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.bar-group:hover .bar-label {
    color: #c89a66;
    font-weight: 600;
}

.btn-apply {
    background: linear-gradient(135deg, #c89a66, #c89a66);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-apply:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(200, 154, 102, 0.5);
}

/* ===========================================
   NEWS SECTION
   =========================================== */
.news-section {
    padding: 5rem 0;
    background: #f5f2ed;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.news-filters { display: flex; gap: 1rem; }

.filter-btn {
    background: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #22334f;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, #c89a66, #c89a66);
    color: white;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(200, 154, 102, 0.5);
}

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

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, #2d3e5f, #1e2f47);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-icon { 
    width: 100%; 
    height: 100%; /* Ensures it fills the vertical space too if needed */
    position: relative;
    transform: scale(3);
    
    /* Add these 3 lines to center the image: */
    display: flex;
    justify-content: center; /* Horizontal Center */
    align-items: center;     /* Vertical Center */
}
.news-content { padding: 1.5rem; }

.news-category {
    display: inline-block;
    background: rgba(200, 154, 102, 0.15);
    color: #c89a66;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: all 0.25s ease;
}

.news-category:hover {
    background: rgba(200, 154, 102, 0.3);
    transform: scale(1.05);
}

.news-content h3 {
    color: #22334f;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card:hover .news-content h3 {
    color: #c89a66;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.news-tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: #22334f;
    padding: 3rem 0 1.5rem 0;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #d4a574;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-section:hover h4 { transform: translateX(5px); }

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    line-height: 1.6;
}

.values-list, .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.values-list li {
    color: rgba(255, 255, 255, 0.8);
    padding-right: 1rem;
    position: relative;
    transition: all 0.25s ease;
    cursor: pointer;
}

.values-list li:hover {
    color: #c89a66;
    transform: translateX(5px);
}

.values-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #c89a66;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #d4a574;
    padding-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===========================================
   IMAGE REPLACEMENT STYLES
   =========================================== */
.globe-center img, .student-avatar img, .field-icon img, .news-icon img, .play-icon img, .control-btn img, .nav-arrow img, .nav-arrow-small img, .map-marker img {
    object-fit: contain;
}

/* ===========================================
   MOBILE NAVIGATION & RESPONSIVENESS
   =========================================== */

/* Hamburger Button - Shown on screens <= 950px */
.hamburger {
    display: none; 
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #c89a66;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Mobile Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active { opacity: 1; visibility: visible; }

/* --- LARGE TABLET / SMALL LAPTOP (Up to 1024px) --- */
@media (max-width: 1024px) {
    .fields-grid { grid-template-columns: repeat(3, 1fr); }
    .recommendation-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-text { display: none; }
    .nav-menu { gap: 1.5rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

/* --- TABLET / MOBILE MENU ACTIVATION (Up to 950px) --- */
@media (max-width: 950px) {
    .hamburger { display: flex !important; }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 320px;
        background: linear-gradient(180deg, #22334f 0%, #1e3a5f 100%);
        flex-direction: column;
        padding: 100px 0 2rem 0;
        gap: 0;
        overflow-y: auto;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        align-items: stretch;
        z-index: 1000;
    }

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

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu > li > a {
        padding: 1rem 1.5rem;
        border-radius: 0;
        color: #f5f2ed;
        display: block;
    }

    .dropdown-menu, .dropdown-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        display: block; /* Important for height transition */
    }

    .nav-menu > li.active > .dropdown-menu,
    .has-submenu.active > .dropdown-submenu {
        max-height: 1000px;
    }

    .dropdown-menu li a {
        padding: 0.8rem 2rem;
        color: #f5f2ed;
    }
}

/* --- MOBILE / TABLET (Up to 768px) --- */
@media (max-width: 768px) {
    /* 1. Hero Image Mobile Fix (Guaranteed to Center) */
    .hero2-img {
        margin: 0 auto; 
        margin-top: 10rem;
        width: 100%;
        max-width: 400px; 
        height: 800px;
        display: block; 
        position: absolute; /* Resets absolute positioning from desktop */
        filter: brightness(0.5);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        margin-right: 0;
    }
    
    .hero-subtitle { font-size: 1rem; }
    
    .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .fields-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    
    /* Adjusting animations for mobile */
    @keyframes growToBottomLeft {
        0% { transform: scale(0.5) translate(0, 0); opacity: 1; }
        100% { transform: scale(2) translate(-50%, 50%); opacity: 0.95; }
    }
}

/* --- SMALL PHONES (Up to 480px) --- */
@media (max-width: 480px) {
    .nav-container { padding: 0.8rem 1rem; }
    .logo-img { height: 40px; }
    .nav-menu { width: 280px; }
    .hero-title { font-size: 2.5rem; }
    .fields-grid { grid-template-columns: 1fr; }
    .footer-content { padding: 0 1rem 1rem 1rem; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
/* جعل بطاقات الأخبار/القرارات كروابط بالكامل */
.news-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:link,
.news-card:visited {
    color: inherit;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.news-card:hover .news-content h3 {
    color: #c89a66;
}

.news-card:hover .news-category {
    background: rgba(200, 154, 102, 0.3);
    transform: scale(1.05);
}