/**
 * Custom Theme Styles - Homepage Premium
 */

:root {
    --primary-color: #0b2c5f;
    --dark-navy: #051a3a;
    --dark-blue: #020c1b;
    --secondary-color: #fe7c03;
    --text-color: #ffffff;
    --white: #ffffff;
    --container-width: 1200px;
    --font-main: 'Inter', sans-serif;
    --section-background-gradient: linear-gradient(90deg, #020c1b 0%, #051a3a 50%, #0b2c5f 100%);
    --section-background-gradient-vertical: linear-gradient(180deg, #020c1b 0%, #051a3a 50%, #0b2c5f 100%);
}

/* --- Global Fonts Override --- */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
input,
button,
select,
textarea,
.nav>li>a,
.button,
.hp-hero-final * {
    font-family: 'Inter', sans-serif !important;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

/* ── Preloader ─────────────────────────────────────────────── */
.hp-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-navy);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-preloader.is-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hp-preloader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}

.hp-preloader-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 220px;
}

.hp-preloader-logo {
    width: 150px;
    height: auto;
    animation: hp-pulse 2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.hp-preloader-spinner {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: hp-spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    z-index: 1;
}

.hp-preloader-text {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    animation: hp-fade-text 2s infinite alternate;
}

.hp-dots span {
    animation: hp-dot 1.4s infinite both;
    margin-left: 2px;
}

.hp-dots span:nth-child(1) { animation-delay: 0s; }
.hp-dots span:nth-child(2) { animation-delay: 0.2s; }
.hp-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hp-spin {
    to { transform: rotate(360deg); }
}

@keyframes hp-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes hp-dot {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

@keyframes hp-fade-text {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}


/* --- Global Helpers --- */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hp-main-wrapper {
    overflow: hidden;
}

/* --- Buttons (Custom Prefixed) --- */
.hp-btn-premium,
.hp-btn-outline,
.hp-btn-more,
.hp-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 35px;
    height: 54px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.hp-btn-premium {
    background: var(--gradient-accent);
    color: var(--white) !important;
    box-shadow: var(--shadow-premium);
}

.hp-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 126, 34, 0.3);
    color: var(--white) !important;
}

.hp-btn-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.hp-btn-outline:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.hp-btn-more {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    margin-top: 30px;
}

.hp-btn-more:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.hp-btn-cta {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white) !important;
    margin-top: 25px;
}

.hp-btn-cta:hover {
    background: var(--white);
    color: var(--primary-color) !important;
}

/* --- Hero Section - Video Version --- */
section.hp-hero-final.section {
    background-color: #030d1c;
    padding: 0;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hp-hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hp-hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(3, 13, 28, 0.4) 0%, #030d1c 100%);
    z-index: 2;
}

.hp-hero-bg-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.hp-hero-bg-wave img {
    width: 100%;
    opacity: 0.35;
}

.hp-hero-dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hp-hero-logo-top {
    margin-bottom: 60px;
}

.hp-main-logo-30 {
    max-height: 50px;
}

.hp-hero-tag {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hp-hero-title-final {
    font-size: 3.4rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hp-hero-desc-final {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 50px;
}

.hp-btn-final-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 1px;
}

.hp-btn-final-outline i {
    margin-left: 15px;
    font-size: 1.1rem;
}

.hp-btn-final-outline:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
}

/* Right Visual Area */
.hp-hero-visual-final {
    position: relative;
    text-align: center;
}

.hp-hero-svg-main {
    max-width: 580px;
    margin: 0 auto;
}

.hp-hero-visual-text {
    margin-top: 30px;
    text-align: center;
}

.hp-hero-visual-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 10px;
    color: var(--white);
    margin: 0;
}

.hp-hero-visual-text p {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--white);
    margin: 5px 0 0;
}

/* Sidebar Extras */
.hp-hero-sidebar {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hp-hero-scroll {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.hp-hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px auto 0;
}

.hp-hero-socials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hp-hero-socials a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.hp-hero-socials a:hover {
    color: var(--secondary-color);
}

@media only screen and (max-width: 48em) {
    .hp-hero-final {
        padding: 60px 0;
        text-align: center;
    }

    .hp-hero-title-final {
        font-size: 1.8rem;
    }

    .hp-hero-desc-final {
        margin: 0 auto 30px;
    }

    .hp-hero-logo-top {
        text-align: center;
    }
}

/* --- Course Cards --- */
.hp-course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hp-course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.hp-course-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.hp-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hp-course-card:hover .hp-course-image img {
    transform: scale(1.1);
}

.hp-course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hp-course-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hp-course-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.hp-course-content h3 a {
    color: var(--primary-color);
}

.hp-course-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.hp-course-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hp-course-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.hp-course-link {
    width: 36px;
    height: 36px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.hp-course-card:hover .hp-course-link {
    background: var(--primary-color);
    color: var(--white);
}

/* --- CTA Section --- */
.hp-cta {
    background: var(--gradient-main);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hp-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.is-glossy {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.is-glossy:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* --- Responsive --- */
@media only screen and (max-width: 48em) {
    .hp-hero-title {
        font-size: 2.2rem;
    }

    .hp-hero {
        padding: 60px 0;
        text-align: center;
    }

    .hp-hero-desc {
        margin: 0 auto 30px;
    }
}

.single-post-page,
.post-archive-page {
    background: #f4f6f8;
    color: #18181b;
    font-family: 'Geist', sans-serif;
}

.single-post-detail,
.post-archive-page__shell {
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
}

.single-post-detail__header {
    max-width: 860px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.single-post-detail__eyebrow,
.post-card__category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 999px;
    background: #ffffff;
    color: #146eb4;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
}

.single-post-detail__title {
    margin: 1rem 0;
    color: #18181b;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.single-post-detail__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    color: #71717a;
    font-size: 0.98rem;
}

.single-post-detail__meta strong {
    color: #18181b;
}

.single-post-detail__hero {
    margin: 0 0 3rem;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(20, 110, 180, 0.12);
}

.single-post-detail__hero img,
.post-card__media img,
.single-post-detail__content img {
    display: block;
    width: 100%;
    height: auto;
}

.single-post-detail__content {
    max-width: 820px;
    margin: 0 auto;
    color: #18181b;
    font-size: 1.08rem;
    line-height: 1.85;
}

.single-post-detail__content p,
.single-post-detail__content ul,
.single-post-detail__content ol,
.single-post-detail__content figure {
    margin: 0 0 1.6rem;
}

.single-post-detail__content h2 {
    margin: 2.8rem 0 1rem;
    color: #146eb4;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.single-post-detail__content figure {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 0.9rem;
    background: #ffffff;
}

.single-post-detail__content figcaption {
    padding: 0.8rem 1rem;
    color: #71717a;
    font-size: 0.92rem;
    text-align: center;
}

.single-post-detail__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 920px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.single-post-detail__nav-item a {
    display: grid;
    gap: 0.35rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 0.75rem;
    background: #ffffff;
    color: #18181b;
    text-decoration: none;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.single-post-detail__nav-item a:hover {
    transform: translateY(-1px);
    border-color: #146eb4;
}

.single-post-detail__nav-item span {
    color: #71717a;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.single-post-detail__nav-item strong {
    font-size: 1rem;
    line-height: 1.35;
}

.single-post-detail__nav-item--next {
    text-align: right;
}

.post-archive-page {
    min-height: 70vh;
    padding: 5rem 0;
}

.post-archive-page__header {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.post-archive-page__header h1 {
    margin: 0 0 1rem;
    color: #18181b;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.post-archive-page__header p,
.post-archive-page__description {
    color: #71717a;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post-card {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(20, 110, 180, 0.08);
}

.post-card__media {
    display: block;
    aspect-ratio: 1.9 / 1;
    overflow: hidden;
    background: #f4f6f8;
}

.post-card__media img {
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card__media img {
    transform: scale(1.04);
}

.post-card__body {
    display: grid;
    gap: 0.85rem;
    padding: 1.2rem;
}

.post-card__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.post-card__title a {
    color: #18181b;
    text-decoration: none;
}

.post-card__title a:hover {
    color: #146eb4;
}

.post-card__excerpt {
    color: #71717a;
    font-size: 0.95rem;
    line-height: 1.65;
}

.post-card__excerpt p {
    margin: 0;
}

.post-card__link {
    color: #146eb4;
    font-weight: 700;
    text-decoration: none;
}

.post-archive-page__pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.post-archive-page__empty {
    color: #71717a;
    text-align: center;
}

@media (max-width: 900px) {
    .post-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .single-post-detail,
    .post-archive-page__shell {
        width: min(1120px, calc(100% - 1.5rem));
    }

    .single-post-page,
    .post-archive-page {
        padding: 3rem 0;
    }

    .single-post-detail__nav,
    .post-archive-grid {
        grid-template-columns: 1fr;
    }

    .single-post-detail__nav-item--next {
        text-align: left;
    }
}

/* --- Custom Cursor --- */
body {
    cursor: none;
}

a,
button,
.year-wrap,
input,
textarea,
select,
.hp-gallery-img-wrapper {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: -12.5px;
    left: -12.5px;
    width: 25px;
    height: 25px;
    background-color: var(--secondary-color, #fe7c03);
    /* Cam */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    transition: width 0.2s ease-out, height 0.2s ease-out, top 0.2s ease-out, left 0.2s ease-out, background-color 0.2s ease-out;
    will-change: transform, width, height, top, left;
}

.custom-cursor.hover {
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: rgba(254, 124, 3, 0.2);
    border: 1px solid var(--secondary-color, #fe7c03);
}

@media (max-width: 1024px) {
    body {
        cursor: auto !important;
    }
    a, button, .year-wrap, .hp-gallery-img-wrapper {
        cursor: pointer !important;
    }
    input, textarea {
        cursor: text !important;
    }
    select {
        cursor: pointer !important;
    }
    .custom-cursor {
        display: none !important;
    }
}