/* ===== ABOUT IMAGE HOVER ANIMATION ===== */
.about-hover-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.about-hover-card:hover {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
    transform: translateY(-4px);
}

.about-hover-card:hover .about-hover-img {
    transform: scale(1.04);
}
/* ======================================= */


:root {
    --primary-bg: #05070a;
    --secondary-bg: #0a0d14;
    --card-bg: rgba(22, 27, 40, 0.75);
    --accent-color: #d4af37; /* Champagne Gold */
    --accent-hover: #e5c158;
    --text-primary: #f8f9fa;
    --text-platinum: #cfd4da;
    --border-color: rgba(212, 175, 55, 0.15);
    --glass-border: rgba(255, 255, 255, 0.08);
    --premium-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Base Body Styles */
html {
    scroll-behavior: smooth !important;
}

body, html {
    background-color: var(--primary-bg) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Force FontAwesome to perfectly render without inheriting broken styles */
i.fa, span.fa, .fa, [class^="fa-"], [class*=" fa-"] {
    font-family: 'FontAwesome' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    line-height: 1 !important;
    text-rendering: auto !important;
}

section, .section-padding {
    background-color: transparent !important;
}

.bg-dark, .bg-light, .bg-white, .bg-light2 {
    background-color: var(--primary-bg) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* ELITE HEADER - Translucent Glass */
.header-area {
    background: rgba(5, 7, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: none !important;
    transition: all 0.4s ease;
}

.main-menu-area ul li a {
    color: var(--text-platinum) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-menu-area ul li a:hover, .main-menu-area ul li a.active {
    color: var(--accent-color) !important;
}

.header-log-reg ul {
    background: transparent !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 4px !important;
    padding: 2px 20px !important;
}

.header-log-reg ul li a {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* CART ICON & DROPDOWN MENU */
.header-cart i {
    color: var(--text-platinum) !important;
    font-size: 20px !important;
    transition: color 0.3s ease;
}

.header-cart:hover i {
    color: var(--accent-color) !important;
}

.main-menu-area ul li ul.sub-menu {
    background: var(--secondary-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-top: 2px solid var(--accent-color) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
    position: absolute !important;
    min-width: 200px !important;
}

.main-menu-area ul li ul.sub-menu li a {
    color: var(--text-platinum) !important;
    padding: 12px 22px !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

.main-menu-area ul li ul.sub-menu li a:hover {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding-left: 28px !important;
}

/* CINEMATIC HERO - 3D Perspective Tilt */
.hero-area {
    position: relative;
    overflow: visible; /* Must be visible so nav dropdown is not clipped */
    perspective: 1200px; /* Enable 3D Depth */
    background: var(--primary-bg) !important;
    padding: 140px 0 100px !important; /* Pulled up */
}

/* Ensure header always sits above everything */
.header-area {
    z-index: 9998 !important;
    position: relative !important;
}

.hero-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.02), transparent 80%);
    pointer-events: none;
}

.caption-content {
    position: relative;
    z-index: 10;
}

.caption-content h4 {
    color: var(--accent-color) !important;
    letter-spacing: 6px;
    font-weight: 300 !important;
    opacity: 0.9;
}

.caption-content h2 {
    font-size: 64px !important;
    line-height: 1.1 !important;
    margin: 20px 0 !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* FROSTED GLASS CARDS */
.instructor-single, .webinar-single, .card, .category-single {
    background: var(--card-bg) !important;
    backdrop-filter: blur(15px) saturate(1.5);
    border: 1px solid var(--glass-border) !important;
    border-radius: 2px !important; /* Sharp, high-end corners */
    box-shadow: var(--premium-shadow) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 40px !important;
}

.instructor-single:hover, .webinar-single:hover, .card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--accent-color) !important;
    background: rgba(30, 35, 50, 0.9) !important;
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.15) !important; /* Premium box shadow */
}

.instructor-image img {
    border: 1.5px solid var(--accent-color) !important;
    padding: 12px !important; /* Increased golden radius spacing */
    transition: all 0.3s ease;
}

.instructor-body {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.instructor-body h4 {
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

/* High-End Typography */
.webinar-content h3 a {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    transition: color 0.3s ease;
}

.webinar-content h3 a:hover {
    color: var(--accent-color) !important;
}

.webinar-meta li span, .webinar-meta li i, .text-muted {
    color: var(--text-platinum) !important;
    font-size: 14px !important;
}

/* CHAMPAGNE BUTTONS */
.btn-bg, .premium-btn, .btn-default a {
    background: linear-gradient(135deg, #d4af37, #b8860b) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    padding: 18px 45px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px !important;
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-bg:hover, .premium-btn:hover {
    background: linear-gradient(135deg, #e5c158, #d4af37) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 40px rgba(184, 134, 11, 0.3) !important;
}

/* 3-Second Button Pulse */
@keyframes pulse-attention {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    10% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pulse-btn {
    animation: pulse-attention 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Scroll Reveal Staggered Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ROYAL FOOTER */
footer {
    background: #0a0d14 !important; /* Rich Midnight Navy, avoiding pure black */
    border-top: 1px solid var(--glass-border);
    padding: 100px 0 60px !important;
}

.footer-widget h4 {
    color: var(--accent-color) !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px !important;
}

.footer-social-icons li a i {
    color: var(--text-platinum) !important;
    transition: color 0.3s ease;
}

.footer-social-icons li a:hover i {
    color: var(--accent-color) !important;
}

.site-logo img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.9;
}

/* Interactive Elements */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== SPEAKER FLIP CARD ===== */
.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 350px; /* Increased from 320 to give more breathing room */
    cursor: pointer;
    margin-bottom: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    text-align: center;
}

/* FRONT FACE */
.flip-card-front {
    background: linear-gradient(145deg, #0f141e 0%, #161b28 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.instructor-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.flip-hint {
    color: rgba(212, 175, 55, 0.5);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin: 15px 0 0 0;
    transition: color 0.3s ease;
}

.flip-card:hover .flip-hint {
    color: rgba(212, 175, 55, 0.8);
}

.flip-hint .fa {
    margin-right: 5px;
    font-size: 10px;
}

/* BACK FACE */
.flip-card-back {
    background: linear-gradient(145deg, #0d1117 0%, #161b28 50%, #1a1510 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 175, 55, 0.08);
    transform: rotateY(180deg);
}

.back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
}

.back-content h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.back-divider {
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    margin: 10px auto 15px;
    border-radius: 2px;
}

.back-description {
    color: #b0b8c8;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar for long descriptions */
.back-description::-webkit-scrollbar {
    width: 3px;
}
.back-description::-webkit-scrollbar-track {
    background: transparent;
}
.back-description::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

/* Mobile touch support */
@media (max-width: 768px) {
    .flip-card {
        height: 330px;
    }
    .flip-card:active .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* ===== CAROUSEL MANUAL SWIPE DOTS ===== */
.owl-theme .owl-dots {
    text-align: center;
    margin-top: 30px !important;
}

.owl-theme .owl-dots .owl-dot {
    display: inline-block;
    zoom: 1;
    outline: none;
}

.owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px 8px;
    background: transparent;
    border: 2px solid var(--accent-color);
    display: block;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.owl-theme .owl-dots .owl-dot.active span, 
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ===== CAROUSEL NAVIGATION ARROWS ===== */
.mentor-carousel .owl-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.mentor-carousel .owl-nav button.owl-prev,
.mentor-carousel .owl-nav button.owl-next {
    pointer-events: auto;
    width: 45px;
    height: 45px;
    background: rgba(15, 20, 30, 0.8) !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 50% !important;
    color: var(--accent-color) !important;
    font-size: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    position: absolute;
}

.mentor-carousel .owl-nav button.owl-prev {
    left: -40px;
}

.mentor-carousel .owl-nav button.owl-next {
    right: -40px;
}

.mentor-carousel .owl-nav button:hover {
    background: var(--accent-color) !important;
    color: #000 !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .mentor-carousel .owl-nav button.owl-prev { left: -15px; }
    .mentor-carousel .owl-nav button.owl-next { right: -15px; }
}
/* ============================= */

/* ===== CART & FORM STYLING ===== */
.shopping-cart {
    background: var(--card-bg) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.shopping-cart table {
    margin-bottom: 0;
}

.shopping-cart th {
    color: var(--accent-color) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 20px !important;
}

.shopping-cart td {
    color: var(--text-platinum) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 20px !important;
    vertical-align: middle !important;
}

.product-item h5 {
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 0;
}

.remove-from-cart i {
    color: #ef4444; /* Red for delete */
    transition: all 0.3s ease;
}

.remove-from-cart:hover i {
    color: #f87171;
    transform: scale(1.2);
}

.button_coupan, .btn-checkout {
    background: linear-gradient(135deg, #d4af37, #b8860b) !important;
    color: #000 !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 30px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.button_coupan:hover, .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.shopping-cart-footer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

.text-medium {
    font-weight: 600;
    color: var(--text-platinum);
}

font#subtotal {
    color: var(--accent-color) !important;
    font-size: 24px;
    font-weight: 800;
}

/* Form input styling */
.shopping-cart .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px 15px;
}

/* Global Override for legacy orange elements - Backgrounds */
[style*="background-color: #FF630E"], 
[style*="background-color: #ff630e"],
.btn-success, 
.button_coupan,
.header-log-reg ul,
.btn-checkout,
.premium-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b) !important;
    background-color: var(--accent-color) !important;
    color: #000 !important;
    border: none !important;
}

/* Header Specific Refinements */
.main-menu-area ul li a.active,
.main-menu-area ul li a:hover {
    background: none !important;
    background-color: transparent !important;
    color: var(--accent-color) !important;
}

.header-log-reg ul {
    border-radius: 50px !important; /* Premium Pill Shape */
    padding: 4px 25px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.header-log-reg ul li a {
    color: #000 !important;
    font-weight: 700 !important;
}

.text-primary, 
.sec-heading h4,
.header-cart a:hover {
    color: var(--accent-color) !important;
}

/* Specific Chat Widget Hint (Tawk.to) */
#tawk-chat-container, .tawk-min-container {
    filter: hue-rotate(160deg) saturate(0.8) !important;
}
