/* ==========================================================================
   CORE VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-main: #f8fafc;
    --text-dark: #0f172a;
    --text-slate: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md:
        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium:
        0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-slate);
    font-family: "Inter", sans-serif;
    margin: 0;
    line-height: 1.8;
}

.auto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   MODERN HEADER
   ========================================================================== */
header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0 !important;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo a {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-logo::after {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    margin-left: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-weight: 600;
    color: var(--text-slate) !important;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

nav a:hover {
    color: var(--text-dark) !important;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ==========================================================================
   MODERN FOOTER
   ========================================================================== */
footer {
    background: var(--text-dark) !important;
    padding: 80px 0 40px !important;
    color: #94a3b8;
}

.footer-logo {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-logo a {
    color: var(--white) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .text-logo {
    color: var(--white) !important;
}

.footer-copyright {
    border-top: 1px solid #1e293b;
    margin-top: 60px;
    padding-top: 30px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   BLOG GRID & LISTING
   ========================================================================== */
.hero-section {
    padding: 60px 0 60px;
    text-align: center;
    background:
        radial-gradient(circle at top right, #fff7ed 0%, transparent 40%),
        radial-gradient(circle at bottom left, #eff6ff 0%, transparent 40%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px;
    padding: 0px 0 100px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

.card-image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .card-image-wrap img {
    transform: scale(1.1);
}

.card-date {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-title {
    margin: 0 0 16px;
}

.card-title a {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--primary);
}

.card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 10px;
    color: var(--primary);
}

.share-btn-group {
    display: flex;
    gap: 12px;
}

.share-btn-group a {
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.2s ease;
}

.share-btn-group a:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* ==========================================================================
   BLOG DETAILS & EDITORIAL
   ========================================================================== */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 2000;
}

#progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
}

.title-section-bg {
    width: 100%;
    background:
        radial-gradient(circle at top right, #fff7ed 0%, transparent 40%),
        radial-gradient(circle at bottom left, #eff6ff 0%, transparent 40%);
    padding: 80px 0 60px;
    border-bottom: 1px solid #e2e8f0;
}

.editorial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 24px 100px;
}

.article-header {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 5px 24px !important;
    background: #ffffff00 !important;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.article-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    line-height: 1.1;
    color: var(--text-dark);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
}

.feature-image-wrap {
    margin-bottom: 50px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.feature-image-wrap img {
    width: 100%;
    display: block;
}

.article-body {
    font-size: 18px;
    color: var(--text-slate);
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.article-body h2,
.article-body h3 {
    font-family: "Playfair Display", serif;
    color: var(--text-dark);
    margin-top: 40px;
}

.article-body p {
    margin-bottom: 24px;
}

.tags-wrap {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-slate);
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

.widget-title {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-btn {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s;
}

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

.wa-bg {
    background: #25d366;
}

.fb-bg {
    background: #1877f2;
}

.li-bg {
    background: #0a66c2;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-premium {
    width: 100%;
    background: var(--text-dark);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-premium:hover {
    background: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.rec-card {
    display: flex;
    gap: 16px;
    text-decoration: none;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.rec-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rec-card p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   INTERACTIVE ELEMENTS (LOADERS, ANIMATIONS)
   ========================================================================== */
#blog-loader {
    display: none;
    text-align: center;
    padding: 40px 0;
    width: 100%;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 32px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: var(--shadow-lg);
    }

    nav.active {
        display: flex;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 36px;
    }

    .article-body {
        padding: 30px;
    }

    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 36px;
    }
}