/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header Bar */
.top-header {
    background-color: #e8e8e8;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left span {
    margin-right: 15px;
}

.english-text {
    font-size: 12px;
    color: #666;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-icon {
    color: #333;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.header-icon:hover {
    background-color: #ddd;
}

/* Main Header */
.main-header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.govt-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid #2c5aa0;
}

.dept-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.dept-info .english-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 3px;
}

.dept-info .sub-text {
    font-size: 16px;
    color: #333;
}

.header-logos {
    display: flex;
    gap: 15px;
}

.seal-logo, .pwd-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Navigation Menu */
.main-nav {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.nav-menu li {
    position: relative;
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

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

.nav-home {
    background-color: rgba(255,255,255,0.2);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #ff9800;
    padding-left: 25px;
}

.dropdown i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover i {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.slide.slide-out-left {
    transform: translateX(-100%);
}

.slide.slide-out-right {
    transform: translateX(100%);
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-app-promo {
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.phone-mockup img {
    width: 200px;
    height: 400px;
    border-radius: 20px;
}

.app-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff5722;
}

.app-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.app-info p {
    font-size: 18px;
}

.hero-message {
    background-color: rgba(255, 152, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    color: white;
}

.hero-message p {
    font-size: 16px;
    line-height: 1.5;
}

.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slide-controls button {
    background-color: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.slide-controls button:hover {
    background-color: rgba(255,255,255,0.9);
    color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.prev-slide {
    left: 0;
}

.next-slide {
    right: 0;
}

.slide-text {
    color: white;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
}

.slide-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-text h3 {
    font-size: 20px;
    color: #ffeb3b;
    margin-bottom: 20px;
    font-weight: 500;
}

.slide-text p {
    font-size: 18px;
    line-height: 1.6;
}

.slide-spacer {
    height: 70vh;
    width: 100%;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255,255,255,0.8);
}

/* News Ticker with Marquee */
.news-ticker {
    background-color: #ff9800;
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: white;
    overflow: hidden;
}

.ticker-label {
    background-color: #f57c00;
    padding: 8px 20px;
    font-weight: 600;
    margin-right: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-text {
    display: inline-block;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.new-badge {
    background-color: #f44336;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 10px;
}

/* Project Updates Section */
.project-updates-section {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.updates-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.main-update {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.update-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.update-content {
    padding: 25px;
}

.update-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.update-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.read-more-btn {
    background-color: #ff9800;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #f57c00;
}

.side-updates {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.side-updates h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 20px;
    text-align: center;
}

.update-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.update-item:last-of-type {
    border-bottom: none;
}

.update-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.official-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.update-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 5px;
    line-height: 1.3;
}

.update-text p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.view-all-btn {
    background-color: #ff9800;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #f57c00;
}

.more-updates {
    text-align: center;
    margin-top: 15px;
}

.important-links {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.important-links h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 20px;
    text-align: center;
}

.important-links ul {
    list-style: none;
    padding: 0;
}

.important-links li {
    margin-bottom: 10px;
}

.important-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.important-links a:hover {
    color: #ff9800;
}

/* Photo Gallery Section */
.photo-gallery-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a237e 100%);
    padding: 80px 0;
    color: white;
}

.photo-carousel {
    position: relative;
    margin-bottom: 40px;
}

.photo-carousel-container {
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 0;
    background: #fff;
    height: 250px;
    width: 100%;
    display: block;
}

.photo-carousel-track {
    display: flex;
    height: 100%;
    width: 200%;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.carousel-image {
    width: calc(100% / 6);
    height: 250px;
    object-fit: cover;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.carousel-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}


.photo-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 15;
}

.photo-controls button {
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.photo-controls button:hover {
    background: rgba(255,255,255,0.9);
    color: #1a237e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.photo-controls button:active {
    transform: scale(1.05);
}


.view-all-photos {
    text-align: center;
    margin-top: 40px;
}

.view-all-photos .view-all-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-all-photos .view-all-btn:hover {
    background-color: white;
    color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

/* Photo Indicators */
.photo-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.photo-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-indicator.active {
    background-color: white;
    transform: scale(1.3);
}

.photo-indicator:hover {
    background-color: rgba(255,255,255,0.7);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff9800;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c5aa0;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Officials Section */
.officials-section {
    background-color: white;
    padding: 50px 0;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.official-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.official-photo {
    margin-bottom: 15px;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px auto;
}

.avatar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #2c5aa0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.official-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c5aa0;
}

.official-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Content Section */
.content-section {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.intro-section h2 {
    font-size: 28px;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.read-more {
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Announcements */
.announcements {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.announcement-tabs {
    display: flex;
    background-color: #f5f5f5;
}

.tab-btn {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.tab-btn.active {
    background-color: #ff9800;
    color: white;
}

.announcement-content {
    padding: 20px;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.announcement-dot {
    color: #ff9800;
    font-size: 8px;
    margin-top: 8px;
}

.announcement-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.date {
    font-size: 12px;
    color: #666;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.service-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* Footer */
.main-footer {
    background-color: #333;
    color: white;
}

.footer-links {
    background-color: #444;
    padding: 20px 0;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    font-size: 14px;
    margin-bottom: 5px;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 15px;
}

.powered-by span {
    font-size: 14px;
    color: #ccc;
}

.powered-by img {
    height: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #ff9800, #f57c00);
        z-index: 1000;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .mobile-app-promo {
        flex-direction: column;
        gap: 20px;
    }
    
    .slide-image {
        max-width: 100%;
    }
    
    .slide-image img {
        height: 250px;
    }
    
    .slide-text {
        padding: 20px 0;
    }
    
    .slide-text h2 {
        font-size: 28px;
    }
    
    .slide-controls {
        padding: 0 10px;
    }
    
    .photo-controls button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    
    .slide-indicators {
        bottom: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .officials-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-menu {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .dept-info h1 {
        font-size: 24px;
    }
    
    .app-info h3 {
        font-size: 24px;
    }
    
    .hero-message {
        max-width: 100%;
    }
    
    .officials-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-grid img {
        height: 200px;
    }
    
}
