/* ===============================
   RESET & BASE STYLES
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(26, 156, 168, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Improve touch targets for mobile */
button,
a,
input,
textarea {
    -webkit-tap-highlight-color: rgba(26, 156, 168, 0.2);
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* ===============================
   TOP BAR
   =============================== */
.top-bar {
    background: linear-gradient(135deg, #3b6f8a 0%, #2d5468 100%);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
}

/* ===============================
   HEADER
   =============================== */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    display: block;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: #2d5468;
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: #666;
}

.nav {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1a9ca8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a9ca8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-item .icon {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a9ca8 0%, #158894 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 156, 168, 0.3);
    font-size: 15px;
    min-height: 44px;
    /* Minimum touch target size */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 156, 168, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
    background: linear-gradient(135deg, #e8f4f6 0%, #d9eaed 100%);
    padding: 40px 0 20px;
}

.hero-carousel {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
    align-items: center;
    gap: 40px;
}

.slide-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background: #e8f4f6;
    color: #1a9ca8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2d5468;
    margin-bottom: 15px;
    line-height: 1.3;
}

.slide-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-secondary {
    background: #2d5468;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 84, 104, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 84, 104, 0.4);
    background: #3b6f8a;
}

.slide-image {
    flex: 0 0 300px;
    height: 300px;
    background: linear-gradient(135deg, #e8f4f6 0%, #c8dee3 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

.indicator {
    width: 40px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #1a9ca8;
    width: 60px;
}

.hero-footer {
    text-align: center;
    padding: 20px 0;
    color: #2d5468;
    font-weight: 500;
}

/* ===============================
   MARQUEE SECTION
   =============================== */
.marquee-section {
    background: #f0f4f7;
    padding: 12px 0;
    overflow: hidden;
    border-top: 1px solid #e0e4e8;
    border-bottom: 1px solid #e0e4e8;
    width: 100%;
    max-width: 100vw;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.marquee-content {
    color: #1a9ca8;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    animation: marquee 20s linear infinite;
    width: max-content;
    padding: 0 50px;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* ===============================
   MAIN CONTENT
   =============================== */
.main-content {
    padding: 50px 0;
    position: relative;
    z-index: 2;
}

.content-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

/* ===============================
   LEFT COLUMN - CARDS
   =============================== */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cashless-card,
.priority-card,
.about-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.cashless-card:hover,
.priority-card:hover,
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cashless-card h3,
.priority-card h3,
.about-card h3 {
    color: #2d5468;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cashless-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.helpline-info {
    background: linear-gradient(135deg, #f8fcfd 0%, #eef7f9 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.helpline-info h4 {
    color: #2d5468;
    font-size: 16px;
    margin-bottom: 5px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-weight: 600;
    color: #1a9ca8;
}

.phone-icon {
    font-size: 20px;
}

.email {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    word-break: break-all;
}

.btn-outline {
    background: transparent;
    color: #1a9ca8;
    border: 2px solid #1a9ca8;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.btn-outline:hover {
    background: #1a9ca8;
    color: white;
    transform: translateY(-2px);
}

.sub-enquiry {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8f4f6;
}

.sub-enquiry p {
    font-size: 13px;
    color: #666;
}

.priority-list,
.about-list {
    list-style: none;
    padding: 0;
}

.priority-list li,
.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f4f7;
    transition: all 0.3s ease;
}

.priority-list li:hover,
.about-list li:hover {
    padding-left: 10px;
    background: #f8fcfd;
}

.priority-list li:last-child,
.about-list li:last-child {
    border-bottom: none;
}

.priority-icon,
.about-icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* ===============================
   RIGHT COLUMN - SPECIALITIES
   =============================== */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.specialities-section h2,
.facilities-section h2 {
    color: #2d5468;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.specialities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.speciality-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.speciality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1a9ca8, #2d5468);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.speciality-card:hover::before {
    transform: scaleX(1);
}

.speciality-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.speciality-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: grayscale(20%);
}

.speciality-card p {
    color: #2d5468;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/* ===============================
   FACILITIES SECTION
   =============================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.facility-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 200px;
}

.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: white;
    padding: 40px 15px 15px;
    font-size: 13px;
    font-weight: 600;
}

/* ===============================
   HOSPITAL FACILITIES SECTION
   =============================== */
.hospital-facilities {
    background: white;
    padding: 60px 0;
    margin-top: 50px;
}

.hospital-facilities h2 {
    color: #2d5468;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.facilities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-container {
    position: relative;
    height: 450px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-console {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    color: #2d5468;
    border: 2px solid #1a9ca8;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-console:hover {
    background: #1a9ca8;
    color: white;
    transform: translateY(-2px);
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section h3,
.hospital-hours h3 {
    color: #2d5468;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #2d5468;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e8f4f6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a9ca8;
    box-shadow: 0 0 0 3px rgba(26, 156, 168, 0.1);
}

.hospital-hours {
    background: linear-gradient(135deg, #f8fcfd 0%, #eef7f9 100%);
    padding: 30px;
    border-radius: 12px;
}

.hospital-hours p {
    color: #666;
    margin-bottom: 15px;
}

.hours-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8f4f6;
}

.hours-info span {
    font-weight: 600;
    color: #2d5468;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(26, 156, 168, 0.3);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Tablet Landscape & Small Desktops */
@media (max-width: 1199px) {
    .container {
        padding: 0 24px;
    }

    .content-grid {
        grid-template-columns: 320px 1fr;
        gap: 25px;
    }

    .specialities-grid,
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .left-column {
        max-width: 100%;
    }

    .specialities-grid,
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .facilities-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        height: 350px;
    }

    .hero-carousel {
        padding: 30px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header Responsive */
    .header {
        padding: 12px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 11px;
    }

    .logo-icon svg {
        width: 35px;
        height: 35px;
    }

    /* Mobile Navigation */
    .nav {
        display: none;
        /* Hidden by default */
        width: 100%;
        order: 3;
        flex-direction: column;
        background: white;
        padding: 10px 0;
        border-top: 1px solid #f0f4f7;
        gap: 0;
    }

    .nav.mobile-active {
        display: flex;
        /* Show when active */
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        font-size: 15px;
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #f5f7fa;
        width: 100%;
        text-align: left;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: #f8fcfd;
        color: #1a9ca8;
        padding-left: 25px;
        /* Indent on hover */
    }

    .nav-link.active::after {
        display: none;
        /* Remove underline for mobile */
    }

    .header-right {
        gap: 10px;
    }

    .contact-info {
        display: none;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 25px 0 15px;
    }

    .hero-carousel {
        padding: 25px 20px;
    }

    .carousel-slide.active {
        flex-direction: column;
        gap: 25px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .slide-image {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }

    .btn-secondary {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
    }

    /* Main Content Mobile */
    .main-content {
        padding: 30px 0;
    }

    .cashless-card,
    .priority-card,
    .about-card {
        padding: 20px;
    }

    .cashless-card h3,
    .priority-card h3,
    .about-card h3 {
        font-size: 20px;
    }

    /* Specialities & Facilities */
    .specialities-section h2,
    .facilities-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .specialities-grid,
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .speciality-card {
        padding: 20px 15px;
    }

    .speciality-icon {
        font-size: 40px;
    }

    .speciality-card p {
        font-size: 13px;
    }

    .facility-card {
        height: 180px;
    }

    /* Hospital Facilities Section */
    .hospital-facilities {
        padding: 40px 0;
    }

    .hospital-facilities h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .map-container {
        height: 300px;
    }

    .form-section h3,
    .hospital-hours h3 {
        font-size: 20px;
    }

    /* Top Bar */
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    /* Header Ultra Mobile */
    .logo-text h1 {
        font-size: 16px;
    }

    .logo-icon svg {
        width: 30px;
        height: 30px;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Hero Ultra Mobile */
    .hero-carousel {
        padding: 20px 15px;
    }

    .slide-content h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .slide-image {
        height: 220px;
    }

    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .carousel-indicators {
        gap: 8px;
        margin-top: 20px;
    }

    .indicator {
        width: 30px;
    }

    .indicator.active {
        width: 45px;
    }

    /* Cards Mobile */
    .cashless-card,
    .priority-card,
    .about-card {
        padding: 18px;
    }

    .cashless-card h3,
    .priority-card h3,
    .about-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .cashless-card p {
        font-size: 13px;
    }

    .helpline-info {
        padding: 15px;
    }

    .phone-number {
        font-size: 14px;
        flex-wrap: wrap;
    }

    .email {
        font-size: 12px;
    }

    /* Grids to Single Column */
    .specialities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .specialities-section h2,
    .facilities-section h2 {
        font-size: 22px;
    }

    .speciality-card {
        padding: 25px 20px;
    }

    .facility-card {
        height: 200px;
    }

    /* Hospital Facilities */
    .hospital-facilities {
        padding: 30px 0;
        margin-top: 30px;
    }

    .hospital-facilities h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .facilities-content {
        gap: 25px;
    }

    .map-container {
        height: 250px;
    }

    .btn-console {
        padding: 8px 18px;
        font-size: 13px;
        bottom: 15px;
        left: 15px;
    }

    .contact-form-container {
        gap: 20px;
    }

    .form-section h3,
    .hospital-hours h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 13px;
    }

    .hospital-hours {
        padding: 20px;
    }

    .hours-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    /* Priority Lists */
    .priority-list li,
    .about-list li {
        padding: 12px 0;
        font-size: 14px;
    }

    .priority-icon,
    .about-icon {
        font-size: 20px;
    }

    /* Marquee */
    .marquee-section {
        padding: 10px 0;
    }

    .marquee-content {
        font-size: 12px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .slide-content h2 {
        font-size: 22px;
    }

    .speciality-card {
        padding: 20px 15px;
    }

    .speciality-icon {
        font-size: 36px;
    }

    .hero-carousel {
        padding: 15px 12px;
    }

    .cashless-card,
    .priority-card,
    .about-card {
        padding: 15px;
    }
}

/* Landscape Mode Fix for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
    }

    .hero-carousel {
        padding: 20px;
    }

    .slide-image {
        height: 200px;
    }

    .carousel-slide.active {
        flex-direction: row;
        gap: 20px;
    }

    .slide-image {
        flex: 0 0 250px;
        width: 250px;
    }
}