/* Modern Government Website Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.emblem img {
    width: 60px;
    height: auto;
}

.PYemblem img {
    width: 90px;
    height: auto;
}

.text {
    flex: 1;
    padding: 0 1rem;
}

.govt-name {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    /* opacity: 0.9; */
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}


/* Navigation Styles */
.main-nav {
    background: #1e3a8a !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.1) !important;
    border-bottom-color: #60a5fa;
}

.main-nav .dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 0;
}

.main-nav .dropdown-item {
    padding: 0.75rem 1rem;
    color: #374151;
    transition: all 0.3s ease;
}

.main-nav .dropdown-item:hover {
    background: #f3f4f6;
    color: #1e40af;
}

.main-nav .navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    padding-left: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

/* Main Content */
.main-content {
    padding: 1rem 0;
}

/* Emergency Card */
.emergency-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #dc3545;
}

.emergency-card h3 {
    background: #d32f2f;
    color: white;
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.helpline-list {
    padding: 1rem;
    overflow-y: auto;         
    flex: 1;      
    scrollbar-width:thin;             
}

.helpline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.helpline-item:last-child {
    border-bottom: none;
}

.helpline-item span {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.helpline-item strong {
    color: #d32f2f;
    font-size: 1.1rem;
    font-weight: 700;
}


/* Carousel Styles */
.carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.carousel-item img {
    height: 400px;
    /* object-fit: co  ver; */
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}

.carousel-caption h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 400px;
}

.news-header {
    background: darkgreen;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h5 {
    margin: 0;
    font-weight: 600;
}

.read-more {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 1;
    color: white;
}

.news-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-item:last-child {
    border-bottom: none;
}

.download-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

.download-link:hover {
    text-decoration: underline;
}

/* Disaster Management Links */
.dm-links-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border: 1px solid #d1e0ff;
}

.dm-links-section h4 {
    color: #0d2b7a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #d1e0ff;
    padding-bottom: 0.5rem;
}

.dm-links-section ul li {
    margin-bottom: 0.5rem;
}

.dm-links-section a {
    color: #1a3a8f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dm-links-section a:hover {
    color: #0d2b7a;
    text-decoration: underline;
}

/* Service Tiles */
.section-title {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 30px;
}

.service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    height: 120px;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.service-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #1e7e34 0%, #17a085 100%);
}

.service-tile i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.service-tile span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Pledge Section */
.pledge-section {
    background: #fef3c7;
    padding: 1rem 0;
}

.pledge-text {
    text-align: center;
    font-weight: 500;
    margin: 0;
}

.pledge-text a {
    color: #92400e;
    text-decoration: none;
}

.pledge-text a:hover {
    text-decoration: underline;
}

/* Bulletin Section */
.bulletin-section {
    background: #1e40af;
    color: white;
    padding: 1rem 0;
    margin-bottom: 12px;
}

.bulletin-ticker {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.bulletin-title {
    flex-shrink: 0;
    width: 120px;
}

.bulletin-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.bulletin-title a {
    color: white;
    text-decoration: none;
}

.bulletin-content {
    flex: 1;
}

.bulletin-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.bulletin-item a:hover {
    text-decoration: underline;
}

.bulletin-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.bulletin-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-ticker 20s linear infinite;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.bulletin-item {
    display: inline-block;
    padding: 0 2rem;
}


/* Authorities Section */
.authorities-section {
    background: white;
    padding: 0.5rem 0;
}

.authority-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.authority-card:hover {
    transform: translateY(-4px);
}

.authority-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e5e7eb;
}

.authority-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.authority-info h4 {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.authority-info h5 {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Content Section */
.content-section {
    background-color: #f8f9fa;
}

/* Department Info */
.department-info {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.department-info h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-weight: 600;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Common Card Styling */

/* Default Card Border */
.info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Color-based Borders */
.info-title.bg-primary ~ .info-links,
.info-title.bg-primary + .scrollable-list {
    border-left: 5px solid #1e3a8a;
}

.info-title.bg-success ~ .info-links,
.info-title.bg-success + .scrollable-list {
    border-left: 5px solid #198754;
}

.info-title.bg-danger ~ .info-links,
.info-title.bg-danger + .scrollable-list {
    border-left: 5px solid #dc3545;
}

.info-title.bg-purple ~ .info-links,
.info-title.bg-purple + .scrollable-list {
    border-left: 5px solid #6f42c1;
}

.info-title.bg-warning.text-dark ~ .info-links,
.info-title.bg-warning.text-dark + .scrollable-list {
    border-left: 5px solid #ffc107;
}


.info-title.bg-info.text-dark ~ .info-links,
.info-title.bg-info.text-dark + .scrollable-list {
    border-left: 5px solid #0dcaf0;
}



.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Title Bar */
.info-title {
    color: white;
    padding: 16px;
    margin: 0;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Link List */
.info-links {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.info-links li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}

.info-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-links a i {
    color: #000;
    font-size: 1rem;
}

.info-links a:hover {
    color: #0a58ca;
    transform: translateX(4px);
}

/* Optional Background Variants (customize per card) */
.bg-primary    { background-color: #1e3a8a !important; }
.bg-success    { background-color: #198754 !important; }
.bg-danger     { background-color: #dc3545 !important; }
.bg-warning    { background-color: #ffc107 !important; color: #212529 !important; }
.bg-purple     { background-color: #6f42c1 !important; }
.bg-info       { background-color: #0dcaf0 !important; color: #212529 !important; }

/* Responsive fix */
@media (max-width: 576px) {
    .info-title {
        font-size: 1rem;
        flex-direction: column;
        gap: 4px;
    }
}


/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px !important;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.card-title {
    color: #1e3a8a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* List Styling */
.card-body ul li {
    border-bottom: 1px dashed #eee;
    transition: background-color 0.2s ease;
    padding: 0.6rem 0;
}

.card-body ul li:last-child {
    border-bottom: none;
}

.card-body ul li:hover {
    background-color: #f9f9ff;
    border-radius: 4px;
}

/* Icon Styling */
.card-body i {
    color: #3b82f6;
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.card-body a:hover i {
    transform: scale(1.2);
    color: #1e40af;
}

/* Scrollbar */
.scrollable-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

/* Section Spacing */
.row.g-4 {
    margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .card-title {
        font-size: 1.1rem;
    }

    .card-body ul li a {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 1rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-section h4 {
    color: #f9fafb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

.tourism-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tourism-gallery img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo .govt-name {
        font-size: 1rem;
    }
    
    .department-info h2 {
        font-size: 1.5rem;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .service-tile {
        height: 100px;
        padding: 1rem 0.5rem;
    }
    
    .service-tile i {
        font-size: 1.5rem;
    }
    
    .service-tile span {
        font-size: 0.8rem;
    }
    
    .authority-card {
        padding: 1rem;
    }
    
    .authority-image {
        width: 100px;
        height: 100px;
    }
    
    .department-description,
    .info-section,
    .citizens-corner,
    .employees-corner {
        padding: 1rem;
    }
    
    .bulletin-ticker {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .carousel-item img {
        height: 200px;
    }
    
    .service-tile {
        height: 80px;
        padding: 0.5rem;
    }
    
    .service-tile i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .service-tile span {
        font-size: 0.7rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .carousel,
    .emergency-card,
    .news-section,
    .dm-links-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container-fluid {
        max-width: none;
        padding: 0;
    }
}