/*
Theme Name: kdlnc
Theme URI: https://example.com/kdlnc
Author: krishang
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kdlnc
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('assets/css/news-events.css');


/* CSS Variables & Design Tokens */
:root {
    /* Color Palette */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    
    /* Header & Footer Custom Colors */
    --color-header-top-bg: #1F4E79; /* Exact Dark Blue from mockup */
    --color-header-main-bg: #ffffff; /* White bottom header */
    --color-footer-bg: #090d16;     /* Dark footer background */
    --color-border-subtle: #e2e8f0;

    --color-text-dark: #0f172a;
    --color-text-medium: #475569;
    --color-text-light: #1e293b;
    --color-text-muted: #64748b;

    --color-primary: #1d4e77; /* Deep Navy Blue */
    --color-primary-hover: #153c5d;
    --color-secondary: #2563eb; /* Vibrant Blue */
    --color-cta-light-bg: #f0f7ff;
    --color-cta-light-border: #bfdbfe;
    
    /* Typography */
    --font-heading: 'Poppins';
    --font-body: 'Poppins';

    /* Shadow system */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Spacing & Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset / Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

input, button, select, textarea {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Double-Decker Header */
.site-header.double-decker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

/* 1. Header Top Bar */
.header-top-bar {
    background-color: var(--color-header-top-bg);
    height: 42px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    transition: margin-top var(--transition-normal);
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-email-link:hover {
    color: #ffffff;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-top-nav {
    display: flex;
    gap: 1.5rem;
}

.header-top-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.header-top-nav a:hover {
    color: #ffffff;
}

.customer-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 500;
    background-color: transparent;
}

.customer-login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.customer-login-btn svg {
    width: 14px;
    height: 14px;
}

/* 2. Header Main Bar */
.header-main-bar {
    background-color: var(--color-header-main-bg);
    height: 75px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo .text-logo {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.05em;
}

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

.site-logo img {
    max-height: 48px;
    width: auto;
}

.header-main-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* Navigation inside bottom header */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

.header-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-cta-outline {
    background-color: var(--color-cta-light-bg);
    border: 1px solid var(--color-cta-light-border);
    color: var(--color-primary);
}

.btn-cta-outline:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.btn-cta-outline svg {
    color: var(--color-primary);
    width: 15px;
    height: 15px;
}

.btn-cta-solid {
    background-color: var(--color-secondary);
    color: #ffffff;
    border: none;
}

.btn-cta-solid:hover {
    background-color: #1d4e77;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Scrolled Header Interactions */
.site-header.double-decker.scrolled .header-top-bar {
    margin-top: -42px; /* Collapses the top bar smoothly */
}

/* Hero Section Offset */
.hero-section {
    background: linear-gradient(135deg, #090d16 0%, #151e30 50%, #090d16 100%);
    position: relative;
    padding: 210px 0 100px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Custom Buttons (Hero) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4e77 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    transform: translateY(-2px);
}

/* Post Grid / Archive Section */
.content-area {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Post Card Styling */
.post-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.3);
}

.post-thumbnail-link {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--color-bg-tertiary);
}

.post-thumbnail-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-card:hover .post-thumbnail-link img {
    transform: scale(1.04);
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.post-category {
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-card-title a:hover {
    color: var(--color-secondary);
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.post-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.post-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
}

.read-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* Custom Footer Styles matching Mockup */
.custom-footer {
    background-color: var(--color-footer-bg);
    border-top: 1px solid var(--color-border-subtle);
    padding: 5rem 0 2rem;
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr 1.2fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand-col .text-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-brand-col .text-logo span {
    color: var(--color-secondary);
}

.footer-desc-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 260px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links-list a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-links-list a:hover {
    color: #ffffff;
}

/* Double divider bottom area */
.footer-bottom-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    width: 100%;
    margin: 1.5rem 0;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-bottom-email a:hover {
    color: #ffffff;
}

.footer-disclaimer-row {
    text-align: center;
    padding-top: 0.5rem;
}

.footer-disclaimer-text {
    font-size: 0.75rem;
    color: #475569;
    letter-spacing: 0.02em;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(4, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .header-main-right {
        gap: 1.5rem;
    }
    .main-navigation ul {
        gap: 1.25rem;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none !important; /* Hide top bar on mobile for cleaner spacing */
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: #ffffff;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        border-top: 1px solid #e2e8f0;
        box-shadow: var(--shadow-lg);
    }
    .main-navigation.is-active {
        transform: translateX(0);
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-navigation a {
        font-size: 1rem;
        color: var(--color-text-dark);
    }
    .header-ctas {
        display: none; /* CTAs fold into menu or are hidden on mobile header */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand-col {
        margin-bottom: 1rem;
    }
    .footer-bottom-row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
