:root {
    --primary-color: #0170B9;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0px;
    /* Adjusted for sticky nav */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
}

/* Top Logo & Icon Section */
/* Header Styles */
.top-announcement {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notice-slider {
    position: relative;
    height: 30px;
    overflow: hidden;
}

.notice-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
}

.notice-slide.active {
    opacity: 1;
}

.navbar-brand img {
    max-height: 56px;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.header-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: bold;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(1, 112, 185, 0.3);
}

.header-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 112, 185, 0.4);
}

.social-icons a {
    color: var(--primary-color);
    margin: 0 5px;
    font-size: 18px;
    transition: var(--transition);
    display: inline-block;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.search-icon {
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.main-navbar {
    background-color: #3191d1;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.main-navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 10px 10px !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
    left: 0;
}

.nav-link:hover {
    color: white !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(1, 112, 185, 0.1);
    color: var(--primary-color);
}

/* Marquee Section */
.marquee-section {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    font-size: 14px;
    width: 100%;
    z-index: 1010;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Hero Slider */
.hero-slider {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    height: 600px;
    transition: transform 0.8s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
    max-width: 600px;
    margin-left: 10%;
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

/* Mission Vision Section */
.mission-vision {
    background-color: #f8f9fa;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.mission-vision:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(1, 112, 185, 0.05);
    top: -100px;
    left: -100px;
}

.mission-vision:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.05);
    bottom: -75px;
    right: -75px;
}

.mission-vision img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.mission-vision img:hover {
    transform: scale(1.02);
}

.icon-box {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.icon-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.icon-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.icon-box h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Services Section */
.services-section {
    padding: 20px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.service-card {
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

.service-card h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.service-card:hover h5 {
    color: var(--secondary-color);
}

/* Remove underline from service card links */
.service-card h5 a {
    text-decoration: none;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.stats-section:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -150px;
    right: -150px;
}

.stats-section:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -100px;
    left: -100px;
}

.stat-item {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Roboto Slab', serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stories Section */
.stories-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.story-card {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.story-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.story-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.story-card:hover img {
    transform: scale(1.1);
}

.story-card h6 {
    margin: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.story-card:hover h6 {
    color: var(--secondary-color);
}

/* Partners Section */
.partners-section {
    padding: 40px 0;
    background: white;
}

.partner-logo {
    height: 80px;
    filter: grayscale(100%);
    transition: var(--transition);
    margin: 15px;
    opacity: 0.7;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* News & Events */
.news-events {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px 0;
}

.news-slider-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.news-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.news-slider:before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -75px;
    right: -75px;
}

.news-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-slide.active {
    opacity: 1;
}

.news-content {
    position: relative;
    z-index: 1;
}

.news-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.news-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.news-indicator.active {
    background: white;
    transform: scale(1.2);
}

.notice-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.notice-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Map Section */
.map-section {
    padding: 40px 0;
    background: white;
}

.map-container {
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Developers Section */
.developers-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.developer-card {
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.developer-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.developer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.developer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #f0f0f0;
    transition: var(--transition);
}

.developer-card:hover img {
    border-color: var(--primary-color);
}

.developer-card h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #1a252f);
    color: white;
    padding: 80px 0 20px;
}

.footer h5 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer-menu li {
    margin-bottom: 10px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 60px;
    text-align: center;
    color: #aaa;
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.developed-by {
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        /* Reduced for mobile */
    }

    .main-navbar {
        padding: 5px 0;
    }

    .main-navbar .navbar-brand img {
        max-height: 40px;
    }

    .hero-slider,
    .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        bottom: 20%;
        margin-left: 5%;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .mission-vision img {
        margin-bottom: 30px;
    }

    /* Mobile-specific fixes */
    .header-button {
        display: none;
        /* Hide header button on mobile */
    }

    .social-icons {
        text-align: center;
        margin: 10px 0;
    }

    .navbar-nav.mx-auto {
        text-align: center;
    }

    .dropdown-menu {
        text-align: left;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .story-card {
        flex-direction: column;
        text-align: center;
    }

    .story-card img {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .partner-logo {
        height: 60px;
        margin: 10px;
    }

    .developer-card {
        margin-bottom: 30px;
    }

    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .hero-slider,
    .carousel-item {
        height: 300px;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .news-slider-container {
        height: 250px;
    }

    .map-container {
        height: 300px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}