/*
 * Custom Styles for Goharan Municipality Website
 * Author: Your Name
 * Version: 1.0.0
 */

/* --- 1. Variables & General Settings --- */
:root {
    --primary-color: #0d6efd;      /* Bootstrap Blue - for primary actions */
    --secondary-color: #198754;    /* Bootstrap Green - for success states */
    --dark-blue: #0d2c6c;         /* Official Dark Blue - for header/footer */
    --light-gray: #f8f9fa;        /* Light background color */
    --text-dark: #212529;         /* Main text color */
    --text-light: #ffffff;        /* White text */
    --text-muted: #6c757d;        /* Muted text color */
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
}


/* --- 2. Header & Navigation --- */
header.sticky-top .navbar {
    border-bottom: 3px solid var(--dark-blue);
}

.navbar-brand {
    color: var(--dark-blue) !important;
    font-weight: 700;
}

.navbar .nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* --- 3. Footer --- */
.footer {
    background-color: var(--dark-blue);
}

.footer h5 {
    color: var(--text-light);
}

.footer a {
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--text-light) !important;
}


/* --- 4. Content Components --- */

/* Hero Section on Homepage */
.hero-section {
    background: linear-gradient(rgba(13, 44, 108, 0.7), rgba(13, 44, 108, 0.7)), url('../images/header-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
}

/* Page Heading for inner pages */
.page-heading {
    background-color: #e9ecef;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

/* Cards (for news, services, etc.) */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.card-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card .btn-link {
    text-decoration: none;
    font-weight: 500;
}


/* --- 5. Forms --- */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
}


/* --- 6. Specific Page Styles --- */

/* Single News/Page Content */
.single-content-box {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.single-content-box img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.single-content-box h1 {
    color: var(--dark-blue);
}

/* Meta info for news (date, author) */
.news-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* --- 7. Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    .navbar .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}
