/* ===== VARIABLES ===== */
:root {
    --primary: #002a0e;
    --primary-container: #00421b;
    --primary-fixed-dim: #97d59f;
    --secondary: #bb0014;
    --secondary-container: #e0292a;
    --background: #f8faf4;
    --surface: #f7fbf3;
    --surface-container: #ecefe8;
    --surface-container-low: #f2f4ee;
    --on-surface: #191c19;
    --on-surface-variant: #414940;
    --on-primary: #ffffff;
    --on-secondary: #ffffff;
    --outline: #717970;
    --outline-variant: #c0c9be;
    --tertiary: #222323;
    --white: #ffffff;
    --text: #414940;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Tajawal', sans-serif;
    background: var(--background);
    color: var(--on-surface);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; border: none; }
.row { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .row { padding: 0 48px; } }

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary-fixed-dim);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.preloader-text {
    color: var(--on-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOP NAV ===== */
#topnav {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--outline-variant);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.tm-head {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}
@media (min-width: 768px) { .tm-head { padding: 0 48px; } }
.tm-menu ul {
    display: flex;
    gap: 20px;
}
.tm-menu li a {
    color: var(--on-surface-variant);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.tm-menu li a:hover { color: var(--secondary); }
.social-area ul {
    display: flex;
    gap: 8px;
}
.social-area li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--on-surface-variant);
    border-radius: 50%;
    font-size: 13px;
    transition: all 0.3s ease;
    background: var(--surface-container);
}
.social-area li a:hover {
    background: var(--secondary);
    color: var(--on-secondary);
}

/* ===== HEADER ===== */
#header-blog {
    background: var(--surface-container-low);
    border-radius: 1rem;
    margin-top: 12px;
    padding: 20px 24px;
    border: 1px solid var(--outline-variant);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img {
    max-height: 90px;
    width: auto;
}
.header-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-logo-placeholder .logo-text h1 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}
.header-logo-placeholder .logo-text p {
    color: var(--on-surface-variant);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ===== MAIN NAV ===== */
#main-nav {
    margin-top: 12px;
    border-radius: 1rem;
    background: var(--primary);
    overflow: visible;
    position: relative;
    z-index: 100;
}
.header-menu {
    display: flex;
    align-items: stretch;
    min-height: 52px;
}
.li-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex-shrink: 0;
    border-radius: 0 1rem 1rem 0;
}
.li-home a {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 52px;
    transition: color 0.3s ease;
}
.li-home:hover a { color: #fff; }
.nav-menu {
    display: flex;
    align-items: stretch;
    flex: 1;
}
.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-menu > li > a {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
}
.nav-menu > li:hover > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.nav-menu > li.has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 10px;
}
.nav-menu ul.submenu {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: 0 0 1rem 1rem;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1px solid var(--outline-variant);
    overflow: hidden;
}
.nav-menu li:hover > ul.submenu {
    display: block;
}
.submenu li {
    display: block;
}
.submenu li a {
    display: block;
    padding: 10px 18px;
    color: var(--on-surface);
    font-size: 13px;
    border-bottom: 1px solid var(--surface-container);
    transition: all 0.3s ease;
}
.submenu li:last-child a { border-bottom: none; }
.submenu li a:hover {
    background: var(--surface-container);
    color: var(--secondary);
    padding-right: 22px;
}
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== TICKER ===== */
#ticker {
    margin-top: 12px;
    border-radius: 1rem;
    display: flex;
    overflow: hidden;
    height: 42px;
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
}
.ticker-title {
    background: var(--secondary);
    color: var(--on-secondary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 16px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-title i {
    margin-left: 10px;
    transform: rotate(-30deg);
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.ticker-content ul {
    display: flex;
    animation: ticker 20s linear infinite;
    height: 42px;
    align-items: center;
}
.ticker-content li {
    flex-shrink: 0;
    padding: 0 30px;
    white-space: nowrap;
    font-size: 13px;
}
.ticker-content li a {
    color: var(--on-surface-variant);
}
.ticker-content li a:hover { color: var(--secondary); }
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== ABOUT / VISION / MISSION ===== */
.about-section {
    margin-top: 40px;
    padding: 0 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) { .about-section { padding: 0 48px; } }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.about-card {
    background: var(--surface-container);
    border-radius: 1rem;
    padding: 28px 24px;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s ease;
}
.about-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: var(--primary-fixed-dim);
}
.about-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.about-card:nth-child(1) .about-card-icon { background: rgba(0,66,27,0.1); color: var(--primary-container); }
.about-card:nth-child(2) .about-card-icon { background: rgba(187,0,20,0.1); color: var(--secondary); }
.about-card:nth-child(3) .about-card-icon { background: rgba(151,213,159,0.2); color: var(--primary); }
.about-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}
.about-card p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
}

/* ===== SERVICES ===== */
.services-section {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 16px;
}
@media (min-width: 768px) { .services-section { padding: 0 48px; } }
.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--outline-variant);
}
.section-title-bar h2 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}
.section-title-bar a {
    color: var(--on-surface-variant);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 2rem;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s ease;
}
.section-title-bar a:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s ease;
}
.service-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.service-card-img {
    height: 180px;
    position: relative;
    overflow: hidden;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}
.service-card:hover .service-card-img img {
    filter: brightness(1.05);
}
.service-card-img .card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--on-primary);
    padding: 4px 12px;
    border-radius: 2rem;
    font-size: 11px;
    font-weight: 600;
}
.service-card-body {
    padding: 18px;
}
.service-card-body h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}
.service-card-body p {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}
.service-card-body .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.3s ease;
}
.service-card-body .read-more:hover {
    gap: 10px;
    color: var(--primary);
}
.service-card-body .read-more i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 24px;
}
@media (min-width: 768px) { .blog-section { padding: 0 48px; } }
.blog-main { }
.blog-sidebar { }

/* Blog Post Card */
.post-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s ease;
}
.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.post-card-inner {
    display: flex;
}
.post-card-img {
    width: 320px;
    min-height: 200px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.post-card-img .post-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--on-primary);
    padding: 4px 12px;
    border-radius: 2rem;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.post-card-body {
    padding: 20px 24px;
    flex: 1;
}
.post-meta {
    font-size: 12px;
    color: var(--outline);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.post-meta i {
    margin-left: 4px;
    color: var(--outline);
}
.post-card-body h2 {
    font-size: 1.15rem;
    color: var(--on-surface);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}
.post-card-body h2 a { color: var(--on-surface); }
.post-card-body h2 a:hover { color: var(--secondary); }
.post-card-body .excerpt {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
    margin-bottom: 12px;
}
.post-card-body .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.3s ease;
}
.post-card-body .read-more:hover {
    gap: 10px;
}

/* Featured Post */
.post-featured {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--outline-variant);
}
.post-featured-img {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}
.post-featured-img .post-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: var(--on-primary);
    padding: 5px 14px;
    border-radius: 2rem;
    font-size: 12px;
    font-weight: 600;
}
.post-featured-body {
    padding: 24px;
}
.post-featured-body h2 {
    font-size: 1.3rem;
    color: var(--on-surface);
    font-weight: 700;
    margin-bottom: 10px;
}
.post-featured-body h2 a { color: var(--on-surface); }
.post-featured-body h2 a:hover { color: var(--secondary); }
.post-featured-body .excerpt {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
    margin-bottom: 15px;
}
.post-featured-body .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.3s ease;
}
.post-featured-body .read-more:hover {
    gap: 10px;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--outline-variant);
}
.sidebar-widget-title {
    padding: 12px 18px;
    border-bottom: 2px solid var(--outline-variant);
}
.sidebar-widget-title h2 {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 2rem;
}
.sidebar-widget-content {
    padding: 16px;
}
.sidebar-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--outline-variant);
    border-radius: 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
    background: var(--surface-container-low);
}
.sidebar-search:focus {
    border-color: var(--primary);
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface-container);
}
.popular-post:last-child { border-bottom: none; }
.popular-post-img {
    width: 75px;
    height: 55px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    overflow: hidden;
}
.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popular-post-body h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--on-surface);
    line-height: 1.4;
}
.popular-post-body h4 a { color: var(--on-surface); }
.popular-post-body h4 a:hover { color: var(--secondary); }
.popular-post-body .date {
    font-size: 11px;
    color: var(--outline);
    margin-top: 3px;
}

/* Social Sidebar */
.social-sidebar ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.social-sidebar li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}
.social-sidebar li:hover {
    background: var(--surface-container-low);
}
.social-sidebar li .s-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-secondary);
    font-size: 14px;
    flex-shrink: 0;
}
.social-sidebar .fb .s-icon { background: #1877f2; }
.social-sidebar .tw .s-icon { background: #1da1f2; }
.social-sidebar .yt .s-icon { background: #ff0000; }
.social-sidebar .ig .s-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-sidebar .in .s-icon { background: #0a66c2; }
.social-sidebar .count {
    font-size: 14px;
    font-weight: 700;
    color: var(--on-surface);
}
.social-sidebar .label {
    font-size: 11px;
    color: var(--outline);
}

/* Tags Widget */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tags-list a {
    background: var(--surface-container);
    color: var(--on-surface-variant);
    padding: 5px 12px;
    border-radius: 2rem;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--outline-variant);
}
.tags-list a:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

/* ===== STATS SECTION ===== */
.stats-section {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 16px;
}
@media (min-width: 768px) { .stats-section { padding: 0 48px; } }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--primary);
    border-radius: 1rem;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}
.stats-grid::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(151,213,159,0.15);
    border-radius: 50%;
    filter: blur(40px);
}
.stat-card {
    text-align: center;
    position: relative;
    z-index: 1;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    color: var(--on-primary);
    background: rgba(255,255,255,0.15);
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--on-primary);
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* ===== GALLERY ===== */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 16px;
}
@media (min-width: 768px) { .gallery-section { padding: 0 48px; } }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gallery-item {
    height: 180px;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.0);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.gallery-item:hover .overlay {
    background: rgba(0,42,14,0.5);
}
.gallery-item .overlay span {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-item:hover .overlay span {
    opacity: 1;
}

/* ===== FOOTER ===== */
#footer-wrapper {
    background: var(--tertiary);
    border-radius: 0;
    margin: 0;
    padding: 0;
}
#footer {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 40px 16px;
}
@media (min-width: 768px) { #footer { padding: 40px 48px; } }
.footer-col {
    padding: 15px 0;
}
.footer-col h3 {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    display: inline-block;
}
.footer-col ul li {
    padding: 6px 0;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: var(--primary-fixed-dim); }
.footer-col .footer-about p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.7;
}
.footer-col .footer-contact li a i {
    margin-left: 8px;
    color: var(--primary-fixed-dim);
}

/* Footer Bottom */
.footer-bottom {
    background: var(--primary);
    border-radius: 0;
    margin: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) { .footer-bottom { padding: 16px 48px; } }
.footer-bottom .copyright {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.footer-bottom .copyright a { color: var(--primary-fixed-dim); }
.footer-bottom .copyright a:hover { color: #fff; }
.footer-bottom-social {
    display: flex;
    gap: 8px;
}
.footer-bottom-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    font-size: 12px;
    transition: all 0.3s ease;
}
.footer-bottom-social a:hover {
    background: var(--primary-fixed-dim);
    color: var(--primary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,42,14,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-container);
    transform: translateY(-2px);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .blog-section { grid-template-columns: 1fr; }
    .blog-sidebar { order: -1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    #footer { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .tm-head { flex-direction: column; gap: 5px; }
    .tm-menu ul { flex-wrap: wrap; justify-content: center; }
    .nav-menu { display: none; }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 52px;
        right: 0;
        left: 0;
        background: var(--primary);
        z-index: 200;
        border-radius: 0 0 1rem 1rem;
    }
    .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .menu-toggle { display: flex; }
    .post-card-inner { flex-direction: column; }
    .post-card-img { width: 100%; min-height: 180px; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; padding: 24px 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    #header-blog { padding: 15px; border-radius: 0.75rem; }
    .header-content { flex-direction: column; text-align: center; gap: 15px; }
}
