/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* Header & Navigation */
.navbar-brand img {
    max-height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background-color: #0d6efd;
    background-image: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Campaign Colors */
.bg-campaign-primary {
    background-color: #0d6efd; /* Bootstrap primary blue */
}

.bg-campaign-secondary {
    background-color: #6c757d; /* Bootstrap secondary gray */
}

.text-campaign-primary {
    color: #0d6efd;
}

/* Card Styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Timeline Styling */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #dee2e6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-year {
    position: absolute;
    top: 15px;
    right: -15px;
    z-index: 1;
}

.timeline-item.right .timeline-year {
    left: -15px;
    right: auto;
}

/* Gallery Item Styling */
.gallery-item {
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Responsive Timeline */
@media (max-width: 767.98px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-year, .timeline-item.right .timeline-year {
        left: 15px;
        right: auto;
    }
}

/* Footer Styling */
footer {
    background-color: #343a40;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

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

/* Custom Button Styles */
.btn-campaign {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-campaign:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    color: white;
}

/* Donation Form */
.donation-amount-btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Map Styling */
#constituency-map {
    height: 500px;
    width: 100%;
}

.project-marker {
    cursor: pointer;
}

/* Blog Styling */
.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.blog-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #6c757d;
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 10px;
    overflow: hidden;
}

.testimonial-card img {
    object-fit: cover;
    width: 80px;
    height: 80px;
}

/* Event Cards */
.event-date {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0d6efd;
    color: white;
    border-radius: 5px;
    text-align: center;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
}


/* Enhanced Navbar and Header Styles */

/* Top Bar Styles */
.top-bar {
    font-size: 0.85rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Main Navbar Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand span {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffc107;
    border-radius: 3px 3px 0 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f8ff;
    padding-left: 1.75rem;
}

/* Sticky Navbar Effect */
.navbar.sticky-top {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Campaign Progress Banner */
.campaign-progress {
    font-size: 0.9rem;
}

.progress-number {
    font-size: 1.5rem;
    display: block;
    line-height: 1.2;
}

.progress-stat {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.progress-stat:hover {
    transform: translateY(-3px);
}

/* Page Header for Inner Pages */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/header-pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.1;
}

.page-header h1 {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    position: relative;
    z-index: 1;
    background-color: transparent;
    padding: 0;
    margin-top: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Action Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.btn-warning {
    color: #333;
}

.btn-warning:hover {
    color: #333;
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #0d6efd;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
    }
    
    .navbar .nav-link.active:after {
        display: none;
    }
    
    .navbar .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: white;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
}

/* Animation for menu items */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav > .nav-item {
    animation: fadeInDown 0.4s forwards;
    opacity: 0;
}

.navbar-nav > .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav > .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav > .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav > .nav-item:nth-child(4) { animation-delay: 0.4s; }
.navbar-nav > .nav-item:nth-child(5) { animation-delay: 0.5s; }
.navbar-nav > .nav-item:nth-child(6) { animation-delay: 0.6s; }
.navbar-nav > .nav-item:nth-child(7) { animation-delay: 0.7s; }


/* Enhanced Footer Styles */

/* Footer General */
.footer {
    background-color: #212529;
    overflow: hidden;
}

.footer-pattern {
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="white" fill-opacity="0.03" fill-rule="evenodd"/></svg>');
    opacity: 0.3;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-section h5 {
    font-size: 1.25rem;
}

.newsletter-section .form-control {
    border-radius: 4px;
    height: 45px;
    border: none;
}

.newsletter-section .btn {
    height: 45px;
    border-radius: 4px;
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 1;
}

.footer-brand .slogan {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.accent-line {
    width: 50px;
    height: 3px;
    background-color: #ffc107;
    margin-bottom: 20px;
    border-radius: 3px;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Social Links */
.social-links {
    display: flex;
}

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

.social-link:hover {
    background-color: #ffc107;
    color: #212529;
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    margin: 0;
    padding: 0;
}

.footer-link-item {
    margin-bottom: 12px;
}

.footer-link {
    color: #e1e1e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-link:hover {
    color: #ffc107;
    transform: translateX(5px);
}

/* Contact Info */
.contact-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-text p {
    color: #e1e1e1;
    font-size: 0.95rem;
}

.btn-whatsapp {
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
    transform: translateY(-2px);
}

/* Copyright Section */
.copyright-section {
    font-size: 0.9rem;
    color: #b3b3b3;
    position: relative;
    z-index: 1;
}

.hover-warning:hover {
    color: #ffc107 !important;
    text-decoration: underline !important;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: #ffc107;
    color: #212529;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.footer [class*="col-"] {
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
}

.footer [class*="col-"]:nth-child(1) { animation-delay: 0.1s; }
.footer [class*="col-"]:nth-child(2) { animation-delay: 0.2s; }
.footer [class*="col-"]:nth-child(3) { animation-delay: 0.3s; }
.footer [class*="col-"]:nth-child(4) { animation-delay: 0.4s; }

/* Responsive styling */
@media (max-width: 991.98px) {
    .footer-heading {
        margin-top: 1rem;
    }
    
    .accent-line {
        margin-bottom: 15px;
    }
}