/* =============================================
   Nebras | نبراس - مكتبتك المدرسية الرقمية
   Main Stylesheet
   ============================================= */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #6B8E23;
    --primary-light: #6B8E2322;
    --primary-dark: #4a6318;
    --primary-rgb: 107, 142, 35;
    --secondary-color: #8FBC8F;
    --accent-color: #2E8B57;
    --dark-color: #1a2e05;
    --text-color: #2d3436;
    --text-light: #636e72;
    --text-muted: #95a5a6;
    --bg-color: #fafbf7;
    --bg-card: #ffffff;
    --bg-soft: #f0f4e8;
    --border-color: #e8ecdf;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(107, 142, 35, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-color);
}

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

::selection {
    background-color: var(--primary-color);
    color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Top Bar ===== */
.top-bar {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d4a0a 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-info span {
    font-size: 12px;
}

.top-bar-info i {
    margin-left: 4px;
    color: var(--secondary-color);
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Main Navbar ===== */
.main-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1030;
}

.main-navbar.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
}

.navbar-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-left: 12px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-navbar.scrolled .navbar-logo {
    width: 42px;
    height: 42px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.brand-desc {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    margin-left: 2px;
    font-size: 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.nav-search-form {
    min-width: 220px;
}

.nav-search-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 13px;
    padding: 8px 14px;
    background: var(--bg-soft);
    transition: var(--transition);
}

.nav-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background: #fff;
}

/* ===== Custom Buttons ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary-custom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-outline-custom {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(160deg, var(--dark-color) 0%, #2d4a0a 40%, var(--primary-color) 100%);
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(143, 188, 143, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 142, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 600px;
    animation: fadeInUp 1s ease;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.hero-image {
    text-align: center;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 280px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: heroImgFloat 6s ease-in-out infinite;
}

@keyframes heroImgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    animation: fadeInUp 1.4s ease;
}

.hero-stat {
    text-align: center;
    color: #fff;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero button specific styles */
.btn-hero-primary {
    background: #fff;
    color: var(--primary-color);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--bg-soft);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    background: transparent;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

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

/* ===== Section Styles ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.section-bg {
    background-color: var(--bg-soft);
}

/* ===== Category Cards ===== */
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.category-card .card-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ===== Content Cards ===== */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.content-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #e8ecdf 100%);
}

.content-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover .content-card-thumb img {
    transform: scale(1.05);
}

.content-card-thumb .thumb-icon {
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.4;
}

.content-card-thumb .content-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.content-card-thumb .category-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.content-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card-body h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--dark-color);
}

.content-card-body h5 a {
    color: inherit;
}

.content-card-body h5 a:hover {
    color: var(--primary-color);
}

.content-card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.content-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.content-card-actions .btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(160deg, var(--dark-color) 0%, #2d4a0a 40%, var(--primary-color) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-feature {
    text-align: center;
    color: #fff;
}

.cta-feature i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.cta-feature span {
    font-size: 14px;
    font-weight: 600;
}

/* ===== About Section ===== */
.about-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.about-card p {
    color: var(--text-light);
    line-height: 2;
    font-size: 15px;
}

/* ===== Page Header / Breadcrumb ===== */
.page-header {
    background: linear-gradient(160deg, var(--dark-color) 0%, #2d4a0a 60%, var(--primary-color) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(143, 188, 143, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.page-header .breadcrumb-item a:hover {
    color: #fff;
}

.page-header .breadcrumb-item.active {
    color: var(--secondary-color);
    font-size: 14px;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-top: 10px;
    max-width: 600px;
}

/* ===== Filters & Search Bar ===== */
.filters-bar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ===== Content Detail ===== */
.content-detail {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.content-detail-header {
    background: linear-gradient(135deg, var(--bg-soft) 0%, #e8ecdf 100%);
    padding: 40px;
    text-align: center;
}

.content-detail-header .detail-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 16px;
    opacity: 0.5;
}

.content-detail-header img {
    max-height: 300px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.content-detail-body {
    padding: 40px;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.content-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-soft);
    padding: 6px 14px;
    border-radius: 20px;
}

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

.content-detail-body .content-text {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
    white-space: pre-line;
}

.content-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ===== Related Content ===== */
.related-section {
    margin-top: 50px;
}

/* ===== Static Page ===== */
.static-page-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    line-height: 2;
}

.static-page-content h3,
.static-page-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.static-page-content ul {
    padding-right: 20px;
}

.static-page-content li {
    margin-bottom: 8px;
}

/* ===== Contact Form ===== */
.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-text h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== Form Styles ===== */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    transition: var(--transition);
    font-family: var(--font-family);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
    margin-bottom: 6px;
}

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

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm) !important;
    margin: 0 3px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

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

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

.empty-state p {
    font-size: 14px;
}

/* ===== 404 Page ===== */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    margin-top: 50px;
}

.footer-wave {
    color: var(--dark-color);
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

.footer-content {
    background: var(--dark-color);
    padding: 50px 0 30px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.15));
}

.footer-brand h5 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 8px;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 16px;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

/* ===== Loading Animation ===== */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-soft) 25%, #e8ecdf 50%, var(--bg-soft) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .hero-image img {
        max-width: 180px;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .nav-search-form {
        margin-top: 12px;
        min-width: 100%;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cta-features {
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        display: none;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .content-detail-body {
        padding: 24px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .static-page-content {
        padding: 24px;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .footer-content {
        padding: 30px 0 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-stats {
        gap: 16px;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .category-card {
        padding: 24px 20px;
    }
    
    .content-card-thumb {
        height: 150px;
    }
    
    .content-detail-header {
        padding: 24px;
    }
    
    .filters-bar {
        padding: 16px;
    }
}
