/* Custom Styles for County Voice and Rights (theme: theme-variables.css in base layout) */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px; /* Account for fixed navbar */
    background-color: #ffffff;
    color: #000000;
}

.site-logo-nav {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Thumbnails on program / news / event cards */
.card-thumb-cover {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-thumb-cover-sm {
    height: 80px;
    width: 120px;
    object-fit: cover;
}

.detail-hero-thumb {
    max-height: 360px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #198754 0%, #49966f 55%, #146c43 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Content Section */
.content-section {
    line-height: 1.8;
}

.content-section h2,
.content-section h3,
.content-section h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000000;
}

.content-section p {
    margin-bottom: 1rem;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(var(--bs-primary-rgb), 0.15) !important;
}

.card-header {
    background: linear-gradient(135deg, #198754, #49966f);
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.card-title {
    color: #000000;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover {
    color: var(--secondary-light) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.6rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}

.btn-primary:hover {
    background: #146c43;
    border-color: #146c43;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(var(--bs-primary-rgb), 0.35);
}

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

.btn-outline-primary:hover {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-success {
    background: #49966f;
    border-color: #49966f;
    color: #ffffff;
}

.btn-success:hover {
    background: #3d7d5d;
    border-color: #3d7d5d;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

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

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Section Spacing */
section {
    padding: 60px 0;
}

/* Text utilities: align with Bootstrap semantic colors */
.text-primary {
    color: var(--bs-primary) !important;
}

/* Team Member Cards */
.team-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(var(--bs-primary-rgb), 0.15);
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    margin: 0 auto 1.5rem;
    display: block;
}

.team-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* Resource Cards */
.resource-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #000000;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Improved spacing */
.section-padding {
    padding: 80px 0;
}

/* Footer: keep dark bar + light text (unchanged palette vs brand greens on the rest of the site). */
footer {
    margin-top: auto;
    background-color: #212529 !important;
    color: #f8f9fa !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary-text-emphasis);
}

