/* Professional Government Website Styles */
:root {
    --primary: #003c71;    /* Deep blue - main brand color */
    --secondary: #d9a83e;  /* Gold accent - represents prestige */
    --dark: #1a2a36;       /* Dark blue - for footer/accents */
    --light: #f8f9fa;      /* Light background */
    --text: #333333;       /* Main text color */
    --success: #2e7d32;    /* Green for success states */
    --danger: #c62828;     /* Red for alerts/important notices */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: var(--secondary);
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.logo-text span {
    font-size: 0.9rem;
    color: var(--secondary);
    font-style: italic;
}

nav {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 2rem;
}

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

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 3px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

nav a.active {
    background-color: var(--secondary);
    color: var(--dark);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: background 0.2s ease-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: all 0.3s ease-out;
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Main Content */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section {
    margin-bottom: 3rem;
}

/* Cards & Components */
.card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Announcements */
.announcement {
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
}

.announcement-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Officials */
.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.official-card {
    text-align: center;
}

.official-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.official-name {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.1rem;
}

.official-position {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    margin: 20px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: darken(var(--primary), 10%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 60, 113, 0.8), rgba(0, 60, 113, 0.8)), 
                url('../assets/images/bg1.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h2 {
    color: white;
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: #ffffff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Add this to your existing CSS file */

/* Hamburger icon animation */
.hamburger-icon.open {
    background-color: transparent !important;
}

.hamburger-icon.open::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger-icon.open::after {
    transform: rotate(-45deg);
    top: 0;
}

/* For focusing mobile nav toggle for accessibility */
.mobile-nav-toggle:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.announcements {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.announcement-item {
    margin-bottom: 30px;
    padding: 20px;
    border-left: 4px solid #0d6efd;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.announcement-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.announcement-author {
    font-style: italic;
}

/* Home page announcement cards */
.card.announcement {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card.announcement .card-body {
    flex: 1 1 auto;
}

.card.announcement .card-footer {
    padding-top: 0;
    margin-top: auto;
}

.announcement-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.announcement-link {
    display: inline-block;
    padding: 8px 20px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary.announcement-link {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: 2px solid #0d6efd;
}

.btn-primary.announcement-link:hover {
    background-color: var(--secondary);
    border-color: #0b5ed7;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}

.btn-outline.announcement-link {
    background-color: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-outline.announcement-link:hover {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}
/* SK Chairperson Section */
.chairperson-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.chairperson-image {
    max-width: 250px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.chairperson-image:hover {
    transform: scale(1.05);
}

.chairperson-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #333;
}

.chairperson-title {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.chairperson-message blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 20px;
    font-style: italic;
    margin-bottom: 20px;
}

.chairperson-message p {
    font-size: 1.1rem;
    line-height: 1.7;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .chairperson-section {
        text-align: center;
    }
    
    .chairperson-message blockquote {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #0d6efd;
        border-bottom: 2px solid #0d6efd;
        padding: 15px 0;
    }
}
/* Responsive design */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    .row {
        flex-wrap: wrap;
    }
    
    .col-md-4, .col-md-6 {
        width: 100%;
        padding: 0 10px;
    }
    
    .officials-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row; /* Change to row instead of column */
        text-align: left;
        padding: 0.5rem 1rem; /* Reduced padding */
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0; /* Remove bottom margin */
        justify-content: flex-start;
        flex-direction: row; /* Change to row for horizontal layout */
    }
    
    .logo img {
        height: 40px; /* Smaller logo */
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
    
    .logo-text h1 {
        font-size: 1rem; /* Smaller font size */
        margin-bottom: 0;
    }
    
    .logo-text span {
        font-size: 0.7rem; /* Smaller subtitle */
    }
    
    /* Position the mobile toggle button properly with the new layout */
    .mobile-nav-toggle {
        top: 0.5rem;
        right: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    /* Show mobile toggle button */
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    /* Mobile navigation menu styling */
    .nav-container {
        width: 100%;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 1000;
    }
    
    /* When menu is open, make it full height */
    nav.open {
        max-height: calc(100vh - 80px); /* Adjust based on your header height */
        overflow-y: auto;
    }
    
    /* Container for the nav items */
    .nav-container {
        padding: 15px 0;
    }
    
    /* Style for the navigation menu */
    #main-nav {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    /* Style for each navigation item */
    #main-nav li {
        margin: 0;
        width: 100%;
    }
    
    /* Style for navigation links */
    #main-nav a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: background-color 0.2s;
    }
    
    /* Active and hover states */
    #main-nav a:hover,
    #main-nav a.active {
        background-color: rgba(13, 110, 253, 0.05);
    }
    
    /* Adjust header when menu is open */
    header.has-open-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    /* Hero section */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Cards and sections */
    .card {
        margin-bottom: 1.5rem;
    }
    
    section.section {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .officials-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
    }
    .header-top {
        padding: 0.3rem 0.8rem; /* Further reduce padding */
    }
    
    .logo img {
        height: 35px; /* Even smaller logo */
    }
    
    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    .logo-text span {
        font-size: 0.6rem;
    }
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive table styling */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Ensure proper form field sizing */
input, select, textarea {
    max-width: 100%;
}