:root {
    --primary-dark: #000814;
    --secondary-dark: #001d3d;
    --accent-blue: #003566;
    --primary-yellow: #ffc300;
    --secondary-yellow: #ffd60a;
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --transition: all 0.3s ease;
}


body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
}

/* Global Button Styles */
.btn-primary {
    background-color: var(--primary-yellow) !important;
    color: var(--primary-dark) !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: var(--transition) !important;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary-yellow) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 195, 0, 0.3);
}

.btn-secondary {
    border: 2px solid var(--primary-yellow) !important;
    background: transparent !important;
    color: var(--primary-yellow) !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-yellow) !important;
    color: var(--primary-dark) !important;
}

/* Recent Episodes Section */
.view-all-link {
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.view-all-link:hover {
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.episode-card {
    background-color: var(--secondary-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}



.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #000;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumb-wrapper:hover img {
    transform: scale(1.05);
}

.views-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--text-white);
    color: var(--primary-dark);
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.episode-info {
    padding: 20px;
    flex-grow: 1;
}

.episode-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.episode-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About Section Styling */
.about-section {
    background-color: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
    margin-top: -3rem;
}

.about-image-wrapper img {
    max-width: 320px;
}

.about-passage {
    font-size: 1.15rem;
    line-height: 1.8;
}

.tagline-wrapper {
    padding: 0;
    background: none;
    border: none;
}

.italic {
    font-style: italic;
}

/* Quick Stats Styling */
.stats-section {
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    transition: var(--transition);
    height: 100%;
    min-height: 200px;
    /* Ensure uniform height across all cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 221, 0, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .stat-number {
        font-size: 2rem;
    }
}

/* Floating Back to Top Button */
#button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-yellow);
    width: 45px;
    height: 45px;
    text-align: center;
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s, opacity .5s, visibility .5s, transform .3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#button::after {
    content: "\f077";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
}

#button:hover {
    cursor: pointer;
    background-color: var(--secondary-yellow);
    transform: translateY(-5px);
}

#button.show {
    opacity: 1;
    visibility: visible;
}

/* Footer Styling */
.footer {
    background-color: var(--secondary-dark);
    padding: 20px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-pattern {
    display: none;
}


.footer-logo {
    height: 50px;
    width: auto;
}

.footer-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-white);
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--primary-yellow);
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
}

.back-to-top-btn:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    background: rgba(255, 195, 0, 0.05);
}

.footer-title {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom p.text-muted {
    color: var(--primary-yellow) !important;
    opacity: 1 !important;
}

@media (max-width: 991.98px) {
    .footer {
        padding: 60px 0 40px;
    }

    .footer-description {
        padding-right: 0 !important;
    }
}

/* Utility Classes */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 195, 0, 0.2), rgba(255, 195, 0, 0.4), rgba(255, 195, 0, 0.2), transparent);
    margin: 20px auto;
    border: none;
    opacity: 0.8;
}

.text-yellow {
    color: var(--primary-yellow) !important;
}

@media (max-width: 767.98px) {
    .section-header {
        align-items: center !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    .section-header p {
        font-size: 0.95rem !important;
    }

    .episode-title {
        font-size: 1rem !important;
    }

    .view-all-link {
        font-size: 0.9rem !important;
    }
}

/* Carousel refinements handled in index.php style tag */

/* Social Channels Section */
.channels-section {
    background-color: var(--primary-dark);
}

.channel-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

/* Hover effects removed as requested */

.channel-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brand Colors for Icons */
.channel-icon.yt {
    color: #FF0000;
}

.channel-icon.ig {
    color: #E4405F;
}

.channel-icon.tw {
    color: #fff;
}

/* X is white usually */
.channel-icon.fb {
    color: #1877F2;
}

.channel-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.channel-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    padding-bottom: 2px;
}

.channel-links a:hover {
    color: var(--primary-yellow);
}

@media (max-width: 991.98px) {
    .channel-card {
        padding: 2rem 1rem;
    }

    .channel-icon {
        font-size: 2rem;
    }
}

/* Scroll Reveal Animations */
.animate-in {
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.y-20 {
    transform: translateY(20px);
}

.y-50 {
    transform: translateY(50px);
}

.x-minus-50 {
    transform: translateX(-50px);
}

.x-50 {
    transform: translateX(50px);
}

.scale-up {
    transform: scale(0.95);
}

.opacity-100 {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}

@media (max-width: 767.98px) {

    /* Convert horizontal animations to vertical on mobile to prevent overflow */
    .x-50,
    .x-minus-50 {
        transform: translateY(20px);
    }
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    /* Matches Bootstrap g-4 */
    align-items: stretch;
}

.stats-grid>div {
    height: 100%;
    /* Ensures the animate-in wrapper fills the grid cell height */
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}