/* Blog Theme Styles - Extracted from index.html and blogdetail.html */
/* 
 * Main stylesheet for blog homepage and single post pages
 * Includes brand colors, responsive design, and component styles
 */

/* ===== BRAND VARIABLES ===== */
:root {
    --brand-primary: #008CCD;
    --brand-light-bg: #DFF1F9;
    --text-black: #111827;
    --text-gray-900: #111827;
    --text-gray-700: #374151;
    --text-gray-600: #4b5563;
    --text-gray-500: #6b7280;
    --text-blue: #008CCD;
    --text-homeblack: #111827;
    --text-homegrey: #6b7280;
    --bg-gray-50: #f9fafb;
}

/* ===== BASE STYLES ===== */
body {
    background-color: var(--bg-gray-50);
    color: var(--text-gray-900);
}

/* ===== HEADER STYLES ===== */
.blog-header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.blog-header .logo-img {
    width: 7.5rem;
    height: 3rem;
    object-fit: cover;
}

.blog-header .nav-link {
    transition: color 0.2s ease;
}

.blog-header .nav-link:hover {
    color: #1d4ed8;
}

.blog-header .brand-btn {
    background-color: var(--brand-primary);
    color: white;
    transition: background-color 0.2s ease;
}

.blog-header .brand-btn:hover {
    background-color: #0066a1;
}

/* ===== BANNER/HERO SECTION ===== */
.blog-banner {
    background-color: var(--brand-primary);
    color: white;
    padding: 6rem 0 4rem 0;
    position: relative;
}

.blog-banner-content {
    background-color: var(--brand-primary);
    max-height: 325px;
    overflow: hidden;
    width: 100%;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-banner h1 {
    color: black;
}

.blog-banner p {
    color: black;
}

.blog-banner .cta-btn {
    background-color: white;
    color: var(--brand-primary);
    transition: background-color 0.2s ease;
}

.blog-banner .cta-btn:hover {
    background-color: #f3f4f6;
}

/* ===== CATEGORY NAVIGATION PILLS ===== */
.category-nav {
    background-color: white;
    color: black;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    z-index: 40;
}

.category-nav ul {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav ul::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-nav a span {
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    background-color: var(--brand-primary);
    height: 2px;
    width: 0;
    transition: width 0.3s ease;
    opacity: 1;
}

.category-nav a:hover span {
    width: 100%;
}

/* ===== BLOG CARDS STYLES ===== */
.blog-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.blog-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.blog-card .category-tag {
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card .read-more {
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card .read-more:hover {
    color: #0066a1;
}

/* ===== SINGLE POST STYLES ===== */
.single-post-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
}

.single-post-title {
    font-size: 1.75rem;
    color: var(--text-homeblack);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray-500);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.post-meta svg {
    width: 1.5rem;
    height: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.author-info .author-avatar {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-info .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info .author-name {
    font-size: 1.25rem;
    color: var(--text-homeblack);
    font-weight: 600;
    margin: 0;
    cursor: pointer;
}

.author-info .author-role {
    color: var(--text-homegrey);
    font-size: 1rem;
}

.author-info .verified-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-blue);
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb-nav {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.breadcrumb-nav .breadcrumb-link {
    color: var(--text-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav .breadcrumb-link:hover {
    color: #0066a1;
}

.breadcrumb-nav .breadcrumb-separator svg {
    width: 1em;
    height: 1em;
}

/* ===== BLOG POST CONTENT STYLES ===== */
.blog-post-prose {
    color: var(--text-homeblack);
    width: 98%;
    line-height: 1.875;
    max-width: none;
}

.blog-post-prose h1,
.blog-post-prose h2,
.blog-post-prose h3,
.blog-post-prose h4,
.blog-post-prose h5,
.blog-post-prose h6 {
    color: var(--text-homeblack);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-prose h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.blog-post-prose h3 {
    font-size: 1.5rem;
}

.blog-post-prose p {
    margin-bottom: 1rem;
    color: var(--text-gray-700);
}

.blog-post-prose ul,
.blog-post-prose ol {
    margin: 1rem 0;
    padding-left: 2.5rem;
}

.blog-post-prose li {
    margin-bottom: 0.5rem;
}

.blog-post-prose a {
    color: var(--brand-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-post-prose a:hover {
    color: #0066a1;
}

.blog-post-prose img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.blog-post-prose .keyTakeWay {
    background-color: #f8fafc;
    border-left: 4px solid var(--brand-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-post-prose .keyTakeWay p strong {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

/* ===== FOOTER STYLES ===== */
.blog-footer {
    background-color: var(--brand-primary);
    margin-top: 2.5rem;
}

.blog-footer h4 {
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.blog-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-footer ul li {
    margin-bottom: 0.5rem;
}

.blog-footer a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-footer a:hover {
    text-decoration: underline;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown-container {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    transition: color 0.2s ease;
}

.dropdown-btn:hover {
    text-decoration: underline;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    width: 50rem;
    padding: 1.5rem;
    z-index: 50;
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-menu a {
    display: block;
    color: #374151;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    color: var(--brand-primary);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .category-nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-banner-content {
        max-height: none;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .category-nav {
        position: relative;
        top: auto;
        margin: 1rem;
        border-radius: 1rem;
    }
    
    .single-post-content {
        padding: 1rem;
    }
    
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .blog-post-prose {
        width: 100%;
    }
    
    .dropdown-menu {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== UTILITY CLASSES ===== */
.brand-color {
    color: var(--brand-primary);
}

.brand-bg {
    background-color: var(--brand-primary);
}

.text-homeblack {
    color: var(--text-homeblack);
}

.text-homegrey {
    color: var(--text-homegrey);
}

.text-blue {
    color: var(--text-blue);
}

.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}