:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-container form {
    display: flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.search-container form:focus-within {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
}

.search-container button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background: var(--primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Responsive Navbar */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-content {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        height: 100vh;
        padding: 80px 2rem 2rem;
        transition: 0.3s;
        z-index: 999;
        justify-content: flex-start;
        gap: 2rem;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-content.active {
        left: 0;
    }

    .search-container {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.25rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: left;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }
}

.search-results-info {
    margin-bottom: 2rem;
    text-align: center;
}

.search-results-info h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.search-results-info h2 span {
    color: var(--primary);
}

.search-results-info p {
    margin-top: 0.5rem;
}

.search-results-info a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Categories Section */
.categories-section {
    margin: 3rem 0 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.section-title span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 2px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-image.placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.post-content {
    padding: 1.5rem;
}

.date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.post-title a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.75rem;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Post Detail */
.post-detail {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-date {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.post-title-main {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.post-hero-image img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Post Tags */
.post-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.back-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

/* Code Blocks */
pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

img {
    display: block;
    width: 100% \9;
    max-width: 100%;
    height: auto;
}

/* Responsive Embeds (YouTube, etc) */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .post-detail {
        padding: 1.5rem;
    }

    .post-title-main {
        font-size: 2.25rem;
    }

    /* Category section responsive */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Pagination */
.pagination {
    margin: 2rem 0 4rem;
    text-align: center;
}

.step-links {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.btn-pager {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-pager:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
}

.current {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* About Us Page */
.about-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 0 0 50px 50px;
    margin: -2rem -2rem 4rem;
}

.about-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-hero h1 span {
    color: var(--primary);
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.about-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.mission-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.motto-section {
    text-align: center;
    background: var(--text-main);
    color: white;
    padding: 4rem 3rem;
    border-radius: 32px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.motto-section::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

.motto-section blockquote {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    position: relative;
}

.motto-section cite {
    font-style: normal;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.about-history h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-history p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 1rem 3rem;
        margin-bottom: 2rem;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .motto-section {
        padding: 3rem 1.5rem;
    }

    .motto-section blockquote {
        font-size: 1.35rem;
    }
}

/* Services Page */
.services-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 0 0 50px 50px;
    margin: -2rem -2rem 4rem;
}

.services-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.services-hero h1 span {
    color: var(--secondary);
}

.services-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 6rem;
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.services-intro h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px -15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-features li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.features-summary {
    background: #1e293b;
    color: white;
    padding: 4rem;
    border-radius: 40px;
    text-align: center;
}

.features-summary h2 {
    margin-bottom: 2rem;
    color: white;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.feature-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .features-summary {
        padding: 3rem 1.5rem;
    }
}

/* Layout Grid with Sidebar */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Styling */
.sidebar {
    position: sticky;
    top: 6rem;
    /* Adjust based on navbar height */
    height: fit-content;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
}

.sidebar-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.category-link:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.category-link .icon {
    font-size: 1.2rem;
}

.category-link .count {
    margin-left: auto;
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* Adjust Post Detail for Grid */
.layout-grid .post-detail {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    /* Optional: remove shadow if inside grid, or keep it */
    border: 1px solid rgba(0, 0, 0, 0.02);
}
