/*
Theme Name: Namma Samachara
Theme URI: https://example.com/
Author: CodeByKannadiga
Description: Custom theme converted from the provided static UI (login/signup/dashboard removed).
Version: 1.0.0
Text Domain: namma-samachara
*/

/* Reset & Base - NO MARGINS OR PADDING ANYWHERE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Serif Kannada', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    position: relative;
    background: #0A1628;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0A1628 0%, #1A365D 100%);
}

/* Animated Tech Background */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.tech-bg .circle {
    position: absolute;
    background: rgba(49, 130, 206, 0.08);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.tech-bg .circle:nth-child(1) { width: 400px; height: 400px; top: -100px; left: -100px; animation-duration: 25s; }
.tech-bg .circle:nth-child(2) { width: 600px; height: 600px; bottom: -200px; right: -150px; animation-duration: 30s; animation-delay: 2s; background: rgba(16, 185, 129, 0.05); }
.tech-bg .circle:nth-child(3) { width: 250px; height: 250px; top: 40%; left: 70%; animation-duration: 18s; animation-delay: 5s; }
.tech-bg .circle:nth-child(4) { width: 180px; height: 180px; bottom: 25%; left: 5%; animation-duration: 22s; animation-delay: 1s; background: rgba(49, 130, 206, 0.1); }
.tech-bg .circle:nth-child(5) { width: 450px; height: 450px; top: 50%; left: -150px; animation-duration: 35s; animation-delay: 3s; }
.tech-bg .circle:nth-child(6) { width: 150px; height: 150px; top: 15%; right: 15%; animation-duration: 15s; animation-delay: 7s; background: rgba(16, 185, 129, 0.06); }
.tech-bg .circle:nth-child(7) { width: 300px; height: 300px; bottom: 10%; right: 30%; animation-duration: 28s; animation-delay: 4s; }

.tech-bg .grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(49, 130, 206, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 130, 206, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 60s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(5deg); }
    50% { transform: translateY(20px) translateX(-15px) rotate(-3deg); }
    75% { transform: translateY(-10px) translateX(10px) rotate(2deg); }
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Kannada Text */
.kannada-text {
    font-family: 'Noto Serif Kannada', 'Poppins', serif;
    font-weight: 500;
    line-height: 1.6;
    color: #FFFFFF;
}

/* Header - NO GAP */
.site-header {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(49, 130, 206, 0.3);
    margin: 0;
    padding: 0;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

/* Logo - Leftmost, Larger */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #FFFFFF;
    transition: transform 0.3s ease;
}

.logo a:hover { transform: scale(1.02); }
.logo a i { font-size: 28px; color: #3182CE; text-shadow: 0 0 10px rgba(49, 130, 206, 0.5); }

/* Desktop Navigation */
.main-nav {
    display: none;
}

.header-actions {
    display: none;
}

/* Mobile Elements */
.mobile-elements {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mobile-search i, .mobile-menu-btn i {
    font-size: 20px;
    cursor: pointer;
    color: #FFFFFF;
    transition: transform 0.2s ease;
}

/* Hero Section - Full Width, No Gap, Dark Tech Image */
.hero {
    position: relative;
    width: 100%;
    min-height: 550px;
    background-image: url('https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85), rgba(26, 54, 93, 0.85));
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 80px 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 18px;
    color: #CBD5E0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, #3182CE, #2C5282);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #3182CE;
    border: 2px solid #3182CE;
}

.btn-secondary:hover {
    background: rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
}

/* Section Title */
.section-title {
    font-size: 28px;
    text-align: center;
    margin: 50px auto 30px auto;
    color: #FFFFFF;
    display: block;
    width: fit-content;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.2), rgba(26, 54, 93, 0.2));
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(49, 130, 206, 0.3);
}

/* Latest Posts */
.latest-posts {
    padding: 0 20px 40px 20px;
    width: 100%;
    background: transparent;
}

.scroll-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.posts-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.posts-wrapper::-webkit-scrollbar {
    display: none;
}
.posts-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(49, 130, 206, 0.2);
    width: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(49, 130, 206, 0.2);
    border-color: rgba(49, 130, 206, 0.5);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content { padding: 16px; }
.post-content h3 { font-size: 18px; margin-bottom: 8px; }
.post-content h3 a { text-decoration: none; color: #FFFFFF; transition: color 0.2s ease; }
.post-content h3 a:hover { color: #3182CE; }
.post-content p { font-size: 14px; color: #CBD5E0; margin-bottom: 12px; }

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3182CE, #2C5282);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    margin-top: 5px;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
    color: white;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(49, 130, 206, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-arrow.left { left: -20px; }
.scroll-arrow.right { right: -20px; }
.scroll-arrow i { color: white; font-size: 20px; }
.scroll-arrow:hover { background: #3182CE; transform: translateY(-50%) scale(1.1); }

/* How It Works */
.how-it-works {
    background: transparent;
    padding: 40px 20px;
    width: 100%;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 24px 16px;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(49, 130, 206, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(49, 130, 206, 0.5);
    box-shadow: 0 5px 20px rgba(49, 130, 206, 0.15);
}

.feature i {
    font-size: 36px;
    color: #3182CE;
    margin-bottom: 12px;
}

.feature h3 { font-size: 18px; margin-bottom: 8px; color: #FFFFFF; }
.feature p { font-size: 13px; color: #CBD5E0; }

.cta-button { text-align: center; margin-top: 30px; }
.btn-large { padding: 14px 32px; font-size: 16px; }

/* “Start your learning…” CTA — smaller pill, label vertically centered */
.how-it-works .cta-button .btn.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 18px;
    min-height: 38px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 999px;
    box-sizing: border-box;
}

/* Contact Social */
.contact-social {
    padding: 40px 20px;
    width: 100%;
    background: transparent;
}

.contact-social .row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid rgba(49, 130, 206, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.social-links h3, .contact-info h3 { font-size: 18px; margin-bottom: 12px; color: #FFFFFF; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.social-icons a {
    font-size: 28px;
    color: #CBD5E0;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border-bottom: none;
}

.social-icons a:hover { color: #3182CE; transform: scale(1.1); }

.contact-info p { font-size: 14px; margin-bottom: 8px; color: #CBD5E0; }
.contact-info a { color: #3182CE; text-decoration: none; }

/* Footer - NO GAP */
.site-footer {
    background: #0a1628;
    backdrop-filter: blur(10px);
    color: white;
    padding: 40px 20px 20px;
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(49, 130, 206, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 24px;
    text-align: center;
}

.footer-about h4, .footer-links h4 { color: #FFFFFF; margin-bottom: 12px; font-size: 16px; }
.footer-about p { font-size: 13px; color: #CBD5E0; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: #CBD5E0; text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
.footer-links ul li a:hover { color: #3182CE; }

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(49, 130, 206, 0.2);
    font-size: 11px;
    color: #A0AEC0;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(90vw, 300px);
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(180deg, rgba(12, 28, 52, 0.98) 0%, rgba(10, 22, 40, 0.96) 45%, rgba(8, 20, 38, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(49, 130, 206, 0.35);
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.35);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.mobile-overlay.active { display: block; }

/* Mobile search overlay (search bar is hidden below 1024px) */
.screen-reader-text {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.mobile-search {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    color: inherit;
}

.mobile-search-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 24px;
    /* Let the page show through — blur reads as “frosted” over current view */
    background: rgba(10, 22, 40, 0.38);
    backdrop-filter: blur(22px) saturate(118%);
    -webkit-backdrop-filter: blur(22px) saturate(118%);
}

.mobile-search-panel.is-open {
    display: flex;
}

.mobile-search-panel-inner {
    width: 100%;
    max-width: 480px;
    position: relative;
    padding: 22px 20px 24px;
    border-radius: 16px;
    background: rgba(10, 22, 40, 0.9);
    border: 1px solid rgba(49, 130, 206, 0.35);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.site-header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-search-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(49, 130, 206, 0.25);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease;
}

.mobile-search-close:hover {
    background: rgba(49, 130, 206, 0.45);
}

.mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.mobile-search-form input[type="search"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(49, 130, 206, 0.4);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(10, 22, 40, 0.9);
    color: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-search-form input[type="search"]::placeholder {
    color: #A0AEC0;
}

.mobile-search-form input[type="search"]:focus {
    outline: none;
    border-color: #3182CE;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.25);
}

.mobile-search-submit {
    align-self: flex-start;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #3182CE, #2C5282);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.35);
}

.mobile-search-submit:hover {
    filter: brightness(1.05);
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 14px 14px 16px;
    border-bottom: 1px solid rgba(49, 130, 206, 0.28);
    background: rgba(49, 130, 206, 0.06);
    position: sticky;
    top: 0;
    z-index: 2;
}

.logo-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
}

.logo-mobile i {
    font-size: 22px;
    color: #3182CE;
    filter: drop-shadow(0 0 8px rgba(49, 130, 206, 0.45));
}

.close-sidebar {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(49, 130, 206, 0.2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-sidebar:hover {
    background: rgba(49, 130, 206, 0.4);
}

.close-sidebar:active {
    transform: scale(0.96);
}

.close-sidebar i {
    font-size: 20px;
    pointer-events: none;
}

/* Improved Mobile Profile (no login) */
.mobile-profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.15), rgba(26, 54, 93, 0.15));
    border-bottom: 1px solid rgba(49, 130, 206, 0.3);
    border-radius: 16px;
    margin: 12px;
    backdrop-filter: blur(5px);
}

.mobile-profile-section i {
    font-size: 52px;
    color: #3182CE;
    background: rgba(49, 130, 206, 0.15);
    border-radius: 50%;
    padding: 10px;
}

.mobile-profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mobile-profile-info span {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 16px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 12px;
    margin: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.mobile-nav-menu > li {
    margin-bottom: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(49, 130, 206, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu > li > a:focus-visible {
    background: rgba(49, 130, 206, 0.15);
    color: #63B3ED;
    outline: none;
}

.mobile-nav-menu > li > a i {
    font-size: 11px;
    opacity: 0.65;
    color: #63B3ED;
}

.mobile-dropdown.active > a i { transform: rotate(180deg); }

.mobile-submenu {
    list-style: none;
    background: rgba(6, 14, 28, 0.55);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(49, 130, 206, 0.12);
}

.mobile-dropdown.active .mobile-submenu { max-height: 300px; }
.mobile-submenu li a {
    display: block;
    padding: 11px 14px 11px 22px;
    text-decoration: none;
    color: #CBD5E0;
    font-size: 14px;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 500;
    border-bottom: 1px solid rgba(49, 130, 206, 0.08);
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mobile-submenu li:last-child a {
    border-bottom: none;
}

.mobile-submenu li a:hover,
.mobile-submenu li a:focus-visible {
    background: rgba(49, 130, 206, 0.12);
    color: #fff;
    padding-left: 26px;
    outline: none;
}

@media (max-width: 768px) {
    .mobile-dropdown > a i {
        display: inline-block;
        font-size: 10px;
        opacity: 0.55;
    }

    .mobile-submenu {
        max-height: none;
        overflow: visible;
        background: rgba(6, 14, 28, 0.45);
        border-top: 1px solid rgba(49, 130, 206, 0.1);
    }

    .mobile-submenu li a {
        padding: 10px 14px 10px 22px;
        font-size: 13px;
        border-bottom: 1px solid rgba(49, 130, 206, 0.06);
    }

    .mobile-submenu li a:hover,
    .mobile-submenu li a:focus-visible {
        padding-left: 22px;
    }
}

/* Desktop Styles (Triggered earlier for mobile 'Desktop Site' feature) */
@media (min-width: 900px) {
    .mobile-elements { display: none; }

    .main-nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .main-nav .nav-menu {
        display: flex;
        list-style: none;
        gap: 30px;
    }

    .main-nav .nav-menu > li {
        position: relative;
    }

    .main-nav .nav-menu > li > a {
        text-decoration: none;
        color: #FFFFFF;
        font-weight: 500;
        font-size: 15px;
        transition: color 0.3s ease;
    }

    .main-nav .nav-menu > li > a:hover {
        color: #3182CE;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(10px);
        min-width: 200px;
        list-style: none;
        padding: 8px 0;
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        border: 1px solid rgba(49, 130, 206, 0.3);
        z-index: 1000;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li a {
        display: block;
        padding: 8px 20px;
        text-decoration: none;
        color: #CBD5E0;
        font-size: 14px;
    }

    .dropdown-menu li a:hover {
        background: rgba(49, 130, 206, 0.2);
        color: #FFFFFF;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .search-bar {
        position: relative;
    }

    .search-bar input {
        padding: 8px 32px 8px 12px;
        border: 1px solid rgba(49, 130, 206, 0.3);
        border-radius: 50px;
        font-size: 13px;
        width: 180px;
        background: rgba(10, 22, 40, 0.7);
        color: #FFFFFF;
        transition: all 0.3s ease;
    }

    .search-bar input:focus {
        outline: none;
        border-color: #3182CE;
        width: 220px;
    }

    .search-bar i {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #A0AEC0;
    }
}

@media (min-width: 768px) {
    .posts-grid {
        flex-direction: row;
        gap: 24px;
        padding-bottom: 10px;
    }
    .post-card {
        width: 280px;
        min-width: 280px;
        flex-shrink: 0;
    }
    .post-card img { height: 160px; }
    .scroll-arrow {
        display: flex;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .contact-social .row {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1400px) {
    .post-card { width: 300px; min-width: 300px; }
    .post-card img { height: 180px; }
}

@media (max-width: 768px) {
    .header-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-footer {
        padding: 36px 12px 20px;
    }

    .latest-posts {
        padding-left: 12px;
        padding-right: 12px;
    }

    .scroll-container {
        max-width: none;
    }

    .hero-title {
        font-size: 32px;
    }
    .hero-description {
        font-size: 14px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero .btn {
        width: 80%;
    }
}

.sort-btn {
    text-decoration: none;
    border-bottom: none;
}

.main-nav .nav-menu li a.active {
    color: #3182CE;
}
