/* ============================================================
   StarUnbox CMS - Main Stylesheet
   ============================================================ */

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

:root {
    --primary:      #1a1a1a;
    --secondary:    #555555;
    --accent:       #1e40af;
    --accent-light: #3b82f6;
    --light-gray:   #f5f5f5;
    --lighter-gray: #fafafa;
    --border:       #e0e0e0;
    --white:        #ffffff;
    --black:        #000000;
    --success:      #16a34a;
    --danger:       #dc2626;
    --warning:      #d97706;
    --radius:       8px;
    --shadow:       0 2px 10px rgba(0,0,0,0.07);
    --shadow-lg:    0 15px 50px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--white); color: var(--primary); line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ====== UTILITIES ====== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.8rem; border: none; border-radius: var(--radius);
    font-size: .95rem; font-weight: 600; cursor: pointer;
    transition: all .25s ease; text-decoration: none;
}
.btn-primary { background: var(--accent-light); color: #fff; box-shadow: 0 4px 15px rgba(30,64,175,.2); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,64,175,.3); }
.btn-secondary { background: var(--light-gray); border: 1px solid var(--border); color: var(--primary); }
.btn-secondary:hover { background: var(--accent-light); color: #fff; border-color: var(--accent-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ====== ALERTS ====== */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 4px solid; position: relative; }
.alert-success { background: #f0fdf4; border-color: var(--success); color: #166534; }
.alert-danger  { background: #fef2f2; border-color: var(--danger); color: #991b1b; }
.alert-info    { background: #eff6ff; border-color: var(--accent-light); color: #1e40af; }
.alert-dismissible .btn-close { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1.2rem; color: inherit; opacity: .6; }
.alert-dismissible .btn-close:hover { opacity: 1; }

/* ====== HEADER ====== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.nav-wrapper {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; gap: 2rem; position: relative;
}
.logo {
    font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; cursor: pointer; white-space: nowrap;
    display: flex; align-items: center; gap: .5rem;
}
.logo-img { height: 40px; width: auto; object-fit: contain; }

/* ====== NAV MENU ====== */
.nav-menu { display: flex; list-style: none; gap: 2.5rem; align-items: center; flex: 1; justify-content: center; margin: 0 2rem; }
.nav-item { position: relative; }
.nav-link { color: var(--primary); font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; transition: all .3s ease; font-size: .95rem; display: flex; align-items: center; gap: .25rem; }
.nav-link:hover, .nav-link.active { color: var(--accent-light); border-bottom-color: var(--accent-light); }
.nav-link .arrow { font-size: .75rem; transition: transform .3s; }
.nav-item:hover .nav-link .arrow { transform: rotate(180deg); }

/* ====== DROPDOWN ====== */
.dropdown-menu {
    position: absolute; top: calc(100% + .5rem); left: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    min-width: 200px; padding: .5rem 0; box-shadow: var(--shadow-lg);
    list-style: none; opacity: 0; visibility: hidden;
    transform: translateY(-8px); transition: all .25s ease; z-index: 200;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: .6rem 1.2rem; color: var(--secondary); font-size: .9rem; transition: all .2s; }
.dropdown-menu li a:hover { color: var(--accent-light); background: var(--light-gray); }

/* ====== MEGA MENU ====== */
.mega-menu {
    position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%) translateY(-8px);
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    min-width: 500px; padding: 1.5rem 2rem; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 200;
    display: flex; gap: 2rem; flex-wrap: wrap;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu-section { min-width: 140px; }
.mega-menu-item { display: block; padding: .45rem 0; color: var(--secondary); font-size: .9rem; transition: color .2s; }
.mega-menu-item:hover { color: var(--accent-light); }

/* ====== NAV RIGHT ====== */
.nav-right { display: flex; align-items: center; gap: 1.2rem; white-space: nowrap; flex-shrink: 0; }
.search-box { position: relative; display: flex; }
.search-box input { width: 180px; padding: .65rem 1rem; background: var(--light-gray); border: 1px solid var(--border); border-radius: var(--radius); color: var(--primary); font-size: .9rem; transition: all .3s; }
.search-box input:focus { outline: none; background: var(--white); border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(30,64,175,.1); }
.search-box input::placeholder { color: var(--secondary); }
.search-btn { background: var(--accent-light); border: none; padding: 0 .8rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; margin-left: -var(--radius); color: white; }
.btn-admin { background: var(--accent-light); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); font-size: .85rem; font-weight: 600; transition: all .2s; }
.btn-admin:hover { background: var(--accent); }
.btn-back-admin { background: var(--warning); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); font-size: .8rem; font-weight: 600; }

/* ====== HAMBURGER ====== */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 1001; padding: .3rem; }
.hamburger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .3s ease; display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ====== MOBILE MENU ====== */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; display: none; }
.mobile-menu-overlay.active { display: block; }
.mobile-menu-content {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,20,.95); z-index: 1000;
    padding: 1.5rem 2rem; overflow-y: auto;
}
.mobile-nav-menu { list-style: none; }
.mobile-nav-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav-item a { display: block; color: #fff; padding: 1rem 0; font-size: 1.05rem; font-weight: 500; }
.mobile-nav-item a:hover { color: var(--accent-light); }
.mobile-submenu { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-submenu.active { max-height: 500px; padding: .5rem 0 1rem 1rem; }
.mobile-submenu-item { display: block; color: rgba(255,255,255,.75); padding: .6rem 0; font-size: .95rem; cursor: pointer; transition: color .2s; }
.mobile-submenu-item:hover { color: var(--accent-light); }

/* ====== HERO ====== */
.hero { padding: 5rem 2rem; background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%); text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(30,64,175,.08), transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; color: var(--primary); line-height: 1.2; }
.hero p { font-size: 1.2rem; color: var(--secondary); margin-bottom: 2rem; font-weight: 300; }
.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ====== SECTIONS ====== */
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: .8rem; color: var(--primary); font-weight: 800; }
.section-subtitle { color: var(--secondary); margin-bottom: 3rem; font-size: 1.05rem; max-width: 600px; }
section { padding: 5rem 0; }
section.bg-gray { background: var(--light-gray); }
section.bg-white { background: var(--white); }

/* ====== POST CARDS ====== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 2rem; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-image { width: 100%; height: 200px; object-fit: cover; }
.post-image-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--accent); }
.post-content { padding: 1.5rem; }
.post-category { display: inline-block; background: rgba(30,64,175,.1); color: var(--accent-light); padding: .25rem .7rem; border-radius: 4px; font-size: .75rem; font-weight: 600; margin-bottom: .8rem; border: 1px solid rgba(30,64,175,.2); }
.post-title { font-size: 1.15rem; margin-bottom: .7rem; color: var(--primary); line-height: 1.4; font-weight: 700; }
.post-title a:hover { color: var(--accent-light); }
.post-excerpt { color: var(--secondary); font-size: .9rem; margin-bottom: 1.2rem; line-height: 1.6; }
.post-meta { display: flex; justify-content: space-between; align-items: center; color: var(--secondary); font-size: .82rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.post-author { display: flex; align-items: center; gap: .5rem; }
.post-author-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #1e40af, #3b82f6); overflow: hidden; flex-shrink: 0; }
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ====== FEATURED ====== */
.featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.featured-main { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: transform .3s; }
.featured-main:hover { transform: translateY(-3px); }
.featured-image { width: 100%; height: 350px; object-fit: cover; }
.featured-content { padding: 2rem; }
.featured-label { display: inline-block; background: rgba(30,64,175,.1); color: var(--accent-light); padding: .35rem .8rem; border-radius: 4px; font-size: .8rem; font-weight: 600; margin-bottom: .8rem; border: 1px solid rgba(30,64,175,.2); }
.featured-main h2 { font-size: 1.7rem; margin-bottom: .8rem; color: var(--primary); line-height: 1.3; }
.featured-meta { display: flex; justify-content: space-between; align-items: center; color: var(--secondary); font-size: .9rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.featured-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
.news-item { background: var(--white); padding: 1.2rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); border-left: 3px solid transparent; cursor: pointer; transition: border-color .3s; }
.news-item:hover { border-left-color: var(--accent-light); }
.news-number { color: var(--accent-light); font-size: .78rem; font-weight: 700; margin-bottom: .3rem; text-transform: uppercase; }
.news-item h3 { font-size: .95rem; margin-bottom: .4rem; color: var(--primary); line-height: 1.4; }
.news-item p { color: var(--secondary); font-size: .85rem; }

/* ====== CATEGORIES GRID ====== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.category-card { background: var(--light-gray); padding: 2rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; cursor: pointer; transition: border-color .3s, transform .3s; }
.category-card:hover { border-color: var(--accent-light); transform: translateY(-2px); }
.category-icon { font-size: 2rem; margin-bottom: .8rem; }
.category-card h3 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--primary); }
.category-card p { color: var(--secondary); font-size: .9rem; margin-bottom: .8rem; }
.category-count { color: var(--accent-light); font-weight: 600; font-size: .85rem; }

/* ====== TRENDING ====== */
.trending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.trending-card { background: var(--light-gray); padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--border); position: relative; overflow: hidden; }
.trending-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-light); }
.trending-rank { color: var(--accent-light); font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.trending-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: .6rem; line-height: 1.4; font-weight: 700; }
.trending-card p { color: var(--secondary); font-size: .88rem; margin-bottom: .8rem; }
.trending-stats { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--secondary); border-top: 1px solid var(--border); padding-top: .8rem; }

/* ====== SINGLE POST ====== */
.post-single { max-width: 860px; margin: 0 auto; }
.post-single-header { margin-bottom: 2.5rem; }
.post-single-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 800; line-height: 1.25; margin-bottom: 1rem; color: var(--primary); }
.post-single-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; color: var(--secondary); font-size: .9rem; margin-bottom: 1.5rem; }
.post-single-featured { width: 100%; border-radius: var(--radius); max-height: 480px; object-fit: cover; margin-bottom: 2.5rem; }
.post-single-content { font-size: 1.05rem; line-height: 1.85; color: var(--primary); }
.post-single-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin: 2rem 0 1rem; }
.post-single-content h3 { font-size: 1.4rem; margin: 1.8rem 0 .8rem; }
.post-single-content p { margin-bottom: 1.5rem; }
.post-single-content ul, .post-single-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.post-single-content li { margin-bottom: .5rem; }
.post-single-content blockquote { border-left: 4px solid var(--accent-light); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--light-gray); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--secondary); }
.post-single-content a { color: var(--accent-light); text-decoration: underline; }
.post-single-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-single-content pre { background: #1e1e2e; color: #cdd6f4; padding: 1.5rem; border-radius: var(--radius); overflow-x: auto; margin: 1.5rem 0; font-size: .9rem; }
.post-single-content code { background: var(--light-gray); padding: .2rem .4rem; border-radius: 4px; font-size: .9rem; }
.post-single-content pre code { background: none; padding: 0; }
.post-updated { font-size: .85rem; color: var(--secondary); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-style: italic; }

/* ====== AUTHOR BOX ====== */
.author-box { background: var(--light-gray); border-radius: var(--radius); padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 3rem; border: 1px solid var(--border); }
.author-box-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #1e40af, #3b82f6); flex-shrink: 0; }
.author-box h4 { font-size: 1.1rem; margin-bottom: .3rem; }
.author-box h4 a:hover { color: var(--accent-light); }
.author-box p { color: var(--secondary); font-size: .9rem; line-height: 1.6; }

/* ====== BREADCRUMB ====== */
.breadcrumb-nav { margin-bottom: 1.5rem; }
.breadcrumb { display: flex; list-style: none; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: var(--secondary); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: .5rem; color: var(--border); }
.breadcrumb-item a:hover { color: var(--accent-light); }
.breadcrumb-item.active { color: var(--primary); font-weight: 500; }

/* ====== NEWSLETTER ====== */
.newsletter { background: var(--light-gray); border-top: 1px solid var(--border); }
.newsletter-box { background: var(--white); padding: 3rem 2.5rem; border-radius: var(--radius); text-align: center; max-width: 600px; margin: 0 auto; border: 1px solid var(--border); }
.newsletter-box h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: .8rem; }
.newsletter-box p { color: var(--secondary); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; padding: .85rem 1rem; background: var(--light-gray); border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; }
.newsletter-form input:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(30,64,175,.1); }

/* ====== PAGINATION ====== */
.pagination-nav { margin-top: 3rem; }
.pagination { display: flex; list-style: none; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.page-item .page-link { display: block; padding: .55rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--secondary); font-size: .9rem; transition: all .2s; }
.page-item:hover .page-link, .page-item.active .page-link { background: var(--accent-light); color: #fff; border-color: var(--accent-light); }
.page-item.disabled .page-link { opacity: .5; pointer-events: none; }

/* ====== AD ZONES ====== */
.ad-zone { margin: 1rem auto; text-align: center; overflow: hidden; }
.ad-header_banner { max-width: 1400px; padding: .5rem 2rem; }
.ad-in_content_1 { margin: 2rem 0; }
.ad-after_content { margin: 2.5rem 0; }
.ad-sidebar_top, .ad-sidebar_bottom { margin: 1rem 0; }
.ad-footer_banner { max-width: 1400px; padding: .5rem 2rem; margin: 0 auto; }
@media (min-width: 769px) { .ad-mobile_only { display: none !important; } }

/* ====== ABOUT ====== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-content p { color: var(--secondary); margin-bottom: 1.2rem; line-height: 1.8; }
.about-image { width: 100%; height: 380px; border-radius: var(--radius); object-fit: cover; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.feature-item { display: flex; gap: .8rem; }
.feature-icon { font-size: 1.1rem; flex-shrink: 0; color: var(--accent-light); }
.feature-text h4 { color: var(--primary); margin-bottom: .2rem; font-weight: 600; }
.feature-text p { color: var(--secondary); font-size: .88rem; margin: 0; }

/* ====== FOOTER ====== */
.site-footer { background: var(--primary); color: #ccc; padding: 4rem 0 0; }
.footer-inner { padding-bottom: 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.footer-logo-img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-desc { color: #999; font-size: .9rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-contact { color: #999; font-size: .9rem; margin-bottom: 1.2rem; }
.footer-contact a { color: var(--accent-light); }
.footer-section h3 { color: #fff; margin-bottom: 1.3rem; font-size: 1rem; font-weight: 700; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: .6rem; }
.footer-section a { color: #aaa; font-size: .92rem; transition: color .3s; }
.footer-section a:hover { color: var(--accent-light); }
.social-links { display: flex; gap: .8rem; }
.social-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s; color: #aaa; font-size: .9rem; }
.social-icon:hover { background: var(--accent-light); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; text-align: center; color: #666; font-size: .88rem; }

/* ====== 404 ====== */
.error-page { text-align: center; padding: 6rem 2rem; }
.error-page .error-code { font-family: 'Playfair Display', serif; font-size: 8rem; font-weight: 800; color: var(--accent-light); line-height: 1; }
.error-page h2 { font-size: 2rem; margin: 1rem 0; }
.error-page p { color: var(--secondary); margin-bottom: 2rem; }

/* ====== SEARCH ====== */
.search-header { background: var(--light-gray); padding: 3rem 2rem; border-bottom: 1px solid var(--border); }
.search-header h1 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: .5rem; }

/* ====== AUTHOR PAGE ====== */
.author-profile { display: flex; gap: 2rem; align-items: flex-start; padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.author-profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-profile-info h1 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: .5rem; }
.author-profile-bio { color: var(--secondary); line-height: 1.7; margin-bottom: 1rem; }

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp .5s ease forwards; }
.post-card { animation: fadeInUp .5s ease; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 968px) {
    .featured-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .mega-menu { min-width: 360px; }
    .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .search-box input { width: 140px; font-size: .85rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .featured-image { height: 220px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .post-single-title { font-size: 1.8rem; }
    section { padding: 3rem 0; }
    .nav-wrapper { padding: .9rem 1.2rem; }
    .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .footer-content { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { min-width: auto; }
    .posts-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .trending-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; }
    .author-profile { flex-direction: column; }
}
