/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main.content {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 3px solid #c41e1e;
}
.header-top {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
.call-btn {
    position: absolute;
    left: 20px;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 14px;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 1px;
}
.call-btn:hover { background: #f0f0f0; }
.logo-container {
    margin: 0 auto;
}
.logo {
    height: 80px;
    display: block;
}

/* Navigation */
.main-nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
}
.nav-links > a, .nav-links > .dropdown > a {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links > a:hover, .nav-links > .dropdown:hover > a {
    color: #c41e1e;
}
.nav-links > a.active {
    color: #c41e1e;
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
}
.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
}
.dropdown-content a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.dropdown-content a:hover {
    background: #f5f5f5;
    color: #c41e1e;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}
.lang-switch a {
    padding: 6px 14px;
    font-size: 13px;
    border-right: 1px solid #ccc;
}
.lang-switch a:last-child { border-right: none; }
.lang-switch a.active {
    background: #f0f0f0;
    font-weight: bold;
}
.lang-switch a:hover { background: #e8e8e8; }

/* Page Headings */
h1.page-title, h2.page-title {
    color: #c41e1e;
    font-size: 28px;
    font-weight: normal;
    margin: 20px 0;
    font-family: Georgia, serif;
}
h2.section-title {
    color: #c41e1e;
    font-size: 22px;
    font-weight: normal;
    margin: 30px 0 15px;
}

/* Homepage Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    margin: 10px 0 30px;
}
.slideshow img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: none;
}
.slideshow img.active {
    display: block;
}
.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.slideshow-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.slideshow-dots span.active {
    background: #fff;
}

/* Text Content */
.text-content {
    line-height: 1.8;
    font-size: 15px;
}
.text-content p {
    margin-bottom: 15px;
}
.text-content .highlight {
    color: #c41e1e;
    font-weight: bold;
}

/* Clinic Cards */
.clinic-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.clinic-card {
    flex: 1;
    min-width: 250px;
    padding: 15px;
}
.clinic-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}
.clinic-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.schedule-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    border-bottom: 2px solid #ddd;
}
.schedule-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: top;
}
.schedule-table tr:hover { background: #fafafa; }

/* Image pages (management, roster, report, newsletter) */
.page-image {
    max-width: 100%;
    margin: 20px 0;
    display: block;
}
.page-image img {
    max-width: 100%;
    height: auto;
}

/* Donation */
.donation-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.donation-text { flex: 1; }
.donation-qr {
    width: 200px;
    flex-shrink: 0;
}
.donation-qr img {
    width: 100%;
    height: auto;
}
.donation-sections {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.donation-section {
    flex: 1;
    min-width: 300px;
}
.donation-section img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

/* Event Gallery */
.gallery-year {
    margin: 30px 0;
}
.gallery-year h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 4px;
}
.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.gallery-grid img {
    height: 200px;
    width: auto;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.85; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* Contact */
.contact-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.contact-card {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border: 1px solid #eee;
}
.contact-card h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}
.contact-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    margin-top: 40px;
}

/* Admin Gallery */
.admin-panel {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}
.admin-panel h2 {
    color: #333;
    margin-bottom: 20px;
}
.admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.admin-form label {
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}
.admin-form input, .admin-form select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.admin-form button, .btn {
    padding: 8px 20px;
    background: #c41e1e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.admin-form button:hover, .btn:hover {
    background: #a01818;
}
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}
.flash {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.admin-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.admin-photo {
    position: relative;
    display: inline-block;
}
.admin-photo img {
    height: 100px;
    width: auto;
    border-radius: 3px;
}
.admin-photo .delete-btn {
    position: absolute;
    top: 2px; right: 2px;
    background: rgba(220,53,69,0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px; height: 22px;
    cursor: pointer;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}
.admin-link {
    display: inline-block;
    background: #c41e1e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
}
.admin-link:hover { background: #a01818; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { flex-wrap: wrap; }
    .header-top { flex-direction: column; gap: 10px; }
    .call-btn { position: static; }
    .donation-layout { flex-direction: column; }
    .donation-sections { flex-direction: column; }
    .clinic-cards { flex-direction: column; }
    .contact-grid { flex-direction: column; }
    .main-nav { flex-direction: column; gap: 10px; }
}
