/* --- Variables --- */
:root {
    /* STRICT 2-COLOR PALETTE */
    --primary-blue: #0e2a47; 
    --pure-white: #ffffff;
    
    /* Mappings */
    --text-heading: var(--primary-blue);
    --text-body: var(--primary-blue); /* Using blue for body text too, or could be a tint */
    --bg-body: var(--pure-white);
    --border-color: #e5e5e5; /* Very light neutral for borders, technically a grey but necessary for white-on-white separation. If strictly NO grey allowed, use var(--primary-blue) with low opacity */
}

/* --- Global Reset & Basics --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'League Spartan', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-blue);
    background-color: #f4f6f8; 
	/* background-color: #ffffff; */
}

a {
    text-decoration: none;
    transition: all 0.3s ease-out;
    color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container Logic */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
/* NEW: 1400px Requirement */
@media (min-width: 1400px) { .container { max-width: 1350px; } }

/* --- 1. Main Header Area (Capsule Style) --- */
.main-header-area {
    /* Your requested background color */
    background-color: #f4f6f8; 
    padding: 40px 0;
    /* Removed border-bottom as the color difference is enough separation */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.brand-text-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
}

/* --- Capsule Menu Styles --- */
.nav-menu {
    display: flex;
    align-items: center;
    /* Capsule Look: White bg, rounded corners, shadow */
    background-color: var(--pure-white);
    border-radius: 50px; /* High value makes it a pill shape */
    padding: 20px 50px;
    box-shadow: 0 4px 15px rgba(14, 42, 71, 0.05); /* Soft shadow for depth */
    gap: 0; /* Removing gap to let us control spacing via padding/borders */
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-blue);
    opacity: 0.8;
    transition: all 0.3s ease;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    padding: 0 5px; /* Spacing around text */
    position: relative;
    display: inline-block;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-blue);
}

/* Pipeline Separator Logic */
/* Add a pipe after every link EXCEPT the last one */
.nav-link:not(:last-child)::after {
    /* content: '|'; */
    position: absolute;
    right: 0;
    color: rgba(14, 42, 71, 0.2); /* Light opacity for the pipe */
    font-weight: 400;
    pointer-events: none; /* Ensures the pipe isn't clickable */
}


/* First link doesn't need left padding, Last link doesn't need right padding */
.nav-link:first-child { padding-left: 0; }
.nav-link:last-child { padding-right: 0; }


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-flex {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        /* On mobile, we can keep the capsule or simplify it. 
           Keeping it capsule but adjusting padding usually looks good. */
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
        /* Allow wrapping if menu items are long */
        flex-wrap: wrap; 
    }

    .nav-link {
        font-size: 13px;
        padding: 0 10px;
    }
}

/* Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.brand-text-logo {
    font-size: 48px; /* Adjusted size for inline header */
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
}

/* Menu Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between links */
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-blue);
    opacity: 0.7; /* Slightly faded for elegance */
    transition: all 0.3s ease;
    /* text-transform: uppercase; /* Optional: matches logo vibe */
    letter-spacing: 0.5px;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-blue);
}

/* Mobile Responsiveness for Header */
@media (max-width: 768px) {
    .header-flex {
        justify-content: center; /* Center everything on mobile */
        flex-direction: column;  /* Stack logo on top of menu */
        gap: 15px;
    }
    
    .nav-menu {
        gap: 20px;
        font-size: 14px;
    }
}

/* --- 3. Blog Grid System --- */
.blog-grid-area { padding: 20px 0 50px 0; }

.grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.grid-col {
    padding-right: 12px;
    padding-left: 12px;
    margin-bottom: 24px;
    width: 100%;
}

@media (min-width: 768px) { .grid-col { width: 50%; } }
@media (min-width: 992px) { .grid-col { width: 33.3333%; } }

/* --- CARD DESIGN --- */
.blog-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(14, 42, 71, 0.08); /* Blue shadow tint */
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 42, 71, 0.15);
}

.blog-thumb-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* IMAGE RATIO FIX (16:9) */
.blog-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Enforces 16:9 ratio */
    object-fit: cover;    /* Ensures image fills area without distortion */
    transition: transform 0.5s ease;
    border-radius: 8px;
}

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

/* Tag Styles - Using Primary Blue background */
.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-blue);
    color: var(--pure-white);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 4px;
    z-index: 2;
}

.blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--primary-blue);
    opacity: 0.7;
    font-weight: 500;
}

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

.blog-meta i {
    color: var(--primary-blue);
    font-size: 16px;
}

.meta-divider {
    margin: 0 15px;
    color: rgba(14, 42, 71, 0.3);
}

.blog-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.blog-title a:hover {
    opacity: 0.7; /* Simple hover effect without new color */
}

/* --- 4. Pagination --- */
.pagination-area {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper ul {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.pagination-wrapper ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--pure-white);
    border: 1px solid rgba(14, 42, 71, 0.2);
    border-radius: 50%;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 15px;
}

.pagination-wrapper ul li a:hover,
.pagination-wrapper ul li a.active {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    border-color: var(--primary-blue);
}

/* --- 5. Copyright Footer --- */
.copyright-area {
    background-color: var(--primary-blue); /* #0e2a47 */
    color: var(--pure-white);             /* #ffffff */
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
}

.copyright-text p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.copyright-text a {
    color: var(--pure-white);
    font-weight: 700;
    text-decoration: none;
}

/* --- Article Specifics (For article.html) --- */
.article-wrapper { padding: 10px 0 50px 0; }
.content-container { max-width: 1200px; margin: 0 auto; } /* Narrower for reading */

.article-header { text-align: center; margin-bottom: 40px; }

.article-meta-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
}

.main-heading {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.featured-image-box {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
}
.featured-image-box img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body { font-size: 18px; line-height: 1.8; color: var(--primary-blue); }
.article-body p { margin-bottom: 25px; opacity: 0.9; }

.highlight-quote {
    background: #f4f6f8; /* Light bg */
    border-left: 4px solid var(--primary-blue);
    padding: 40px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}
.highlight-quote p { font-style: italic; font-size: 24px; font-weight: 600; }

/* --- Table Styles (Add to bottom of style.css) --- */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
    text-align: left;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    overflow: hidden; /* Ensures corners clip the header bg */
    box-shadow: 0 0 20px rgba(14, 42, 71, 0.05);
}

.article-body th {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.article-body td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(14, 42, 71, 0.1); /* Subtle blue border */
    color: var(--primary-blue);
    opacity: 0.9;
}

.article-body tr:last-of-type td {
    border-bottom: 2px solid var(--primary-blue); /* Stronger bottom finish */
}

/* Hover effect for rows */
.article-body tr:hover td {
    background-color: rgba(14, 42, 71, 0.03);
}

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

/* --- Article List Styles (Main Body & Tables) --- */

/* 1. Shared Reset for ALL lists inside article */
.article-body ul, .article-body ol {
    list-style: none; /* Remove default browser bullets/numbers */
    padding: 0;
}

/* 2. Main Article Body Lists (Generous Spacing) */
.article-body > ul, 
.article-body > .content-container ul,
.article-body > ol, 
.article-body > .content-container ol { 
    margin: 30px 0 30px 10px;
}

/* 3. Shared List Item Styling */
.article-body li {
    position: relative;
    padding-left: 30px; /* Indent for bullet/number */
    color: var(--primary-blue);
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Text Size for Main Body Lists */
.article-body > ul li, .article-body > ol li,
.article-body > .content-container ul li, .article-body > .content-container ol li {
    font-size: 18px; 
}

/* --- UNORDERED LISTS (<ul> - Blue Dots) --- */
/* Note: We added 'ul' to the selector to prevent affecting numbers */
.article-body ul li::before {
    content: '';
    position: absolute;
    left: 5px; 
    width: 6px;
    height: 6px;
    background-color: var(--primary-blue);
    border-radius: 50%;
}

/* Dot Positioning: Center with 18px text */
.article-body > ul li::before, 
.article-body > .content-container ul li::before { 
    top: 11px; 
}

/* --- ORDERED LISTS (<ol> - Numbers) --- */
.article-body ol {
    counter-reset: article-counter;
}

.article-body ol li::before {
    counter-increment: article-counter;
    content: counter(article-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.8;
    
    /* RESET styles to ensure no blue background or circle shape */
    background-color: transparent;
    border-radius: 0;
    height: auto;
}

/* Nested Ordered Lists (1.1, 1.2 style indent) */
.article-body ol ol {
    margin: 10px 0 10px 10px;
}
.article-body ol ol li {
    font-size: 16px;
}

/* --- TABLE SPECIFIC LISTS --- */
.article-body table td ul, 
.article-body table td ol {
    margin: 5px 0 0 0; 
}

.article-body table td li {
    font-size: 16px; 
    margin-bottom: 8px; 
    line-height: 1.4;   
}

/* Table Dot Positioning */
.article-body table td ul li::before { 
    top: 9px; 
}

/* ==========================================
   6. CONTACT PAGE FORM STYLES
   ========================================== */

.contact-main {
    padding: 60px 20px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--pure-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(14, 42, 71, 0.08); /* Matches blog-card shadow */
}

.contact-header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.contact-title {
    color: var(--primary-blue);
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

.contact-desc {
    color: var(--primary-blue);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-blue);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
    color: var(--primary-blue);
    background-color: var(--pure-white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.btn-submit {
    align-self: flex-start;
    padding: 12px 32px;
    background-color: var(--primary-blue);
    color: var(--pure-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.85;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1); /* Subtle green tint */
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1); /* Subtle red tint */
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}
