:root {
    --primary-color: #5f5737;
    --secondary-color: #5f5737a8;
    --accent-color: #CD853F;
    --gold-accent: #DAA520;
    --light-gold: #F4A460;
    --dark-brown: #654321;
    --text-color: #2c3e50;
    --light-bg: #fefefe;
    --dark-bg: #2c3e50;
    --white: #ffffff;
    --gradient: linear-gradient(#5f5737a8, #5f5737);
    --hero-gradient: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(210, 105, 30, 0.8) 50%, rgba(218, 165, 32, 0.7) 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --shadow-soft: 0 8px 32px rgba(139, 69, 19, 0.1);
    --shadow-medium: 0 12px 40px rgba(139, 69, 19, 0.15);
    --shadow-strong: 0 16px 48px rgba(139, 69, 19, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.swiper{
    overflow:visible !important;
    overflow-x: clip !important;
}
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}
a {
    text-decoration: none;
}
.latest-issue-showcase .container {
    position: relative;
    z-index: 1;
}



/* ================================
   ONLY MISSING CSS CLASSES
   Classes used in script.js but not in your CSS files
   ================================ */

/* ================================
   From script.js - Search Results
   ================================ */

/* Search results container show state */
#searchResults.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search result item */
.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.search-result-item:hover {
    background: rgba(139, 69, 19, 0.05);
    padding-right: 25px;
}

/* Result content */
.result-content {
    flex: 1;
}

.result-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-content p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Search highlighting */
.result-content mark {
    background: rgba(218, 165, 32, 0.3);
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Search no results */
.search-no-results {
    padding: 3rem 2rem;
    text-align: center;
}

.search-no-results i {
    color: #95a5a6;
    margin-bottom: 1rem;
}

.search-no-results p {
    color: #6c757d;
    margin: 0;
}

/* Search loading state */
.search-loading {
    padding: 2rem;
    text-align: center;
}

.search-loading .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-loading p {
    color: #6c757d;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search button searching state */
.search-btn.searching {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* ================================
   From script.js - Navbar States
   ================================ */

/* Navbar scrolled state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

/* Navbar hidden state (scroll down) */
.navbar-hidden {
    transform: translateY(-100%);
}

/* ================================
   From script.js - Form Validation
   ================================ */

/* Invalid form control */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-left: calc(1.5em + 0.75rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ================================
   From script.js - File Upload
   ================================ */

/* File upload dragover state */
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
}

/* ================================
   From script.js - Alerts
   ================================ */

/* Alert positioned (used in showAlert function) */
.alert.position-fixed {
    top: 100px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   From script.js - Animations
   ================================ */

/* Animate.css compatibility classes */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================
   From script.js - Scroll Effects
   ================================ */

/* Lazy loading images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* ================================
   From script.js - Mobile Menu
   ================================ */

/* Mobile menu collapse animation */
.navbar-collapse.collapsing {
    transition: height 0.3s ease;
}

/* ================================
   From script.js - Tab Active State
   ================================ */

/* Tab button active state */
.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    border-bottom: 3px solid var(--gold-accent);
}

/* ================================
   From script.js - Slider Dots
   ================================ */

/* Slider dot */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    border-color: var(--gold-accent);
    width: 30px;
    border-radius: 6px;
}

/* ================================
   From script.js - Slider Container
   ================================ */

.slider-container {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: block;
}

/* ================================
   Responsive Adjustments
   ================================ */

@media (max-width: 768px) {
    .alert.position-fixed {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .search-result-item {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    #searchResults {
        max-height: 300px;
    }
}
