@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #ffffff;
    --bg-alt: #f6f6f6;
    --text-main: #121212;
    --text-muted: #767676;
    --accent-blue: #052962; /* Deep Blue */
    --accent-orange: #fc9918; /* Vibrant Orange */
    --accent-orange-dark: #cc6d00; /* Darker Orange for Links */
    --accent-gold: #c5a021; /* Polished Gold */
    --accent-yellow: #f1c40f; /* Vibrant Yellow */
    --accent-white: #ffffff;
    --accent-primary: var(--accent-blue);
    --accent-secondary: var(--accent-orange);
    --border-color: #dcdcdc;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', Helvetica, Arial, sans-serif;
}




.header-logo {
    height: 60px;
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

p {
    text-align: justify;
}

a {
    color: var(--accent-orange-dark);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--accent-gold);
}


.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--accent-primary);
    padding: 10px 0 0 0;
    border-bottom: 4px solid var(--accent-orange);
}



.main-header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Corrected: Align to start (left) */
}

.logo-container {
    padding: 20px 0;
    display: flex;
    justify-content: flex-start; /* Corrected: Aligns logo to left */
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 12px 0;
    width: 100%;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.login-btn {
    margin-left: auto;
    color: var(--accent-secondary) !important;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    height: 800px; /* Base height for alignment */
}
@media screen and (max-width: 900px) {
    .hero-section { height: auto; grid-template-rows: auto; }
}



.hero-card {
    background: #000;
    text-decoration: none;
    color: #ffffff;
    display: block;
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: transform 0.3s;
}

.hero-card:hover {
    transform: scale(0.98);
}

.hero-card .card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s;
}

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




.lead-card {
    grid-row: span 2;
}

.lead-card .lead-card {
    grid-row: span 2;
}

.sub-card {
    display: block;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--accent-primary);
    z-index: 5;
    height: 35%;
    box-sizing: border-box;
    border-top: 3px solid var(--accent-gold);
}

.sub-card .card-content {
    padding: 12px 20px;
}




.category-tag {
    color: var(--accent-secondary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: capitalize;
    display: block;
    margin-bottom: 5px;
}

.card-content h2 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 600; /* Lighter weight Poppins */
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
}

.sub-card .card-content h2 {
    font-size: 1.05rem;
}

.card-content p {
    font-family: var(--font-body);
    color: var(--accent-gold); /* Gold excerpt text */
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.sub-card .card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    margin-top: 5px;
}


/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    margin-bottom: 60px;
}

.category-column {
    border-top: 2px solid var(--accent-secondary);
    padding-top: 10px;
}

.category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0 0 15px 0;
    text-transform: capitalize;
}


.list-card {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
}

.list-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.list-card:hover h4 {
    text-decoration: underline;
}

.list-img {
    width: 120px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

.list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.list-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.list-content .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Large List Variant (Category Page) */
.large-list .list-img {
    width: 300px;
    height: 180px;
}

.large-list .list-content h4 {
    font-size: 1.6rem;
}

/* Article Page */
.article-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}
.article-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 15px;
    font-weight: 800;
}


.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.article-image {
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    display: block;
}

.article-content {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-main);
    font-family: var(--font-body);
}

.article-content h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-blue);
    margin-top: 40px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    font-weight: 700;
}

footer {
    background: var(--accent-primary);
    padding: 60px 0;
    font-family: var(--font-body);
    color: #ffffff;
    margin-top: 60px;
    text-align: center;
    border-top: 4px solid var(--accent-orange);
}


.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo {
    height: 35px;
    width: auto;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* Forms & Admin Dashboard common styles */
.admin-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--bg-alt);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-main);
}
.form-control {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
}

.btn {
    padding: 10px 20px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.btn:hover {
    background: #041e47;
}


/* Paragraph Reset */
.article-content { line-height: 1.5; }
.article-content p { margin: 0 0 0.6rem 0 !important; padding: 0 !important; }

/* Toolkit Button Section */
.toolkit-cta {
    margin: 40px 0;
    grid-column: span 2; /* Span across both columns in a grid */
}

.toolkit-btn {
    display: block;
    background: var(--accent-primary);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    border-radius: 4px;
    transition: transform 0.2s, background 0.2s;
    border: 2px solid var(--accent-secondary);
    text-transform: uppercase;
    line-height: 1.1;
}


.toolkit-btn:hover {
    background: #041e47;
    transform: translateY(-3px);
}

.toolkit-btn span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--accent-gold);
}



/* Toolkit Page Styles */
.toolkit-container {
    padding: 60px 0;
}

.toolkit-header {
    text-align: center;
    margin-bottom: 60px;
}

.toolkit-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-weight: 800;
}


.toolkit-section {
    margin-bottom: 80px;
    opacity: 0; /* For GSAP */
    transform: translateY(30px); /* For GSAP */
}

.toolkit-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--accent-blue);
    font-weight: 700;
    margin-top: 40px;
}


.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.tool-card {
    background: var(--bg-alt);
    padding: 35px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tool-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.tool-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

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

.tool-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--text-main);
    text-align: center;
    width: 100%;
    font-weight: 700;
}


.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    text-align: justify;
    width: 100%;
}
/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .logo {
        font-size: 1.9rem;
    }

    .header-logo {
        height: 50px;
        margin-right: 12px;
    }
    
    .hero-section {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        padding-top: 0;
        border-top: none;
    }

    .hero-card {
        display: flex;
        flex-direction: column;
        height: auto;
        margin-bottom: 25px;
        background: var(--bg-alt);
        position: static;
    }

    .hero-card:last-child {
        margin-bottom: 0;
    }

    .hero-card .card-image {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-card .card-content {
        position: static;
        height: auto;
        background: var(--bg-alt);
        padding: 20px;
        border-top: 4px solid var(--accent-primary);
        color: var(--text-main);
    }

    .hero-card h2 {
        color: var(--accent-primary);
        font-size: 1.5rem;
        margin: 10px 0;
    }

    .hero-card p {
        color: var(--text-muted);
        font-size: 1rem;
        margin: 0;
    }

    .hero-card .category-tag {
        color: var(--accent-secondary);
        position: static;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .toolkit-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }

    /* Floating Hamburger Menu Logic */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        background: var(--accent-orange);
        border-radius: 50%;
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 2000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        cursor: pointer;
        transition: transform 0.2s;
    }

    .menu-toggle:active {
        transform: scale(0.9);
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 3px 0;
        transition: 0.3s;
    }

    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(5, 41, 98, 0.98); /* Slightly transparent Navy */
        padding: 80px 20px;
        z-index: 1500;
        box-shadow: none;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links form {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 !important;
    }

    .nav-links form input {
        width: 100% !important;
    }

    .login-btn {
        margin-left: 0;
        border-bottom: none !important;
    }
    
    .main-header .container {
        position: relative;
    }

    /* List Card Mobile Logic */
    .list-card.large-list {
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .large-list .list-img {
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* helpful for visuals */
        margin-right: 0;
        margin-bottom: 15px;
    }

    .list-content {
        padding: 0 !important;
    }
}

@media screen and (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
}

/* Dark mode rules */
body.dark-mode {
    --bg-color: #121212;
    --bg-alt: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
}
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2100;
    transition: background 0.3s;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
}
.main-header .container {
    position: relative;
}
