/* ============================================
   TANZANIA SAFARI CHANNEL - CUSTOM CSS
   ============================================ */

:root {
    --primary-green: #2D5A27;
    --secondary-green: #4A7C42;
    --light-green: #8BC34A;
    --accent-yellow: #FFC107;
    --accent-blue: #2196F3;
    --dark-blue: #1565C0;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #343A40;
    --text-dark: #212529;
    --text-light: #6C757D;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
}

/* UI Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(45, 90, 39, 0.15);
}

.btn {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

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

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

.form-control {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.15);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.navbar > .container {
    position: relative;
    z-index: 2;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(45, 90, 39, 0.98);
}

.navbar.scrolled::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 60%, transparent 100%);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
    padding: 0.25rem 0;
    gap: 0.5rem;
    position: relative;
}

.navbar-brand:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.navbar-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.04);
}

.logo-divider {
    color: var(--white);
    font-weight: 300;
    font-size: 3rem;
    opacity: 0.7;
    line-height: 1;
    margin: 0 0.6rem;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.6rem 1.1rem !important;
    position: relative;
    font-size: 1.05rem;
    border-radius: 25px;
    transition: var(--transition);
    margin: 0 0.15rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-yellow) !important;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-yellow) !important;
    font-weight: 600;
}

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

.watch-live-btn {
    background: var(--accent-blue) !important;
    border-radius: 25px;
    padding: 0.6rem 1.6rem !important;
    font-weight: 600;
    animation: pulse 2s infinite;
    margin-left: 0.5rem;
}

.watch-live-btn:hover {
    background: var(--dark-blue) !important;
    color: var(--white) !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
}

.small-pulse {
    font-size: 0.5rem;
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 92vh;
    min-height: 580px;
    max-height: 780px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero-slider .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 650px;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
    color: var(--white);
}

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

.btn-watch-live {
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-watch-live:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(33, 150, 243, 0.4);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Ad Posters */
.ad-poster {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.ad-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.ad-poster:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ad-poster:hover img {
    transform: scale(1.05);
}

/* Live Preview Section */
.live-preview-section {
    background: var(--primary-green);
    position: relative;
    padding: 2rem 0;
}

.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.live-dot {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

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

.video-placeholder {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition);
}

.video-placeholder:hover .play-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.btn-play {
    width: 70px;
    height: 70px;
    background: var(--accent-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-play:hover {
    background: var(--dark-blue);
    transform: scale(1.1);
    color: var(--white);
}

.play-label {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.live-info {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-info h3 {
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.live-title {
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.live-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.live-meta p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.live-meta i {
    color: var(--accent-blue);
}

.live-info .btn-primary {
    border-radius: 25px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

/* News Cards */
.news-card {
    overflow: hidden;
    height: 100%;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.news-category.wildlife {
    background: var(--primary-green);
}

.news-category.conservation {
    background: var(--accent-blue);
}

.news-category.tourism {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.news-category.environment {
    background: var(--secondary-green);
}

.news-category.education {
    background: var(--dark-blue);
}

.news-content {
    background: var(--white);
}

.news-title {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--primary-green);
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: var(--accent-blue);
    transform: translateX(3px);
}

/* News Pagination */
#newsPagination .pagination {
    gap: 0.35rem;
}

#newsPagination .page-link {
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: var(--primary-green);
    font-weight: 600;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#newsPagination .page-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#newsPagination .page-item.active .page-link {
    background: var(--primary-green);
    color: var(--white);
}

#newsPagination .page-item.disabled .page-link {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Program Cards */
.program-card {
    overflow: hidden;
    height: 100%;
}

.program-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--dark-gray);
}

.program-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.program-content {
    background: var(--white);
}

.program-badge {
    display: inline-flex;
    align-items: center;
    background: #ff0000;
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.program-title {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.4;
}

.program-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Cards */
.featured-card {
    overflow: hidden;
    height: 100%;
}

.featured-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    background: var(--white);
}

.featured-title {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.featured-card:hover .featured-title {
    color: var(--primary-green);
}

.featured-excerpt {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.stat-item {
    padding: 2rem;
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a2a2a, var(--dark-gray));
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-title {
    color: var(--accent-yellow);
    margin-bottom: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
    border-color: var(--accent-yellow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent-yellow);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.border-light {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-yellow);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .video-placeholder {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .btn-outline-light {
        margin-left: 0 !important;
        margin-top: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

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

/* Contact Page */
.contact-section {
    background: linear-gradient(180deg, var(--light-gray), var(--white));
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-info-item h6 {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.contact-info-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
}

/* Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.page-breadcrumb {
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
}

.breadcrumb-item a {
    color: var(--accent-yellow);
}

.breadcrumb-item.active {
    color: var(--white);
    opacity: 0.9;
}

/* About Page */
.mission-vision-card {
    padding: 2rem;
    height: 100%;
}

.mission-vision-card i {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.team-card {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.team-image {
    height: 250px;
    overflow: hidden;
}

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

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* News Page */
.news-filter {
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

/* Watch Live Page */
.live-player-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.live-player-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.schedule-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-green);
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 0 10px 10px 0;
    transition: var(--transition);
}

.schedule-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.schedule-time {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.schedule-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0.5rem 0;
}

.schedule-description {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Admin Panel Styles */
.admin-sidebar {
    background: var(--dark-gray);
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-green);
    color: var(--white) !important;
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
}

.admin-content {
    padding: 2rem;
}

.admin-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.admin-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    color: var(--accent-yellow);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    opacity: 0.9;
}

.table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-green);
    color: var(--white);
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo i {
    font-size: 3rem;
    color: var(--primary-green);
}

.login-card .logo h3 {
    color: var(--primary-green);
    margin-top: 0.5rem;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

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

.btn-primary:hover {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
}

.alert {
    border-radius: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Improved focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* ============================================
   PROFESSIONAL GEOGRAPHIC & TOURISM ENHANCEMENTS
   ============================================ */

/* Section Label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent-blue);
}

/* Destinations Section */
.destination-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

.destination-card:hover img {
    transform: scale(1.08);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--white);
}

.destination-tag {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.destination-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.destination-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.destination-link {
    color: var(--accent-yellow);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.destination-link:hover {
    color: var(--white);
    gap: 0.75rem;
}

/* Conservation & Impact Section */
.impact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.impact-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

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

.impact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.impact-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.impact-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Wildlife Guide */
.wildlife-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.wildlife-card:hover img {
    transform: scale(1.1);
}

.wildlife-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

.wildlife-info h5 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.25rem;
}

.wildlife-info span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 120px;
    opacity: 0.5;
}

.cta-section .section-title {
    color: var(--white);
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.cta-section .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* Section Label Light Variant */
.section-label-light {
    color: var(--accent-yellow);
}

.section-label-light::before {
    background: var(--accent-yellow);
}

/* Page Header Improvements */
.page-header {
    padding-top: 160px;
    padding-bottom: 5rem;
    margin-bottom: 0;
    position: relative;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1516426122078-c23e76319801?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 650px;
}

.page-breadcrumb .breadcrumb-item a {
    color: var(--accent-yellow);
}

.page-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}

/* About Page Story */
.story-section img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.story-list {
    list-style: none;
    padding: 0;
}

.story-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.story-list li i {
    color: var(--primary-green);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* Map Section */
.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* Watch Live Schedule */
.schedule-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.schedule-item {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
    background: var(--light-gray);
}

.schedule-item.active {
    background: var(--primary-green);
    color: var(--white);
}

.schedule-item.active .schedule-time {
    color: var(--accent-yellow);
}

.schedule-item.active .schedule-title,
.schedule-item.active .schedule-description {
    color: var(--white);
}

/* Newsletter */
.newsletter-section {
    background: var(--dark-gray);
    color: var(--white);
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.9rem 1.5rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.9rem 1.75rem;
}

/* Responsive Enhancements */
@media (max-width: 991px) {
    .page-header {
        padding-top: 120px;
        padding-bottom: 3rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .destination-card {
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 1.85rem;
    }
    
    .destination-card {
        min-height: 320px;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 50px;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   DARK MODE & THEME TOGGLES
   ============================================ */

body[data-theme="dark"] {
    --white: #121212;
    --light-gray: #1E1E1E;
    --dark-gray: #2D2D2D;
    --text-dark: #E0E0E0;
    --text-light: #A0A0A0;
    --glass-bg: rgba(30, 30, 30, 0.95);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

body[data-theme="dark"] .footer,
body[data-theme="dark"] .navbar,
body[data-theme="dark"] .page-header,
body[data-theme="dark"] .hero-section,
body[data-theme="dark"] .newsletter-section,
body[data-theme="dark"] .cta-section {
    color: var(--text-dark);
}

body[data-theme="dark"] .glass-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .news-card,
body[data-theme="dark"] .program-card,
body[data-theme="dark"] .mission-vision-card {
    background: var(--glass-bg);
}

body[data-theme="dark"] .form-control {
    background: var(--light-gray);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .form-control::placeholder {
    color: var(--text-light);
}

body[data-theme="dark"] .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="dark"] .schedule-item {
    background: var(--light-gray);
    color: var(--text-dark);
}

body[data-theme="dark"] .schedule-item.active {
    background: var(--primary-green);
    color: var(--white);
}

body[data-theme="dark"] .live-info-bar,
body[data-theme="dark"] .share-bar {
    background: var(--glass-bg);
}

/* Theme Toggle Buttons */
.theme-toggle,
.lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
    .navbar-controls {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .theme-toggle,
    .lang-toggle {
        margin-left: 0;
    }
}

/* Smooth theme transition */
body, .glass-card, .form-control, .news-card, .program-card, .footer, .navbar {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
