/* 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 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: white;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

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;
}

.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;
}

/* 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: 20px;
    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;
}



/* 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;
    }
    
    .about-image {
        flex: none;
        width: 100%;
        height: 200px;
    }
}

/* 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%;
    }
}