/* Zeddro Blog - Professional Design v2 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --secondary: #4f46e5;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header - Professional Design */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.btn-signin {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-signin:hover {
    background: var(--bg-gray);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Mega Menu */
.mega-menu {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle svg {
    transition: transform 0.2s;
}

.mega-menu:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.mega-menu-content {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

.mega-menu-content.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    max-height: 650px;
}

.mega-menu-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.mega-menu-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--primary), transparent) 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.mega-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.25s;
}

.mega-menu-item:hover {
    background: linear-gradient(to right, rgba(26, 115, 232, 0.05), transparent);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mega-menu-item:hover::before {
    transform: scaleY(1);
}

.mega-menu-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.25s;
}

.mega-menu-item:hover .mega-menu-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mega-menu-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.2s;
}

.mega-menu-item:hover .mega-menu-name {
    color: var(--primary);
}

.mega-menu-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mega-menu-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

body.menu-open {
    overflow: hidden;
}

/* Hero Section - Modern Professional Design */
.hero {
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(26, 115, 232, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.hero-text {
    z-index: 1;
}

.hero-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.hero-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title a {
    color: white;
    text-decoration: none;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s;
}

.hero-title a:hover {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    align-items: center;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.4s;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}

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

/* Categories - Enhanced */
.categories {
    padding: 32px 0;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}

.categories-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-pill {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    background: white;
    color: var(--text);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

/* Posts Grid - Enhanced */
.posts {
    padding: 80px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.post-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.post-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image img {
    transform: scale(1.08);
}

.post-content {
    padding: 28px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 14px;
    transition: transform 0.2s;
}

.post-category:hover {
    transform: scale(1.05);
}

.post-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

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

.post-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Single Post - Enhanced */
.breadcrumb {
    padding: 32px 0;
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    align-items: center;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.post-single {
    padding: 0px 0;
}

/* Post Layout with Sidebar */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    margin-top: 32px;
}

.post-main {
    min-width: 0;
}

.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.post-header {
    text-align: center;
    margin-bottom: 48px;
}

.post-category-large {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 24px;
    transition: transform 0.2s;
}

.post-category-large:hover {
    transform: scale(1.05);
}

.post-title-large {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.post-meta-large {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.post-featured-image {
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text);
}

.post-body h1 {
    font-size: 42px;
    font-weight: 900;
    margin: 56px 0 28px;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    line-height: 1.2;
}

.post-body h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 48px 0 24px;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    line-height: 1.3;
}

.post-body h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-dark);
    line-height: 1.4;
}

.post-body h4 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.post-body p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.post-body strong {
    font-weight: 700;
    color: var(--text-dark);
}

.post-body em {
    font-style: italic;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.post-body a:hover {
    color: var(--primary-dark);
}

.post-body ul, .post-body ol {
    margin: 24px 0;
    padding-left: 32px;
}

.post-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-body ul li {
    list-style-type: disc;
}

.post-body ol li {
    list-style-type: decimal;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
    display: block;
}

.post-body figure {
    margin: 32px 0;
}

.post-body figcaption {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 20px;
    font-style: italic;
    color: var(--text-dark);
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body code {
    background: var(--bg-gray);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #e11d48;
}

.post-body pre {
    background: #f8f9fa;
    color: #1f2937;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

/* Table of Contents Widget */
.toc-list {
    font-size: 15px;
}

.toc-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item.toc-h3 {
    padding-left: 16px;
    font-size: 14px;
}

.toc-link {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-link:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.toc-empty {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Ad Widget */
.ad-widget {
    padding: 0;
    overflow: hidden;
    background: white;
}

.ad-widget a {
    display: block;
}

.ad-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s;
}

.ad-widget:hover .ad-banner {
    transform: scale(1.02);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recent-post-image:hover img {
    transform: scale(1.1);
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.recent-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-title a:hover {
    color: var(--primary);
}

.recent-post-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* In-Content Banner Ads */
.content-banner {
    margin: 40px 0;
    max-width: 100%;
}

.content-banner a {
    display: block;
    text-decoration: none;
}

.content-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Share Buttons - Enhanced */
.share-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 40px 0;
    border-top: 2px solid var(--border);
    margin-top: 48px;
}

.share-label {
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: var(--bg-gray);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* Category Page */
.category-header {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-gray) 0%, white 100%);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.category-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.category-count {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

.no-posts {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
    font-size: 18px;
}

/* Footer - Professional Grid Layout */
.footer {
    background: #1a1d29;
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand img {
    height: 32px;
    width: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.footer-socials a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Admin Panel Styles (unchanged) */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-gray);
}

.login-form {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
}

.login-form h2 {
    margin-bottom: 32px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-form button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.login-form button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-panel {
    min-height: 100vh;
    background: var(--bg-gray);
}

.admin-header {
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

.admin-content {
    padding: 40px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 600;
}

.posts-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.posts-table table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table th {
    background: var(--bg-gray);
    padding: 18px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.posts-table td {
    padding: 18px;
    border-top: 1px solid var(--border);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

.status-published {
    background: #10b98120;
    color: #10b981;
}

.status-draft {
    background: #f59e0b20;
    color: #f59e0b;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-view, .btn-delete {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-edit {
    background: var(--primary);
    color: white;
}

.btn-edit:hover {
    background: var(--secondary);
}

.btn-view {
    background: var(--bg-gray);
    color: var(--text);
}

.btn-view:hover {
    background: var(--border);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

/* Post Form */
.post-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.form-section h3 {
    margin-bottom: 28px;
    font-size: 24px;
    font-weight: 800;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

/* Admin Image Upload Styles */
.image-upload-wrapper {
    margin-top: 8px;
}

.image-upload-options {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.upload-btn {
    cursor: pointer;
    margin: 0;
}

.upload-btn .btn {
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.image-preview {
    position: relative;
    max-width: 600px;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: #f8f9fa;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

.remove-image {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-image:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    /* Stack sidebar on tablet */
    .post-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .post-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px 16px 32px;
    }
    
    .mega-menu-section {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        gap: 8px;
        align-items: stretch;
        z-index: 999;
    }
    
    .nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 8px;
        background: white;
        margin-bottom: 8px;
        border: 1px solid #e5e7eb;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
        border-color: var(--primary);
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mega-menu {
        width: 100%;
        order: -1;
    }
    
    .dropdown-toggle {
        display: none;
    }
    
    .mega-menu-content {
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }
    
    .mega-menu-section {
        padding: 12px;
        border-radius: 8px;
        background: #f8f9fa;
        margin-bottom: 8px;
    }
    
    .mega-menu-title {
        font-size: 11px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        color: #374151;
    }
    
    .mega-menu-item {
        padding: 10px;
        background: white;
        margin-bottom: 4px;
        border-radius: 6px;
    }
    
    .mega-menu-item:last-child {
        margin-bottom: 0;
    }
    
    .mega-menu-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .mega-menu-name {
        font-size: 13px;
    }
    
    .mega-menu-desc {
        font-size: 11px;
    }
    
    .hero {
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-excerpt {
        font-size: 16px;
    }
    
    .hero-image {
        transform: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-excerpt {
        font-size: 18px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .post-title-large {
        font-size: 36px;
    }
    
    .categories-scroll {
        gap: 8px;
    }
    
    .category-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .nav-link:not(.btn-primary) {
        display: none;
    }
    
    .nav {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .post-title-large {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .category-title {
        font-size: 32px;
    }
}
