html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

:root {
    --primary-blue: #094e83;
    --secondary-blue: #0d6efd;
    --accent-gold: #ffc107;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

body {
    font-family: 'Noto Sans Kannada', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Top Alert Bar */
.emergency-alert {
    background-color: #dc3545;
    color: white;
    padding: 5px 0;
    font-size: 0.9rem;
}

/* Top Utility Bar */
.utility-bar {
    background-color: var(--primary-blue);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.utility-link {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s;
}

    .utility-link:hover {
        color: var(--accent-gold);
    }

.divider {
    border-right: 1px solid rgba(255,255,255,0.3);
    height: 20px;
}

/* Header */
.department-header {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8ff 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    border-bottom: 3px solid var(--accent-gold);
}

.logo-container {
    display: flex;
    align-items: center;
}

.state-emblem {
    height: 100px;
    margin-right: 20px;
}

.dept-titles {
    line-height: 1.3;
}

.kannada-title {
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.english-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.motto {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Navigation */
.main-navbar {
    background-color: var(--primary-blue) !important;
    padding: 0;
}

.nav-link {
    color: white !important;
    padding: 12px 20px !important;
    font-weight: 500;
    position: relative;
}

    .nav-link:hover, .nav-link:focus {
        color: var(--accent-gold) !important;
        background-color: rgba(255,255,255,0.1);
    }

    .nav-link.active {
        background-color: rgba(255,255,255,0.15);
    }

        .nav-link.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            width: 60%;
            height: 3px;
            background-color: var(--accent-gold);
        }

/* Hero Section */
.hero-section {
   
    background: linear-gradient(rgba(9, 78, 131, 0.8), rgba(9, 78, 131, 0.8)), url('../img/1714659956.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Quick Links */
.quick-link-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    .quick-link-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

.quick-link-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Announcements */
.announcement-card {
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s;
}

    .announcement-card:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.announcement-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #06385e 100%);
    color: white;
    padding: 40px 0 20px;
}

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-links h5:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: var(--accent-gold);
    }

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

    .footer-links a:hover {
        color: white;
        padding-left: 5px;
    }

.copyright-bar {
    background-color: rgba(0,0,0,0.2);
    padding: 15px 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

    .social-icon:hover {
        background-color: var(--accent-gold);
        color: var(--primary-blue);
    }

/* Buttons */
.btn-govt {
    background-color:darkgoldenrod;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn-govt:hover {
        background-color: #06385e;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.btn-outline-govt {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn-outline-govt:hover {
        background-color: var(--primary-blue);
        color: white;
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title

{
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
}

.nav-link {
    padding: 10px 15px !important;
}

}

@media (max-width: 768px) {
    .logo-container

{
    flex-direction: column;
    text-align: center;
}

.state-emblem {
    margin-right: 0;
    margin-bottom: 15px;
    height: 70px;
}

.utility-bar .d-flex {
    flex-direction: column;
    align-items: center;
}

.divider {
    display: none;
}

.utility-link {
    margin: 5px 0;
}

}


/* Make sure the dropdown content is aligned nicely */
.nav-item.dropdown {
    position: relative;
}

.nav-item .dropdown-menu {
    min-width: 200px;
}

/* Styling for the dropdown item */
.nav-item .dropdown-item {
    color: #333;
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    .nav-item .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    /* Button inside the dropdown for logout */
    .nav-item .dropdown-item.btn-link {
        padding: 0;
        border: none;
        background: transparent;
    }

/* Style for the dropdown toggle button (name display) */
.nav-item .dropdown-toggle {
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

    /* Optional: Style the dropdown toggle on hover */
    .nav-item .dropdown-toggle:hover {
        color: #0056b3;
    }

