/* ===================================
   Centre for Blue Economy Africa
   Main Stylesheet
   Blue/Green Ocean Theme
   =================================== */

:root {
    /* CBEA Brand Colors - Blue Economy Theme */
    --primary-navy: #0d47a1;
    --primary-blue: #1976d2;
    --primary-dark-blue: #01579b;
    --primary-teal: #00838f;
    --primary-cyan: #00acc1;
    --primary-yellow: #FFC107;

    /* Secondary Colors */
    --secondary-green: #4CAF50;
    --secondary-dark-green: #388e3c;
    --secondary-teal: #00bcd4;
    --secondary-light-blue: #e3f2fd;
    --secondary-ocean-blue: #006064;

    /* Status Colors */
    --status-good: #4CAF50;
    --status-warning: #FFC107;
    --status-critical: #F44336;
    --status-info: #2196F3;

    /* Accent Colors */
    --accent-orange: #ff9800;
    --accent-deep-orange: #f57c00;
    --accent-red: #c62828;
    --accent-green: #2e7d32;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E0E6ED;
    --dark-gray: #5E6C84;
    --text-dark: #172B4D;
    --text-light: #6B778C;
    --text-medium: #555555;

    /* Background Colors */
    --bg-light: #fafafa;
    --bg-very-light: #f5f9ff;

    /* Shadows */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Global Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #fafafa 0%, #f5f9ff 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark-blue);
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem 0;
}

.nav-brand i {
    font-size: 1.75rem;
}

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

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
}

/* ===================================
   Main Content
   =================================== */

.main-content {
    min-height: calc(100vh - 80px);
}

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

.container-fluid {
    width: 100%;
    padding: 2rem;
}

/* ===================================
   Page Header
   =================================== */

.page-header {
    position: relative;
    background:
        linear-gradient(135deg, rgba(13, 71, 161, 0.85), rgba(0, 131, 143, 0.85)),
        url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-header p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Hero Section (Homepage)
   =================================== */

.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(13, 71, 161, 0.85), rgba(25, 118, 210, 0.80)),
        url('https://images.unsplash.com/photo-1505142468610-359e7d316be0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 172, 193, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(25, 118, 210, 0.15) 0%, transparent 50%);
    animation: wave 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.4s ease;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--secondary-green);
    color: var(--white);
}

.btn-secondary:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===================================
   Cards & Grids
   =================================== */

.stats-overview,
.features-section,
.cta-section {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(25, 118, 210, 0.25);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-medium);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.stat-card.critical {
    border-left-color: var(--status-critical);
}

.stat-card.critical i {
    color: var(--status-critical);
}

.stat-card.warning {
    border-left-color: var(--status-warning);
}

.stat-card.warning i {
    color: var(--status-warning);
}

.stat-card.positive,
.stat-card.good {
    border-left-color: var(--status-good);
}

.stat-card.positive i,
.stat-card.good i {
    color: var(--status-good);
}

.stat-card.info {
    border-left-color: var(--status-info);
}

.stat-card.info i {
    color: var(--status-info);
}

.trend {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trend.up {
    background: rgba(76, 175, 80, 0.1);
    color: var(--status-good);
}

.trend.down {
    background: rgba(244, 67, 54, 0.1);
    color: var(--status-critical);
}

/* ===================================
   Features Grid
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(to bottom, #ffffff 0%, #f5f9ff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(25, 118, 210, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.2);
    transform: translateY(-8px);
    border-color: rgba(25, 118, 210, 0.3);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    transition: var(--transition-fast);
}

.feature-link:hover {
    transform: translateX(5px);
}

/* ===================================
   Forms
   =================================== */

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.1);
}

/* ===================================
   Tables
   =================================== */

.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-dark-blue), var(--primary-blue));
    color: var(--white);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.data-table tbody tr:hover {
    background: var(--light-gray);
}

/* ===================================
   Badges & Status
   =================================== */

.severity-badge,
.status-badge,
.quality-badge,
.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.high,
.status-badge.critical,
.quality-badge.poor,
.priority-badge.high {
    background: rgba(244, 67, 54, 0.1);
    color: var(--status-critical);
}

.severity-badge.medium,
.status-badge.warning,
.quality-badge.moderate,
.priority-badge.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #F57C00;
}

.severity-badge.low,
.status-badge.good,
.quality-badge.good,
.priority-badge.low {
    background: rgba(76, 175, 80, 0.1);
    color: var(--status-good);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-blue);
}

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

/* ===================================
   Mobile Navigation
   =================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .stats-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

/* Mobile Styles (Below 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand {
        font-size: 1rem;
        gap: 0.5rem;
    }

    .nav-brand img {
        height: 40px !important;
    }

    .nav-brand span {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: linear-gradient(180deg, var(--primary-navy), var(--primary-dark-blue));
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-large);
        overflow-y: auto;
        z-index: 999;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

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

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    /* Stats & Features */
    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card i {
        font-size: 2.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    /* Container */
    .container {
        padding: 1rem;
    }

    .container-fluid {
        padding: 1rem;
    }

    /* Page Header */
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    /* Buttons */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-bottom {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Sections */
    .stats-overview,
    .features-section,
    .cta-section {
        padding: 2rem 0;
    }
}

/* Small Mobile (Below 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   Section with Image Layout
   =================================== */

.section-with-image {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.section-with-image .section-image {
    flex: 0 0 40%;
}

.section-with-image .section-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

.section-with-image .section-text {
    flex: 1;
}

@media (max-width: 768px) {
    .section-with-image {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-with-image .section-image {
        flex: 1;
        width: 100%;
    }
}

/* ===================================
   Interactive Embedded Viewers Section
   =================================== */

.interactive-viewers-section {
    margin: 3rem 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.interactive-viewers-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-navy);
    text-align: center;
}

.interactive-viewers-section > .viewer-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.embedded-viewer-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.viewer-tab-btn {
    padding: 0.85rem 1.75rem;
    background: linear-gradient(to bottom, var(--white), var(--light-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-small);
}

.viewer-tab-btn i {
    font-size: 1.25rem;
}

.viewer-tab-btn:hover {
    background: var(--secondary-light-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.viewer-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: var(--white);
    border-color: var(--primary-navy);
    box-shadow: var(--shadow-medium);
}

.embedded-viewer {
    display: none;
    animation: fadeIn 0.4s ease;
}

.embedded-viewer.active {
    display: block;
}

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

.viewer-header {
    background: linear-gradient(135deg, var(--secondary-light-blue), var(--light-gray));
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    border-left: 4px solid var(--primary-blue);
}

.viewer-header h4 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.viewer-header h4 i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.viewer-header p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 700px;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 0;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.viewer-footer {
    background: linear-gradient(to right, var(--secondary-light-blue), var(--light-gray));
    padding: 1.25rem;
    border-radius: 0 0 10px 10px;
    border-left: 4px solid var(--secondary-green);
}

.viewer-footer p {
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.viewer-footer i {
    color: var(--secondary-green);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.viewer-footer strong {
    color: var(--primary-navy);
}

/* ===================================
   Embedded Satellite Section
   =================================== */

.embedded-satellite-section {
    margin: 3rem 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.embedded-satellite-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-navy);
    text-align: center;
}

.embedded-satellite-section > .viewer-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.satellite-viewer-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sat-tab {
    padding: 0.75rem 1.5rem;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sat-tab:hover {
    background: var(--secondary-light-blue);
    border-color: var(--primary-blue);
}

.sat-tab.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: var(--white);
    border-color: var(--primary-navy);
}

.ghana-satellite-map {
    width: 100%;
    height: 650px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    margin-bottom: 2rem;
}

.satellite-info-panel {
    background: var(--secondary-light-blue);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.satellite-info-panel h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.satellite-info-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.satellite-info-panel li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.satellite-info-panel i {
    color: var(--primary-blue);
    width: 20px;
}

/* ===================================
   Satellite Viewers & Platforms
   =================================== */

.live-viewers {
    margin: 3rem 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.live-viewers h3 {
    margin-bottom: 1rem;
    color: var(--primary-navy);
    text-align: center;
}

.live-viewers > .viewer-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.satellite-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.platform-card {
    background: linear-gradient(to bottom, var(--white), var(--light-gray));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-blue);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.platform-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.platform-card h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    text-align: center;
}

.platform-card > p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.platform-features span {
    background: var(--secondary-light-blue);
    color: var(--primary-blue);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.platform-features i {
    font-size: 0.75rem;
}

.btn-launch {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.viewer-info-box {
    background: var(--secondary-light-blue);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    margin-top: 3rem;
}

.viewer-info-box h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.viewer-info-box p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
}

.viewer-info-box i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

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

@media (max-width: 768px) {
    /* Interactive Viewers Mobile */
    .interactive-viewers-section {
        padding: 1.5rem;
    }

    .embedded-viewer-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .viewer-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .viewer-header {
        padding: 1.25rem;
    }

    .viewer-header h4 {
        font-size: 1.1rem;
    }

    .viewer-header p {
        font-size: 0.9rem;
    }

    .iframe-container {
        height: 500px;
    }

    .viewer-footer {
        padding: 1rem;
    }

    .viewer-footer p {
        font-size: 0.9rem;
    }

    /* Embedded Satellite Section Mobile */
    .embedded-satellite-section {
        padding: 1.5rem;
    }

    .ghana-satellite-map {
        height: 450px;
    }

    .satellite-viewer-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sat-tab {
        width: 100%;
        text-align: center;
    }

    .satellite-info-panel {
        padding: 1.25rem;
    }

    .live-viewers {
        padding: 1.5rem;
    }

    .satellite-platforms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .platform-card {
        padding: 1.5rem;
    }

    .platform-icon {
        width: 70px;
        height: 70px;
    }

    .platform-icon i {
        font-size: 2rem;
    }

    .viewer-info-box {
        padding: 1.5rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.text-danger { color: var(--status-critical) !important; }
.text-warning { color: var(--status-warning) !important; }
.text-success { color: var(--status-good) !important; }
.text-info { color: var(--status-info) !important; }
