/* ========== BUDHIAM HERO SLIDER v3 ========== */

:root {
    --budhiam-accent: #dc2626;
    --budhiam-bg: #0a0a0f;
    --budhiam-text: #ffffff;
    --budhiam-text-secondary: #888;
    --budhiam-bg-tertiary: #1a1a2e;
}

.budhiam-slider-section {
    padding: 40px 0 0 0;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--budhiam-bg);
}

.budhiam-slider-header {
    max-width: 1500px;
    margin: 0 auto 60px;
    padding: 0 48px;
}

.budhiam-slider-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--budhiam-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.budhiam-slider-header h2 .serif {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--budhiam-accent);
}

.budhiam-slider-header p {
    font-size: 1.125rem;
    color: var(--budhiam-text-secondary);
    max-width: 500px;
    margin: 0;
}

/* Slider Container */
.budhiam-slider {
    display: flex;
    gap: 16px;
    padding: 0 48px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.budhiam-slider::-webkit-scrollbar {
    display: none;
}

.budhiam-slider:active {
    cursor: grabbing;
}

/* Base Card */
.budhiam-card {
    flex: 0 0 auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    background: var(--budhiam-bg-tertiary);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.budhiam-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ========== VIDEO CARD ========== */
.budhiam-card--video {
    position: relative !important;
}

.budhiam-card--video video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
}

/* ========== IMAGE CARD - FULL HEIGHT ========== */
.budhiam-card--image {
    position: relative !important;
}

.budhiam-card--image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
}

/* ========== AUDIO CARD - COVER IMAGE + PLAY OVERLAY ========== */
.budhiam-card--audio {
    position: relative !important;
    background: #000 !important;
    overflow: hidden !important;
}

.budhiam-card--audio > img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.budhiam-audio-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.3) !important;
    z-index: 2 !important;
}

.budhiam-audio-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.budhiam-audio-btn:hover {
    background: rgba(255,255,255,.25);
    transform: scale(1.1);
}

.budhiam-card--audio .budhiam-card-badge {
    z-index: 5 !important;
}

/* ========== NEWS CARD ========== */
.budhiam-card--news {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.budhiam-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.budhiam-news-date {
    font-size: 0.75rem;
    color: var(--budhiam-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.budhiam-news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.budhiam-news-excerpt {
    font-size: 0.85rem;
    color: var(--budhiam-text-secondary);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.budhiam-news-cta {
    font-size: 0.875rem;
    color: var(--budhiam-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.budhiam-news-cta svg {
    transition: transform 0.2s;
}

.budhiam-card--news:hover .budhiam-news-cta svg {
    transform: translateX(4px);
}

/* ========== JOIN CARD ========== */
.budhiam-card--join {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    padding: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.budhiam-card--join .budhiam-join-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.budhiam-card--join h3 {
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.budhiam-card--join p {
    font-size: .9rem;
    color: rgba(255,255,255,.9);
    margin: 0;
}

/* ========== LISTENER CARD ========== */
.budhiam-card--listener {
    background: rgba(37,99,235,.6);
    backdrop-filter: blur(6px);
    padding: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.budhiam-card--listener::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--listener-bg);
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
    transition: background-image 0.5s ease;
}

.budhiam-card--listener > div {
    position: relative;
    z-index: 1;
}

.budhiam-card--listener h3 {
    font-size: 1.4rem;
    margin: 0;
}

/* ========== BADGE ========== */
.budhiam-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--budhiam-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 5;
}

/* ========== MODALS BASE ========== */
.budhiam-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.budhiam-modal.active {
    opacity: 1;
    visibility: visible;
}

.budhiam-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 100000;
}

.budhiam-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Media Modal */
.budhiam-modal-content {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.budhiam-modal-content video,
.budhiam-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
}

/* ========== NEWS MODAL - AMU STYLE ========== */
.budhiam-news-modal-content {
    width: 90vw;
    max-width: 1100px;
    height: 80vh;
    max-height: 700px;
    min-height: 500px;
    background: #1a1a2e;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    position: relative;
}

/* Left side - Image FULL HEIGHT with title overlay at bottom */
.budhiam-postcard-image {
    flex: 0 0 45%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.budhiam-postcard-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient overlay at bottom for title */
.budhiam-postcard-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

/* Fallback when no image */
.budhiam-postcard-image--no-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.budhiam-postcard-image--no-img .postcard-icon {
    font-size: 64px;
    opacity: 0.3;
}

/* Badge top left */
.budhiam-postcard-image .postcard-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--budhiam-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 3;
}

/* Title overlay at bottom of image */
.budhiam-postcard-image .postcard-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px;
    z-index: 2;
}

.budhiam-postcard-image .postcard-date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.budhiam-postcard-image .postcard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Right side - Content */
.budhiam-postcard-content {
    flex: 1;
    height: 100%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    color: #fff;
    overflow: hidden;
}

.budhiam-postcard-body {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    flex: 1;
    overflow: hidden;
}

.budhiam-postcard-body p {
    margin-bottom: 16px;
}

.budhiam-postcard-body strong {
    color: #fff;
}

/* Share buttons - only 3: X, Facebook, LinkedIn */
.budhiam-postcard-share {
    margin-top: auto;
    padding-top: 30px;
    flex-shrink: 0;
}

.budhiam-postcard-share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.budhiam-share-buttons {
    display: flex;
    gap: 12px;
}

.budhiam-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
    flex: 1;
}

.budhiam-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.budhiam-share-btn--twitter {
    background: #000;
    color: #fff;
}

.budhiam-share-btn--facebook {
    background: #1877F2;
    color: #fff;
}

.budhiam-share-btn--linkedin {
    background: #0A66C2;
    color: #fff;
}

.budhiam-share-btn svg {
    width: 18px;
    height: 18px;
}

/* Close button */
.budhiam-news-modal .budhiam-modal-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    top: 24px;
    right: 24px;
}

.budhiam-news-modal .budhiam-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Disable interactions on media */
.budhiam-slider video,
.budhiam-slider img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .budhiam-slider-header {
        padding: 0 24px;
    }
    
    .budhiam-slider {
        padding: 0 24px;
    }
    
    .budhiam-news-modal-content {
        flex-direction: column;
        width: 95vw;
        height: auto;
        max-height: 90vh;
        min-height: auto;
    }
    
    .budhiam-postcard-image {
        flex: 0 0 auto;
        height: 280px;
        width: 100%;
    }
    
    .budhiam-postcard-image .postcard-title {
        font-size: 1.4rem;
    }
    
    .budhiam-postcard-content {
        height: auto;
        padding: 30px;
        flex: 1;
        overflow: hidden;
    }
    
    .budhiam-share-buttons {
        flex-direction: row;
    }
    
    .budhiam-share-btn span {
        display: none;
    }
    
    .budhiam-share-btn {
        padding: 12px;
        flex: 0;
    }
}

@media (max-width: 600px) {
    .budhiam-slider {
        padding: 0 16px;
        gap: 12px;
    }
    
    .budhiam-postcard-image {
        flex: 0 0 120px;
        padding: 20px;
    }
    
    .budhiam-postcard-content {
        padding: 24px;
    }
    
    .budhiam-postcard-content h2 {
        font-size: 1.25rem;
    }
    
    .budhiam-postcard-body {
        font-size: 0.95rem;
    }
    
    .budhiam-share-buttons {
        flex-direction: column;
    }
    
    .budhiam-share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .budhiam-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .budhiam-audio-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}
