/* ===================================
   Golden Vet - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    /* الألوان الأساسية من اللوغو */
    --primary-color: #0072BC;   /* الأزرق الغامق من اللوغو */
    --secondary-color: #39B54A; /* الأخضر من اللوغو */
    --accent-color: #005DAA;    /* أزرق أغمق للتأثيرات */
    --highlight-color: #2E8B57; /* أخضر أغمق للتأثيرات */
    --background-color: #FFFFFF; /* الأبيض */
    --text-color: #333333;      /* لون النص الأساسي */
    
    /* ألوان إضافية */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    
    /* ألوان الحالة */
    --success-color: #39B54A;   /* نفس الأخضر من اللوغو */
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0072BC;      /* نفس الأزرق الأساسي */
    
    /* الظلال */
    --shadow-light: 0 2px 10px rgba(0, 114, 188, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 114, 188, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 114, 188, 0.2);
    
    /* الحدود والانتقالات */
    --border-radius: 8px;
    --border-radius-lg: 15px;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), url('../images/bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* تأثيرات العناوين مع الخط الذهبي */
.title-highlight::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.title-highlight-left::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px 0 0 0;
    border-radius: 2px;
}

.golden-text {
    background: linear-gradient(135deg, var(--primary-color), #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-highlight { color: var(--highlight-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-highlight { background-color: var(--highlight-color) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(57, 181, 74, 0.3);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    font-weight: 700;
}

.btn-accent:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-highlight {
    background: var(--highlight-color);
    color: white;
    font-weight: 700;
    border: 2px solid var(--highlight-color);
}

.btn-highlight:hover {
    background: #228B22;
    color: white;
    border-color: #228B22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(57, 181, 74, 0.3);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Utilities */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection Styling */
::selection {
    background: var(--accent-color);
    color: var(--text-dark);
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
}
/* ===================================
   Golden Vet - Main Stylesheet
   =================================== */

/* ... (جميع المتغيرات والتنسيقات الأساسية الموجودة لديك) ... */

/* Header & Main Content Layout Adjustment */
/* أضف هذا الجزء لرفع المحتوى لأسفل الناف بار الثابت */
.main-content-wrapper {
    /* قم بتعديل هذه القيمة لتكون أكبر بقليل من ارتفاع الناف بار الخاص بك */
    /* استخدم أدوات المطور (F12) في المتصفح لتحديد ارتفاع الناف بار بدقة */
    padding-top: 85px; /* مثال: إذا كان ارتفاع الناف بار 70-75px، جرب 80px أو 85px */
}

/* Force tight spacing between main content and footer */
main {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force no spacing around articles section specifically */
.articles-with-sidebar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force footer to be tight against content */
.footer-advanced {
    margin-top: 0 !important;
    padding-top: 5px !important; /* Very minimal top padding */
}

/* Fix header overlap issues for news detail pages */
body:has([class*="news-detail"]) main,
main:has([class*="news-detail"]) {
    padding-top: 140px !important;
}

/* General fix for all pages to avoid header overlap */
main {
    min-height: calc(100vh - 200px);
}

