/* Home Page Styles */

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-darker: #d9480f;
    --primary-hover: #e4471e;
    --secondary-color: #4a5568;
    --accent-color: #f59e0b;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --bg-hover-light: #fff7f2;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    /* Subtle visual separation */
    box-shadow: none;
    border-bottom: 1px solid #e9eef5;
    z-index: 4000;
    transition: var(--transition);
}

/* Spiritual gradient line under header */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #ff6f3d, #d9480f);
    opacity: 0.6;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

.logo i {
    font-size: 1.8rem;
}

/* Ensure injected logo images align and scale cleanly */
.logo img {
    display: block;
    height: auto;
    max-height: 64px;
}

.nav-menu {
    display: flex;
    gap: 2.25rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    letter-spacing: 0.2px;
    padding: 0.5rem 0.25rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Active menu state from JS-rendered header */
.nav-link.active {
    color: var(--primary-dark);
}
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions #authButtons,
.header-actions #welcomeMessage {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-actions #welcomeMessage {
    flex-wrap: nowrap;
}

.header-actions #welcomeMessage span {
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-darker);
    border: 2px solid var(--primary-darker);
    box-sizing: border-box;
    min-width: fit-content;
}

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

.btn-outline i {
    color: var(--primary-darker);
}

/* Ensure consistent button sizing in header */
#welcomeMessage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#welcomeMessage .btn,
#welcomeMessage .btn-outline {
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

#welcomeMessage > span {
    margin-right: 0;
    color: var(--primary-color) !important;
    font-weight: 500 !important;
}

/* User Menu Styles */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.user-menu-button:hover {
    background: var(--bg-hover-light);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.user-menu-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 5000;
    border: 1px solid #e9eef5;
    overflow: hidden;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.user-menu-greeting {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.greeting-text {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.user-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.user-email {
    font-size: 0.875rem;
    opacity: 0.85;
    word-break: break-word;
}

.user-menu-divider {
    height: 1px;
    background: #e9eef5;
    margin: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

.user-menu-item:hover {
    background: var(--bg-hover-light);
    color: var(--primary-color);
}

.user-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.user-menu-item:hover i {
    color: var(--primary-dark);
}

.user-menu-logout {
    color: #dc3545;
}

.user-menu-logout:hover {
    background: #fff5f5;
    color: #c82333;
}

.user-menu-logout i {
    color: #dc3545;
}

.user-menu-logout:hover i {
    color: #c82333;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 70px;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 0 3.25rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.hero-news-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 980px;
    min-width: 0;
    margin: 11rem auto 0.75rem;
    padding: 0.55rem;
    border-radius: 12px;
    background: rgba(12, 18, 40, 0.45);
    border: 0.5px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.hero-news-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #1a202c;
    background: #ffd166;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hero-news-ticker {
    position: relative;
    overflow: hidden;
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 1.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
}

.hero-news-track {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
    animation: heroNewsTickerScroll var(--hero-news-scroll-duration, 45s) linear infinite;
    padding: 0 1rem;
}

.hero-news-ticker:hover .hero-news-track {
    animation-play-state: paused;
}

.hero-news-item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    color: #1a202c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-news-item:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-news-item:not(:last-child)::after {
    content: '\2022';
    color: #ff6b35;
    font-size: 1rem;
    margin: 0 0.9rem;
}

@keyframes heroNewsTickerScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.hero-news-track.is-static {
    position: static;
    animation: none;
    display: flex;
    min-width: 100%;
}

/* Search Container */
.search-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    width: 100%;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    position: relative;
    z-index: 100;
}

.search-icon {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0 1rem;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 0.75rem;
}

.search-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    background: var(--primary-dark);
}

.search-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Search Suggestions / Autocomplete */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid #e2e8f0;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--bg-light);
}

.suggestion-icon {
    color: var(--primary-color);
    margin-top: 0.25rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.suggestion-location {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

/* Section Styles */
.attractions-section,
.districts-section,
.blog-section,
.about-section {
    padding: 3rem 0;
}

.attractions-section {
    background: var(--bg-light);
}

.blog-section {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Section Filter */
.section-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.section-filter label i {
    color: var(--primary-color);
}

.section-filter .filter-select {
    min-width: 200px;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin: 2rem 0;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: calc(33.333% - 1rem);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.carousel-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item-content {
    padding: 1.5rem;
}

.carousel-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.carousel-item-location {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.carousel-item-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

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

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Districts Grid */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.district-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.district-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.district-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.district-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.district-card-content {
    padding: 1.5rem;
}

.district-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.district-card-state {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.district-card-stats {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.blog-card-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.blog-card-read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-card-read-more:hover {
    gap: 0.75rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image.has-image .image-placeholder {
    display: none;
}

.about-image.has-image img {
    display: block;
}

.about-image img:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--white);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Loading Skeletons */
.loading .skeleton-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.loading .skeleton-text {
    height: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.district-card.loading .skeleton-img {
    height: 200px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-item {
        min-width: calc(50% - 0.75rem);
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .hero-content {
        width: 100%;
    }

    .search-container,
    .hero-news-strip {
        width: 100%;
        max-width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 1rem;
        z-index: 3000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
.nav-menu-open {
    overflow: hidden;
}

    .mobile-menu-toggle {
        display: block;
    }
    
    /* Make header actions compact and keep on one line */
    .header-actions {
        gap: 0.5rem;
    }
    .header-actions #welcomeMessage {
        gap: 0.5rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .header-actions .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
    }
    
    /* Ensure button hover works the same in mobile */
    .header-actions .btn-outline:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    /* User menu adjustments for mobile */
    .user-menu-button {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }
    
    .user-menu-dropdown {
        min-width: 220px;
        right: -0.5rem;
    }
    
    /* Tame logo size on small screens for better balance */
    .logo img {
        max-height: 48px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-news-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.65rem;
        margin: 1.25rem auto 0.7rem;
    }

    .hero-news-label {
        justify-content: center;
        width: 100%;
    }

    .hero-news-ticker {
        width: 100%;
        flex: 0 1 auto;
        min-width: 0;
        height: 1.95rem;
    }

    .hero-news-item {
        font-size: 0.9rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .carousel-item {
        min-width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .districts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-filter .filter-select {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero-content {
        padding: 2.75rem 0 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-news-strip {
        margin: 1rem auto 0.6rem;
        padding: 0.5rem;
    }

    .hero-news-label {
        font-size: 0.75rem;
        padding: 0.45rem 0.6rem;
    }

    .hero-news-item {
        font-size: 0.85rem;
    }
    
    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Ensure button hover works the same in mobile */
    .header-actions .btn-outline:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .header-actions #welcomeMessage {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .header-actions #welcomeMessage span {
        font-size: 0.9rem;
    }
    
    /* User menu adjustments for small mobile */
    .user-menu-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .user-menu-dropdown {
        min-width: 200px;
        max-width: calc(100vw - 2rem);
        right: -1rem;
    }
    
    .user-menu-header {
        padding: 1rem;
    }
    
    .user-menu-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Privacy Policy Modal Styles */
.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
}

.policy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.policy-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.policy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: var(--bg-light);
}

.policy-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.policy-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.policy-modal-close:hover {
    background: #e2e8f0;
    color: var(--text-dark);
    transform: rotate(90deg);
}

.policy-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    color: var(--text-dark);
}

.policy-modal-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-modal-body h3:first-of-type {
    margin-top: 0;
}

.policy-modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.policy-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.policy-modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.policy-modal-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.policy-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: var(--bg-light);
}

.policy-modal-footer .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile styles for policy modal */
@media (max-width: 768px) {
    .policy-modal {
        padding: 1rem;
    }
    
    .policy-modal-content {
        max-height: 95vh;
    }
    
    .policy-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .policy-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .policy-modal-body {
        padding: 1.5rem;
    }
    
    .policy-modal-body h3 {
        font-size: 1.1rem;
    }
    
    .policy-modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .policy-modal-footer .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Contact Form Styles */
.contact-modal-content {
    max-width: 700px;
}

.contact-intro {
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.contact-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-info {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Mobile styles for contact form */
@media (max-width: 768px) {
    .contact-intro {
        font-size: 0.95rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.625rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
    margin: 0.75rem 0 2rem 0;
    padding: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
    opacity: 0.5;
    font-weight: 300;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* Hide empty breadcrumb items (handled by JavaScript, but CSS fallback) */
.breadcrumb-item:empty {
    display: none;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin: 1rem 0 1.5rem 0;
    }
    
    .breadcrumb {
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.375rem;
    }
}

