/* Custom Styles for Village Panchayat Website */

/* Global Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.panchayat-name {
    font-weight: 700;
    color: #0056b3;
    font-size: 1.8rem;
    position: relative;
}

.panchayat-name:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff6b00;
    bottom: -8px;
    left: 0;
}

/* Navbar Customization */
.navbar {
    padding: 0;
    background: linear-gradient(90deg, #003973, #0056b3);
    border-radius: 4px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: #0056b3;
}

/* Carousel/Slider Customization */
.carousel-item {
    height: 600px;
    background-position: center;
    background-size: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    max-width: 60%;
    margin: 0 auto;
}

/* Cards and Sections */
.card {
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.section-heading {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: #0056b3;
    font-weight: 700;
    text-align: center;
    font-size: 2.2rem;
}

.section-heading:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #ff6b00;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
}

/* Contact Icons */
.contact-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #f0f7ff;
    margin: 0 auto 20px;
}

.contact-box {
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
}

.contact-box:hover .contact-icon {
    transform: scale(1.1);
}

/* Footer Customization */
footer {
    background: linear-gradient(135deg, #00223d, #003973);
    color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

footer h5 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

footer h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #ff6b00;
    bottom: 0;
    left: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
    padding: 3px 0;
}

footer a:hover {
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

footer ul.list-unstyled li {
    margin-bottom: 10px;
}

.footer-copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    margin-top: 40px;
}

/* About Us Section */
.about-us-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.about-us-container:before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.about-us-container:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 0, 0.05);
    border-radius: 50%;
    bottom: -75px;
    right: -75px;
}

.about-us-content {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

/* Announcements */
.announcement-card {
    border-left: 4px solid #0056b3;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.announcement-card:hover {
    border-left-color: #ff6b00;
}

.announcement-date {
    font-size: 0.85rem;
    color: #666;
}

/* Button Styles */
.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #003973;
    border-color: #003973;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-outline-primary {
    color: #0056b3;
    border-color: #0056b3;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
}

/* Members Page Styles */
.member-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.sarpanch-card .card-body, .deputy-card .card-body {
    padding: 25px;
}

.deputy-card {
    border-left-color: #ff6b00;
}

.member-image {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sarpanch-card .card-img, .deputy-card .card-img {
    object-fit: contain;
    background-color: #f8f9fa;
}

.sarpanch-card .card-title, .deputy-card .card-title {
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 5px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
}

.member-card .card-body {
    padding: 20px;
}

.member-card .card-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #0056b3;
}

.breadcrumb {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.breadcrumb-item a {
    color: #0056b3;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* Committee Page Styles */
.committee-list .list-group-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.committee-list .list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: #0056b3;
    transform: translateX(5px);
}

.committee-list .list-group-item.active {
    background-color: #0056b3;
    border-color: #0056b3;
}

.committee-members-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.committee-members-card .table {
    margin-bottom: 0;
}

.committee-members-card .table th {
    border-top: none;
    color: #0056b3;
    font-weight: 600;
}

.committee-members-card .table td, 
.committee-members-card .table th {
    padding: 15px;
    vertical-align: middle;
}

.committee-members-card .table tbody tr {
    transition: all 0.2s ease;
}

.committee-members-card .table tbody tr:hover {
    background-color: #f0f7ff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .panchayat-name {
        font-size: 1.5rem;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .contact-box {
        margin-bottom: 20px;
    }
    
    .member-image {
        height: 200px;
    }
    
    .sarpanch-card .card-img, .deputy-card .card-img {
        height: auto;
    }
    
    .committee-list .list-group-item {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .committee-members-card .table td, 
    .committee-members-card .table th {
        padding: 10px;
    }
}