:root {
    --primary-color: #0056b3; /* Medical Professional Blue */
    --secondary-color: #004494; /* Darker Blue for hover */
    --accent-color: #e3f2fd; /* Light Azure for backgrounds */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --asl-green: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Utility Bar */
.utility-bar {
    background: #f1f1f1;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
}

.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.utility-bar a {
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 15px;
}

.utility-bar a i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Navbar */
nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s;
    margin: 10px;
}

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

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

.btn:hover {
    transform: translateY(-3px);
}

/* Services Section */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    background: #ddd;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

/* Service Details & Gallery */
.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Modulistica Grid & Cards */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.doc-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.doc-info h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.doc-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.doc-card .btn {
    margin: 15px 0 0 0;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.mini-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.mini-gallery img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.mini-gallery img:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #222;
    color: #eee;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    background: #222;
    color: #eee;
}

/* Admin Styles */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #f4f4f4;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-nav {
    background: #333;
    color: white;
    padding: 15px;
}

.admin-nav a {
    color: white;
    margin-right: 20px;
    text-decoration: none;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-page {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-page:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Accordion */
.accordion {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    color: var(--primary-color);
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--accent-color);
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header {
    background: var(--accent-color);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.accordion-item.active .accordion-content {
    max-height: 2000px; /* Large enough for content */
}

.accordion-inner {
    padding: 25px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .logo img {
        height: 60px !important;
    }

    .logo span {
        font-size: 1.3rem !important;
    }

    .logo span span {
        font-size: 1rem !important;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: var(--primary-color);
        background: none;
        border: none;
        cursor: pointer;
    }

    .ssr-badge {
        border-left: none !important;
        padding-left: 0 !important;
        margin-bottom: 10px;
        order: -1; /* Move above logo on mobile if needed */
        width: 100%;
        justify-content: flex-start !important;
    }

    .ssr-badge img, .ssr-badge svg {
        height: 35px !important;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .section {
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
    }
}

.mobile-menu-btn {
    display: none;
}
