/* Hadayek October City Hall - Main Styles */

/* Local Cairo font (downloaded to satisfy CSP) */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    --primary-color: #1a5f3a;
    --secondary-color: #c9a962;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #134a2d 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 180px;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.site-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0;
}

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color) !important;
    opacity: 1 !important;
}

/* Navigation */
.navbar {
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link i {
    color: white !important;
    opacity: 1 !important;
    margin-left: 0.3rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: var(--secondary-color) !important;
}

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 3rem 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-img-top {
    border-radius: 10px 10px 0 0;
    height: 250px;
    object-fit: cover;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.card-text {
    color: var(--text-dark);
    line-height: 1.8;
}

/* News Article Styles */
.news-item {
    margin-bottom: 2rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-meta i {
    margin-left: 0.3rem;
}

.news-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #134a2d;
    border-color: #134a2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 95, 58, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-section h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

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

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

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    float: left;
    padding-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #134a2d 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-light-custom {
    background-color: var(--bg-light);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.3rem;
    }

    .site-subtitle {
        font-size: 0.85rem;
    }

    .logo-img {
        height: 150px;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-top: 1rem;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}
