/* Base Styles */
:root {
    --primary-color: #0c5f9e;
    --secondary-color: #e67817;
    --accent-color: #009688;
    --text-dark: #333333;
    --text-light: #666666;
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --border-color: #dddddd;
    --hover-color: #0a4e83;
    --footer-bg: #222222;
    --footer-text: #cccccc;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: 50px;
}

ul {
    list-style: none;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-underline {
    height: 4px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
    position: relative;
}

.section-underline:before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    top: 0;
    left: 20px;
    transform: translateX(-100%);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
}

.language-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-family: "Sree Krushnadevaraya", serif;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 70px;
    height: auto;
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-family: "Sree Krushnadevaraya", serif;
}

.logo-text h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

.header-buttons button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 1rem;
    transition: var(--transition);
}

.header-buttons button:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
}

.main-nav {
    background-color: var(--secondary-color);
}

.nav-list {
    display: flex;
    justify-content: flex-start;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-list li.active a, 
.nav-list li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:hover {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 15%;
    left: 10%;
    width: 60%;
    background-color: rgba(12, 95, 158, 0.8);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.slider-navigation {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-slide,
.next-slide {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-slide:hover,
.next-slide:hover {
    background-color: var(--secondary-color);
}

.slide-dots {
    display: flex;
    margin: 0 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* About District Section */
.about-district {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    color: var(--primary-color);
}

.officials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 90%;
    margin: auto;

}

.official {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.official:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.official img {
    width: 100%;
    height: auto;
    margin: auto;
    object-fit: cover;
}

.official-info {
    padding: 1rem;
    text-align: center;
}

.official-info h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.official-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(12, 95, 158, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Tourism Section */
.tourism {
    padding: 10rem 0;
    background-color: var(--light-bg);
    
}

.tourism-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* News & Updates Section */
.news-updates {
    padding: 1rem 0;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    min-width: 80px;
    text-align: center;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
}

.news-content {
    padding: 1rem 1.5rem;
    flex: 1;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Quick Links Section */
.quick-links {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.link-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.link-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.link-column ul li {
    margin-bottom: 0.75rem;
}

.link-column ul li a {
    color: var(--text-light);
    transition: var(--transition);
    display: inline-block;
}

.link-column ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.link-column ul li a:before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.footer-top {
    padding: 3rem 0;
}

.footer-top .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 70px;
    height: 70px;
    margin-right: 1rem;
}

.footer-logo-text h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin: 0;
    font-family: "Sree Krushnadevaraya", serif;
}

.footer-logo-text h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 0;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.footer-social h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 1.5rem;
    color: var(--footer-text);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content, .service-cards, .tourism-gallery, .news-container, .links-container {
    animation: fadeIn 1s ease;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .officials {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top .container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: relative;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--secondary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }
    
    .nav-list.active {
        max-height: 500px;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-content {
        max-height: 500px;
    }
    
    .slide-caption {
        width: 80%;
    }
    
    .slide-caption h2 {
        font-size: 1.5rem;
    }
    
    .officials {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 0.75rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-caption {
        width: 90%;
        left: 5%;
        padding: 1rem;
    }
    
    .slide-caption h2 {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        width: 100%;
        flex-direction: row;
        padding: 0.5rem;
        justify-content: flex-start;
    }
    
    .news-date .day {
        margin-right: 0.5rem;
    }
}

/* JavaScript Animation Classes */
.js-fadeIn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-fadeIn.active {
    opacity: 1;
    transform: translateY(0);
}

.js-slideLeft {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-slideLeft.active {
    opacity: 1;
    transform: translateX(0);
}

.js-slideRight {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-slideRight.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(12, 95, 158, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}
/* video page css */
/* Video styling */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  #mainVideo {
    width: 100%;
   height: 400px;
  }
  
  .video-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }