/* GOOGLE FONT (modern + readable) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff4b5c;
    --primary-soft: rgba(255, 75, 92, 0.15);
    --accent-color: #00f5d4;
    --bg-dark: #050816;
    --glass-bg: rgba(12, 20, 38, 0.82);
    --text-main: #f9fafb; /* brighter */
}

html,
body {
    height: 100%;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Background image */
    background: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d")
                center center / cover fixed no-repeat;

    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
    background-color: #0b1120;
}

/* Proper word breaking with hyphen */
body, 
p, 
a, 
li, 
h1, h2, h3, h4, h5, h6, 
.post-content, 
.privacy-content, 
.section-glass {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;

    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ===== Links inside glass sections (course pages, etc.) ===== */
.section-glass a:not(.btn) {
    color: #f9fafb;              /* bright white on dark */
    text-decoration: underline;  /* keep it clearly tappable */
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.section-glass a:not(.btn):hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* DARK OVERLAY */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background: linear-gradient(
        rgba(5, 8, 22, 0.25),
        rgba(12, 20, 38, 0.35)
    );

    z-index: -1;
    pointer-events: none;
}

/* FORCE background behavior against Bootstrap overrides */
body {
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* ========= GLOBAL TEXT COLORS ========= */

/* Headings bright white */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

/* Normal text slightly dim but clear */
p, li, span, small, label {
    color: #e5e7eb;
}

/* Override Bootstrap greys on dark background */
.text-secondary {
    color: #d1d5db !important; /* light grey */
}

.text-muted {
    color: #9ca3af !important;
}

/* Cards / section titles in glass blocks */
.section-glass h1,
.section-glass h2,
.section-glass h3,
.section-glass h4 {
    color: #ffffff;
}

/* NAVBAR */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-glass {
    background: linear-gradient(90deg, rgba(5, 8, 22, 0.92), rgba(12, 20, 38, 0.9));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.navbar-brand span {
    letter-spacing: 0.08em;
}

.nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-inline: 0.85rem !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.btn-nav-cta {
    border-radius: 999px;
    padding: 0.45rem 1.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), #ff8b6a);
    border: none;
    box-shadow: 0 14px 30px rgba(255, 75, 92, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-nav-cta:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(255, 75, 92, 0.7);
}

/* MEGA DROPDOWN */
.dropdown-mega {
    position: static;
}

.dropdown-menu-mega {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 22, 0.96);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    padding: 1.5rem 1.75rem;
    margin-top: 1rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    width: min(1100px, 96vw);
}

.dropdown-mega .dropdown-item {
    color: #e5e7eb;
    font-size: 0.9rem;
    border-radius: 999px;
    padding-block: 0.4rem;
    padding-inline: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.dropdown-mega .dropdown-item i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.dropdown-mega .dropdown-item:hover {
    background: radial-gradient(circle at left, var(--accent-color), transparent 70%);
    color: #111827;
    transform: translateX(2px);
}

/* PAGE CONTENT */
.page-content {
    flex: 1 0 auto;
}

/* Glass section */
.section-glass {
    background: var(--glass-bg);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 2.5rem 2rem;
}

@media (min-width: 992px) {
    .section-glass {
        padding: 3rem 3.25rem;
    }
}

.badge-soft {
    background: var(--primary-soft);
    color: #fee2e2;
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #ffffff, #ffdde1, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.transition-base {
    transition: all 0.25s ease;
}

/* FOOTER */
.footer-dark {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background:
        radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 55%),
        rgba(5, 8, 22, 0.98);
}

.footer-link {
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-link:hover {
    color: #ffffff;
}

/* Scroll animation (only used when .revealed is added) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== FOOTER LOGIN HIGHLIGHT BUTTON ===== */
.footer-login-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #0b1120;
    background: linear-gradient(135deg, var(--accent-color), #4deeea);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.6),
                0 0 32px rgba(0, 245, 212, 0.35);
    transition: all 0.25s ease;
}

.footer-login-btn:hover {
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 18px rgba(0, 245, 212, 0.85),
                0 0 45px rgba(0, 245, 212, 0.55);
}

/* ===== PAGE BANNER (GLOBAL) ===== */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}

.page-banner-overlay {
    width: 100%;
    background: linear-gradient(
        rgba(5, 8, 22, 0.75),
        rgba(12, 20, 38, 0.9)
    );
}

/* Banner title */
.page-banner-title {
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    white-space: normal;
    display: inline-block;
    perspective: 1000px;
}

/* Breadcrumbs styling */
.page-breadcrumbs .breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.page-breadcrumbs .breadcrumb-item a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.85rem;
}

.page-breadcrumbs .breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-breadcrumbs .breadcrumb-item.active span {
    color: #9ca3af;
}

.page-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: #6b7280;
}

/* ===== SECTION GLASS HOVER TRANSITIONS ===== */
.section-glass {
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.section-glass:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(15, 23, 42, 0.9);
}

/* ===== BANNER LETTER-BY-LETTER ANIMATION ===== */
.banner-animate-title span,
.banner-animate-subtitle span {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, -60px, -600px) scale(0.2);
    filter: blur(6px);
    animation-name: bannerLetterFly;
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    animation-fill-mode: forwards;
}

.banner-animate-subtitle span {
    animation-duration: 0.45s;
}

@keyframes bannerLetterFly {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

/* ===== SINGLE FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    z-index: 9999;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.7);
    text-decoration: none !important;
    cursor: pointer;
    overflow: hidden;
    animation:
        whatsapp-pop 1.8s ease-in-out infinite,
        whatsapp-glow 2.6s ease-in-out infinite alternate;
}

.whatsapp-float .whatsapp-icon {
    color: #fff;
    text-decoration: none !important;
}

@keyframes whatsapp-pop {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-4px) scale(1.05); }
    60%  { transform: translateY(0) scale(1); }
    100% { transform: translateY(1px) scale(0.98); }
}

@keyframes whatsapp-glow {
    0% {
        box-shadow: 0 0 12px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 0 24px rgba(37, 211, 102, 0.9);
    }
    100% {
        box-shadow: 0 0 16px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 0 30px rgba(37, 211, 102, 1);
}

/* === HERO CTA ANIMATIONS === */
.hero-cta-primary {
    position: relative;
    animation: heroPulse 2.4s ease-in-out infinite;
}

.hero-cta-secondary {
    position: relative;
    animation: heroWobble 3s ease-in-out infinite;
}

@keyframes heroPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 rgba(248, 113, 113, 0.0);
    }
    40% {
        transform: translateY(-1px) scale(1.05);
        box-shadow: 0 0 22px rgba(248, 113, 113, 0.65);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 rgba(248, 113, 113, 0.0);
    }
}

@keyframes heroWobble {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-3px); }
    30%  { transform: translateX(3px); }
    45%  { transform: translateX(-2px); }
    60%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.hero-cta-primary:hover,
.hero-cta-secondary:hover {
    animation-play-state: paused;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 0 26px rgba(248, 250, 252, 0.45);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Blog / Post content link visibility on dark theme ===== */
.post-content a {
    color: var(--accent-color) !important;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.post-content a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
}

/* ===== Prevent ugly word cutting & enable hyphen on banner/section titles ===== */
.page-banner-title,
.banner-animate-title,
.hero-animate-title,
section h1,
section h2 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ✅ FORCE LINKS TO BE WHITE, BOLD & UNDERLINED (Dark Glass Theme) */
.section-glass a,
.section-glass a:visited {
    color: #ffffff !important;
    font-weight: 700 !important;
    /*text-decoration: underline !important;
    text-underline-offset: 3px;*/
}

/* ✅ HOVER EFFECT */
.section-glass a:hover {
    color: #00f5d4 !important;   /* Soft accent on hover */
    text-decoration-thickness: 2px;
}
