/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Color Variables */
:root {
    --primary-color: #8B0000;
    --primary-dark: #600000;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #f8f9fa;
}

/* Utility Classes */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: var(--text-light);
}

/* Form Styles */
.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Testimonial Styles */
.testimonial-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Gallery Styles */
.gallery-img-container {
    height: 250px;
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-img-container:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal-content {
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 2px solid var(--primary-dark);
}

.modal-footer {
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
}

/* Icon Styles */
.icon-primary {
    color: var(--primary-color);
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.cta-section .btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-section .btn-outline-light {
    border: 2px solid white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
}

/* Reports Page */
.reports-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

.sensitive-data {
    transition: all 0.3s ease;
}

.privacy-toggle {
    cursor: pointer;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Legend Colors */
.bg-education {
    background-color: #4CAF50 !important;
}

.bg-healthcare {
    background-color: #2196F3 !important;
}

.bg-livelihood {
    background-color: #FFC107 !important;
}

.bg-others {
    background-color: #9C27B0 !important;
}

/* Input Groups */
.search-input {
    width: 250px;
}

.filter-input {
    width: 200px;
}

.legend-container {
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/home.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Testimonials */
.testimonial-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Font Awesome Icons */
.fas:hover,
.fab:hover,
.far:hover {
    color: #8B0000 !important; /* Maroon color */
    transition: color 0.3s ease;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #8B0000;
    border-color: #8B0000;
}

.btn-primary:hover {
    background-color: #6d0000;
    border-color: #6d0000;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: #333 !important;
}

.nav-link:hover {
    color: #8B0000 !important;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #8B0000;
    transform: translateY(-3px);
}

/* Utility Classes */
.text-dark-red {
    color: #8B0000;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #8B0000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .navbar-brand h2 {
        font-size: 1.25rem;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/about.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #8B0000;
}

.value-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.value-icon {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8B0000;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    padding-left: 30px;
    border-left: 2px solid #8B0000;
}

.timeline-item:last-child {
    border-left: none;
    padding-left: 32px;
}

.timeline-year {
    position: absolute;
    left: -80px;
    top: 5px;
    background: #8B0000;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8B0000;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #8B0000;
}

.download-card {
    border: 2px dashed #8B0000;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.download-card:hover {
    background: rgba(139, 0, 0, 0.05);
    transform: translateY(-5px);
}

.download-icon {
    font-size: 3rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.founder-message {
    border-left: 4px solid #8B0000;
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
}

.board-member {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.board-member:hover {
    transform: translateY(-5px);
}

.board-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #8B0000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.board-member h4 {
    margin-top: 1rem;
    color: #8B0000;
    font-weight: 600;
}

.board-member p {
    color: #666;
    margin-bottom: 0.5rem;
}

.objective-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.objective-item:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8B0000;
    font-weight: bold;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #8B0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #6d0000;
    color: white;
    transform: translateY(-5px);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Form Styles */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

/* Alert Messages */
.alert {
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: #333;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #8B0000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d0000;
}
