/* Main styles for Community Health Center website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Top header styles */
.top-header {
    background-color: #dc3545; /* Red color as requested */
    color: white;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #ccc;
}

.top-header-text {
    text-align: center;
    margin: 0;
    color: white;
}

.top-header-text a {
    color: white;
    text-decoration: none;
}

.top-header-text a:hover {
    text-decoration: underline;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    /* Top header is in normal flow */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

/* Header Styles */
header {
    background-color: white;
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 0;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.logo {
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    text-align: center;
    color: #333;
    width: 100%;
}
    
.logo img {
    height: 40px;
    margin-right: 8px;
}
    
@media (min-width: 768px) {
    .logo {
        font-size: 24px;
    }
        
    .logo img {
        height: 60px;
        margin-right: 15px;
    }
}

nav ul {
    display: flex;
    list-style: none;
    position: relative;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: white; /* White color as requested */
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease; /* Smooth transition */
    padding: 6px 8px; /* Reduced padding */
    border-radius: 5px; /* Rounded corners */
    font-size: 11px; /* Reduced font size */
}



/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.arrow {
    font-size: 12px;
    margin-left: 5px;
}



nav ul li a:hover {
    color: #007bff; /* Blue text on hover */
    background-color: white; /* White background on hover */
    padding: 8px 12px; /* Add padding on hover */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline, use background instead */
}

.nav-container {
    width: 100%;
    background-color: #333; /* Black background for navigation */
    padding: 10px;
    border-radius: 5px;
}

/* Line under navigation */
.header-bottom-line {
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745);
    margin-top: 15px;
}

.header-bottom-line-secondary {
    height: 1px;
    background: #ccc;
    margin-top: 5px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: white; /* White background as requested */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: #000;
}

.slide-content {
    position: absolute;
    top: 20px;
    left: 20px;
    text-align: left;
    color: white;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content h1 {
    font-size: 1.5rem; /* Smaller font size */
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1rem; /* Smaller font size */
    max-width: 500px;
    margin: 0;
}

.slider-text-below {
    padding: 20px;
    text-align: left;
    background-color: white;
}

.slider-text-below h2 {
    font-size: 1.2rem; /* Smaller font */
    color: #333;
    margin-bottom: 5px;
}

.slider-text-below p {
    font-size: 0.9rem; /* Smaller font */
    color: #666;
    margin: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 20;
}

.slider-controls button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(0,0,0,0.8);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 20;
}

.indicator {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

/* Main Content Sections */
.main-content {
    padding: 40px 0;
}

.section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.staff-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.staff-member {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.staff-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.staff-position {
    color: #666;
    margin-bottom: 15px;
}

.important-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.link-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.link-item a {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.link-item a:hover {
    background: #0056b3;
}

.about-content {
    line-height: 1.8;
}

.gallery-section {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
    
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    }
        
    .gallery-item {
        height: 120px; /* Smaller height for mobile */
    }
}

.gallery-item {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.location-section {
    text-align: center;
}

.map-placeholder {
    height: 300px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: #666;
    font-weight: bold;
}

/* Footer */
footer {
    background: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.footer-column {
    padding: 0 15px;
}

.footer-column h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column p {
    line-height: 1.6;
    color: #ddd;
    margin: 5px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #6c757d;
    margin-top: 30px;
    background-color: #212529;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    
    .footer-column {
        padding: 0 10px;
    }
    
    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .footer-column p {
        font-size: 14px;
        margin: 3px 0;
    }
    
    .footer-column ul li {
        margin-bottom: 6px;
    }
    
    .footer-column ul li a {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding: 15px;
        margin-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 13px;
        margin: 5px 0;
    }
}

/* About section */
.about-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

.about-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    padding: 10px 0;
}

.about-content strong,
.about-content b {
    font-weight: bold;
    color: #007bff;
}

.about-content p {
    margin-bottom: 15px;
}

.location-section {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.location-section iframe {
    border: none;
    border-radius: 8px;
}

.about-images-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    flex-wrap: wrap;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    
}

.about-thumb-1 {
    width: 380px;
    height: 280px;
}

.about-thumb-2 {
    width: 250px;
    height: 280px;
}

.about-thumb-3 {
    width: 2000px;
    height: 200px;
}

.about-thumb-4 {
    width: 300px;
    height: 280px;
}



/* Mobile menu toggle button */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .logo img {
        margin-right: 10px;
    }
    
    .nav-container {
        width: 100%;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        display: none;
        width: 100%;
        text-align: center;
    }
    
    nav ul.show {
        display: flex;
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 10px 15px;
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-top: 5px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        max-height: 200px;
        overflow-y: auto;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu {
        margin-top: 0;
        border-top: none;
    }
    
    nav ul li {
        margin: 5px 0;
        width: 100%;
    }
    
    nav ul li a {
        padding: 15px;
        width: 100%;
        font-size: 15px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-top: 5px;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    /* Mobile menu toggle styles */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 5px;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 4px 0;
        transition: 0.3s;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .staff-member {
        min-width: 100%;
    }
    
    .content-section {
        flex-direction: column;
    }
    
    .reports-section {
        flex: none;
        width: 100%;
    }
    
    .about-content-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .about-content p {
        margin-bottom: 12px;
    }
    
    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 250px;
        object-fit: cover;
    }
    
    .about-images-row {
        flex-direction: column;
        align-items: center;
    }
    
    .about-thumb {
        width: 100% !important;
        height: auto !important;
        max-width: 200px;
        object-fit: cover;
    }
    
    .about-image img {
        width: 100% !important;
        max-width: 390px;
        height: auto !important;
        max-height: 180px;
    }
    
    .about-thumb-1,
    .about-thumb-2,
    .about-thumb-3,
    .about-thumb-4 {
        max-width: 150px;
        height: auto !important;
    }
}

/* Scrollable links in dropdown */
.dropdown .scrollable-links {
    max-height: 150px;
    overflow-y: auto;
}

.dropdown .links-container {
    display: flex;
    flex-direction: column;
}

.dropdown .links-container a {
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    display: block;
}

.dropdown .links-container a:hover {
    background-color: #f0f0f0;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 5px 0;
}

/* Reports section */
.content-section {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.staff-section {
    flex: 1;
}

.reports-section {
    flex: 0 0 300px; /* Fixed width for reports section */
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.reports-section h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.reports-list {
    max-height: 500px;
    overflow-y: auto;
}

.report-item {
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-item a {
    text-decoration: none;
    color: #007bff;
    display: flex;
    align-items: center;
    flex: 1;
}

.report-item a:hover {
    text-decoration: underline;
}

.file-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 12px;
}

.file-type-pdf {
    background-color: #dc3545;
}

.file-type-image {
    background-color: #28a745;
}

.report-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    margin-left: 5px;
}

.more-reports details {
    margin-top: 10px;
}

.more-reports summary {
    cursor: pointer;
    padding: 5px;
    background: #e9ecef;
    border-radius: 4px;
    font-weight: bold;
}

.more-reports summary:focus {
    outline: none;
}

/* Responsive design for reports section */
@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }
    
    .reports-section {
        flex: none;
        width: 100%;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('path/to/hero-bg.jpg') center/cover;
    text-align: center;
    padding: 60px 20px;
    color: white;
    margin-bottom: 30px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.contact-hero p {
    font-size: 1.2rem;
    margin: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.contact-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.hours {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}

.contact-info {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: #007bff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    font-size: 1.3rem;
}

.info-box p {
    margin: 8px 0;
    line-height: 1.6;
}

.info-box strong {
    color: #333;
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}