:root {
    /* Palette */
    --color-bg: #F5F3EF;
    --color-primary: #3E4C5A;
    --color-secondary: #C49A6C;
    --color-accent: #8A5C3D;
    --color-text: #2B2B2B;
    --color-white: #FFFFFF;
    --color-light-gray: #E5E5E5;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-content {
    flex: 1;
    padding-bottom: var(--spacing-xl);
}

/* Header */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid #f5f5f5;
    padding: 0.8rem 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-bottom {
    padding: 0;
    background-color: var(--color-white);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo span {
    color: var(--color-secondary);
}

/* Navigation */
.main-nav .nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    border-radius: 4px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    text-transform: none;
    border-bottom: 1px solid #f5f5f5 !important;
    white-space: nowrap;
    color: var(--color-text);
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    color: var(--color-secondary);
    padding-left: 1.8rem;
}

.nav-cta a {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-cta a:hover {
    background-color: var(--color-accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    color: var(--color-white);
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    background-color: var(--color-light-gray);
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.card-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.card-link {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(196, 154, 108, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--spacing-md) var(--spacing-md);
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.breadcrumbs span {
    color: #999;
    font-weight: 500;
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    background-color: #f9f9f9;
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
    width: 250px;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(196, 154, 108, 0.1);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-form button:hover {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .header-top-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .search-form {
        width: 100%;
        max-width: 300px;
    }

    .search-form input {
        width: 100%;
    }

    .search-form input:focus {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        gap: var(--spacing-md);
        text-align: center;
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: #f9f9f9;
        padding: 0;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        /* Mobile: 2 per row */
        gap: 1rem;
    }
}

/* Subcategories Hero */
.subcat-hero-section {
    background-color: var(--color-primary);
    padding: 4rem 0;
    margin-bottom: 4rem;
    color: var(--color-white);
}

.subcat-hero-section .section-header {
    margin-bottom: 3rem;
}

.subcat-hero-section .section-header h2 {
    color: var(--color-white);
    font-size: 2rem;
}

.subcat-hero-section .section-header h2::after {
    background-color: var(--color-secondary);
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subcat-card-hero {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subcat-card-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subcat-card-hero .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.subcat-card-hero p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.category-hero.simple {
    background: transparent;
    color: var(--color-primary);
    padding: 2rem 0;
    margin-bottom: 0;
    text-align: center;
}

.category-hero.simple h1 {
    color: var(--color-primary);
}

.category-hero.simple p {
    color: var(--color-text);
}

/* Base Styles for Featured Mini */
.featured-cat-mini-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.featured-cat-mini {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #eee;
    height: 100%;
    color: var(--color-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.featured-cat-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.featured-cat-mini svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.featured-cat-mini .card-title {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    color: inherit;
}

/* Media Queries */
@media (min-width: 768px) {
    .featured-cat-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet: 3 per row */
    }

    /* Revert to vertical layout as requested */
    .featured-cat-mini {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1rem;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .featured-cat-mini svg {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
        width: 48px;
        /* Larger icon */
        height: 48px;
    }

    .featured-cat-mini .card-title {
        font-size: 1rem;
        margin: 0;
    }

}

/* Subcategories Hero */
.subcat-hero-section {
    background-color: var(--color-primary);
    padding: 4rem 0;
    margin-bottom: 4rem;
    color: var(--color-white);
}

.subcat-hero-section .section-header {
    margin-bottom: 3rem;
}

.subcat-hero-section .section-header h2 {
    color: var(--color-white);
    font-size: 2rem;
}

.subcat-hero-section .section-header h2::after {
    background-color: var(--color-secondary);
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subcat-card-hero {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subcat-card-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subcat-card-hero .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.subcat-card-hero p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.category-hero.simple {
    background: transparent;
    color: var(--color-primary);
    padding: 2rem 0;
    margin-bottom: 0;
    text-align: center;
}

.category-hero.simple h1 {
    color: var(--color-primary);
}

.category-hero.simple p {
    color: var(--color-text);
}

/* Base Styles for Featured Mini */
.featured-cat-mini-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.featured-cat-mini {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #eee;
    height: 100%;
    color: var(--color-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.featured-cat-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.featured-cat-mini svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.featured-cat-mini .card-title {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    color: inherit;
}

/* Media Queries */
@media (min-width: 768px) {
    .featured-cat-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet: 3 per row */
    }

    /* Revert to vertical layout as requested */
    .featured-cat-mini {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1rem;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .featured-cat-mini svg {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
        width: 48px;
        /* Larger icon */
        height: 48px;
    }

    .featured-cat-mini .card-title {
        font-size: 1rem;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .featured-cat-mini-grid {
        grid-template-columns: repeat(6, 1fr);
        /* Desktop: 6 per row */
    }
}

/* --- Dynamic Sections Layouts --- */

/* Carousel Layout */
.carousel-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
}

.carousel-card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
}

/* Mosaic Layout */
.mosaic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.mosaic-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mosaic-main .card-img {
    height: 300px;
}

.mosaic-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mosaic-small {
    display: flex;
}

.subcat-hero-section .section-header h2::after {
    background-color: var(--color-secondary);
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subcat-card-hero {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subcat-card-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subcat-card-hero .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.subcat-card-hero p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.category-hero.simple {
    background: transparent;
    color: var(--color-primary);
    padding: 2rem 0;
    margin-bottom: 0;
    text-align: center;
}

.category-hero.simple h1 {
    color: var(--color-primary);
}

.category-hero.simple p {
    color: var(--color-text);
}

/* Base Styles for Featured Mini */
.featured-cat-mini-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.featured-cat-mini {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #eee;
    height: 100%;
    color: var(--color-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.featured-cat-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.featured-cat-mini svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.featured-cat-mini .card-title {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    color: inherit;
}

/* Media Queries */
@media (min-width: 768px) {
    .featured-cat-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet: 3 per row */
    }

    /* Revert to vertical layout as requested */
    .featured-cat-mini {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1rem;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .featured-cat-mini svg {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
        width: 48px;
        /* Larger icon */
        height: 48px;
    }

    .featured-cat-mini .card-title {
        font-size: 1rem;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .featured-cat-mini-grid {
        grid-template-columns: repeat(6, 1fr);
        /* Desktop: 6 per row */
    }
}

/* --- Dynamic Sections Layouts --- */

/* Carousel Layout */
.carousel-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
}

.carousel-card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
}

/* Mosaic Layout */
.mosaic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.mosaic-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mosaic-main .card-img {
    height: 300px;
}

.mosaic-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mosaic-small {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
}

.mosaic-small .card-content {
    padding: 0.5rem;
}

/* Admin Header Styles */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.admin-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-header nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.admin-header nav a:hover,
.category-hero.simple p {
    color: var(--color-text);
}

/* Base Styles for Featured Mini */
.featured-cat-mini-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.featured-cat-mini {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #eee;
    height: 100%;
    color: var(--color-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.featured-cat-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.featured-cat-mini svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.featured-cat-mini .card-title {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    color: inherit;
}

/* Media Queries */
@media (min-width: 768px) {
    .featured-cat-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet: 3 per row */
    }

    /* Revert to vertical layout as requested */
    .featured-cat-mini {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1rem;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .featured-cat-mini svg {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
        width: 48px;
        /* Larger icon */
        height: 48px;
    }

    .featured-cat-mini .card-title {
        font-size: 1rem;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .featured-cat-mini-grid {
        grid-template-columns: repeat(6, 1fr);
        /* Desktop: 6 per row */
    }
}

/* --- Dynamic Sections Layouts --- */

/* Carousel Layout */
.carousel-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
}

.carousel-card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
}

/* Mosaic Layout */
.mosaic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.mosaic-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mosaic-main .card-img {
    height: 300px;
}

.mosaic-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mosaic-small {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
}

.mosaic-small .card-content {
    padding: 0.5rem;
}

/* Admin Header Styles */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.admin-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-header nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.admin-header nav a:hover,
.admin-header nav a.active {
    color: white;
    font-weight: 600;
}

.admin-header .logout-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.admin-header .logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Admin UI Improvements */
.btn-success {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.2);
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Section Card Styling */
.section-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

/* Carousel Layout */
.carousel-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
}

.carousel-card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
}

/* Mosaic Layout */
.mosaic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.mosaic-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mosaic-main .card-img {
    height: 300px;
}

.mosaic-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mosaic-small {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
}

.mosaic-small .card-content {
    padding: 0.5rem;
}

/* Admin Header Styles */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.admin-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-header nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.admin-header nav a:hover,
.admin-header nav a.active {
    color: white;
    font-weight: 600;
}

.admin-header .logout-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.admin-header .logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Admin UI Improvements */
.btn-success {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.2);
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Section Card Styling */
.section-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.section-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Magazine Layout for Latest Articles */
.magazine-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.magazine-main {
    display: flex;
    flex-direction: column;
}

.magazine-main .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.magazine-main .card-img {
    height: 400px;
    object-fit: cover;
}

.magazine-main .card-content {
    padding: 2rem;
}

.magazine-main .card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.magazine-main .card-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.magazine-side-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.magazine-side-grid .card {
    height: 100%;
}

.magazine-side-grid .card-img {
    height: 150px;
}

.magazine-side-grid .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.magazine-side-grid .card-content {
    padding: 1rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .magazine-side-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .magazine-layout {
        grid-template-columns: 1fr 1fr;
    }
}