/* =========================================================
   S.N. PAREEK MEMORIAL HOSPITAL
   Main Website Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #920002;
    --primary-dark: #650001;
    --primary-light: #b91c1c;
    --primary-soft: #fff1f1;

    --dark: #171717;
    --dark-2: #252525;
    --text: #5f6368;
    --white: #ffffff;
    --light: #f8f9fb;
    --border: #e9e9e9;

    --success: #198754;

    --font-main: "DM Sans", sans-serif;
    --font-heading: "Manrope", sans-serif;

    --shadow-sm: 0 5px 20px rgba(0,0,0,.06);
    --shadow-md: 0 15px 45px rgba(0,0,0,.10);
    --shadow-lg: 0 25px 70px rgba(0,0,0,.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all .3s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.25;
}

h1 {
    font-size: clamp(42px,5vw,72px);
    font-weight: 800;
}

h2 {
    font-size: clamp(32px,4vw,52px);
    font-weight: 800;
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px,calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 70px 0;
}

.bg-light {
    background: var(--light);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}


/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-contact {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.top-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.top-contact a:hover {
    opacity: .8;
}

.top-social {
    display: flex;
    gap: 10px;
}

.top-social a {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-social a:hover {
    background: var(--white);
    color: var(--primary);
}


/* =========================================================
   HEADER
   ========================================================= */

.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}

.navbar {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.logo-text strong {
    display: block;
    color: var(--primary);
    font-size: 19px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.logo-text span {
    display: block;
    font-size: 10px;
    color: #777;
    letter-spacing: .5px;
    line-height: 1.4;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    padding: 10px 15px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-appointment {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 13px 20px !important;
    border-radius: 8px !important;
}

.nav-appointment:hover {
    background: var(--primary-dark) !important;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    color: var(--primary);
    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #350000;
}

/* HERO BACKGROUND IMAGE
   IMPORTANT:
   CSS is inside /css/
   Image is inside /images/
   Therefore path is ../images/hospital-hero.png
*/

.hero::before {
    content: "";
    position: absolute;

    top: -8%;
    left: -8%;

    width: 116%;
    height: 116%;

    background-image: url("../images/hospital-hero.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    z-index: -2;

    transform: scale(1);
    transform-origin: center center;

    animation: heroZoom 10s ease-in-out infinite alternate;

    will-change: transform;
}


/* Dark overlay */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.78) 0%,
            rgba(0,0,0,.55) 45%,
            rgba(0,0,0,.18) 100%
        );

    z-index: -1;
}


/* Actual zoom animation */

@keyframes heroZoom {

    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.12);
    }

}


.hero-content {
    position: relative;
    z-index: 5;
    max-width: 750px;
    color: var(--white);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(146,0,2,.85);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 25px;
}

.hero h1 span {
    color: #ffb6b6;
}

.hero p {
    color: rgba(255,255,255,.9);
    font-size: 18px;
    max-width: 650px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-shape {
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(146,0,2,.4);
    z-index: 1;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(146,0,2,.25);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-heading {
    margin-bottom: 55px;
}

.section-heading .eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-heading h2 {
    margin-bottom: 15px;
}

.section-heading p {
    max-width: 650px;
    margin: 0 auto;
}

.section-heading.left p {
    margin: 0;
}


/* =========================================================
   STATS
   ========================================================= */

.stats-section {
    position: relative;
    margin-top: -55px;
    z-index: 10;
}

.stats-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.stat-item {
    padding: 15px 25px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin: 0 auto 12px;
    font-size: 20px;
}

.stat-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 13px;
    color: #777;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.about-badge strong {
    display: block;
    font-size: 35px;
    line-height: 1;
}

.about-badge span {
    font-size: 12px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    margin-bottom: 20px;
}

.check-list {
    margin: 25px 0 30px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--dark-2);
    font-weight: 600;
}

.check-list i {
    color: var(--primary);
    margin-top: 5px;
}


/* =========================================================
   SERVICE CARDS
   ========================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 22px;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    margin-bottom: 0;
}


/* =========================================================
   EMERGENCY
   ========================================================= */

.emergency-banner {
    background:
        linear-gradient(
            100deg,
            rgba(101,0,1,.97),
            rgba(146,0,2,.85)
        ),
        url("../img/emergency.jpg") center/cover;

    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 45px 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 22px;
}

.emergency-icon {
    width: 65px;
    height: 65px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.emergency-content h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.emergency-content p {
    color: rgba(255,255,255,.8);
    margin: 0;
}


/* =========================================================
   DOCTORS
   ========================================================= */

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
}

.doctor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.doctor-image {
    height: 300px;
    background: var(--primary-soft);
    position: relative;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    padding: 22px;
}

.doctor-info h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.doctor-specialty {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.doctor-info p {
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 0;
}


/* =========================================================
   DOCTORS GROUP PHOTO
   ========================================================= */

.doctor-team-section {
    background: var(--white);
}

.doctor-team-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);

    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-team-photo img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   APPOINTMENT
   ========================================================= */

.appointment-section {
    background: var(--primary-soft);
}

.appointment-box {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.appointment-content h2 {
    margin-bottom: 20px;
}

.appointment-content p {
    max-width: 600px;
}

.appointment-list {
    margin-top: 25px;
}

.appointment-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.appointment-list i {
    color: var(--primary);
    margin-top: 5px;
}

.appointment-form {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-title {
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #fff;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(146,0,2,.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}


/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    position: relative;

    background:
        linear-gradient(
            rgba(50,0,0,.75),
            rgba(50,0,0,.75)
        ),
        url("../img/page-header.jpg") center/cover;
}

.page-hero-content {
    text-align: center;
    color: var(--white);
    width: 100%;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(38px,5vw,58px);
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #ffbaba;
}

.breadcrumb span {
    color: rgba(255,255,255,.7);
}


/* =========================================================
   ABOUT HIGHLIGHT
   ========================================================= */

.about-highlight {
    background: var(--primary);
    color: var(--white);
    padding: 45px;
    border-radius: var(--radius-lg);
    margin-top: 50px;
}

.about-highlight h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.about-highlight p {
    color: rgba(255,255,255,.85);
    margin: 0;
}


/* =========================================================
   DEPARTMENT PAGE
   ========================================================= */

.department-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.department-card {
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.department-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.department-number {
    color: #e8d1d1;
    font-size: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
}

.department-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.department-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.department-card p {
    font-size: 14px;
    margin: 0;
}


/* =========================================================
   DOCTORS PAGE
   ========================================================= */

.doctors-page-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
}

.doctor-profile {
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.doctor-profile:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.doctor-profile-image {
    height: 320px;
    background: var(--primary-soft);
}

.doctor-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-profile-content {
    padding: 25px 20px 28px;
}

.doctor-profile-content h3 {
    font-size: 19px;
    margin-bottom: 5px;
}

.doctor-degree {
    color: #777;
    font-size: 13px;
    margin-bottom: 5px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 17px;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 14px;
    margin: 0;
}

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.contact-form-box h3 {
    margin-bottom: 25px;
}

.contact-map {
    margin-top: 70px;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #eee;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #170000;
    color: rgba(255,255,255,.72);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.footer-logo strong {
    color: var(--white);
    font-size: 17px;
    font-family: var(--font-heading);
}

.footer-about p {
    font-size: 14px;
}

.footer h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 22px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff9c9c;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact i {
    color: #ff7777;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.footer-bottom a {
    color: #ff9c9c;
}


/* =========================================================
   SCROLL TO TOP
   ========================================================= */

.scroll-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 900;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .7s ease,transform .7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   PAGE LOADER
   ========================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease,visibility .4s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin: 0 auto 15px;
    animation: pulse 1.3s infinite;
}

.loader-bar {
    width: 120px;
    height: 4px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    margin: auto;
}

.loader-bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: var(--primary);
    animation: loading 1.1s infinite ease-in-out;
}

@keyframes loading {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

@keyframes pulse {
    50% {
        transform: scale(.9);
        opacity: .7;
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:1100px) {

    .service-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .doctor-grid,
    .doctors-page-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .department-grid {
        grid-template-columns: repeat(2,1fr);
    }

}


@media (max-width:900px) {

    .top-bar {
        display: none;
    }

    .navbar {
        min-height: 75px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--white);

        flex-direction: column;
        align-items: stretch;

        padding: 15px 20px 25px;

        box-shadow: var(--shadow-md);

        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;

        transition: var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        display: block;
        padding: 13px 15px;
    }

    .stats-wrapper {
        grid-template-columns: repeat(2,1fr);
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
        padding-bottom: 25px;
    }

    .about-grid,
    .appointment-box,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-badge {
        right: 20px;
    }

    .hero {
        min-height: 600px;
    }

}


@media (max-width:600px) {

    .container {
        width: min(100% - 30px,1180px);
    }

    .section {
        padding: 70px 0;
    }

    .logo-text strong {
        font-size: 15px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .logo {
        min-width: 0;
    }

    .logo img {
        width: 48px;
        height: 48px;
    }

    .hero {
        min-height: 600px;
    }

    .hero::before {
        top: -10%;
        left: -10%;
        width: 120%;
        height: 120%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
    }

    .stat-item {
        padding: 15px 8px;
    }

    .stat-number {
        font-size: 25px;
    }

    .service-grid,
    .doctor-grid,
    .doctors-page-grid,
    .department-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 350px;
    }

    .emergency-banner {
        padding: 30px 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .emergency-content {
        align-items: flex-start;
    }

    .appointment-form,
    .contact-form-box {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .page-hero {
        min-height: 250px;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    .doctor-team-photo {
        border-radius: var(--radius-md);
    }

    .doctor-team-photo img {
        max-height: none;
    }

}