:root {
    --primary: #008080;
    --primary-light: #26a69a;
    --primary-dark: #004d40;
    --secondary: #ff6f00;
    --accent: #4fc3f7;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f4f9f9;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hospital-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
}

/* Hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 128, 128, 0.8), rgba(0, 77, 64, 0.9)), url('meltem_hospital_hero_1771927688741.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.hero .highlight {
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Info Card */
.info-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: -150px;
    position: relative;
    z-index: 10;
}

.info-card h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.package-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pkg-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    background: var(--bg-light);
    color: var(--primary);
}

.package-card.premium {
    border-top-color: #ffd700;
}

.package-card.gold {
    border-top-color: #ff9800;
}

.package-card.detailed {
    border-top-color: #2196f3;
}

.package-card.standard {
    border-top-color: #4caf50;
}

.package-card.child {
    border-top-color: #e91e63;
}

.package-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.package-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Pre-Checkup Info */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rounded-img {
    width: 100%;
    border-radius: 30px;
}

.shadow {
    box-shadow: var(--shadow);
}

.info-list {
    list-style: none;
    margin-top: 30px;
}

.info-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-list .icon {
    font-size: 1.5rem;
}

/* Why Us Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--primary);
}

.feature-item:hover p {
    color: var(--white);
}

.f-icon {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 128, 128, 0.1);
    margin-bottom: 10px;
    transition: var(--transition);
}

.feature-item:hover .f-icon {
    color: rgba(255, 255, 255, 0.2);
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.accordion-item {
    background: var(--bg-light);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #e0f2f1;
}

.accordion-header h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 20px 30px 30px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.accordion-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.accordion-content li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo span {
    font-weight: 300;
}

.footer-tel {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

.modal.modal-active {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    /* Allow the overlay to scroll */
}

.modal-content {
    background-color: var(--white);
    margin: 5vh auto;
    /* Responsive margin */
    padding: 60px;
    border-radius: 30px;
    width: 95%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible !important;
    /* CRITICAL: Allow tooltips to stick out */
}

.modal.modal-active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    border: 1px solid #e2e8f0;
}

.close-modal:hover {
    background: #e2e8f0;
    color: var(--secondary);
    transform: rotate(90deg);
}

.share-modal {
    position: absolute;
    right: 65px;
    top: 20px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.share-modal:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-modal svg {
    color: var(--primary);
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.modal-cat h3 {
    font-size: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-cat ul {
    list-style: none;
}

.modal-cat li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.modal-cat li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* Glossary Modal System (Premium UI) */
.glossary-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.glossary-modal-content {
    background: var(--white);
    padding: 35px;
    border-radius: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glossary-modal h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.glossary-modal h4::before {
    content: "ⓘ";
    font-weight: normal;
    color: var(--secondary);
    font-size: 1.5rem;
}

.glossary-modal p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
}

.glossary-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.glossary-close:hover {
    background: #e2e8f0;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .glossary-modal {
        align-items: flex-end;
        padding: 0;
    }

    .glossary-modal-content {
        max-width: none;
        border-radius: 30px 30px 0 0;
        padding: 50px 25px 60px;
        animation: slideUpSheet 0.4s ease-out;
    }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.glossary-term {
    border-bottom: 2px dashed var(--secondary);
    cursor: help;
    color: inherit;
    transition: all 0.2s;
}

.glossary-term:hover {
    color: var(--secondary);
    background: rgba(255, 111, 0, 0.05);
}

/* Fix for containers clipping tooltips */
.accordion-item.active,
.accordion-content,
.modal-content,
.modal-body,
.modal-grid,
.modal-cat,
.modal-cat ul {
    overflow: visible !important;
}

.accordion-item.active {
    z-index: 100 !important;
}

/* Z-index hierarchy for list items */
.modal-cat li:hover,
.accordion-content li:hover {
    z-index: 9000;
    position: relative;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .navbar {
        padding: 15px 0;
    }

    .hospital-logo {
        height: 40px;
        max-width: 150px;
    }

    .logo {
        flex-shrink: 1;
        overflow: hidden;
    }

    .contact-info a span {
        display: none !important;
    }

    .contact-info a {
        padding: 0 !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        justify-content: center !important;
        display: flex !important;
    }

    .contact-info a svg {
        margin: 0 !important;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
    }

    .info-card {
        margin-top: -30px;
        padding: 30px 20px;
    }

    .info-card h2 {
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .package-card {
        padding: 25px;
    }

    .modal-content {
        width: 100% !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 80px 20px 40px !important;
        border-radius: 0 !important;
        background-color: white !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .modal.modal-active {
        background-color: white !important;
        backdrop-filter: none !important;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .close-modal {
        right: 15px;
        top: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .accordion-content ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
    }
}