/* ====================================
   Blog Post Detail Styles
   ==================================== */

:root {
    --color-primary-blue: #0A355B;
    --color-primary-teal: #137374;
    --color-teal-light: #78C6C4;
    --color-accent-green: #98D29B;
    --color-accent-yellow: #FDBF49;
    --color-yellow-light: #FED992;
    --color-accent-coral: #E88773;
    --color-coral-light: #FAE7E3;
    --color-gray-text: #434343;
    --color-white: #ffffff;
    --color-cream: #fff7e9;
    --bg-teal-20: rgba(120, 198, 196, 0.2);
    --bg-green-20: rgba(152, 210, 155, 0.2);
    --bg-yellow-20: rgba(254, 217, 146, 0.2);
    
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-text);
    margin: 0;
    padding: 0;
    background-color: #fff;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
    position: relative;
    z-index: 10;
}

/* ====================================
   Header
   ==================================== */
   .header-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.header-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-menu.visible {
    transform: translateY(0);
    opacity: 1;
}

.logo {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 30px;
    color: var(--color-primary-blue);
    display: inline-flex;
    gap: 6px;
}

/* Logo Animation */
.logo-rn {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: transparent;
    color: var(--color-primary-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: rnHighlight 2s ease-in-out infinite;
}

.logo-analytics {
    display: inline-block;
    padding: 2px 0;
    color: var(--color-primary-blue);
    transition: opacity 0.3s ease;
    animation: analyticsHighlight 2s ease-in-out infinite;
}

@keyframes rnHighlight {
    0%, 100% {
        background-color: transparent;
        color: var(--color-primary-blue);
    }
    25%, 50% {
        background-color: var(--color-primary-blue);
        color: #fff;
    }
}

@keyframes analyticsHighlight {
    0%, 50% {
        opacity: 0.6;
    }
    75%, 100% {
        opacity: 1;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary-blue);
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary-teal);
}

/* ====================================
   Hero Section
   ==================================== */
.blog-hero {
    padding-top: 220px; /* Header spacing */
    padding-bottom: 60px;
    text-align: center;
    position: relative;
}

.hero-meta-top {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-primary-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 60px;
    color: var(--color-primary-blue);
    max-width: 900px;
    margin: 0 auto 30px;
}

.hero-meta-bottom {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-gray-text);
    margin-bottom: 50px;
}

/* ====================================
   Featured Image
   ==================================== */
.featured-image-container {
    max-width: 900px;
    margin: 0 auto 100px;
    border-radius: 40px;
    overflow: hidden;
    /* Optional: Border or shadow if needed */
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* ====================================
   Content Section
   ==================================== */
.content-wrapper {
    max-width: 745px;
    margin: 0 auto 150px;
}

.content-wrapper p {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 25px;
    line-height: 35px;
    color: var(--color-gray-text);
    margin-bottom: 30px;
}

.content-wrapper h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 30px;
    color: var(--color-primary-blue);
    margin-top: 50px;
    margin-bottom: 20px;
}

.content-wrapper ul, 
.content-wrapper ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.content-wrapper li {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 25px;
    line-height: 35px;
    color: var(--color-gray-text);
    margin-bottom: 20px;
    list-style-type: disc;
}

.content-wrapper li strong {
    font-weight: 800;
    color: var(--color-gray-text);
}

/* ====================================
   Related Blogs Section (Cream BG)
   ==================================== */
.related-section {
    background-color: var(--color-cream);
    padding: 100px 0;
    position: relative;
}

.related-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    color: var(--color-primary-blue);
    text-align: center;
    margin-bottom: 60px;
}

.related-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Reusing card styles roughly but specific to this page if needed */
.blog-card {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    width: 397px;
    min-height: 368px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

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

.blog-card.style-coral {
    background: var(--color-coral-light);
    border-color: var(--color-accent-coral);
}

.blog-card.style-green {
    background: #eaf6eb;
    border-color: var(--color-accent-green);
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 30px;
    color: var(--color-primary-blue);
    margin-top: 20px;
    margin-bottom: auto;
}

.blog-card .meta {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-gray-text);
    margin-bottom: 20px;
}

.blog-card .tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.1);
}

.blog-card.style-green .tag {
    background: var(--bg-green-20);
    border-color: var(--color-accent-green);
}

.blog-card.style-coral .tag {
    background: var(--bg-coral-20);
    border-color: var(--color-accent-coral);
}

.cs-label {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-primary-teal);
    text-transform: uppercase;
}

/* ====================================
   Footer (Same as Home)
   ==================================== */
.footer {
    background-color: var(--color-primary-blue);
    padding: 30px 50px 20px;
    position: relative;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section { flex-shrink: 0; }
.footer-logo { width: 100px; height: auto; }

.footer-links-container {
    display: flex;
    gap: 25px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 90px;
}

.footer-header {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
    transition: opacity 0.3s;
}

.footer-header:hover { opacity: 0.8; }

.footer-detail { display: flex; flex-direction: column; }
.contact-label { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--color-white); line-height: 1.4; margin: 0; }
.contact-value { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--color-white); line-height: 1.4; margin: 0; }

.linkedin-link { display: inline-block; }
.linkedin-link img { width: 20px; height: 20px; }

.copyright {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-white);
    text-align: right;
    margin-top: 20px;
}

/* ====================================
   Background Shapes
   ==================================== */
.shapes-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape-star {
    position: absolute;
    width: 140px;
    height: 140px;
    background-image: url('https://www.figma.com/api/mcp/asset/fe398669-1d87-4678-9b92-73f3a5ac37d6'); /* Star asset */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.shape-star-1 {
    top: 100px;
    left: 10%;
}

.shape-star-2 {
    top: 300px;
    right: 10%;
}

/* Responsive */
@media (max-width: 1200px) {
    .container { padding: 0 50px; }
    .content-wrapper { width: 90%; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 32px; line-height: 1.2; }
    
    .header-menu { 
        padding: 20px;
        justify-content: space-between;
    }
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        gap: 40px;
    }
    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links a {
        font-size: 24px;
        color: var(--color-primary);
    }

    .content-wrapper p, .content-wrapper li { font-size: 16px; line-height: 26px; }
    .content-wrapper h2 { font-size: 22px; line-height: 1.3; }
    .content-wrapper h3 { font-size: 18px; line-height: 1.4; }
    .blog-card { width: 100%; max-width: 100%; }
    
    /* Fix fixed-width elements */
    .article-hero,
    .article-content,
    .content-wrapper,
    .related-section {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
        font-size: 14px;
    }
    
    .related-title {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card-title {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 10px;
    }

    .footer-column {
        min-width: 0;
    }

    /* Left aligning columns */
    .footer-column:nth-child(1), 
    .footer-column:nth-child(4) {
        align-items: flex-start;
        text-align: left;
    }

    /* Center aligning columns */
    .footer-column:nth-child(2), 
    .footer-column:nth-child(5) {
        align-items: center;
        text-align: center;
    }

    /* Right aligning columns */
    .footer-column:nth-child(3) {
        align-items: flex-end;
        text-align: right;
    }
}
