/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #00f7ff, #0055ff);
    min-height: 100vh;
    margin: 0;
    color: #333;
    padding-bottom: 150px; /* Prevent overlap with floating buttons */
}

/* Navbar */
.navbar {
    background: #87CEEB;
    padding: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.navbar-brand, .nav-link, .dropdown-item {
    color: #000 !important;
    font-weight: 600;
    transition: color 0.3s ease;
}
.navbar-brand {
    font-size: 1.6rem;
}
.nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.25rem;
}
.nav-link:hover {
    color: #333 !important;
}
.navbar-toggler {
    border-color: #ddd;
    padding: 0.5rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.dropdown-menu {
    background: #87ceeb;
    border: none;
}
.dropdown-item {
    color: #000 !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}
.dropdown-item:hover {
    background: #6bb6d4;
    color: #fff !important;
}

/* Breaking News */
.breaking-news {
    background: #ff0000;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 20; /* Ensure ticker stays above video */
}
.breaking-news-label {
    background: #000;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}
.breaking-news-ticker {
    flex-grow: 1;
    overflow: hidden;
}
.ticker-content {
    display: inline-block;
    animation: ticker 20s linear infinite;
}
.ticker-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0 2rem;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #000; /* Fallback background */
    overflow: hidden;
}

/* Main video wrapper */
.main-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

/* YouTube iframe for main video */
.main-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the frame without distortion */
}

/* Video title container (above main video) */
.video-title-container {
    background: rgba(0, 0, 0, 0.7); /* Match previous overlay background */
    padding: 10px 20px; /* Match previous overlay padding */
    border-radius: 5px;
    margin-left: 10px; /* Match previous left alignment */
    margin-bottom: 10px; /* Space between title and video */
    max-width: 80%; /* Prevent title from spanning entire width */
}

.video-title-container .video-title {
    color: #fff;
    font-size: 1.3rem; /* Match previous overlay size */
    margin-bottom: 5px;
    line-height: 1.2; /* Improve text wrapping */
}

.video-title-container small {
    color: #ccc;
    font-size: 0.85rem; /* Match previous overlay size */
}

/* Scrollable videos section */
.youtube-videos-hero.scrollable-videos {
    max-height: 400px; /* Limit height for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Space for scrollbar */
}

/* Individual recent video */
.youtube-videos-hero .youtube-video {
    margin-bottom: 15px;
}

.youtube-videos-hero .youtube-video iframe {
    width: 100%;
    height: 100px; /* Smaller height for recent videos */
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.youtube-videos-hero .youtube-video .video-title {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Custom scrollbar styling */
.scrollable-videos::-webkit-scrollbar {
    width: 5px;
}

.scrollable-videos::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.scrollable-videos::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

/* Remove old center-video and video-wrapper styles */
.youtube-video.center-video {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.video-wrapper {
    position: relative;
    padding-bottom: 0; /* Override to prevent conflict */
    height: auto;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}
.video-wrapper iframe {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    border: none;
}
.youtube-video.center-video .video-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 2px 0 0;
}
.youtube-video.center-video small {
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
    margin: 1px 0 0;
}

/* Responsive Video Sizing */
@media (max-width: 767.98px) {
    .main-video-wrapper {
        padding-top: 56.25%; /* Maintain aspect ratio */
    }
    .youtube-videos-hero .youtube-video iframe {
        height: 80px; /* Match existing mobile sizing */
    }
    .youtube-videos-hero.scrollable-videos {
        max-height: 240px; /* Match existing mobile sizing */
    }
    .video-title-container .video-title {
        font-size: 1.1rem; /* Match previous mobile overlay */
    }
    .video-title-container small {
        font-size: 0.75rem; /* Match previous mobile overlay */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .main-video-wrapper {
        padding-top: 56.25%; /* Maintain aspect ratio */
    }
    .youtube-videos-hero .youtube-video iframe {
        height: 80px; /* Match existing tablet sizing */
    }
    .youtube-videos-hero.scrollable-videos {
        max-height: 300px; /* Match existing tablet sizing */
    }
    .video-title-container .video-title {
        font-size: 1.2rem; /* Match previous tablet overlay */
    }
    .video-title-container small {
        font-size: 0.8rem; /* Match previous tablet overlay */
    }
}

@media (min-width: 992px) {
    .main-video-wrapper {
        padding-top: 56.25%; /* Maintain aspect ratio */
    }
    .youtube-videos-hero .youtube-video iframe {
        height: 100px; /* Match existing desktop sizing */
    }
    .youtube-videos-hero.scrollable-videos {
        max-height: 400px; /* Match existing desktop sizing */
    }
}

/* Welcome Heading */
.welcome-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: rgba(255, 0, 0, 0.8);
    padding: 2px 10px;
    border-radius: 4px;
    margin: 4px 0;
}

/* More News Button */
.more-news-btn {
    background: #007bff;
    border-color: #007bff;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.more-news-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: white;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.news-image {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}
.card-text {
    font-size: 0.9rem;
    color: #555;
}
.text-muted {
    font-size: 0.85rem;
}

/* Buttons */
.btn-primary {
    background: #8e44ad;
    border-color: #8e44ad;
}
.btn-primary:hover {
    background: #732d91;
    border-color: #732d91;
}
.btn-success {
    background: #27ae60;
    border-color: #27ae60;
}
.btn-success:hover {
    background: #219653;
    border-color: #219653;
}
.btn-warning {
    background: #f39c12;
    border-color: #f39c12;
}
.btn-warning:hover {
    background: #d68910;
    border-color: #d68910;
}
.btn-secondary {
    background: #7f8c8d;
    border-color: #7f8c8d;
}
.btn-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
}
.action-btn {
    width: 90px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

/* Floating Buttons */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: none;
}
.whatsapp-btn, .call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 60px; /* Equal width and height for circle */
    height: 60px; /* Equal width and height for circle */
    border-radius: 50%; /* Circular shape */
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: auto;
}
.whatsapp-btn {
    background: #25D366;
}
.call-btn {
    background: #007bff;
}
.whatsapp-btn:hover, .call-btn:hover {
    transform: scale(1.05);
}
.contact-icon {
    font-size: 24px;
    margin: 0; /* Remove margin to center icon in circle */
}

/* Footer */
/*footer {*/
/*    background: linear-gradient(to right, #670c3a, #130d00);*/
/*    color: white;*/
/*    padding: 1.5rem;*/
/*    text-align: center;*/
/*    font-weight: 500;*/
/*}*/

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0 !important;
    }
    .hero-section {
        min-height: 250px;
    }
    .welcome-heading {
        font-size: 1rem;
    }
    .news-image {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0 !important;
    }
    .hero-section {
        min-height: 200px;
    }
    .container {
        padding: 1rem;
    }
    .welcome-heading {
        font-size: 0.9rem;
    }
    .news-image {
        height: 120px;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 0.85rem;
    }
    .more-news-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    .contact-float {
        display: flex !important;
    }
    .whatsapp-btn, .call-btn {
        width: 50px; /* Smaller circle for mobile */
        height: 50px;
    }
    .contact-icon {
        font-size: 20px; /* Smaller icon for mobile */
    }
}