/**
 * CooksPedia Modern Theme - Consolidated Stylesheet
 * Version: 2.0
 *
 * This file consolidates all inline CSS from templates into one file
 * for better performance, maintainability, and caching.
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary: #E85A2B;
    --primary-dark: #C74A1F;
    --primary-light: #FF7043;

    /* Secondary Colors */
    --secondary: #6B4423;
    --secondary-dark: #4A3520;
    --secondary-light: #8B5E3C;

    /* Accent Colors */
    --accent: #F59E0B;
    --accent-dark: #D97706;

    /* Status Colors */
    --success: #10B981;
    --success-dark: #059669;
    --success-light: #D1FAE5;

    --danger: #DC2626;
    --danger-dark: #991B1B;
    --danger-light: #FEE2E2;

    --warning: #F59E0B;
    --warning-light: #FEF3C7;

    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* Neutral Colors */
    --bg-light: #FFF9F5;
    --bg-white: #FFFFFF;
    --text-dark: #2D1F14;
    --text-muted: #8B7355;
    --border-color: #E8DDD4;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll on mobile */
.container,
.row,
main,
section,
article,
header,
footer {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ==========================================================================
   3. Header & Navigation - STICKY
   ========================================================================== */
.top-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-normal);
}

.top-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

.top-header.scrolled .logo-area img {
    height: 40px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area img {
    height: 50px;
    transition: var(--transition-normal);
}

.top-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav a:hover {
    background: rgba(255,255,255,0.2);
}

.top-nav a.active {
    background: rgba(255,255,255,0.25);
}

.btn-add-recipe {
    background: var(--accent) !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
}

.btn-add-recipe:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-2px);
}

/* User Dropdown Menu */
.user-menu {
    position: relative;
}

.user-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 200px;
    display: none;
    z-index: var(--z-dropdown);
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.user-menu .dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu .dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.user-menu .dropdown-menu a i {
    width: 20px;
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .top-nav { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ==========================================================================
   4. Hero Search Section
   ========================================================================== */
.hero-search-section {
    background: linear-gradient(135deg, #2D1F14 0%, #4A3520 50%, #6B4423 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 90, 43, 0.2);
    border: 1px solid rgba(232, 90, 43, 0.4);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    margin: 0 0 40px 0;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Hero Search Box */
.hero-search-box {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-search-form {
    max-width: 650px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-full);
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.search-input-wrapper:focus-within {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(232, 90, 43, 0.3);
}

.search-input-wrapper .search-icon {
    color: var(--text-muted);
    font-size: 20px;
    padding: 0 16px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 8px;
    font-size: 18px;
    font-family: 'Tajawal', sans-serif;
    outline: none;
    color: var(--text-dark);
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(232, 90, 43, 0.5);
}

.search-btn i {
    font-size: 14px;
}

/* Hero Categories */
.hero-categories {
    margin-top: 32px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.categories-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-left: 12px;
}

.categories-label i {
    color: var(--primary);
}

.category-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.category-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.category-tag.highlight {
    background: var(--primary);
    border-color: var(--primary);
}

.category-tag.highlight:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(232, 90, 43, 0.4);
}

.category-tag i {
    font-size: 14px;
    opacity: 0.8;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.hero-stats .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.hero-stats .stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.08);
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-icon.icon-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

.floating-icon.icon-4 {
    bottom: 30%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-search-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .search-input-wrapper {
        flex-direction: column;
        border-radius: var(--radius-xl);
        padding: 12px;
    }

    .search-input-wrapper .search-icon {
        display: none;
    }

    .search-input-wrapper input {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .hero-categories {
        margin-top: 24px;
    }

    .categories-label {
        display: block;
        margin-bottom: 12px;
        margin-left: 0;
    }

    .category-tags {
        gap: 8px;
    }

    .category-tag {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 32px;
    }

    .hero-stats .stat-number {
        font-size: 22px;
    }

    .hero-stats .stat-item i {
        font-size: 20px;
    }

    .floating-icon {
        display: none;
    }
}

/* ==========================================================================
   5. Hero Slider
   ========================================================================== */
.hero-slider {
    margin-bottom: 32px;
}

.hero-slider .carousel-item {
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-slider .carousel-item { height: 250px; }
}

/* ==========================================================================
   6. Recipe Cards
   ========================================================================== */
.recipe-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.recipe-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.recipe-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.recipe-card:hover .recipe-card-img img {
    transform: scale(1.1);
}

.recipe-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.recipe-card:hover .recipe-card-overlay {
    opacity: 1;
}

.recipe-card-overlay .btn {
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.recipe-card:hover .recipe-card-overlay .btn {
    transform: translateY(0);
}

.recipe-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.recipe-card-body {
    padding: 16px;
}

.recipe-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.recipe-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.recipe-card-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.recipe-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recipe-card-meta i {
    color: var(--primary);
}

.recipe-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

.recipe-card-author a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   7. Category Cards
   ========================================================================== */
.category-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-decoration: none;
    display: block;
}

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

.category-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 24px 8px 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.category-card-overlay .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.category-card-overlay .stat i {
    font-size: 10px;
    color: var(--primary-light);
}

.category-card-body {
    padding: 12px;
    text-align: center;
}

.category-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.category-card:hover .category-card-title {
    color: var(--primary);
}

.category-card-stats {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   8. Section Blocks
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-normal);
}

.section-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.section-block {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    height: 100%;
}

.section-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-block-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-block-title i {
    color: var(--primary);
}

/* ==========================================================================
   9. Page Headers with Breadcrumbs & Search
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 32px 0;
    margin-bottom: 32px;
    position: relative;
    width: 100%;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    color: white;
}

.page-header .breadcrumb .separator,
.page-header .breadcrumb span:not(.current) {
    color: rgba(255,255,255,0.5);
}

.page-header .breadcrumb .current {
    color: rgba(255,255,255,0.6);
}

/* Page Header Inline Search */
.page-header-search {
    max-width: 500px;
}

.page-header-search .search-form {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
}

.page-header-search .search-form input {
    color: white;
}

.page-header-search .search-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.page-header-search .search-form button {
    background: white;
    color: var(--primary);
}

/* Page Header Card Style */
.page-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}

.page-header-card .icon i {
    font-size: 28px;
    color: white;
}

.page-header-card h1 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    position: relative;
}

/* Color variants */
.page-header-card.red,
.page-header.red {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
}

.page-header-card.green,
.page-header.green {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.page-header-card.brown,
.page-header.brown {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.page-header-card.gold,
.page-header.gold {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* ==========================================================================
   10. Forms & Inputs
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition-normal);
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 90, 43, 0.1);
    background: white;
}

.form-control:disabled {
    background: #E5E7EB;
    color: #6B7280;
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-light);
    cursor: pointer;
}

.input-icon-group {
    position: relative;
}

.input-icon-group .form-control {
    padding-left: 48px;
}

.input-icon-group .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}

.input-icon-group .form-select {
    padding-left: 48px;
}

.input-icon-group.textarea-group .icon {
    top: 20px;
    transform: none;
}

.input-icon-group textarea.form-control {
    padding-left: 48px;
    min-height: 150px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

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

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-section {
    margin-bottom: 32px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary);
}

/* ==========================================================================
   11. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(232, 90, 43, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 18px;
    width: 100%;
}

/* ==========================================================================
   12. Auth Pages
   ========================================================================== */
.auth-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
}

.auth-card.wide {
    max-width: 600px;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    text-align: center;
}

.auth-header.green {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.auth-header.gold {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.auth-header.brown {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.auth-icon i {
    font-size: 32px;
    color: white;
}

.auth-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.auth-header p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 14px;
}

.auth-body {
    padding: 32px;
}

.auth-footer {
    background: var(--bg-light);
    padding: 20px 32px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-normal);
}

.forgot-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   13. User Pages
   ========================================================================== */
.user-profile-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.user-profile-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 40px;
    text-align: center;
}

.user-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.user-avatar i {
    font-size: 40px;
    color: white;
}

.user-profile-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.user-profile-body {
    padding: 32px;
}

.user-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.user-info-item .icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.user-info-item .icon i {
    color: var(--primary);
    font-size: 18px;
}

/* Favorite Card */
.favorite-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    margin-bottom: 24px;
}

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

.favorite-card-body {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.favorite-card-icon {
    width: 50px;
    height: 50px;
    background: var(--danger-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.favorite-card-icon i {
    font-size: 20px;
    color: var(--danger);
}

/* Post Item */
.post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

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

.post-item:hover {
    background: var(--bg-light);
}

.post-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   14. Alerts
   ========================================================================== */
.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: var(--success-light);
    color: #065F46;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-dark);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
}

.alert-info {
    background: var(--info-light);
    color: #1E40AF;
}

.alert-success.large {
    flex-direction: column;
    text-align: center;
    padding: 32px;
}

.alert-success.large i {
    font-size: 48px;
    margin-bottom: 16px;
}

.info-box {
    background: var(--warning-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box i {
    color: var(--accent-dark);
    font-size: 20px;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    color: #92400E;
    font-size: 14px;
    line-height: 1.6;
}

.password-requirements {
    background: #F0FDF4;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #166534;
}

.password-requirements ul {
    margin: 8px 0 0 0;
    padding-right: 20px;
}

.password-requirements li {
    margin-bottom: 4px;
}

/* Logout Page */
.logout-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.logout-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    text-align: center;
    padding: 48px 32px;
}

.logout-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logout-icon i {
    font-size: 40px;
    color: var(--success-dark);
}

.logout-icon.error {
    background: linear-gradient(135deg, var(--danger-light) 0%, #FECACA 100%);
}

.logout-icon.error i {
    color: var(--danger);
}

.logout-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 12px 0;
}

.logout-card p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.logout-card .redirect-text {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-card .redirect-text i {
    animation: spin 1s linear infinite;
}

/* Favorites Page */
.favorites-container {
    padding: 40px 0;
}

.favorite-card-content {
    flex: 1;
    min-width: 0;
}

.favorite-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.favorite-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.favorite-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.favorite-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-card-meta i {
    color: var(--primary);
}

.favorite-card-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* My Posts Page */
.myposts-container {
    padding: 40px 0;
}

.section-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.section-card-header {
    background: var(--bg-light);
    padding: 16px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-card-header i {
    color: var(--primary);
    font-size: 20px;
}

.section-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.section-card-body {
    padding: 0;
}

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

.post-item-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.post-item-title a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.post-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-item-meta i {
    color: var(--primary);
}

.post-item-stats {
    text-align: center;
}

.post-item-stats .number {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.post-item-stats .label {
    font-size: 12px;
    color: var(--text-muted);
}

/* User Info Page */
.userinfo-container {
    padding: 40px 0;
}

.message-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.message-card-header {
    background: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-card-header i {
    color: var(--primary);
    font-size: 20px;
}

.message-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.message-card-body {
    padding: 24px;
}

.btn-send {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 90, 43, 0.4);
}

.btn-report {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-report:hover {
    background: var(--danger);
    color: white;
}

.report-box {
    background: var(--success-light);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    display: none;
}

.posts-section {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.posts-section-header {
    background: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.posts-section-header i {
    color: var(--primary);
    font-size: 20px;
}

.posts-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
}

.post-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.post-card-img {
    aspect-ratio: 1;
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.post-card-body {
    padding: 12px;
}

.post-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.post-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.post-card-stats {
    font-size: 12px;
    color: var(--text-muted);
}

/* Closed Account Page */
.closed-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.closed-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.closed-header {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    padding: 48px 32px;
}

.closed-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.closed-icon i {
    font-size: 48px;
    color: white;
}

.closed-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.closed-body {
    padding: 32px;
}

.closed-body p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 24px 0;
}

.closed-reason {
    background: var(--danger-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    text-align: right;
}

.closed-reason-title {
    font-weight: 700;
    color: var(--danger-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.closed-reason-text {
    color: #7F1D1D;
    font-size: 14px;
    line-height: 1.6;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 90, 43, 0.4);
    color: white;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    margin-right: 12px;
}

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

/* Section Stats */
.section-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.section-stats .stat-item i {
    color: var(--primary);
}

.section-stats .hashtag {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

.section-stats .hashtag:hover {
    background: var(--primary);
    color: white;
}

/* Contact Page */
.contact-container {
    padding: 40px 0;
}

.contact-info-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h3 i {
    color: var(--primary);
}

.contact-info-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.contact-form-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    text-align: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-icon i {
    font-size: 32px;
    color: white;
}

.contact-form-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.contact-form-header p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 14px;
}

.contact-form-body {
    padding: 32px;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.captcha-group img {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

/* Search Page */
.search-container {
    padding: 40px 0;
}

.search-form-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.search-form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    text-align: center;
}

.search-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.search-icon i {
    font-size: 32px;
    color: white;
}

.search-form-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.search-form-header p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 14px;
}

.search-form-body {
    padding: 32px;
}

.search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
}

.btn-search {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 90, 43, 0.4);
}

.search-results-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.results-header i {
    font-size: 24px;
    color: var(--primary);
}

.results-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.result-section {
    margin-bottom: 24px;
}

.result-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-section-title .count {
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.result-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition-normal);
}

.result-list li a:before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
}

.result-list li a:hover {
    background: var(--primary);
    color: white;
}

.result-list li a:hover:before {
    color: white;
}

/* Profile Page */
.profile-container {
    padding: 40px 0;
}

.profile-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #4A3520 100%);
    padding: 40px;
    text-align: center;
}

.profile-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-icon i {
    font-size: 40px;
    color: white;
}

.profile-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.profile-header p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 14px;
}

.profile-body {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary);
}

.radio-group {
    display: flex;
    gap: 24px;
    padding: 12px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.btn-save {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 90, 43, 0.4);
}

.btn-reset {
    padding: 14px 40px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

label.error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* ==========================================================================
   15. Pagination
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

.pagination-wrapper .pagination {
    gap: 8px;
}

.pagination-wrapper .page-link {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-dark);
    background: white;
    box-shadow: var(--shadow-sm);
}

.pagination-wrapper .page-link:hover,
.pagination-wrapper .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* Pager - System Default Pagination */
.pagination-wrapper .pager,
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .pager a,
.pagination-wrapper .pager span,
.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pagination-wrapper .pager a:hover,
.pager a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 43, 0.3);
}

.pagination-wrapper .pager span.current,
.pagination-wrapper .pager a.active,
.pager span.current,
.pager a.active,
.pager .active {
    background: var(--primary);
    color: white;
}

.pagination-wrapper .pager span.disabled,
.pager span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pager li items */
.pager li {
    list-style: none;
}

.pager li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pager li a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 43, 0.3);
}

.pager li.active a,
.pager li.current a {
    background: var(--primary);
    color: white;
}

/* Current page (no link, just text in li) */
.pager li.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(232, 90, 43, 0.3);
}

/* Arrow buttons - First, Prev, Next, Last */
.pager li.first a,
.pager li.prev a,
.pager li.next a,
.pager li.last a {
    font-size: 0;
    position: relative;
}

.pager li.first a::before,
.pager li.prev a::before,
.pager li.next a::before,
.pager li.last a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: var(--primary);
}

.pager li.first a:hover::before,
.pager li.prev a:hover::before,
.pager li.next a:hover::before,
.pager li.last a:hover::before {
    color: white;
}

.pager li.first a::before {
    content: "\f101"; /* fa-angle-double-left - go to first */
}

.pager li.prev a::before {
    content: "\f105"; /* fa-angle-right - previous */
}

.pager li.next a::before {
    content: "\f104"; /* fa-angle-left - next */
}

.pager li.last a::before {
    content: "\f100"; /* fa-angle-double-right - go to last */
}

/* Alternative pager classes */
.pages,
.pagging,
.paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.pages a,
.pagging a,
.paging a,
.pages span,
.pagging span,
.paging span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pages a:hover,
.pagging a:hover,
.paging a:hover {
    background: var(--primary);
    color: white;
}

.pages .current,
.pagging .current,
.paging .current,
.pages .active,
.pagging .active,
.paging .active {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   16. Empty States
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   17. CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-2xl);
    padding: 48px;
    text-align: center;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-full);
    position: relative;
}

/* ==========================================================================
   18. Quick Action Buttons (FAB)
   ========================================================================== */
.quick-actions {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: scale(1.1);
}

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

.quick-action-btn.success {
    background: var(--success);
    color: white;
}

.quick-action-btn.whatsapp {
    background: #25D366;
    color: white;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(232, 90, 43, 0.4);
    transition: var(--transition-normal);
    z-index: var(--z-fixed);
}

#backToTop:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   19. Mobile Bottom Navigation
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: var(--z-fixed);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 80px;
    }

    #backToTop {
        bottom: 100px;
    }

    .quick-actions {
        bottom: 170px;
    }
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition-normal);
    border-radius: var(--radius-sm);
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary);
}

.mobile-nav-item.add-btn {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    margin-top: -20px;
    box-shadow: 0 4px 12px rgba(232, 90, 43, 0.4);
}

.mobile-nav-item.add-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* ==========================================================================
   20. Animations
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ==========================================================================
   21. Utilities
   ========================================================================== */
.ads-block {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin: 24px 0;
}

/* ==========================================================================
   22. Footer
   ========================================================================== */
.footer-ads-container {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.main-footer {
    background: linear-gradient(135deg, #2D1F14 0%, #1a1209 100%);
    color: #a89a8a;
    padding: 60px 0 0;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a89a8a;
    transition: var(--transition-normal);
    text-decoration: none;
}

.footer-social .social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a89a8a;
    text-decoration: none;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    padding-right: 6px;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-contact-text {
    margin-bottom: 16px;
    line-height: 1.7;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
}

.footer-contact-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.footer-rss {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-rss a {
    color: #a89a8a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: var(--transition-normal);
}

.footer-rss a:hover {
    color: white;
}

.footer-rss a i {
    color: var(--primary);
}

.footer-copyright {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
}

.footer-copyright a {
    color: var(--primary);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-copyright .separator {
    margin: 0 8px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(232, 90, 43, 0.4);
    transition: var(--transition-normal);
    z-index: var(--z-fixed);
}

.back-to-top:hover {
    transform: translateY(-4px);
    color: white;
}

@media (max-width: 991px) {
    .back-to-top {
        bottom: 100px;
    }
}

/* ==========================================================================
   23. Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .cta-section {
        padding: 32px 20px;
    }

    .cta-section h2 {
        font-size: 24px;
    }
}

/* ==========================================================================
   24. Messages System
   ========================================================================== */
.messages-container {
    padding: 20px 0;
}

.messages-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.messages-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-normal);
}

.messages-nav .nav-item:hover {
    background: var(--primary-light);
    color: white;
}

.messages-nav .nav-item.active {
    background: var(--primary);
    color: white;
}

.messages-nav .nav-item i {
    font-size: 18px;
}

.messages-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.messages-header {
    background: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.messages-header i {
    font-size: 20px;
    color: var(--primary);
}

.messages-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.messages-list {
    padding: 0;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-decoration: none;
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
}

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background: var(--bg-light);
}

.message-item.unread {
    background: rgba(232, 90, 43, 0.05);
}

.message-item.unread .message-subject {
    font-weight: 700;
}

.message-status {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-item.unread .message-status {
    background: var(--primary);
    color: white;
}

.message-status i {
    font-size: 16px;
    color: var(--text-muted);
}

.message-item.unread .message-status i {
    color: white;
}

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

.message-subject {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.message-arrow {
    color: var(--text-muted);
}

.messages-pagination {
    padding: 16px 24px;
    background: var(--bg-light);
}

/* Message View */
.message-view-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.message-view-header {
    background: var(--bg-light);
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
}

.message-view-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 12px 0;
}

.message-view-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

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

.message-view-meta a {
    color: var(--primary);
    text-decoration: none;
}

.message-view-meta a:hover {
    text-decoration: underline;
}

.message-view-body {
    padding: 24px;
    line-height: 1.8;
    color: var(--text-dark);
    min-height: 150px;
}

.message-reply-section {
    padding: 24px;
    border-top: 2px solid var(--border-color);
}

.btn-reply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.reply-form-container {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

/* Compose Card */
.compose-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.compose-header {
    background: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.compose-header i {
    font-size: 20px;
    color: var(--primary);
}

.compose-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.compose-body {
    padding: 24px;
}

/* ==========================================================================
   25. Content Pages (News, Articles, Pages)
   ========================================================================== */
.content-container {
    padding: 20px 0;
}

.sections-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.sections-header {
    background: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sections-header i {
    font-size: 20px;
    color: var(--primary);
}

.sections-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 24px;
}

.section-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition-normal);
}

.section-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.section-item .section-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.section-item .section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.section-item:hover .section-img img {
    transform: scale(1.08);
}

.section-item .section-info {
    padding: 16px;
}

.section-item .section-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 8px 0;
}

.section-item .section-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.section-item .section-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-item .section-stats i {
    color: var(--primary);
}

/* Items List (Horizontal Cards) */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-card.horizontal {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    transition: var(--transition-normal);
}

.item-card.horizontal:hover {
    box-shadow: var(--shadow-md);
}

.item-card.horizontal .item-img {
    width: 200px;
    flex-shrink: 0;
}

.item-card.horizontal .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-card.horizontal .item-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-card .item-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.item-card .item-title a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-normal);
}

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

.item-card .item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.item-card .item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-card .item-meta i {
    color: var(--primary);
}

.item-card .item-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
}

.btn-more:hover {
    color: var(--primary-dark);
}

.btn-more i {
    transition: transform var(--transition-normal);
}

.btn-more:hover i {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .item-card.horizontal {
        flex-direction: column;
    }

    .item-card.horizontal .item-img {
        width: 100%;
        aspect-ratio: 16/9;
    }
}

/* Article Card */
.article-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.article-header {
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
}

.article-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 16px 0;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

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

.article-meta a {
    color: var(--primary);
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

.article-meta i {
    color: var(--primary);
}

.article-gallery {
    padding: 24px;
    background: var(--bg-light);
}

.article-gallery .dispaly_img {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-gallery .dispaly_img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-gallery .small_ {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-gallery .small_ a img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    opacity: 0.7;
    transition: var(--transition-normal);
}

.article-gallery .small_ a:hover img {
    opacity: 1;
}

.article-featured-img {
    padding: 24px;
    text-align: center;
}

.article-featured-img img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.article-content {
    padding: 32px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-dark);
}

.article-rating {
    padding: 24px;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.article-actions {
    padding: 24px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-result {
    margin: 16px 24px;
    padding: 16px;
    background: var(--success-light);
    border-radius: var(--radius-md);
}

/* Related Card */
.related-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.related-header {
    background: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-header i {
    font-size: 20px;
    color: var(--primary);
}

.related-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.related-list {
    padding: 16px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.related-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.related-item i {
    color: var(--primary);
}

/* ==========================================================================
   26. Pages List
   ========================================================================== */
.pages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.page-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.page-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-icon i {
    font-size: 20px;
    color: var(--primary);
}

.page-item .page-content {
    flex: 1;
}

.page-item .page-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 6px 0;
}

.page-item .page-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.page-item .page-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-arrow {
    color: var(--text-muted);
}

/* ==========================================================================
   27. Sitemap
   ========================================================================== */
.sitemap-container {
    padding: 20px 0;
}

.sitemap-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sitemap-header {
    background: var(--bg-light);
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitemap-header i {
    font-size: 24px;
    color: var(--primary);
}

.sitemap-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.sitemap-body {
    padding: 24px;
}

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

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

.sitemap-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-normal);
}

.sitemap-item > a:hover {
    background: var(--primary);
    color: white;
}

.sitemap-item > a i {
    color: var(--primary);
}

.sitemap-item > a:hover i {
    color: white;
}

.sitemap-item > a .rss-icon {
    margin-right: auto;
    font-size: 12px;
}

.sitemap-sublist {
    list-style: none;
    padding: 12px 0 0 32px;
    margin: 0;
}

.sitemap-sublist li {
    margin-bottom: 6px;
}

.sitemap-sublist li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-normal);
}

.sitemap-sublist li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-color: var(--primary);
}

.sitemap-sublist li a i {
    color: var(--primary);
    font-size: 12px;
}

/* ==========================================================================
   28. Users Grid (Search Results)
   ========================================================================== */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.user-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.user-card .user-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-card .user-avatar i {
    font-size: 24px;
    color: white;
}

.user-card .user-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.user-card .user-info h4 a {
    color: var(--secondary);
    text-decoration: none;
}

.user-card .user-info h4 a:hover {
    color: var(--primary);
}

.user-card .user-name {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 4px 0;
}

.user-card .user-date {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-card .user-date i {
    color: var(--primary);
}

/* ==========================================================================
   29. Pagination Container
   ========================================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination-container .pager {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-container .pager a {
    padding: 10px 16px;
    background: white;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.pagination-container .pager a:hover,
.pagination-container .pager a.active {
    background: var(--primary);
    color: white;
}

/* Logout Container */
.logout-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.logout-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.logout-icon {
    width: 100px;
    height: 100px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logout-icon i {
    font-size: 48px;
    color: white;
}

.logout-icon.error {
    background: var(--danger);
}

.logout-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 12px 0;
}

.logout-card p {
    color: var(--text-muted);
    margin: 0 0 20px 0;
}

.redirect-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.redirect-text i {
    animation: spin 1s linear infinite;
}
