/* ===========================
   CSS Variables (Light Theme)
   =========================== */
:root {
    --primary: #017A9B;
    --primary-dark: #015f79;
    --primary-light: #01a0cc;
    --secondary: #00AF7B;
    --secondary-dark: #008c62;
    --secondary-light: #00d494;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --navbar-height: 72px;
    --font-ar: 'Noto Kufi Arabic', sans-serif;
    --font-en: 'Manrope', sans-serif;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
    font-family: var(--font-ar);
}

[dir="ltr"] body {
    font-family: var(--font-en);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===========================
   Container
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo img {
    height: 173px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(1, 122, 155, 0.08);
}

.nav-link i {
    font-size: 0.65rem;
    margin-inline-start: 0.25rem;
    transition: transform var(--transition);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.dropdown-menu li a:hover {
    background: rgba(1, 122, 155, 0.08);
    color: var(--primary);
}

.dropdown-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: 1rem;
}

.nav-btn {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
}

.nav-btn:hover {
    background: rgba(1, 122, 155, 0.08);
    color: var(--primary);
}

.login-btn {
    background: var(--primary);
    color: #fff !important;
}

.login-btn:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--navbar-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(1, 122, 155, 0.88) 0%,
        rgba(0, 175, 123, 0.78) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
}

.btn-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ===========================
   Affiliation Bar
   =========================== */
.affiliation-bar {
    background: var(--bg-alt);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.affiliation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.affiliation-content img {
    height: 36px;
    width: auto;
}

/* ===========================
   Project Cards Grid
   =========================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.project-card-logo {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.project-card-name h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.project-card-name span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.project-card-footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===========================
   Single Project Page
   =========================== */
.project-detail {
    padding-top: calc(var(--navbar-height) + 3rem);
}

.project-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.project-hero-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    object-fit: contain;
    flex-shrink: 0;
}

.project-hero-info h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.project-hero-info .project-short-name {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 500;
}

.project-body {
    max-width: 800px;
}

.project-body h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===========================
   About Page
   =========================== */
.page-header {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 2rem;
    background: var(--bg-alt);
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.page-header h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* Values & Goals Cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.value-card,
.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.value-card:hover,
.goal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.value-card i,
.goal-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.value-card h4,
.goal-card h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

/* Mission & Vision */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.mv-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.mv-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Activities */
.activities-list {
    margin-top: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.activity-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(1, 122, 155, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

/* ===========================
   Structure / Teams Page
   =========================== */
.team-section {
    margin-bottom: 3rem;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
}

.team-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.team-header h3 {
    font-size: 1.35rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    border: 3px solid;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.member-role {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-affiliation {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.member-project {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.member-email {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Role Badges */
.role-leader { background: rgba(1, 122, 155, 0.15); color: var(--primary); }
.role-project-lead { background: rgba(0, 175, 123, 0.15); color: var(--secondary-dark); }
.role-member { background: rgba(106, 44, 143, 0.1); color: #6A2C8F; }
.role-intern { background: rgba(247, 143, 30, 0.1); color: #F78F1E; }

/* ===========================
   Contact Page
   =========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 122, 155, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(1, 122, 155, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    margin-bottom: 0.25rem;
    color: var(--text);
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-affiliation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.srps-logo {
    height: 28px;
    width: auto;
    flex-shrink: 0;
}

.footer-col h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.badge-soon {
    background: var(--secondary);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===========================
   Homepage Sections
   =========================== */
.home-projects {
    background: var(--bg-alt);
}

.home-about-snippet {
    text-align: center;
}

.home-about-snippet p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
}

.home-resources {
    background: var(--bg-alt);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.resource-card h3 {
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===========================
   General Utilities
   =========================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===========================
   Responsive: Tablet
   =========================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================
   Responsive: Mobile
   =========================== */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        width: 300px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }

    [dir="rtl"] .nav-menu {
        transform: translateX(-100%);
    }

    .nav-menu.active {
        transform: translateX(0) !important;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: 100%;
        padding: 0 0 0 1rem;
        display: none;
        background: transparent;
    }

    [dir="rtl"] .dropdown-menu {
        padding: 0 1rem 0 0;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-actions {
        margin-inline-start: 0;
        flex-direction: column;
        margin-top: 1rem;
    }

    .nav-btn {
        justify-content: center;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Grids */
    .values-grid,
    .goals-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .project-hero {
        flex-direction: column;
        text-align: center;
    }

    .affiliation-content {
        flex-direction: column;
        text-align: center;
    }

    /* Project cards mobile adjustments */
    .project-card-logo {
        width: 100px;
        height: 100px;
    }
}

/* ===========================
   Responsive: Small Mobile
   =========================== */
@media (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Extra small mobile project logos */
    .project-card-logo {
        width: 90px;
        height: 90px;
    }
}

/* ===========================
   Large Desktop
   =========================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}
