/* ==========================================================================
   1) Updated Navigation Bar (3 Links Left, Logo Center, 3 Links Right)
   ========================================================================== */
.navbar {
    background: linear-gradient(rgba(11, 11, 11, 0.2), rgba(11, 11, 11, 0.2)), 
                url('indexPictur/P1.jpeg') center/cover no-repeat;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    height: 120px;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(156, 175, 136, 0.2); 
}

.nav-links {
    display: flex;
    gap: 30px; 
    list-style: none;
}

.nav-links.left {
    justify-content: flex-end;
    margin-right: 40px;
}

.nav-links.right {
    justify-content: flex-start;
    margin-left: 40px;
}

.nav-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.nav-links a:hover {
    color: var(--pure-white);
}

.logo-container {
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   2) About Section - Floating Image Setup (Clean Desktop Base Settings)
   ========================================================================== */
.about-split-section {
    background-color: var(--pure-white); 
    display: grid;
    grid-template-columns: 1fr 1.1fr;   
    align-items: center;               
    width: 100%;
    padding: 80px 8%;                  
    gap: 60px;                         
    border-top: none;                  
    border-bottom: none;               
}

.about-image-side {
    background-image: url('indexPictur/Services.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 520px;                     
    border-radius: 4px;                
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
}

.about-text-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;                        
    text-align: left;
    background-color: transparent;     
}

.about-text-side h2 {
    font-family: var(--font-heading);
    color: var(--primary-green); 
    font-size: 3.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text-side p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--matte-black); 
    font-weight: 400;
    line-height: 1.9;
}

/* ==========================================================================
   3) Alternating Side-by-Side Content Rows (Sections 1 & 2)
   ========================================================================== */
.split-section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 55vh;
    width: 100%;
    background-color: var(--matte-black);
}

.row-image-panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
}

.row-text-panel {
    background-color: var(--matte-black);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 10% 80px 12%;
    text-align: left;
}

.row-text-panel h3 {
    font-family: var(--font-heading);
    color: var(--primary-green); 
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 400;
}

.row-text-panel p {
    font-family: var(--font-body);
    color: var(--pure-white); 
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 480px;
}

/* ==========================================================================
   4) Posting Section Styles
   ========================================================================== */
.posting-section {
    background-color: var(--matte-black);
    padding: 100px 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.posting-section-title {
    font-family: var(--font-heading);
    color: var(--pure-white);
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.posting-section-subtitle {
    font-family: var(--font-body);
    color: var(--primary-green);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 60px;
    font-weight: 500;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(156, 175, 136, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.post-image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video crops and fills the image space neatly */
    display: block;
}

/* Honest placeholder for posts whose media couldn't be safely stored client-side */
.post-media-pending {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #151515;
    font-size: 2.4rem;
    opacity: 0.4;
}


.post-card:hover .post-img {
    transform: scale(1.05);
}

/* ==========================================================================
   Fullscreen Video Lightbox
   ========================================================================== */
.lightbox-overlay-dialog {
    border: none;
    background-color: rgba(0, 0, 0, 0.95);
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    padding: 0;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.lightbox-overlay-dialog[open] {
    display: flex;
    flex-direction: column;
}

.lightbox-close-x {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1;
}

.lightbox-close-x:hover {
    color: var(--primary-green);
}

.video-lightbox-player {
    max-width: 90%;
    max-height: 78%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.video-lightbox-controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding: 12px 28px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
}

.video-lightbox-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.video-lightbox-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.video-lightbox-btn:hover {
    color: var(--primary-green);
}

@media (max-width: 600px) {
    .video-lightbox-player {
        max-width: 96%;
        max-height: 65%;
    }

    .video-lightbox-controls-bar {
        gap: 16px;
        padding: 10px 20px;
    }

    .video-lightbox-btn svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-close-x {
        top: 14px;
        right: 18px;
        font-size: 2rem;
    }
}

.post-content-frame {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-date {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.post-title {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 400;
}

.post-excerpt {
    font-family: var(--font-body);
    color: var(--body-text);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

.posts-action-row {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   5) Inline SVG Social Row & Footer Styles
   ========================================================================== */
.social-footer-container {
    background-color: var(--matte-black);
    padding: 80px 20px 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-title {
    font-family: var(--font-heading);
    color: var(--pure-white);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 35px;
}

.social-icon-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.social-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-icon-circle svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-green);
    transition: all 0.3s ease;
}

.social-icon-circle:hover {
    background-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(156, 175, 136, 0.25);
}

.social-icon-circle:hover svg {
    fill: var(--matte-black);
}

/* A platform turned off in System Settings — dimmed, click shows a message instead of navigating */
.social-link-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.social-link-disabled:hover {
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

.social-link-disabled:hover svg {
    fill: var(--primary-green);
}

.footer-divider {
    width: 80px;
    height: 1px;
    background-color: rgba(156, 175, 136, 0.3);
    margin: 0 auto 30px auto;
}

.copyright-text {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.developer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.developer-link:hover {
    color: var(--primary-green);
}

/* ==========================================================================
   6) ONE SINGLE Combined Mobile Responsive Query Bracket Override
   ========================================================================== */
@media (max-width: 900px) {
    /* Navbar Mobile overrides */
    .navbar {
        grid-template-columns: 1fr;
        height: auto;
        padding: 30px 20px;
        justify-items: center;
    }
    .nav-links.left, .nav-links.right {
        margin: 15px 0 0 0;
        justify-content: center;
        gap: 20px;
    }
    
    /* About Floating Section Mobile overrides */
    .about-split-section {
        grid-template-columns: 1fr;    
        padding: 60px 25px;            
        gap: 40px;
    }
    .about-image-side {
        height: 380px;                 
    }
    .about-text-side {
        align-items: center;
        text-align: center;
    }
    .about-text-side h2 {
        font-size: 2.4rem;
    }

    /* Side-by-side rows mobile overrides */
    .split-section-row {
        grid-template-columns: 1fr;
    }
    .row-text-panel {
        padding: 60px 30px;
        align-items: center;
        text-align: center;
    }
    .row-image-panel {
        min-height: 350px;
    }
    .row-image-panel.order-toggle {
        order: 2;
    }

    /* Posts responsive grid stack overrides */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
