/* =========================================================================
   1. GLOBAL FRAMEWORK RULES & PALETTE SETTINGS
   ========================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Urbanist", sans-serif;
}

body {
    background-color: #f3f7fa;
    background-image: url('../Photos/Logo.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 65vw;
    background-attachment: fixed;
    color: #334155;
    padding-top: 90px;
}
/* ==========================================================================
   3. NAVIGATION BAR (MODIFIED FOR TRANSPARENCY & TRANSITIONS)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    box-shadow: none;
    padding: 0 80px;
    z-index: 1000;
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Solid white display triggers instantly when scrolled container intercepts logic threshold */
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

#colab-logo {
    width: 150px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2b4c7e; 
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

/* Changes textual targets safely back to corporate brand blue once backdrop is solid white */
.navbar.scrolled .nav-links a {
    color: #2b4c7e;
}

.nav-links a:hover,
.nav-links a.active-nav-item {
    color: #7ca852 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff; /* Initial crisp white mobile links layout */
    margin: 3px 0;
    transition: 0.3s;
}

.navbar.scrolled .hamburger span {
    background-color: #333333;
}

/* =========================================================================
   3. STRUCTURAL CONTENT PAGE GRID WRAPPER
   ========================================================================= */
.articles-page-wrapper {
    max-width: 940px;
    width: 100%;
    margin: 50px auto 80px auto;
    position: relative;
    padding: 0 20px;
}

/* Centered Article Area Panel */
.main-article-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-inner-body-padding {
    padding: 40px 50px;
}

.category-pill-badge {
    display: inline-block;
    background-color: #eaf2e6;
    color: #6a8c4e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.featured-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 18px;
}

.featured-summary-description {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 30px;
}

.premium-metadata-strip {
    display: flex;
    align-items: center;
    gap: 35px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
    margin-bottom: 35px;
}

/* Isolated Cover Position Scaling Framework */
.isolated-article-cover-wrap {
    width: 100%;
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.isolated-article-cover-wrap img {
    width: 100%;
    height: 500px;
    display: block;
    object-fit: contain;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

.meta-item .meta-icon {
    font-size: 16px;
    color: #94a3b8;
}

.author-block .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}

.meta-text-group {
    display: flex;
    flex-direction: column;
}

.meta-title-lbl {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.meta-value-data {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

/* Rich Text Output Settings */
.article-render-viewport {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
}

.article-render-viewport p {
    margin-bottom: 24px;
}

.article-render-viewport img {
    max-width: 100%;
    height: auto !important;
    border-radius: 12px;
    margin: 15px auto;
    display: block;
}

.fallback-missing-msg {
    text-align: center; 
    padding: 60px 20px;
}
.fallback-missing-msg i {
    font-size: 44px;
    color: #cbd5e1;
    margin-bottom: 15px;
}
.fallback-missing-msg h2 {
    font-size: 22px;
    color: #475569;
    margin-bottom: 10px;
}
.fallback-missing-msg a {
    color: #83a060;
    font-weight: 600;
    text-decoration: none;
}

/* =========================================================================
   4. HORIZONTAL SCROLL ARCHIVE TRACK (ONE-LINE SLIDER)
   ========================================================================= */
.next-article-callout-zone {
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
}

.section-indicator-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-indicator-headline i {
    color: #83a060;
}

.slider-outer-wrapper {
    width: 100%;
    overflow-x: auto; 
    padding: 20px 10px; 
    margin: -10px;      
    scrollbar-width: thin;
    scrollbar-color: #83a060 #ffffff;
}

.slider-outer-wrapper::-webkit-scrollbar {
    height: 6px;
}
.slider-outer-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.slider-outer-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.article-history-slider-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 35px; 
    width: max-content; 
    padding: 5px;
}

.horizontal-preview-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(39, 68, 92, 0.08); 
    height: 230px;
    width: 440px; 
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.horizontal-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(39, 68, 92, 0.15);
    border-color: rgba(131, 160, 96, 0.2);
}

.card-image-left {
    width: 40%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.card-details-right {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-badge-lbl {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.preview-title-lbl {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-excerpt-lbl {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-trigger-link {
    font-size: 13px;
    font-weight: 700;
    color: #6a8c4e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.read-more-trigger-link:hover {
    color: #27445c;
}

/* ==========================================================================
   5. FOOTER & SUB-FOOTER (UPDATED FOR RESPONSIVENESS)
   ========================================================================== */
.sub-footer {
    position: relative;
    z-index: 2; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    padding: 80px 40px;
    gap: 50px;
    width: 100%;
}

.footer-logo-side img {
    width: 240px;
    height: auto;
    display: block;
}

.footer-divider {
    width: 1px;
    height: 140px;
    background-color: #dddddd;
    flex-shrink: 0;
}

.foot-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
    width: 100%;
}

.info-row {
    display: flex;
    align-items: center;
    color: #444444;
}

.info-row p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.address-row {
    align-items: flex-start;
    gap: 12px;
}

.icon-marker {
    color: #333333;
    font-size: 20px;
    margin-top: 2px;
}

.connect-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    color: #111111;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #1d4477;
}

.mail-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-mail {
    color: #555555;
    font-size: 18px;
}

.phones-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.phones-row p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-phone, .icon-globe {
    color: #2b4c7e;
    font-size: 16px;
}

footer {
    position: relative;
    z-index: 2; 
    background-color: #1a4273;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* =========================================================================
   6. RESPONSIVE ADAPTABILITY VIEWPORTS (FOOTER UPDATES INCLUDED)
   ========================================================================= */
@media (max-width: 900px) {
    .footer-upper-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }
    body { background-size: 90vw; }
    
    /* Tablet optimizations for footer */
    .sub-footer {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 60px 30px;
    }
    
    .footer-divider {
        width: 80%;
        height: 1px; /* Turns the vertical line into a clean horizontal line */
        margin: 10px 0;
    }
    
    .foot-info-side {
        align-items: center;
    }
    
    .info-row {
        justify-content: center;
        width: 100%;
    }
    
    .address-row {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .connect-row, .phones-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .navbar { height: 70px; padding: 0 20px; }
    .logo-container #colab-logo { height: 70px; width: auto; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        padding-top: 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active { right: 0; }
    
    .article-inner-body-padding { padding: 30px 20px; }
    .featured-title { font-size: 26px; }
    .premium-metadata-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    .horizontal-preview-card {
        width: 310px;
        height: 320px;
        flex-direction: column;
    }
    .card-image-left { width: 100%; height: 40%; }
    .card-details-right { width: 100%; height: 60%; padding: 15px; }
    
    /* Mobile optimizations for footer */
    .sub-footer {
        padding: 40px 20px;
        gap: 25px;
    }
    
    .footer-logo-side img {
        width: 200px; /* Marginally scales down logo to save mobile viewport area */
    }
    
    .connect-row, .phones-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}
/* =========================================================================
   6. RESPONSIVE ADAPTABILITY VIEWPORTS
   ========================================================================= */
@media (max-width: 900px) {
    .footer-upper-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }
    body { background-size: 90vw; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .navbar { height: 70px; padding: 0 20px; }
    .logo-container #colab-logo { height: 70px; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        padding-top: 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active { right: 0; }
    
    .article-inner-body-padding { padding: 30px 20px; }
    .featured-title { font-size: 26px; }
    .premium-metadata-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    .horizontal-preview-card {
        width: 310px;
        height: 320px;
        flex-direction: column;
    }
    .card-image-left { width: 100%; height: 40%; }
    .card-details-right { width: 100%; height: 60%; padding: 15px; }
}