/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #0a2b4f;
    --secondary-blue: #2b8faf;
    --accent-teal: #79c9e5;
    --light-bg: #f0f7fd;
    --white: #ffffff;
    --gray-light: #eef5fa;
    --text-dark: #1e2f4e;
    --text-light: #4d6f8c;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-navy);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 3px solid var(--secondary-blue);
}

.top-bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.global-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-tag i {
    color: var(--accent-teal);
}

.branch-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.branch-contacts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.branch-contacts i {
    width: 18px;
    color: var(--accent-teal);
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: 0 6px 15px rgba(0,20,40,0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(145deg, #144e7c, #0a2b4f);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 6px 10px rgba(0,60,120,0.2);
}

.logo-text h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 600;
}

.headquarter-badge {
    background: var(--gray-light);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 4px solid var(--secondary-blue);
}

.headquarter-badge i {
    color: #c24f2d;
    margin-right: 6px;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid #e2edf5;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 12px 0;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #1e3a5f;
    font-size: 0.95rem;
    transition: 0.2s;
    letter-spacing: 0.3px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: var(--secondary-blue);
    color: #0f466b;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy), #1a4b77);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.page-header .breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.page-header .breadcrumb a {
    color: white;
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-blue);
    color: white;
}

.btn-primary:hover {
    background: #1f6f8f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary-blue);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(105deg, var(--light-bg) 0%, #ffffff 70%);
    padding: 60px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 400px;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.hero-text h2 span {
    color: var(--secondary-blue);
    font-weight: 700;
}

.hero-text p {
    font-size: 1.1rem;
    color: #2b4d6a;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1 1 400px;
    min-height: 300px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300" width="400" height="300"><rect width="400" height="300" fill="%23cae4f2" rx="30"/><circle cx="120" cy="100" r="30" fill="%23ffffff" opacity="0.9"/><circle cx="280" cy="100" r="30" fill="%23ffffff" opacity="0.9"/><circle cx="200" cy="150" r="60" fill="%23ffffff"/><circle cx="200" cy="150" r="35" fill="%232b8faf"/><path d="M150 230 L250 230 L230 270 L170 270 Z" fill="%233d7ea6" opacity="0.9"/></svg>') no-repeat center;
    background-size: contain;
}

/* ===== BRANCH FLAGS ===== */
.branch-flags {
    display: flex;
    gap: 24px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.flag-item {
    background: white;
    border-radius: 40px;
    padding: 8px 18px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border: 1px solid #cde2f0;
}

/* ===== BRANCH GRID ===== */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    padding: 60px 0;
}

.branch-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid #e2f0f8;
    transition: 0.3s;
    box-shadow: 0 10px 20px -8px rgba(0,60,100,0.1);
    position: relative;
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-teal);
    box-shadow: 0 20px 30px -10px rgba(0,60,100,0.2);
}

.branch-card.hq {
    border: 2px solid var(--primary-navy);
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

.branch-card.hq::before {
    content: "★ HEADQUARTERS";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-navy);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 40px;
    letter-spacing: 0.5px;
}

.branch-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: #e1eff9;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-navy);
}

.branch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.branch-country {
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.branch-phone {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gray-light);
    padding: 10px 15px;
    border-radius: 30px;
    display: inline-block;
    margin: 15px 0;
    color: var(--primary-navy);
}

.branch-phone i {
    margin-right: 8px;
    color: var(--secondary-blue);
}

.branch-address {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ===== SPECIALTIES GRID ===== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.specialty-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eef5fa;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,60,120,0.1);
}

.specialty-icon {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.specialty-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-navy);
}

.specialty-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== CONTACT FORMS ===== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--primary-navy);
}

.contact-details p {
    color: var(--text-light);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dde9f2;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(43,143,175,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== INTERNATIONAL PATIENTS SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-navy);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== ACCORDION ===== */
.accordion {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.accordion-item {
    border-bottom: 1px solid #eef5fa;
}

.accordion-header {
    padding: 20px;
    background: var(--gray-light);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #e1eff9;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-content.show {
    padding: 20px;
    max-height: 500px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-navy), #1a4b77);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: #0b2d47;
    color: #d3e3f0;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col p {
    margin: 16px 0;
}

.footer-col i {
    width: 28px;
    color: #7eb9d5;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cee6f5;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #26527a;
    color: #97bcd9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav .container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .branch-flags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-contacts {
        flex-direction: column;
        gap: 10px;
    }
}