/* Modern Radio Website - Red, White & Green Theme */

:root {
    --radio-red: #dc3545;
    --radio-white: #ffffff;
    --radio-green: #28a745;
    --radio-dark: #1a1a1a;
}

body {
    font-family: 'DM Sans', sans-serif;
    padding-bottom: 120px;
    background: var(--radio-white);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--radio-white);
}

.spinner {
    position: relative;
}

.spinner:before {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--radio-red);
    border-radius: 50%;
    animation: spinner .8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Modern Navbar */
.navbar {
    background: rgba(139, 0, 0, 0.55) !important; /* dark red, semi-transparent */
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(139, 0, 0, 0.7) !important; /* slightly more opaque when scrolled */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link {
    color: var(--radio-white) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--radio-dark) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--radio-red);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--radio-red) 0%, #c82333 100%);
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(40, 167, 69, 0.15) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-main-image {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-decoration-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hero-decoration-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(40, 167, 69, 0.15);
    border-radius: 50%;
    z-index: 1;
}

/* Section Headers */
.section-header {
    position: relative;
    display: inline-block;
}

.section-header::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--radio-green);
    border-radius: 2px;
}

/* Modern Cards */
.modern-card {
    background: var(--radio-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.15);
    border-color: var(--radio-red);
}

/* Program Cards */
.program-item {
    background: var(--radio-white);
    border-left: 4px solid var(--radio-red);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.program-item:nth-child(even) {
    background: #f8f9fa;
    border-left-color: var(--radio-green);
}

.program-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Team Cards */
.team-card {
    background: var(--radio-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--radio-red);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(220, 53, 69, 0.2);
    border-top-color: var(--radio-green);
}

.team-card img {
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

/* Leader cards (Our Leaders section) */
.leader-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.leader-image-wrapper {
    flex: 0 0 150px;
    border: 0px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.leader-content {
    flex: 1;
    font-size: 14px;
}

.leader-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.leader-text {
    line-height: 1.5;
}

/* Modern Audio Player */
.sticky-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.7) 0%, rgba(110, 0, 0, 0.7) 100%);
    box-shadow: 0 -5px 24px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    padding: 20px 0;
    border-top: 2px solid rgba(40, 167, 69, 0.5);
}

.audio-player-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-player-info {
    flex: 1;
}

.audio-player-title {
    font-weight: 700;
    color: var(--radio-red);
    margin: 0;
    font-size: 16px;
}

.audio-player-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.audio-player-controls {
    flex: 2;
}

.custom-audio-player {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background: var(--radio-white);
    outline: none;
}

.custom-audio-player::-webkit-media-controls-panel {
    background-color: var(--radio-white);
    border-radius: 25px;
}

.custom-audio-player::-webkit-media-controls-play-button,
.custom-audio-player::-webkit-media-controls-pause-button {
    background-color: var(--radio-red);
    border-radius: 50%;
}

.custom-audio-player::-webkit-media-controls-timeline {
    background-color: #e9ecef;
    border-radius: 10px;
}

.audio-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--radio-green);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Buttons */
.btn-modern {
    background: linear-gradient(135deg, var(--radio-red) 0%, #c82333 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-outline-modern {
    border: 2px solid var(--radio-red);
    color: var(--radio-red);
    background: transparent;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: var(--radio-red);
    color: white;
    transform: translateY(-2px);
}

/* Social Icons */
.social-icon-modern {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--radio-white);
    color: var(--radio-red);
    border: 2px solid var(--radio-red);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-modern:hover {
    background: var(--radio-red);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Form Styling */
.form-control:focus {
    border-color: var(--radio-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-check-input:checked {
    background-color: var(--radio-red);
    border-color: var(--radio-red);
}

/* Checkbox Cards */
.modern-card input[type="checkbox"]:checked + div {
    background: var(--radio-green) !important;
    transform: scale(1.1);
}

.modern-card input[type="checkbox"]:checked ~ label {
    color: var(--radio-green) !important;
}

/* Updated checkbox card interaction for inline icon + text */
.modern-card input[type="checkbox"]:checked + label .bg-danger,
.modern-card input[type="checkbox"]:checked + label .bg-success {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.modern-card input[type="checkbox"]:checked + label .fw-bold {
    filter: brightness(1.1);
}

/* Modern option checkboxes */
.option-select {
    cursor: pointer;
    display: block;
    position: relative;
}

.option-select .option-checkbox {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.option-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
}

.option-text {
    font-weight: 700;
}

.option-select:hover .option-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.option-select .option-checkbox:focus-visible + .option-card {
    outline: 2px solid var(--radio-red);
    outline-offset: 3px;
}

.option-select .option-checkbox:checked + .option-card {
    border-color: var(--radio-green);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.18);
    background: rgba(40, 167, 69, 0.08);
}

.option-select .option-checkbox:checked + .option-card .option-text {
    filter: brightness(0.9);
}

/* Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--radio-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* Footer */
footer {
    background: var(--radio-dark);
    color: var(--radio-white);
}

footer a {
    color: var(--radio-green);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--radio-red);
}

/* Animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Gallery Carousel */
.carousel-item img {
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--radio-red);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 53, 69, 0.8);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--radio-red);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Responsive */
@media (max-width: 991px) {
    body {
        padding-bottom: 100px;
    }
    
    .audio-player-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    body {
        padding-bottom: 90px;
    }
    
    .sticky-audio-player {
        padding: 15px 0;
    }
    
    .audio-player-container {
        padding: 12px 15px;
        flex-direction: column;
    }
    
    .audio-player-info,
    .audio-player-controls {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
