/* ==========================================
   POST DETAILS PAGE STYLES
   ========================================== */

/* --- PAGE SPECIFIC STYLES --- */
body.post-details-page {
    background-color: #ffffff;
    color: #334155;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVBAR STYLES --- */
.post-details-page .navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 1rem 0;
    height: 90px;
    display: flex;
    align-items: center;
}

.post-details-page .navbar .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-details-page .nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Logo (Left) */
.post-details-page .logo {
    display: flex;
    align-items: center;
}

.post-details-page .logo a {
    display: block;
    line-height: 0;
}

/* Links (Center) */
.post-details-page .nav-center {
    display: flex;
    justify-content: center;
}

.post-details-page .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-details-page .nav-links li a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.post-details-page .nav-links li a:hover {
    color: #0f172a;
}

/* Button (Right) */
.post-details-page .nav-right {
    display: flex;
    justify-content: flex-end;
}

.post-details-page .cta-button {
    background-color: #1a4d63;
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.post-details-page .cta-button:hover {
    background-color: #133a4b;
    transform: translateY(-1px);
}

/* --- HEADER SECTION --- */
.article-header-section {
    position: relative;
    padding: 6rem 0 3rem 0;
    overflow: hidden;
    text-align: center;
}

.shadow-mix {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(203, 213, 225, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(0, 51, 102, 0.03) 0%, transparent 40%);
    filter: blur(50px);
    pointer-events: none;
}

.article-meta {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.tag-pill {
    display: inline-block;
    background: rgba(0, 51, 102, 0.05);
    color: #003366;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

h1.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.publish-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

.publish-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- MEDIA SLIDER --- */
.media-section {
    padding: 2rem 0 4rem 0;
    position: relative;
}

.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.media-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
}

.media-slider::-webkit-scrollbar {
    display: none;
}

.media-card {
    flex: 0 0 70%;
    max-width: 800px;
    height: 500px;
    background: #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
}

.media-card img, .media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.media-type-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: -1rem;
    margin-right: 1.5rem;
    margin-bottom: 2rem;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.control-btn:hover {
    border-color: #003366;
    color: #003366;
    transform: scale(1.05);
}

/* --- ARTICLE CONTENT --- */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    flex-grow: 1;
}

.article-body p { margin-bottom: 2rem; }

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #0f172a;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-quote {
    border-left: 4px solid #003366;
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: #475569;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

/* --- NAVIGATION CARDS --- */
.next-post-nav {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 5rem 0;
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-item {
    display: block;
    text-decoration: none;
}

.nav-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: block;
}

.nav-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: #003366;
}

.nav-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

.nav-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    flex-grow: 1;
}

.arrow-link {
    color: #003366;
    font-weight: 600;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- FOOTER (Dark Luxury) --- */
.post-details-page .footer {
    background-color: #111111;
    color: #cbd5e1;
    padding: 3rem 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo img {
    height: 28px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.footer-center {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-right {
    color: #64748b;
    font-size: 0.85rem;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .post-details-page .nav-content {
        grid-template-columns: 1fr auto;
    }

    .post-details-page .nav-links {
        display: none !important;
    }

    .post-details-page .nav-links.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem;
        z-index: 1001;
        padding: 0;
        margin: 0;
    }

    .post-details-page .nav-links.active li {
        list-style: none;
    }

    .post-details-page .nav-links.active li a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .post-details-page .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
        gap: 5px;
    }

    .post-details-page .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #334155;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .post-details-page .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .post-details-page .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .post-details-page .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-center {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1.article-title { font-size: 2rem; }
    .media-card { flex: 0 0 90%; height: 300px; }
    .nav-grid { grid-template-columns: 1fr; gap: 2rem; }
}