/* styles.css for Oromia Housing Bureau */
:root {
    --primary: #1a4f72;
    --secondary: #3a7ca5;
    --accent: #f39c12;
    --light: #f5f8fa;
    --dark: #2c3e50;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Container */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Row and Columns */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4, .col-md-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0d3a5c;
    border-color: #0d3a5c;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* Section Spacing */
section {
    padding: 3rem 0;
}

.bg-light {
    background-color: var(--light) !important;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Flexbox Utilities */
.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

/* Margin and Padding Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-4 { margin-top: 1.5rem !important; }

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.me-3 { margin-right: 1rem !important; }

.pb-5 { padding-bottom: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Underline Divider */
.underline {
    height: 3px;
    width: 60px;
    background-color: var(--accent);
    margin: 0 auto;
}

/* Image Styling */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.25rem !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Card Styling */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

.card-img-top {
    width: 100%;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.card-footer {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.card-footer:last-child {
    border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
}

.bg-transparent {
    background-color: transparent !important;
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
    color: #212529;
}

.bg-info {
    background-color: var(--info) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* Date Box for Activities */
.date-box {
    width: 60px;
    height: 60px;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.date-box .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-box .month {
    font-size: 0.875rem;
    line-height: 1;
}

/* Small text */
.small {
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
/* Additional styles for projects and contact pages */

/* Project Cards */
.project-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.project-details p {
    margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-icon {
    min-width: 30px;
    text-align: center;
}

.map-container {
    border-radius: 0.25rem;
    overflow: hidden;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(26, 79, 114, 0.25);
}

/* Accordion Styles */
.accordion-button {
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(26, 79, 114, 0.1);
    color: var(--primary);
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 79, 114, 0.25);
}

/* Nav Pills for Projects */
.nav-pills .nav-link {
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary);
    color: white;
}

/* Modal Styles */
.modal-header {
    background-color: var(--light);
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: var(--dark);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.deputy-profile {
    transition: transform 0.3s ease;
}

.deputy-profile:hover {
    transform: translateY(-5px);
}

.rounded-circle {
    border: 4px solid #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
 /* Video Background Styles */
    .video-header {
        position: relative;
        height: 70vh;
        overflow: hidden;
        background-color: #000;
    }
    
    .video-header video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translateX(-50%) translateY(-50%);
        z-index: 1;
    }
    
    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    
    .video-controls {
        position: absolute;
        bottom: 20px;
        right: 20px;
        z-index: 10;
    }
    
    .btn-video {
        background-color: rgba(255, 255, 255, 0.8);
        color: #333;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
    
    .btn-video:hover {
        background-color: white;
        transform: scale(1.1);
    }
    
    /* Modal Styles */
    .modal-content {
        border-radius: 10px;
        overflow: hidden;
    }
    
    .modal-header {
        background-color: #343a40;
        color: white;
        border-bottom: none;
    }
    
    .btn-close-white {
        filter: invert(1);
    }
    
    /* Timeline Styles */
    .timeline {
        position: relative;
        padding-left: 30px;
    }
    
    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #e9ecef;
    }
    
    .timeline-item {
        position: relative;
        margin-bottom: 30px;
    }
    
    .timeline-item::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 5px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #007bff;
        border: 2px solid white;
        box-shadow: 0 0 0 2px #007bff;
    }
    
    /* Card hover effects */
    .card {
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }