/* Global Variables */
:root {
    --primary-color: #c5a059;
    /* Gold/Premium feel */
    --secondary-color: #1a1a1a;
    /* Dark gray */
    --text-color: #333333;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-dark: #111111;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --spacing-section: 80px 0;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography Utilities */
.text-white {
    color: var(--white) !important;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #b08d45);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b08d45, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

/* Realisations & Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    background: var(--white);
}

.card-content h3 {
    color: #006400;
    margin-bottom: 15px;
}

.card-content p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Video Section */
.video-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.playlist-sidebar {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.playlist-item:hover,
.playlist-item.active {
    background: #f0f0f0;
}

.playlist-item .thumbnail {
    width: 80px;
    height: 60px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.playlist-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item .info h5 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.main-video-player {
    flex: 2;
    min-width: 300px;
}

.video-card {
    background: transparent;
    /* Changed from var(--white) to show logo */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Background White Layer */
.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: -2;
}

/* Blurred Logo Layer */
.video-card::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('../Logo/Logo ONG HNH Def.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    /* Reduced blur from 40px */
    opacity: 0.02;
    /* Extremely subtle background */
    z-index: -1;
    pointer-events: none;
}

.video-watermark,
.img-watermark {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 3cm;
    height: 3cm;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.0002;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 999;
}

.watermark-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.watermark-container img {
    display: block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper video {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.custom-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.control-btn {
    background: var(--white);
    border: 2px solid #006400;
    color: #006400;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.control-btn:hover {
    background: #006400;
    color: var(--white);
}

/* Sections */
.section {
    padding: var(--spacing-section);
}

.section-page {
    padding-top: 200px;
    min-height: 80vh;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.bg-ocean {
    background-image: url('../Logo/Ocean.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Sticky Navbar */
/* Sticky Navbar */
/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    height: auto;
    min-height: 80px;
}

.nav-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Removed 2-row styles */

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 110px;
    width: 110px;
    /* Matching height for a perfect circle */
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Reduced size */
    font-weight: 700;
    color: #006400;
    /* Dark Green */
    line-height: 1.1;
    white-space: nowrap;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #006400;
    /* Dark Green */
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-style: italic;
    /* Italic */
}

.logo-tagline::before {
    content: '"';
}

.logo-tagline::after {
    content: '"';
}


/* Search Bar Removed */

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    color: var(--secondary-color);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary-color);
}

.btn-contact:hover {
    background-color: var(--primary-color);
    color: var(--white);
    /* override ::after effect for button */
}

.btn-contact::after {
    display: none;
}

/* Language Dropdown */
.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: rgba(197, 160, 89, 0.1);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    min-width: 120px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 12px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(10px);
    transition: var(--transition);
}

.lang-dropdown.active .lang-dropdown-content {
    display: block;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.lang-btn.active {
    color: var(--primary-color);
    background-color: rgba(197, 160, 89, 0.05);
}

/* Logo Card */
.logo-card {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 100, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Update section padding (Logo 110px + padding ~ 130px) */
.section-page {
    padding-top: 140px;
    min-height: 80vh;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    /* Updated background image */
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('../Logo/back2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 180px;
    /* Push content down below navbar */
}

.hero-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    /* Reduced from 50px */
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    width: 350px;
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.hero-card:nth-child(2) {
    animation-delay: 1s;
}

.hero-card:nth-child(3) {
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-card h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0;
    font-weight: 600;
}

.hero-overlay {
    display: none;
    /* Removed separate overlay div, using gradient in background-image */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Qui sommes-nous */
/* Background managed by .bg-ocean class */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    background-color: #ffffff;
}

.about-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.values-list {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.values-list li {
    list-style-type: disc;
    margin-bottom: 10px;
    color: var(--text-color);
}


/* Actualites */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card img.fit-contain {
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.news-image-placeholder {
    height: 200px;
    background-color: #ddd;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.25rem;
    margin: 10px 0;
}

.date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    /* Push to bottom */
    color: var(--secondary-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--primary-color);
}

/* Realisations (Gallery) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    background-color: #ccc;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background-color: #444;
    /* Placeholder color */
    background-image: url('https://source.unsplash.com/random/400x400?business');
    /* Random image */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:hover::before {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Domaines d'actions */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover i {
    color: var(--white);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Partenaires */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    align-items: center;
    opacity: 0.7;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    filter: grayscale(100%);
    opacity: 0.002;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    color: var(--secondary-color);
    opacity: 1;
}

/* Contacts */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.social-logo {
    width: 56px;
    /* Approx 1.5cm */
    height: 56px;
    object-fit: contain;
    transition: var(--transition);
    display: inline-block;
    margin-top: 5px;
}

.social-logo:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #aaa;
    padding: 30px 0;
    text-align: center;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #aaa;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links a i.fa-facebook-f {
    color: #1877F2;
}


/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 100, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 100, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 100, 0, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* Skeleton Loader */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: wave 1.5s linear infinite;
    position: relative;
    overflow: hidden;
}

@keyframes wave {
    to {
        background-position-x: -200%;
    }
}

.skeleton-img {
    width: 100%;
    height: 200px;
    display: block;
}

.skeleton-text {
    width: 100%;
    height: 15px;
    margin-bottom: 10px;
}

.hidden-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-loaded {
    opacity: 1 !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 25px 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Image Reset */

/* Image Reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Removes bottom spacing */
}

/* RTL Adjustments */
[dir="rtl"] .nav-menu {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .logo-container {
    margin-left: 50px;
    margin-right: 0;
}

[dir="rtl"] .language-selector {
    right: auto;
    left: 5%;
}

/* Arrow flip for RTL? Usually standard dropdowns handle this, but for custom bg image: */
[dir="rtl"] .lang-dropdown {
    background-position: left .7em top 50%;
    padding-right: 12px;
    padding-left: 2.5em;
}

/* Responsive Design */

/* Tablet & Mobile Landscape (max-width: 992px) */
@media screen and (max-width: 992px) {
    .container {
        width: 95%;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* Navbar stack */
    .nav-container {
        gap: 20px;
    }

    .logo-img {
        height: 80px;
        /* Smaller logo */
    }

    .logo-name {
        font-size: 1.4rem;
    }

    .section-page {
        padding-top: 150px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        /* Match navbar height approx */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 100px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding-top: 30px;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-right {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
        gap: 0;
    }

    .menu-toggle {
        order: 3;
    }

    .logo-container {
        order: 1;
    }

    .nav-item {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        /* Push to right */
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding-top: 150px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cards {
        flex-direction: column;
        align-items: center;
    }

    .hero-card {
        width: 100%;
        max-width: 400px;
    }

    /* Re-order video section for mobile */
    .video-section {
        flex-direction: column-reverse;
        /* Player on top, playlist below */
    }

    .playlist-sidebar,
    .main-video-player {
        width: 100%;
        min-width: 0;
        /* Reset */
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .logo-tagline {
        display: none;
        /* Hide tagline on small screens if cluttered */
    }

    .language-selector {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        /* Changed to flex to center if needed */
        justify-content: center;
        margin-bottom: 15px;
        width: 100%;
        /* Full width container */
    }

    .lang-dropdown {
        width: auto;
        /* Or 100% if preferred */
        min-width: 150px;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 60px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .about-grid,
    .news-grid,
    .gallery-grid,
    .services-grid,
    .partners-grid,
    .domains-grid {
        grid-template-columns: 1fr;
    }
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.partner-category-title {
    color: #006400;
    margin-bottom: 30px;
    border-left: 5px solid #8fbc8f;
    padding-left: 15px;
}

.partner-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-card h4 {
    font-size: 1rem;
    color: #333;
}

.partner-placeholder {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #006400;
}

/* Domains Section */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.domain-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.domain-card:hover {
    transform: translateY(-5px);
}

.domain-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.domain-card:hover img {
    transform: scale(1.1);
}

.domain-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    color: var(--white);
}

.domain-overlay h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--white);
}

/* Text Content Utilities */
.text-justify {
    text-align: justify;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}