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

/* Base Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header */
header {
    background: #fff;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

header h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #222;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 60px; /* Add padding to prevent overlap with toggle */
    padding-left: 60px; /* Add padding for the logo */
}

/* Logo Styles */
.header-logo {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 2px;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 100%;
}

body.dark-theme .header-logo {
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
    background-color: #2a2a2a;
    border: 1px solid #333;
}

/* Navigation */
nav {
    margin-top: 1rem;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    color: #666;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: #000;
    background: rgba(0,0,0,0.05);
}

.nav-link {
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.nav-link:hover {
    font-weight: bold;
}

/* Add this for the active section */
:target ~ header .nav-link[href="#about"],
:target ~ header .nav-link[href="#services"],
:target ~ header .nav-link[href="#contact"] {
    font-weight: bold;
    color: #2c3e50; /* Adjust color as needed */
}

/* Sections */
section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #222;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    aspect-ratio: 1/1;
}

.about-text {
    text-align: center;
    max-width: 600px;
}

/* Footer tagline */
.tagline {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #555;
    letter-spacing: 0.5px;
}

body.dark-theme .tagline {
    color: #b0b0b0;
}

/* Enhanced about text */
.about-text p:first-child {
    margin-bottom: 1rem;
    color: #444;
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
}

body.dark-theme .about-text p:first-child {
    color: #e0e0e0;
}

body.dark-theme .about-text p:last-child {
    color: #b0b0b0;
}

/* Services Section */
.service-card {
    background: #fff;
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #222;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.contact-text {
    margin-top: 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* Contact Form */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #666;
}

button {
    background: #222;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.contact-options {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.form-divider {
    margin: 1.5rem 0;
    color: #666;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #eee;
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

.city-form-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #222;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.city-form-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Mobile-first responsive design */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav a {
        display: block;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
        max-width: 100%;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .city-form-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .theme-toggle-wrapper {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
        top: 0.75rem;
        left: 0.75rem;
        padding: 1px;
    }
    
    .header-content {
        padding-top: 2.5rem; /* Add space at the top for the toggle and logo on mobile */
        padding-right: 0;
        padding-left: 0;
    }
    
    header h1 {
        margin-top: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .about-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .about-text {
        text-align: left;
    }
}

/* Campaign Image Section */
.campaign-image {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    aspect-ratio: 16/9;
}

.campaign-image a:hover .responsive-image {
    transform: scale(1.02);
}

.circle-crop {
    border-radius: 20%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Media Carousel Styles */
.media-carousel {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.media-item {
    min-width: 100%;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.media-image-container {
    height: 300px;
    overflow: hidden;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-caption {
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
}

.media-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 20px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Media Stories Section */
.media-stories {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.media-story {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.media-story .media-image-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.media-story .media-caption {
    flex: 1;
}

.media-story .media-caption h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.media-story .media-caption p {
    margin: 0;
    color: #666;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .media-story {
        flex-direction: column;
        text-align: center;
    }
    
    .media-story .media-image-container {
        width: 150px;
        height: 150px;
    }
    .media-image {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #fff;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
    
    .media-image-container {
        margin: 20px;
        text-align: center;
    }
}

/* Dark Mode Toggle Styles */
.theme-toggle-wrapper {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    margin: 0;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

#theme-toggle:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#theme-toggle .fa-sun {
    opacity: 0;
    position: absolute;
    color: #f39c12;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#theme-toggle .fa-moon {
    opacity: 1;
    color: #2c3e50;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.dark-theme #theme-toggle .fa-sun {
    opacity: 1;
    transform: scale(1);
}

body.dark-theme #theme-toggle .fa-moon {
    opacity: 0;
    transform: scale(0.8);
}

/* Dark Theme Styles */
body.dark-theme {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-theme header {
    background-color: #222;
    border-bottom-color: #333;
}

body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3 {
    color: #f0f0f0;
}

body.dark-theme nav a {
    color: #ccc;
}

body.dark-theme nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

body.dark-theme .service-card,
body.dark-theme .media-item,
body.dark-theme .media-story {
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-theme .service-card h3 {
    color: #f0f0f0;
}

body.dark-theme .service-card p,
body.dark-theme .contact-text,
body.dark-theme .media-caption p {
    color: #ccc;
}

body.dark-theme footer {
    border-top-color: #333;
    color: #aaa;
}

body.dark-theme .media-caption {
    background: #2a2a2a;
}

body.dark-theme .city-form-btn {
    background: #2a2a2a;
    color: #f0f0f0;
    border-color: #444;
}

body.dark-theme .city-form-btn:hover {
    background: #333;
    border-color: #555;
}

body.dark-theme .circle-crop {
    border-color: #333;
}

body.dark-theme #theme-toggle {
    background-color: #333;
}

body.dark-theme #theme-toggle:hover {
    background-color: #444;
}

body.dark-theme #theme-toggle .fa-sun {
    opacity: 1;
    transform: scale(1);
}

body.dark-theme #theme-toggle .fa-moon {
    opacity: 0;
    transform: scale(0.8);
}

body.dark-theme input, 
body.dark-theme textarea {
    background-color: #2a2a2a;
    border-color: #444;
    color: #f0f0f0;
}

body.dark-theme input:focus, 
body.dark-theme textarea:focus {
    border-color: #666;
}

/* New styles for card links */
.card-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body.dark-theme .card-link {
    background-color: #3a8dff;
}

body.dark-theme .card-link:hover {
    background-color: #2d70cc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.social-link i {
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.social-link.linkedin {
    color: #0077b5;
}

.social-link.github {
    color: #333;
}

.social-link.twitter {
    color: #1da1f2;
}

body.dark-theme .social-link {
    background-color: #2a2a2a;
    color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

body.dark-theme .social-link:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
}

body.dark-theme .social-link.linkedin {
    color: #0a85ca;
}

body.dark-theme .social-link.github {
    color: #f0f0f0;
}

body.dark-theme .social-link.twitter {
    color: #1da1f2;
}

.social-link.social-link-facebook,
.social-link-facebook {
    color: #1877f2;
}

.social-link.social-link-linkedin,
.social-link-linkedin {
    color: #0077b5;
}

.social-link.social-link-github,
.social-link-github {
    color: #333;
}

.social-link.social-link-twitter,
.social-link-twitter {
    color: #1da1f2;
}

body.dark-theme .social-link.social-link-facebook,
body.dark-theme .social-link-facebook {
    color: #4293ff;
}

body.dark-theme .social-link.social-link-linkedin,
body.dark-theme .social-link-linkedin {
    color: #0a85ca;
}

body.dark-theme .social-link.social-link-github,
body.dark-theme .social-link-github {
    color: #f0f0f0;
}

body.dark-theme .social-link.social-link-twitter,
body.dark-theme .social-link-twitter {
    color: #1da1f2;
}

.council-page {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.council-page:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.council-page h3 {
    margin-bottom: 0.75rem;
    color: #333;
}

.council-page p {
    margin-bottom: 1rem;
    color: #666;
}

body.dark-theme .council-page {
    background-color: #2a2a2a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-theme .council-page:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

body.dark-theme .council-page h3 {
    color: #f0f0f0;
}

body.dark-theme .council-page p {
    color: #ccc;
}

/* Facebook Button Style */
.facebook-btn {
    background-color: #1877F2 !important;
    color: white !important;
    border-color: #1877F2 !important;
    transition: all 0.3s ease;
}

.facebook-btn:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .facebook-btn {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

body.dark-theme .facebook-btn:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

body.dark-theme .social-link.social-link-facebook,
body.dark-theme .social-link-facebook {
    color: #4293ff;
}

/* Facebook Page Plugin */
.fb-page {
    margin: 20px auto 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-theme .fb-page {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Make sure FB iframe adapts properly */
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget iframe {
    max-width: 100% !important;
}
/* Password Overlay for Private Pages */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.password-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.password-container input {
    padding: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.password-container button {
    padding: 0.5rem 1rem;
    border: none;
    background: #0066cc;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

body.dark-theme .password-container {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #fff;
}
