/*common css*/

/* =====================================
COMMON CSS
===================================== */

:root {
    --primary: #005A35;
    --dark: #003D26;
    --text: #6c7a89;
    --bg: #f4fbfd;
    --white: #fff;
    --lightBg: #eef5fb;
    --gradient: linear-gradient(135deg, #2ec4c7, #5ad1d4);
    --shadow: 0 10px 25px rgba(0, 61, 38, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =====================================
   TOPBAR
===================================== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: var(--primary);
    padding: 10px 8%;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--white);
    font-size: 13px;
    flex-wrap: wrap;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar-left .bx {
    font-size: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
}

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

.social-icons a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    font-size: 15px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--dark);
    color: var(--white);
}

/* =====================================
   NAVIGATION BAR
===================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 15px 8%;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--dark);
}

.logo img {
    width: 140px;
    object-fit: contain;
    border-radius: 10%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #5ad1a0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5ad1a0;
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Buttons */

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 13px 25px;
    border-radius: 30px;
    border: 2px solid transparent;
    background: var(--gradient);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

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

.btn-primary i {
    font-size: 18px;
}

/* Hamburger */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 7px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================================
   HERO SECTION
===================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    min-height: 85vh;
    padding: 65px 8%;
    background-color: var(--bg);
    background-image: url("images/bg2.PNG");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(244, 251, 253, 0.97) 0%,
        rgba(244, 251, 253, 0.92) 48%,
        rgba(244, 251, 253, 0.45) 100%
    );
}

/* Hero Text */

.hero-text {
    flex: 1 1 55%;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.tag {
    display: inline-block;
    background: var(--gradient);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 61, 38, 0.06);
}

.hero-text h1 {
    font-size: clamp(30px, 5.3vw, 72px);
    font-weight: 500;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-subtitle {
    margin-top: 18px;
    font-size: 19px;
    font-weight: 600;
    color: var(--primary);
}

.hero-text > p {
    margin: 20px 0 28px;
    color: var(--text);
    max-width: 450px;
    font-size: 14px;
    line-height: 1.9;
}

/* Hero Buttons */

.buttons {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.watch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
}

.watch-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.watch-icon i {
    font-size: 24px;
}

.watch:hover .watch-icon {
    background: var(--primary);
    color: var(--white);
}

/* =====================================
   HERO RIGHT SIDE
===================================== */

.hero-right {
    position: relative;
    flex: 1 1 45%;
    min-width: 0;
    min-height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

/* Progress Card */

.progress-card {
    position: absolute;
    left: -15px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(100%, 340px);
    padding: 18px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    z-index: 3;
}

.progress-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e2f5eb;
    color: var(--primary);
}

.progress-icon i {
    font-size: 26px;
}

.progress-info {
    flex: 1;
    min-width: 0;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.progress-top h3 {
    color: var(--dark);
    font-size: 11px;
    font-weight: 600;
}

.progress-text {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #e7eee9;
    border-radius: 10px;
}

.progress-bar span {
    display: block;
    width: 82%;
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
}

.progress-info > p {
    color: var(--text);
    font-size: 10px;
    line-height: 1.5;
}

/* =====================================
ABOUT SECTION
===================================== */

.about {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    padding: 100px 8%;
    background: #ffffff;
}


/* =====================================
ABOUT LEFT
===================================== */

.about-left {
    position: relative;
    flex: 1;
    width: 50%;
}

.about-left img {
    width: 100%;
    max-width: 550px;
    height: 550px;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 61, 38, 0.12);
}

/* =====================================
ABOUT RIGHT
===================================== */

.about-right {
    flex: 1;
    width: 50%;
}

.subTitle {
    color: #005A35;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.heading {
    color: #003D26;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.desc {
    color: #6c7a89;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 25px;
}


/* =====================================
FEATURES
===================================== */

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 25px;
    margin-bottom: 30px;
}

.features div {
    position: relative;
    padding-left: 25px;

    color: #003D26;
    font-size: 14px;
    font-weight: 500;
}

.features div::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    color: #005A35;
    font-size: 16px;
    font-weight: 800;
}


/* =====================================
ABOUT BUTTONS
===================================== */

.about-right .buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phone {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #003D26;
    font-weight: 600;
}

.phone span {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #2ec4c7, #5ad1d4);
    color: #ffffff;

    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 61, 38, 0.12);
}

.phone span i {
    font-size: 20px;
}


/* ================================
BEAUTIFUL SAFMED IMPACT SECTION
================================ */

.stats-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 90px 7% 100px;
    background: linear-gradient(135deg, #f7fcfb, #edf8f7);
}

/* Soft decorative background */
.stats-section::before,
.stats-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.stats-section::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    background: rgba(46, 196, 199, 0.09);
}

.stats-section::after {
    width: 350px;
    height: 350px;
    right: -150px;
    bottom: -180px;
    background: rgba(0, 90, 53, 0.08);
}

/* Heading */
.stats-heading {
    max-width: 760px;
    margin: 0 auto 65px;
    text-align: center;
}

.stats-tag {
    display: inline-block;
    padding: 9px 22px;
    margin-bottom: 20px;
    color: var(--primary);
    background: #dff5ed;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.stats-heading h2 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    font-weight: 800;
}

.stats-heading h2 span {
    display: inline-block;
    color: #20aaa8;
}

.stats-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: #647b83;
    font-size: 15px;
    line-height: 1.9;
}

/* Cards layout */
.stats-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

/* Individual card */
.stat-box {
    position: relative;
    min-width: 0;
    padding: 40px 20px 32px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 90, 53, 0.07);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 61, 38, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease,
                box-shadow 0.35s ease;
}

/* Colored bottom accent */
.stat-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #005A35, #2ec4c7);
    transform: scaleX(0.35);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 61, 38, 0.14);
}

.stat-box:hover::after {
    transform: scaleX(1);
}

/* Icon */
.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #005A35, #16865c);
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(0, 90, 53, 0.18);
    transition: transform 0.35s ease;
}

.stat-box:nth-child(even) .stat-icon {
    background: linear-gradient(135deg, #20aaa8, #48ceca);
    box-shadow: 0 8px 20px rgba(32, 170, 168, 0.2);
}

.stat-icon i {
    font-size: 34px;
}

.stat-box:hover .stat-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* Number */
.stat-number {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.stat-box:nth-child(even) .stat-number {
    color: #20aaa8;
}

/* Label */
.stat-label {
    margin: 0 0 18px;
    color: #152f2b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Small divider */
.stat-label::after {
    content: "";
    display: block;
    width: 45px;
    height: 4px;
    margin: 15px auto 0;
    background: #2ec4c7;
    border-radius: 10px;
}

.stat-description {
    max-width: 230px;
    margin: 0 auto;
    color: #71858c;
    font-size: 13px;
    line-height: 1.8;
}
/* =========================================
   WHY CHOOSE SAFMED
========================================= */

.why-safmed {
    width: 100%;
    padding: 100px 6%;
    background: #b7bdb9;
    position: relative;
    overflow: hidden;
}


/* Decorative background circle */

.why-safmed::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -150px;
}


/* Container */

.why-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}


/* =========================================
   HEADING
========================================= */

.why-heading {
    max-width: 750px;
    margin: 0 auto 60px;
    text-align: center;
}


.section-tag {
    display: inline-block;
    margin-bottom: 15px;
    color: #28A745;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.why-heading h2 {
    margin: 0 0 20px;
    color: #075C35;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
}


.why-heading h2 span {
    color: #28A745;
}


.why-heading p {
    margin: auto;
    max-width: 680px;
    color: #66736D;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   CARDS GRID
========================================= */

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


/* =========================================
   CARD
========================================= */

.why-card {
    position: relative;
    padding: 35px 28px;
    background: #FFFFFF;
    border: 1px solid #E2EAE5;
    border-radius: 18px;
    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(7, 92, 53, 0.06);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


/* Green top line */

.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #28A745;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.4s ease;
}


/* Hover */

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

    border-color: rgba(40, 167, 69, 0.35);

    box-shadow:
        0 20px 45px rgba(7, 92, 53, 0.13);
}


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


/* =========================================
   ICON
========================================= */

.why-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;
    background: #EAF8EF;
    color: #08783F;
    border-radius: 16px;
    margin-bottom: 25px;
    transition: background 0.4s ease,
        color 0.4s ease,
        transform 0.4s ease;
}


.why-icon i {
    font-size: 31px;
}


.why-card:hover .why-icon {
    background: #28A745;
    color: #FFFFFF;
    transform: scale(1.08) rotate(-3deg);
}


/* =========================================
   NUMBER
========================================= */

.why-number {
    position: absolute;
    top: 30px;
    right: 25px;
    color: #EAF3ED;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}


/* =========================================
   CARD TEXT
========================================= */

.why-card h3 {
    position: relative;
    margin-bottom: 15px;
    color: #075C35;
    font-size: 20px;
    font-weight: 700;
}


.why-card p {
    color: #66736D;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}


/* =========================================
   CARD LINK
========================================= */

.why-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #08783F;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}


.why-link i {
    font-size: 19px;
}


.why-link:hover {
    color: #28A745;
    gap: 12px;
}


/* =========================================
   BOTTOM CTA
========================================= */

.why-bottom {
    margin-top: 55px;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 28px 35px;
    background: #075C35;
    border-radius: 18px;
    box-shadow:0 15px 40px rgba(7, 92, 53, 0.15);
}


/* CTA Icon */

.why-bottom-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    color: #FFFFFF;
}


.why-bottom-icon i {
    font-size: 30px;
}
/* ==========================================
   SAFMED SURGICALS
   PRODUCTS SECTION
========================================== */

.productsSection {
    width: 100%;
    padding: 100px 6%;

    background: #F4FBF6;

    position: relative;
    overflow: hidden;
}


/* ==========================================
   BACKGROUND DECORATIONS
========================================== */

.productsSection::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(40, 167, 69, 0.05);

    top: -250px;
    right: -180px;

    pointer-events: none;
}


.productsSection::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background: rgba(8, 120, 63, 0.04);

    bottom: -220px;
    left: -180px;

    pointer-events: none;
}


/* ==========================================
   CONTAINER
========================================== */

.productsContainer {
    width: 100%;
    max-width: 1250px;

    margin: auto;

    position: relative;
    z-index: 2;
}


/* ==========================================
   SECTION HEADING
========================================== */

.productsHeading {
    max-width: 800px;

    margin: 0 auto 60px;

    text-align: center;
}


/* ==========================================
   SUBTITLE
========================================== */

.productsHeading .subTitle {
    display: inline-block;

    margin-bottom: 15px;

    color: #28A745;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* Small green line */

.productsHeading .subTitle::after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin: 8px auto 0;

    background: #28A745;

    border-radius: 20px;
}


/* ==========================================
   MAIN HEADING
========================================== */

.productsHeading .heading {
    margin: 0 0 20px;

    color: #075C35;

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.5px;
}


/* Green heading text */

.productsHeading .heading span {
    color: #28A745;
}


/* ==========================================
   HEADING DESCRIPTION
========================================== */

.headingText {
    max-width: 680px;

    margin: auto;

    color: #66736D;

    font-size: 15px;

    line-height: 1.8;
}


/* ==========================================
   PRODUCTS GRID
========================================== */

.sectionCards {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}
/* ================= PRODUCTS SECTION ================= */

.productsSection {
    width: 100%;
    padding: 100px 7%;
    background: #f8faf9;
    overflow: hidden;
}

.productsIntro {
    max-width: 700px;
    margin: 15px auto 50px;
    text-align: center;
    color: #666;
    line-height: 1.8;
}

.productsSection .heading {
    text-align: center;
    margin-bottom: 10px;
}

.productsSection .heading span {
    color: #28A745;
}

.sectionCards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.sectionCard {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    min-height: 440px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sectionCard:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.13);
}

.cardImage {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.cardImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

.sectionCard:hover .cardImage img {
    transform: scale(1.08);
}

.cardContent {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cardContent h3 {
    font-size: 21px;
    color: #075C35;
    margin-bottom: 10px;
}

.cardContent p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #28A745;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: auto;
    transition: 0.3s ease;
}

.btn-circle:hover {
    background: #075C35;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-circle i {
    font-size: 22px;
}


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

@media (max-width: 1200px) {

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

}


@media (max-width: 992px) {

    .productsSection {
        padding: 80px 5%;
    }

    .sectionCards {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .productsSection {
        padding: 70px 5%;
    }

    .productsIntro {
        font-size: 14px;
        margin-bottom: 35px;
    }

    .sectionCards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sectionCard {
        min-height: auto;
    }

    .cardImage {
        height: 230px;
    }

    .cardContent {
        padding: 20px;
    }

}


@media (max-width: 400px) {

    .productsSection {
        padding: 60px 18px;
    }

    .cardImage {
        height: 200px;
    }

    .cardContent h3 {
        font-size: 19px;
    }

    .cardContent p {
        font-size: 13px;
    }

}


/* ==========================================
   PRODUCT CARD
========================================== */

.sectionCard {
    position: relative;

    min-height: 440px;

    padding: 18px;

    background: #FFFFFF;

    border: 1px solid #E2EAE5;

    border-radius: 20px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 8px 25px rgba(7, 92, 53, 0.06);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


/* ==========================================
   CARD TOP GREEN LINE
========================================== */

.sectionCard::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #28A745;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.4s ease;
}


.sectionCard:hover::before {
    transform: scaleX(1);
}


/* ==========================================
   CARD HOVER
========================================== */

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

    border-color: rgba(40, 167, 69, 0.35);

    box-shadow:
        0 20px 45px rgba(7, 92, 53, 0.13);
}


/* ==========================================
   PRODUCT IMAGE AREA
========================================== */

.sectionCard .icon {
    width: 100%;
    height: 190px;

    margin-bottom: 22px;

    background: #F4FBF6;

    border-radius: 15px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    transition: background 0.4s ease;
}


/* Decorative circle */

.sectionCard .icon::before {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background: rgba(40, 167, 69, 0.08);

    transition:
        transform 0.5s ease,
        background 0.5s ease;
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.sectionCard .icon img {
    position: relative;

    z-index: 2;

    width: 85%;
    height: 85%;

    object-fit: contain;

    transition:
        transform 0.5s ease;
}


/* ==========================================
   IMAGE HOVER
========================================== */

.sectionCard:hover .icon {
    background: #EAF8EF;
}


.sectionCard:hover .icon::before {
    transform: scale(1.35);

    background: rgba(40, 167, 69, 0.12);
}


.sectionCard:hover .icon img {
    transform: scale(1.08);
}


/* ==========================================
   CARD CONTENT
========================================== */

.cardContent {
    flex: 1;

    display: flex;

    flex-direction: column;
}


/* ==========================================
   PRODUCT CATEGORY
========================================== */

.productCategory {
    display: block;

    margin-bottom: 7px;

    color: #28A745;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* ==========================================
   PRODUCT TITLE
========================================== */

.sectionCard h3 {
    margin: 0 0 10px;

    color: #075C35;

    font-size: 18px;

    font-weight: 700;

    letter-spacing: 0.3px;

    transition: color 0.3s ease;
}


.sectionCard:hover h3 {
    color: #28A745;
}


/* ==========================================
   PRODUCT DESCRIPTION
========================================== */

.sectionCard p {
    margin: 0;

    color: #66736D;

    font-size: 13.5px;

    line-height: 1.7;

    flex: 1;
}


/* ==========================================
   PRODUCT BOTTOM
========================================== */

.productBottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 20px;
}


/* ==========================================
   PRODUCT CATEGORY BADGE
========================================== */

.sectionCard .products {
    width: fit-content;

    padding: 7px 12px;

    background: #EAF8EF;

    color: #08783F;

    border-radius: 30px;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.3;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.sectionCard:hover .products {
    background: #08783F;

    color: #FFFFFF;
}


/* ==========================================
   CIRCULAR ENQUIRY BUTTON
========================================== */

.btn-circle {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #28A745;

    color: #FFFFFF;

    border-radius: 50%;

    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* Arrow icon */

.btn-circle i {
    font-size: 22px;

    transition:
        transform 0.35s ease;
}


/* ==========================================
   BUTTON HOVER
========================================== */

.btn-circle:hover {
    background: #075C35;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(7, 92, 53, 0.25);
}


.btn-circle:hover i {
    transform: translateX(4px);
}


/* ==========================================
   BOTTOM CTA
========================================== */

.productsCTA {
    margin-top: 60px;

    padding: 30px 35px;

    background: #075C35;

    border-radius: 20px;

    display: flex;

    align-items: center;

    gap: 25px;

    box-shadow:
        0 15px 40px rgba(7, 92, 53, 0.15);
}


/* ==========================================
   CTA ICON
========================================== */

.ctaIcon {
    flex-shrink: 0;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.12);

    color: #FFFFFF;

    border-radius: 16px;
}


.ctaIcon i {
    font-size: 30px;
}


/* ==========================================
   CTA TEXT
========================================== */

.ctaText {
    flex: 1;
}


.ctaText h3 {
    margin: 0 0 7px;

    color: #FFFFFF;

    font-size: 20px;

    font-weight: 700;
}


.ctaText p {
    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 14px;

    line-height: 1.6;
}


/* ==========================================
   CTA BUTTON
========================================== */

.ctaButton {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 14px 23px;

    background: #28A745;

    color: #FFFFFF;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.ctaButton i {
    font-size: 19px;
}


.ctaButton:hover {
    background: #FFFFFF;

    color: #075C35;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   SAFMED SURGICALS
   CONTACT SECTION
========================================== */

.contactSection {
    width: 100%;
    padding: 110px 6%;

    background: #FFFFFF;

    position: relative;
    overflow: hidden;
}


/* Background decoration */

.contactSection::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(40, 167, 69, 0.04);

    top: -250px;
    left: -200px;

    pointer-events: none;
}


.contactSection::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background: rgba(7, 92, 53, 0.035);

    bottom: -180px;
    right: -150px;

    pointer-events: none;
}


/* ==========================================
   CONTAINER
========================================== */

.contactContainer {
    max-width: 1200px;

    margin: auto;

    position: relative;

    z-index: 2;
}


/* ==========================================
   HEADING
========================================== */

.contactHeading {
    max-width: 750px;

    margin: 0 auto 60px;

    text-align: center;
}


.contactTag {
    display: inline-block;

    margin-bottom: 15px;

    color: #28A745;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.contactTag::after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin: 8px auto 0;

    background: #28A745;

    border-radius: 20px;
}


.contactHeading h2 {
    margin: 0 0 20px;

    color: #075C35;

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 700;

    line-height: 1.2;
}


.contactHeading h2 span {
    color: #28A745;
}


.contactHeading p {
    max-width: 650px;

    margin: auto;

    color: #66736D;

    font-size: 15px;

    line-height: 1.8;
}


/* ==========================================
   MAIN CONTACT WRAPPER
========================================== */

.contactWrapper {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 30px;

    align-items: stretch;
}


/* ==========================================
   CONTACT INFORMATION
========================================== */

.contactInfo {
    padding: 45px 40px;

    background: #075C35;

    border-radius: 22px;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(7, 92, 53, 0.16);
}


/* Decorative circle */

.contactInfo::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    top: -130px;
    right: -130px;
}


.contactInfo::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);

    bottom: -100px;
    left: -100px;
}


/* ==========================================
   INFO TOP
========================================== */

.contactInfoTop {
    position: relative;

    z-index: 2;

    margin-bottom: 35px;
}


.contactSmallTitle {
    color: #7BE495;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}


.contactInfoTop h3 {
    margin: 12px 0 15px;

    color: #FFFFFF;

    font-size: 28px;

    line-height: 1.3;
}


.contactInfoTop p {
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;

    line-height: 1.8;
}


/* ==========================================
   CONTACT ITEMS
========================================== */

.contactItem {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 20px;

    padding: 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.contactItem:hover {
    background: rgba(255, 255, 255, 0.07);

    transform: translateX(5px);
}


/* Contact icon */

.contactIcon {
    flex-shrink: 0;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(40, 167, 69, 0.2);

    color: #7BE495;

    border-radius: 10px;
}


.contactIcon i {
    font-size: 22px;
}


.contactItem span {
    display: block;

    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


.contactItem a,
.contactItem p {
    margin: 0;

    color: #FFFFFF;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none;
}


.contactItem a:hover {
    color: #7BE495;
}


/* WhatsApp */

.whatsappIcon {
    background: rgba(37, 211, 102, 0.18);

    color: #25D366;
}


/* ==========================================
   TRUST BOX
========================================== */

.contactTrust {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.contactTrust > i {
    flex-shrink: 0;

    font-size: 35px;

    color: #7BE495;
}


.contactTrust strong {
    display: block;

    margin-bottom: 3px;

    color: #FFFFFF;

    font-size: 14px;
}


.contactTrust p {
    margin: 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 11px;

    line-height: 1.5;
}


/* ==========================================
   FORM BOX
========================================== */

.contactFormBox {
    padding: 45px;

    background: #F4FBF6;

    border: 1px solid #E2EAE5;

    border-radius: 22px;

    box-shadow:
        0 15px 45px rgba(7, 92, 53, 0.07);
}


/* ==========================================
   FORM HEADER
========================================== */

.formHeader {
    margin-bottom: 30px;
}


.formHeader > span {
    color: #28A745;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.formHeader h3 {
    margin: 8px 0 8px;

    color: #075C35;

    font-size: 27px;
}


.formHeader p {
    margin: 0;

    color: #66736D;

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================
   FORM ROW
========================================== */

.formRow {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


/* ==========================================
   FORM GROUP
========================================== */

.formGroup {
    margin-bottom: 18px;
}


.formGroup label {
    display: block;

    margin-bottom: 8px;

    color: #1B2A23;

    font-size: 12px;

    font-weight: 600;
}


/* ==========================================
   INPUT BOX
========================================== */

.inputBox {
    position: relative;

    display: flex;

    align-items: center;
}


.inputBox > i {
    position: absolute;

    left: 15px;

    color: #08783F;

    font-size: 18px;

    pointer-events: none;
}


.inputBox input,
.inputBox select,
.inputBox textarea {
    width: 100%;

    border: 1px solid #DCE7DF;

    outline: none;

    background: #FFFFFF;

    color: #1B2A23;

    border-radius: 10px;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


.inputBox input,
.inputBox select {
    height: 50px;

    padding: 0 15px 0 45px;
}


.inputBox textarea {
    min-height: 130px;

    padding: 15px 15px 15px 45px;

    resize: vertical;
}


.inputBox select {
    cursor: pointer;

    appearance: auto;
}


.inputBox input::placeholder,
.inputBox textarea::placeholder {
    color: #A3ADA7;
}


/* ==========================================
   INPUT FOCUS
========================================== */

.inputBox input:focus,
.inputBox select:focus,
.inputBox textarea:focus {
    border-color: #28A745;

    background: #FFFFFF;

    box-shadow:
        0 0 0 4px rgba(40, 167, 69, 0.08);
}


/* ==========================================
   SUBMIT BUTTON
========================================== */

.contactSubmit {
    width: 100%;

    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 10px;

    background: #28A745;

    color: #FFFFFF;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.contactSubmit i {
    font-size: 21px;

    transition: transform 0.3s ease;
}


.contactSubmit:hover {
    background: #075C35;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(7, 92, 53, 0.2);
}


.contactSubmit:hover i {
    transform: translateX(5px);
}


/* ==========================================
   FORM NOTE
========================================== */

.formNote {
    margin: 15px 0 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    color: #7B8781;

    font-size: 10px;
}


.formNote i {
    color: #28A745;

    font-size: 14px;
}

/*Footer Section*/
.safmed-footer{
    position: relative;
    width: 100%;
    background: #043d26;
    color: #ffffff;
    overflow: hidden;
}
.safmed-footer::before{
    content: "";
    position: absolute;
    width:450px;
    height:450px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.08);
    top:-280px;
    right:-150px;
    pointer-events:none;
}

.safmed-footer::after{
    content: "";
    position: absolute;
    width:300px;
    height:300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    top: -180px;
    right: -100px;
    pointer-events:none;
}
.footer-container{
    width: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 75px 6% 25px;
    position: relative;
    z-index: 2;
}

.footer-main{
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 55px;
    padding-bottom: 55px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);;
}

.footer-brand{
    display: inline-block;
    margin-bottom: 20px;
}
.footer-logo img{
    width: 170px;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-brand p{
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.8;
}
.footer-social{
    display: flex;
    gap: 10px;
}

.footer-social a{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease;
}
.footer-social a i{
    font-size: 18px;
}
.footer-social a:hover{
    background: #28A745;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.25);
}
.footer-column h3{
    position: relative;
    margin: 0 0 25px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}
.footer-column h3::after{
    content: "";
    display: block;
    width: 35px;
    height: 3px;
    margin-top: 9px;
    background: #28A745;
    border-radius: 20px;
}
.footer-column ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-column ul li{
    margin-bottom: 13px;
}
.footer-column ul li a{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s ease;
}
.footer-column ul li a i{
    color: #28A745;
    font-size: 17px;
    transition: 0.3s ease;
}
.footer-column ul li a:hover{
    color: #ffffff;
    transform: translateX(5px);
}
.footer-column ul li a:hover i{
    color: #7BE495;
}
.footer-contact-item{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.footer-contact-icon{
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.13);
    color: #7BE495;
    border-radius: 9px;
}
.footer-contact-icon i{
    font-size: 18px;
}
.footer-contact-item span{
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.40);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
}
.footer-contact-item a,
.footer-contact-item p{
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}
.footer-contact-item a:hover{
    color: #7BE495;
}
.footer-cta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 35px 0;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}
.footer-cta-content span{
    color: #7BE495;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.footer-cta-content h3{
    margin: 7px 0 0;
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
}
.footer-cta-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 23px;
    background: #28A745;
    columns: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease;
}
.footer-cat-btn i{
    font-size: 19px;
}
.footer-cat-btn:hover{
    background: #ffffff;
    color: #075C35;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.footer-bottom{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-bottom p{
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
}

/* =========================================================
   RESPONSIVE DESIGN
   MOBILE / TABLET / LAPTOP
========================================================= */


/* =========================================================
   LARGE TABLETS / SMALL LAPTOPS
========================================================= */

@media (max-width: 1200px) {

    .topbar,
    .navbar {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero {
        padding: 60px 5%;
        gap: 35px;
    }

    .about {
        padding: 80px 5%;
        gap: 45px;
    }

    .stats-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .why-safmed,
    .productsSection,
    .contactSection {
        padding-left: 5%;
        padding-right: 5%;
    }

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

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 992px) {

    /* ---------- TOPBAR ---------- */

    .topbar {
        padding: 10px 4%;
        justify-content: center;
    }

    .topbar-left {
        justify-content: center;
        gap: 15px;
    }

    .topbar-right {
        display: none;
    }


    /* ---------- NAVIGATION ---------- */

    .navbar {
        padding: 14px 5%;
        position: sticky;
        top: 0;
    }

    .logo img {
        width: 105px;
        
    }

    .appointment-btn {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 10001;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 25px 5%;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        background: var(--dark);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;

        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 15px;
    }

    .nav-links a::after {
        display: none;
    }


    /* ---------- HERO ---------- */

    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 70px 6%;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .buttons {
        justify-content: center;
    }

    .hero-right {
        width: 100%;
        min-height: 380px;
    }

    .hero-image {
        height: 380px;
    }

    .progress-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }


    /* ---------- ABOUT ---------- */

    .about {
        flex-direction: column;
        padding: 80px 6%;
        text-align: center;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-left img {
        margin: 0 auto;
        max-width: 600px;
        height: 500px;
    }

    .about-right .buttons {
        justify-content: center;
    }

    .features {
        text-align: left;
    }


    /* ---------- STATS ---------- */

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }


    /* ---------- WHY SECTION ---------- */

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* ---------- PRODUCTS ---------- */

    .productsSection {
        padding: 80px 6%;
    }

    .sectionCards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sectionCard {
        min-height: 430px;
    }


    /* ---------- PRODUCT CTA ---------- */

    .productsCTA {
        flex-direction: column;
        text-align: center;
    }


    /* ---------- CONTACT ---------- */

    .contactWrapper {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE DEVICES
========================================================= */

@media (max-width: 768px) {

    /* ---------- TOPBAR ---------- */

    .topbar {
        padding: 8px 4%;
    }

    .topbar-left {
        width: 100%;
        justify-content: center;
        gap: 10px 15px;
        font-size: 11px;
    }

    .topbar-left span {
        gap: 4px;
    }

    .topbar-left .bx {
        font-size: 14px;
    }


    /* ---------- NAVBAR ---------- */

    .navbar {
        padding: 12px 5%;
    }

    .logo img {
        width: 95px;
    }


    /* ---------- HERO ---------- */

    .hero {
        padding: 55px 5%;
    }

    .hero-text h1 {
        font-size: clamp(32px, 9vw, 48px);
        letter-spacing: -0.8px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-text > p {
        font-size: 13px;
        line-height: 1.8;
    }

    .hero .buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero .btn-primary,
    .hero .watch {
        width: 100%;
        justify-content: center;
    }

    .hero-right {
        min-height: 320px;
    }

    .hero-image {
        height: 320px;
    }

    .progress-card {
        width: calc(100% - 20px);
        max-width: 340px;
        padding: 14px;
    }


    /* ---------- ABOUT ---------- */

    .about {
        padding: 65px 5%;
    }

    .about-left img {
        height: 380px;
    }

    .heading {
        font-size: clamp(30px, 8vw, 42px);
    }

    .desc {
        font-size: 13px;
    }

    .features {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 12px;
    }

    .about-right .buttons {
        flex-direction: column;
        width: 100%;
    }

    .about-right .buttons .btn-primary,
    .about-right .buttons .phone {
        width: 100%;
        justify-content: center;
    }


    /* ---------- STATS ---------- */

    .stats-section {
        padding: 65px 5%;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stat-box {
        padding: 30px 20px;
    }


    /* ---------- WHY ---------- */

    .why-safmed {
        padding: 65px 5%;
    }

    .why-heading {
        margin-bottom: 40px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .why-card {
        padding: 30px 23px;
    }


    /* ---------- PRODUCTS ---------- */

    .productsSection {
        padding: 65px 5%;
    }

    .productsHeading {
        text-align: center;
    }

    .productsHeading .heading {
        font-size: clamp(30px, 8vw, 42px);
    }

    .headingText {
        font-size: 13px;
    }

    .sectionCards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sectionCard {
        min-height: auto;
    }

    .sectionCard .icon {
        height: 220px;
    }

    .sectionCard .icon img {
        width: 75%;
        height: 85%;
    }

    .productBottom {
        margin-top: 25px;
    }

    .btn-circle {
        width: 48px;
        height: 48px;
    }


    /* ---------- PRODUCTS CTA ---------- */

    .productsCTA {
        padding: 25px 20px;
        gap: 18px;
    }

    .ctaText h3 {
        font-size: 20px;
    }

    .ctaText p {
        font-size: 13px;
    }

    .ctaButton {
        width: 100%;
        justify-content: center;
    }


    /* ---------- CONTACT ---------- */

    .contactSection {
        padding: 65px 5%;
    }

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

    .formRow {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    body {
        width: 100%;
        overflow-x: hidden;
    }

    .topbar-left {
        flex-direction: column;
        gap: 5px;
    }

    .navbar {
        padding: 10px 4%;
    }

    .logo img {
        width: 85px;
    }

    .hamburger {
        width: 38px;
        height: 38px;
    }

    .hamburger span {
        width: 23px;
    }


    /* HERO */

    .hero {
        padding: 45px 4%;
    }

    .hero-text h1 {
        font-size: 31px;
    }

    .tag {
        font-size: 10px;
        padding: 8px 14px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-text > p {
        font-size: 12px;
    }

    .hero-image {
        height: 270px;
    }

    .hero-right {
        min-height: 290px;
    }

    .progress-card {
        width: 95%;
        padding: 12px;
    }


    /* ABOUT */

    .about {
        padding: 55px 4%;
    }

    .about-left img {
        height: 300px;
        border-radius: 15px;
    }

    .heading {
        font-size: 29px;
    }

    .subTitle {
        font-size: 12px;
    }


    /* STATS */

    .stats-section {
        padding: 55px 4%;
    }

    .stat-box {
        padding: 28px 15px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon i {
        font-size: 28px;
    }

    .stat-number {
        font-size: 40px;
    }


    /* WHY */

    .why-safmed {
        padding: 55px 4%;
    }

    .why-heading h2 {
        font-size: 29px;
    }


    /* PRODUCTS */

    .productsSection {
        padding: 55px 4%;
    }

    .sectionCard {
        padding: 15px;
        border-radius: 16px;
    }

    .sectionCard .icon {
        height: 190px;
    }

    .sectionCard h3 {
        font-size: 17px;
    }

    .sectionCard p {
        font-size: 12.5px;
    }

    .productBottom {
        align-items: center;
    }

    .sectionCard .products {
        max-width: 75%;
        font-size: 9px;
    }

    .btn-circle {
        width: 44px;
        height: 44px;
    }


    /* CONTACT */

    .contactSection {
        padding: 55px 4%;
    }

}



/* =========================================================
   FINAL RESPONSIVE FIXES — PRODUCTS CTA, FOOTER & LOGOS
   Keep this block at the VERY END of style.css.
========================================================= */

/* Prevent children and long text from forcing horizontal overflow. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

/* ---------- LOGOS ---------- */

.footer-brand {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 185px;
    max-width: 100%;
    min-height: 82px;
    margin-bottom: 20px;
    padding: 9px 14px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.footer-logo img {
    display: block;
    width: 100%;
    max-width: 160px;
    height: 64px;
    object-fit: contain;
    object-position: center;
}

/* ---------- PRODUCTS CTA ---------- */
.productsCTA {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 35px auto 0;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: #eef8f3;
    border: 1px solid rgba(0, 90, 53, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 61, 38, 0.07);
}

.productsCTA .ctaIcon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #005A35;
    border-radius: 15px;
}

.productsCTA .ctaIcon i {
    font-size: 29px;
}

.productsCTA .ctaText {
    flex: 1 1 auto;
    min-width: 0;
}

.productsCTA .ctaText h3 {
    margin: 0 0 7px;
    color: #003D26;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.productsCTA .ctaText p {
    margin: 0;
    color: #64756d;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.productsCTA .ctaButton {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    color: #ffffff;
    background: #005A35;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease;
}

.productsCTA .ctaButton:hover {
    background: #20aaa8;
    transform: translateY(-2px);
}

/* ---------- FOOTER DESKTOP ---------- */
.safmed-footer {
    width: 100%;
    overflow: hidden;
}

.footer-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 70px 5% 25px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr)
                           minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 35px;
    align-items: start;
    padding-bottom: 45px;
}

.footer-brand,
.footer-column,
.footer-contact {
    min-width: 0;
}

.footer-brand p,
.footer-column a,
.footer-contact-item a,
.footer-contact-item p {
    overflow-wrap: anywhere;
    word-break: normal;
}

.footer-column ul li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

.footer-column ul li a {
    max-width: 100%;
}

.footer-contact-item {
    min-width: 0;
}

.footer-contact-item > div:last-child {
    min-width: 0;
}

.footer-contact-item a,
.footer-contact-item p {
    display: inline-block;
    max-width: 100%;
}

.footer-cta {
    min-width: 0;
}

.footer-cta-content {
    min-width: 0;
}

.footer-cta-content h3 {
    line-height: 1.45;
}

.footer-cta-btn {
    color: #ffffff;
}

.footer-cta-btn i {
    font-size: 19px;
}

.footer-cta-btn:hover {
    background: #ffffff;
    color: #075C35;
    transform: translateY(-3px);
}

.footer-bottom {
    flex-wrap: wrap;
}

/* ---------- LARGE TABLETS ---------- */
@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 45px;
        row-gap: 38px;
    }

    .footer-brand {
        max-width: 460px;
    }

    .productsCTA {
        padding: 25px;
    }
}

/* ---------- TABLETS / SMALL SCREENS ---------- */
@media (max-width: 768px) {
    .productsCTA {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 16px;
        padding: 22px;
    }

    .productsCTA .ctaText {
        flex: 1 1 calc(100% - 78px);
    }

    .productsCTA .ctaButton {
        margin-left: 74px;
    }

    .footer-container {
        padding: 55px 6% 22px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 28px;
    }

    .footer-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .footer-cta-btn {
        align-self: flex-start;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
    .logo a {
        width: 140px;
        height: 61px;
        padding: 5px 9px;
    }

    .logo img {
        max-width: 125px;
    }

    .productsCTA {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 13px;
        margin-top: 25px;
        padding: 18px;
        border-radius: 14px;
    }

    .productsCTA .ctaIcon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .productsCTA .ctaIcon i {
        font-size: 24px;
    }

    .productsCTA .ctaText {
        width: 100%;
    }

    .productsCTA .ctaText h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    .productsCTA .ctaText p {
        font-size: 12px;
        line-height: 1.65;
    }

    .productsCTA .ctaButton {
        grid-column: 2;
        justify-self: start;
        margin: 2px 0 0;
        min-height: 43px;
        padding: 10px 18px;
        font-size: 12px;
    }

    .footer-container {
        padding: 48px 20px 20px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-bottom: 35px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .footer-brand p {
        max-width: 420px;
        margin: 0 auto 20px;
        font-size: 12px;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-column h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-column ul li {
        align-items: center;
    }

    .footer-column ul li a {
        justify-content: center;
    }

    .footer-contact {
        width: 100%;
    }

    .footer-contact h3 {
        text-align: center;
    }

    .footer-contact h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact-item {
        width: min(100%, 310px);
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .footer-cta {
        align-items: center;
        text-align: center;
        gap: 18px;
        margin: 28px 0;
        padding: 22px 18px;
    }

    .footer-cta-content h3 {
        font-size: 17px;
    }

    .footer-cta-btn {
        align-self: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom p {
        width: 100%;
        line-height: 1.7;
    }
}

/* ---------- VERY SMALL MOBILE ---------- */
@media (max-width: 380px) {
    .logo a {
        width: 125px;
        height: 56px;
        padding: 4px 7px;
    }

    .logo img {
        max-width: 112px;
    }

    .productsCTA {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .productsCTA .ctaIcon {
        width: 42px;
        height: 42px;
    }

    .productsCTA .ctaButton {
        font-size: 11px;
        padding: 9px 15px;
    }

    .footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-logo {
        width: 165px;
        min-height: 74px;
    }

    .footer-logo img {
        height: 56px;
    }
}
