:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f97316;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --text: #334155;

    /* Enhanced CSS custom properties for consistency */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --border-radius: 16px;
    --content-max-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f9fbff;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================= */
/* Navigation Styles */
/* ========================= */
.navbar {
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    /* z-index: 1000; */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: #000;
}

.navbar-brand .highlight {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f1f5f9;
    color: var(--text);
}

.submenu-list-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 295px;
    list-style-type: none;
}

.mega-title {
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
    padding-left: 22px;
    /* border-bottom:1px solid #3b82f6; */
}

/* ========================= */
/* Article/Post Layout */
/* ========================= */

/* ========================= */
/* Redesigned News Section */
/* ========================= */

/* Article Styles */
.header-image {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 2.5rem;
    border: none;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--dark);
    background: #f1f5f9;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    transition: var(--transition);
}

.post-meta-item:hover {
    background: var(--primary);
    color: white;
    cursor: pointer;
}

.post-meta-item:hover i {
    color: white;
}

.post-meta i {
    color: var(--primary);
    font-size: 1.1rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    /* position: relative; */
    padding-bottom: 1rem;
}

.post-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark);
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-share {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
}

.social-share-title {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.social-share a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.25);
}

.author-bio {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.author-bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.author-details h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40%;
    height: 2px;
    background: var(--primary);
}

.author-details p {
    color: var(--text);
    margin-bottom: 1rem;
}

.author-socials {
    display: flex;
    gap: 0.8rem;
}

.author-socials a {
    color: var(--primary);
    transition: var(--transition);
    font-size: 1.2rem;
}

.author-socials a:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.related-articles {
    margin: 4rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

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

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.article-excerpt {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.85rem;
}

/* ========================= */
/* Footer Styles */
/* ========================= */

footer {
    background-color: var(--dark);
    color: #e2e8f0;
    padding: 6rem 0 2rem;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo h2 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-logo p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 320px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-links ul,
.footer-blogs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-blogs li {
    margin-bottom: 0.9rem;
    position: relative;
    padding-left: 1.2rem;
}

.footer-links li::before,
.footer-blogs li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.footer-links a,
.footer-blogs a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover,
.footer-blogs a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-contact p svg {
    min-width: 18px;
    margin-top: 4px;
    color: var(--primary);
}

.contact-button {
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.footer-socials {
    margin-top: 1.8rem;
    display: flex;
    gap: 0.8rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    margin-top: 4rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 2rem 1rem 0;
}

.footer-bottom p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* ========================= */
/* Footer Responsive Design */
/* ========================= */

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-logo,
    .footer-column {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .footer-logo p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li,
    .footer-blogs li {
        padding-left: 0;
        text-align: center;
    }

    .footer-links li::before,
    .footer-blogs li::before {
        display: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 0 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-logo h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-logo h2 {
        font-size: 1.75rem;
    }

    .contact-button {
        width: 100%;
        justify-content: center;
    }
}