/* ==========================================================================
   Custom Landing Page Styles for Mani Sarma Astrology
   Independent stylesheet - DOES NOT modify or overwrite assets/css/
   ========================================================================== */

/* Root Variables for Landing Page */
:root {
    --astro-gold-1: #f4aa36;
    --astro-gold-2: #ffcb65;
    --astro-gold-gradient: linear-gradient(135deg, #f4aa36 0%, #ff7b25 100%);
    --astro-gold-glow: rgba(244, 170, 54, 0.45);
    --astro-dark-card: rgba(18, 16, 38, 0.85);
    --astro-glass-border: rgba(244, 170, 54, 0.28);
}

/* Banner Wrapper Customization */
.as_banner_wrapper.landing_hero_banner {
    position: relative;
    padding: 180px 0 140px;
    background: linear-gradient(180deg, rgba(14, 11, 28, 0.88) 0%, rgba(19, 13, 36, 0.92) 60%, rgba(14, 11, 28, 0.96) 100%),
        url("assets/images/bg1.jpg") no-repeat center center / cover;
    color: #ffffff;
    overflow: hidden;
    z-index: 1;
}

/* Ambient Celestial Glow Orbs */
.landing_hero_banner::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(244, 170, 54, 0.18) 0%, rgba(180, 77, 249, 0.1) 45%, transparent 70%);
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
    z-index: 1;
    animation: celestialFloat 10s ease-in-out infinite alternate;
}

.landing_hero_banner::after {
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes celestialFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 20px) scale(1.1);
    }
}

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

/* Left Content Column */
.landing_hero_content {
    padding-right: 25px;
}

.landing_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(244, 170, 54, 0.12);
    border: 1px solid rgba(244, 170, 54, 0.38);
    border-radius: 50px;
    color: var(--astro-gold-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.7px;
    /* text-transform: uppercase; */
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(244, 170, 54, 0.15);
    animation: fadeInDown 0.8s ease-out;
}

.landing_badge i {
    color: var(--astro-gold-1);
    font-size: 14px;
    animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

.landing_hero_title {
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.landing_hero_title .highlight-text {
    background: linear-gradient(135deg, #f4aa36 0%, #ffc870 50%, #f37335 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.landing_hero_desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
}

/* Call To Action Buttons */
.landing_hero_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 38px;
}

.landing_btn_primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--astro-gold-gradient);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-transform: capitalize;
    box-shadow: 0 8px 24px rgba(244, 170, 54, 0.35);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.landing_btn_primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(244, 170, 54, 0.5);
    color: #ffffff !important;
}

.landing_btn_secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
    cursor: pointer;
    text-decoration: none;
}

.landing_btn_secondary:hover {
    background: rgba(244, 170, 54, 0.18);
    border-color: var(--astro-gold-1);
    color: var(--astro-gold-2) !important;
    transform: translateY(-2px);
}

.landing_btn_secondary i {
    color: var(--astro-gold-1);
    transition: transform 0.3s ease;
}

.landing_btn_secondary:hover i {
    transform: scale(1.2);
}

/* Trust Stats Bar */
.landing_trust_row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust_item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust_icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(244, 170, 54, 0.12);
    border: 1px solid rgba(244, 170, 54, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--astro-gold-1);
    font-size: 14px;
}

.trust_text h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.trust_text p {
    font-size: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   YouTube Banner Video Card & Autoplay/Click-to-Play System
   ========================================================================== */

.hero_video_box_wrapper {
    position: relative;
    padding: 10px;
}

/* Glowing Decorative Ring Around Card */
.hero_video_box_wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(244, 170, 54, 0.4) 0%, rgba(243, 115, 53, 0.1) 50%, rgba(168, 85, 247, 0.35) 100%);
    filter: blur(12px);
    opacity: 0.75;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.hero_video_box_wrapper:hover::before {
    opacity: 1;
}

/* Main Video Frame Card */
.hero_video_card {
    position: relative;
    background: var(--astro-dark-card);
    border: 1px solid var(--astro-glass-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(244, 170, 54, 0.18);
    backdrop-filter: blur(16px);
    z-index: 2;
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.hero_video_box_wrapper:hover .hero_video_card {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 50px rgba(244, 170, 54, 0.25);
}

/* Full Width Video Layout Enhancements */
.full_width_video {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.full_width_video .hero_video_card {
    transform: none !important;
    width: 100%;
    border-radius: 20px;
}

.full_width_video:hover .hero_video_card {
    transform: translateY(-3px) !important;
}

/* Title & Description On Top (Left Aligned, 100% Full Width & Reduced Title Size) */
.landing_hero_top,
.landing_hero_below {
    padding-right: 0 !important;
    margin-bottom: 24px;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
}

.landing_hero_top .landing_badge,
.landing_hero_below .landing_badge {
    margin-bottom: 12px;
}

.landing_hero_top .landing_hero_title,
.landing_hero_below .landing_hero_title {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 12px;
    font-size: clamp(1.15rem, 1.7vw, 1.5rem) !important;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.2px;
    word-break: break-word;
    text-align: left !important;
}

.landing_hero_top .landing_hero_desc,
.landing_hero_below .landing_hero_desc {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
    text-align: left !important;
}

.landing_hero_content p {
    padding-bottom: 15px;
    font-size: 18px;
    line-height: 1.8;
}

/* Aspect Ratio Viewport - Height reduced by 80px */
.hero_video_screen {
    position: relative;
    width: 100%;
    padding-top: calc(56.25% - 80px);
    background: #000000;
    overflow: hidden;
    cursor: pointer;
}

@media (max-width: 767px) {
    .hero_video_screen {
        padding-top: 56.25%;
    }
}

/* Background Autoplaying Preview Video (Muted Live Ambient) */
.hero_video_preview_player {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    pointer-events: none;
    opacity: 0.7;
    filter: brightness(0.9);
    transition: opacity 0.4s ease;
}

.hero_video_preview_player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Interactive Thumbnail Layer */
.hero_thumbnail_overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(180deg, rgba(14, 11, 28, 0.45) 0%, rgba(14, 11, 28, 0.2) 40%, rgba(14, 11, 28, 0.75) 100%);
    z-index: 4;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Static High-Resolution Thumbnail Fallback Image */
.hero_video_poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.hero_video_screen:hover .hero_video_poster {
    transform: scale(1.04);
}

/* Thumbnail Top Info Pill */
.hero_video_top_bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video_status_badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(14, 11, 28, 0.85);
    border: 1px solid rgba(244, 170, 54, 0.4);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.video_pulse_dot {
    width: 8px;
    height: 8px;
    background: #ff334b;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff334b;
    animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

.video_hd_badge {
    background: rgba(244, 170, 54, 0.25);
    border: 1px solid rgba(244, 170, 54, 0.5);
    color: var(--astro-gold-2);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Center Glowing Play Button with Ripple Animation */
.hero_center_play_btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--astro-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    box-shadow: 0 10px 30px rgba(244, 170, 54, 0.55), 0 0 25px rgba(243, 115, 53, 0.4);
    z-index: 6;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.hero_center_play_btn i {
    margin-left: 4px;
    /* visually center play triangle */
}

/* Radiant Ripple Rings */
.hero_center_play_btn::before,
.hero_center_play_btn::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(244, 170, 54, 0.7);
    animation: playRipple 2.4s infinite cubic-bezier(0, 0.2, 0.8, 1);
    pointer-events: none;
}

.hero_center_play_btn::after {
    inset: -24px;
    animation-delay: 0.7s;
    border-color: rgba(243, 115, 53, 0.5);
}

@keyframes playRipple {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

.hero_video_screen:hover .hero_center_play_btn {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 15px 40px rgba(244, 170, 54, 0.75), 0 0 35px rgba(243, 115, 53, 0.6);
}

/* Thumbnail Bottom Meta Details */
.hero_video_bottom_bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 11, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.video_info_text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video_info_text i {
    color: #ff0000;
    font-size: 20px;
}

.video_info_text h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.video_info_text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.video_click_prompt {
    font-size: 12px;
    font-weight: 600;
    color: var(--astro-gold-2);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Interactive Active YouTube Video Container (Playing State) */
.hero_active_player_container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero_active_player_container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* When Playing State is Activated */
.hero_video_card.is-playing .hero_thumbnail_overlay,
.hero_video_card.is-playing .hero_video_poster,
.hero_video_card.is-playing .hero_video_preview_player {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hero_video_card.is-playing .hero_active_player_container {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

/* Close/Reset Video Button when playing */
.hero_video_close_btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 15;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero_video_card.is-playing .hero_video_close_btn {
    display: flex;
}

.hero_video_close_btn:hover {
    background: #ff334b;
    border-color: #ff334b;
    transform: scale(1.1);
}

/* Card Bottom Footer Feature Bar */
.hero_card_footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 20px;
    background: rgba(14, 11, 28, 0.95);
    border-top: 1px solid rgba(244, 170, 54, 0.18);
}

.card_feature_pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.card_feature_pill i {
    color: var(--astro-gold-1);
}

/* ==========================================================================
   Responsive Adjustments & Mobile Video Section Spacing
   ========================================================================== */
@media (max-width: 991px) {
    .as_banner_wrapper.landing_hero_banner {
        padding: 150px 0 90px;
    }

    .landing_hero_top {
        margin-top: 100px !important;
        margin-bottom: 22px;
    }

    .full_width_video {
        margin-bottom: 25px;
    }

    .hero_video_card {
        transform: none !important;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 18px;
    }
}

@media (max-width: 767px) {
    .as_banner_wrapper.landing_hero_banner {
        padding: 140px 0 80px;
    }

    .landing_hero_top {
        margin-top: 100px !important;
        margin-bottom: 20px;
    }

    .full_width_video {
        margin-top: 5px;
        margin-bottom: 30px;
    }

    .hero_video_box_wrapper {
        padding: 6px 2px;
    }

    .hero_video_card {
        border-radius: 16px;
    }

    .landing_hero_title {
        font-size: 1.25rem !important;
        margin-bottom: 10px;
    }

    .landing_hero_desc {
        font-size: 14px;
        line-height: 1.65;
    }
}

@media (max-width: 575px) {
    .as_banner_wrapper.landing_hero_banner {
        padding: 135px 0 75px;
    }

    .landing_hero_top {
        margin-top: 100px !important;
        margin-bottom: 18px;
    }

    .landing_badge {
        font-size: 11.5px;
        padding: 5px 14px;
        margin-bottom: 10px;
    }

    .landing_hero_title {
        font-size: 1.15rem !important;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .landing_hero_desc {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .full_width_video {
        margin-top: 6px;
        margin-bottom: 32px;
    }

    .hero_video_box_wrapper {
        padding: 4px 0;
    }

    .hero_video_card {
        border-radius: 14px;
    }

    .hero_center_play_btn {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .hero_center_play_btn::before {
        inset: -8px;
    }

    .hero_center_play_btn::after {
        inset: -16px;
    }

    .hero_thumbnail_overlay {
        padding: 10px;
    }

    .video_status_badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .video_hd_badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .hero_video_bottom_bar {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .video_info_text h5 {
        font-size: 11px;
    }

    .video_info_text span {
        display: none;
        /* keep bottom bar clean on small phones */
    }

    .video_click_prompt {
        font-size: 10.5px;
    }
}