/* =========================================
   MEDISTUDIES – Main Stylesheet
   ========================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-dark:    #0f2d6b;
    --blue-main:    #1a4db8;
    --blue-light:   #2563eb;
    --blue-pale:    #e8f0fe;
    --yellow:       #f59e0b;
    --yellow-dark:  #d97706;
    --white:        #ffffff;
    --gray-bg:      #f4f7fb;
    --gray-text:    #64748b;
    --dark-text:    #1e293b;
    --border:       #e2e8f0;
    --dark-section: #0b1e4f;
    --white-trans: rgba(255, 255, 255, 0.7);

    --font:         'Inter', system-ui, sans-serif;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 4px 24px rgba(15, 45, 107, .10);
    --shadow-md:    0 8px 40px rgba(15, 45, 107, .15);
    --transition:   .25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--dark-text);
    line-height: 1.65;
    background-image: url('/images/medistudies_body_bg.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    /* overflow-x must NOT be set here – it clips position:fixed elements on mobile */
}
/* horizontal overflow guard lives on a wrapper, not body */
body > *:not(#nav-backdrop) { max-width: 100vw; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 13px 26px;
    white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 13px; }

.btn-primary {
    background: var(--blue-main);
    color: var(--white);
    border-color: var(--blue-main);
}
.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--blue-main);
    border-color: var(--blue-main);
}
.btn-outline:hover {
    background: var(--blue-main);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--dark-text);
    border-color: var(--yellow);
    font-weight: 700;
}
.btn-yellow:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
    transform: translateY(-1px);
}

/* ---------- SECTION SHARED ---------- */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-gray  { background: var(--gray-bg); }
.section-dark  { background: var(--dark-section); }
.section-transparent { background: transparent; }

.section-title {
    text-align: center;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 48px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    background: var(--blue-main);
    border-radius: 2px;
    margin: 14px auto 0;
}
.section-title-white { color: var(--white); }
.section-title-white::after { background: var(--yellow); }

/* ---------- GRIDS ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ---------- ICON BOX ---------- */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.icon-blue {
    background: var(--blue-pale);
    color: var(--blue-main);
}
.icon-light {
    background: rgba(255,255,255,.12);
    color: var(--white);
}

/* ---------- LINK ARROW ---------- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--blue-main);
    transition: var(--transition);
}
.link-arrow:hover { gap: 10px; color: var(--blue-dark); }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
/* Solid white when mobile menu is open (even at page top) */
.navbar.menu-open {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom-color: var(--border) !important;
}
.navbar.menu-open .nav-links li a  { color: var(--dark-text); }
.navbar.menu-open .nav-phone       { color: var(--dark-text); }
.navbar.menu-open .nav-phone i     { color: var(--blue-main); }
.navbar.menu-open .nav-logo-img    { filter: none; }
.navbar.menu-open .hamburger span  { background: var(--dark-text); }

/* Solid white once the user scrolls past the hero */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(15, 45, 107, .12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
}



.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo-img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-links li a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 14px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-links li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}
/* Switch to dark text after scroll */
.navbar.scrolled .nav-links li a { color: var(--gray-text); }
.navbar.scrolled .nav-links li a:hover { color: var(--blue-main); background: var(--blue-pale); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}
.nav-phone i { color: rgba(255, 255, 255, 0.8); transition: var(--transition); }
.navbar.scrolled .nav-phone { color: var(--dark-text); }
.navbar.scrolled .nav-phone i { color: var(--blue-main); }

/* Logo invert to white when transparent, restore on scroll */
.nav-logo-img { filter: brightness(0) invert(1); transition: filter .35s ease; }
.navbar.scrolled .nav-logo-img { filter: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO  –  full-width banner with overlay
   ========================================= */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 160px 0 80px; /* top padding accounts for the fixed navbar height */
}

/* Background image layer */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
/* Gradient overlay: dark on the left, fading to semi-transparent on the right */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(10, 28, 80, 0.82) 0%,
        rgba(10, 28, 80, 0.65) 50%,
        rgba(10, 28, 80, 0.25) 100%
    );
}

/* Content sits above the image */
.hero .container { 
    position: relative; 
    z-index: 1; 
}

.hero-content {
    max-width: 600px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-checklist { margin-bottom: 36px; }
.hero-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 10px;
}
.hero-checklist li i {
    color: var(--yellow);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating decorative icons */
.hero-float {
    position: absolute;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    animation: floatBounce 3s ease-in-out infinite;
}
.hero-float-heart {
    top: 18%;
    right: 12%;
    background: #fff0f0;    
    color: #e74c3c;
    animation-delay: 0s;
}
.hero-float-dna {
    bottom: 22%;
    right: 22%;
    background: var(--blue-pale);
    color: var(--blue-main);
    animation-delay: 1.5s;
}
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* =========================================
   FOR WHOM
   ========================================= */
.for-whom .card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.for-whom .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card-center { text-align: center; }
.card-center .icon-box { margin: 0 auto 20px; }
.card-center h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card-center p { font-size: 14px; color: var(--gray-text); }

/* =========================================
   PROGRAMS
   ========================================= */
.card-program {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.card-program:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-program-thumb {
    position: relative;
    height: 200px;
    background: var(--blue-pale);
}
.card-program-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-program-icon {
    position: absolute;
    bottom: -22px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--blue-main);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(26,77,184,.35);
}

.card-body {
    padding: 36px 24px 24px;
}
.card-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-text);
}
.card-body p {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 16px;
}

/* =========================================
   HOW IT WORKS
   ========================================= */

.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.step {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    position: relative;
}
.step-num {
    width: 32px;
    height: 32px;
    background: var(--blue-main);
    color: var(--white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.step-icon-wrap {
    width: 68px;
    height: 68px;
    background: var(--blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--blue-main);
    margin: 0 auto 16px;
    transition: var(--transition);
}
.step:hover .step-icon-wrap {
    background: var(--blue-main);
    color: var(--white);
    transform: scale(1.08);
}
.step h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}
.step p { font-size: 13px; color: var(--gray-text); }

.step-line {
    flex: 0 0 28px;
    height: 2px;
    background: var(--border);
    border-top: 2px dashed var(--blue-main);
    opacity: .4;
    margin-top: 52px;
    align-self: flex-start;
}

/* =========================================
   ΤΡΟΠΟΙ ΠΑΡΑΚΟΛΟΥΘΗΣΗΣ
   ========================================= */

/* Header */
.tropoi-header {
    text-align: center;
    margin-bottom: 48px;
}

.tropoi-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--blue-main);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}
.tropoi-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}
.tropoi-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 14px;
    line-height: 1.2;
}
.tropoi-desc {
    font-size: 15px;
    color: var(--gray-text);
    max-width: 580px;
    margin: 0 auto;
}

/* Cards row */
.tropoi-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.tropoi-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 340px;
    display: flex;
    align-items: flex-end;        /* content sits at the bottom-left */
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.tropoi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(15,45,107,.22); }

/* Gradient overlay — dark at the bottom where text lives */
.tropoi-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 28, 80, 0.82);
    z-index: 0;
}

.tropoi-card-body {
    position: relative;
    z-index: 1;
    padding: 32px 28px;
    width: 100%;
    text-align: left;
}
.tropoi-card-body h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}
.tropoi-card-body hr {
    border: 1.5px solid var(--yellow-dark);
    margin-bottom: 10px;
    width:50px;
    padding-top:0 !important;
    line-height:0;
}
.tropoi-card-body > p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Feature list */
.tropoi-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tropoi-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}
.tropoi-features li i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    flex-shrink: 0;
}

/* Bottom info bar */
.tropoi-infobar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    gap: 20px;
}
.tropoi-infobar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.tropoi-infobar-icon {
    width: 52px;
    height: 52px;
    background: var(--blue-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    flex-shrink: 0;
}
.tropoi-infobar-left strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 4px;
}
.tropoi-infobar-left p {
    font-size: 13.5px;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.6;
}
.tropoi-infobar-pin {
    width: 44px;
    height: 44px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

/* =========================================
   WHY US
   ========================================= */
/* .why-us {
    background: url('images/why_us_background.png') center center / cover no-repeat;
} */

/* ---- Header (two-column) ---- */
.why-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 52px;
}

.why-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--blue-main);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.why-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1.15;
    margin-bottom: 10px;
}
.why-subtitle {
    font-size: 12px;
    font-weight: 800;
    color: var(--yellow-dark);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.why-desc {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.75;
}

/* Stats 2×2 grid */
.why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.why-stat-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    padding: 22px 20px 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.why-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.why-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}
.why-stat-num {
    font-size: 44px;
    font-weight: 800;
    color: var(--blue-main);
    line-height: 1;
}
.why-stat-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--blue-main);
    flex-shrink: 0;
}
.why-stat-divider {
    width: 32px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
    margin-bottom: 12px;
}
.why-stat-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 6px;
}
.why-stat-card p {
    font-size: 12.5px;
    color: var(--gray-text);
    line-height: 1.6;
}

/* ---- Two cards ---- */
.why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.why-card {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
}

.why-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.why-card-head h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 4px;
}
.why-card-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--yellow-dark);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.why-card > p {
    font-size: 13.5px;
    color: var(--gray-text);
    line-height: 1.75;
    margin-bottom: 22px;
}

/* Mini steps inside left card */
.why-mini-steps {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.why-mini-step {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 12px;
    color: var(--dark-text);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
}
.why-mini-num {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    background: var(--blue-main);
    color: var(--white);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.why-mini-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blue-main);
    flex-shrink: 0;
    position: relative;
}

/* Info highlight box inside right card */
.why-info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #eef3fb;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-top: auto;
}
.why-info-icon {
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}
.why-info-box p {
    font-size: 13px;
    color: var(--dark-text);
    line-height: 1.65;
    margin: 0;
}

/* ---- Bottom feature strip ---- */
.why-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.why-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
}
.why-feature:last-child { border-right: none; }
.why-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blue-main);
    flex-shrink: 0;
}



/* =========================================
   STUDENT GAINS
   ========================================= */
.student-gains {
    background: url('images/student_gains_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.student-gains .gain-item {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(15, 45, 107, 0.08);
    transition: var(--transition);
}
.student-gains .gain-item:hover {
    background: rgba(255, 255, 255, 0.97);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.gain-item .icon-box { margin: 0 auto 16px; }
.gain-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.gain-item p { font-size: 13px; color: var(--gray-text); }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--blue-pale);
}
.testimonial-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-text);
}
.testimonial-info span {
    font-size: 12px;
    color: var(--gray-text);
}

.stars {
    color: var(--yellow);
    font-size: 14px;
    gap: 2px;
    display: flex;
    margin-bottom: 12px;
}
.testimonial-card > p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
}

/* =========================================
   NEWS
   ========================================= */
.news-card {
    background: var(--white-trans);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.news-thumb {
    position: relative;
    height: 180px;
    background: var(--blue-pale);
    overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

.news-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--blue-main);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-card .card-body h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 14px;
    color: var(--dark-text);
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--dark-section) 100%);
    padding: 72px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-text h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 10px;
}
.cta-text p { font-size: 15px; color: rgba(255,255,255,.7); }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-image: url('/images/footer-bg.png');
    background-size: cover;
    background-position: center;
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}
.footer-logo-img {
    height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}
.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}
.social-links a:hover { background: var(--blue-main); color: var(--white); }

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin-bottom: 10px;
}
.footer-contact-list li i { color: var(--blue-light); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--white); }

/* =========================================
   MOBILE NAV BACKDROP
   ========================================= */
#nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1800;
}
#nav-backdrop.active { display: block; }

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

@media (min-width: 1025px) {
    .container.nav-inner  {
        margin:0;
        width:100%;
        max-width:100%;
    }

    .nav-right {
        position:absolute;
        right:0;
        padding-right:20px;
    }

    .hero .container { 
        margin:0;
        padding:0 80px;
    }

    .student-gains {
        padding-top:200px;
    }
}

/* Large tablet */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .steps-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
    .step-line { display: none; }
}

/* Large tablet */
@media (max-width: 900px) {
    .why-header { padding: 0 20px; }
}

/* Tablet */
@media (max-width: 768px) {
    .section { padding: 60px 0; }

    /* Navbar */
    .nav-inner   { height: 72px; }
    .nav-logo-img { height: 52px; }
    .hamburger   { display: flex; }

    /* Drawer – starts below the navbar, fills rest of screen */
    .nav-right {
        position: fixed;
        top: 72px;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);       /* dynamic viewport on mobile */
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 40px;
        overflow-y: auto;
        box-shadow: -4px 0 24px rgba(15, 45, 107, .18);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1900;
    }
    .nav-right.open { transform: translateX(0); }

    /* Nav links – always dark inside the drawer */
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .nav-links li a {
        display: block;
        padding: 15px 24px;
        border-radius: 0;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid var(--border);
        color: var(--dark-text) !important;
        background: transparent !important;
    }
    .nav-links li a:hover {
        background: var(--gray-bg) !important;
        color: var(--blue-main) !important;
    }
    .nav-actions { padding: 20px 24px 0; }
    .nav-actions .nav-phone {
        display: flex;
        font-size: 15px;
        font-weight: 600;
        color: var(--dark-text) !important;
    }
    .nav-actions .nav-phone i { color: var(--blue-main) !important; }
    .nav-actions .btn { display: none; }

    /* Hero */
    .hero { min-height: 520px; padding: 80px 0 60px; }
    .hero-content { max-width: 100%; }
    .hero-float-heart { top: 10%; right: 5%; }
    .hero-float-dna   { bottom: 12%; right: 10%; }

    /* Grids */
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }

    /* Tropoi */
    .tropoi-cards { grid-template-columns: 1fr; }
    .tropoi-card { min-height: 300px; }
    .tropoi-infobar { flex-direction: column; text-align: center; }
    .tropoi-infobar-left { flex-direction: column; text-align: center; }
    .tropoi-infobar-pin { display: none; }

    /* Why Us */
    .why-header { grid-template-columns: 1fr; gap: 32px; }
    .why-stats   { grid-template-columns: 1fr 1fr; }
    .why-cards   { grid-template-columns: 1fr; }

    .why-features { grid-template-columns: 1fr 1fr; }
    .why-feature { border-bottom: 1px solid var(--border); }
    .why-feature:nth-child(even) { border-right: none; }

    /* Steps */
    .steps-row { grid-template-columns: 1fr 1fr; }

    /* CTA */
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-btns { justify-content: center; }
}

/* Mobile */
@media (max-width: 480px) {
    body {background-image: url('/images/medistudies_body_bg_mobile.png');
        background-size: cover;
        background-position: center top;
        background-attachment: fixed;}
    .hero-overlay {
        background:linear-gradient( 100deg, rgba(155, 160, 175, 0.82) 0%, rgba(31, 51, 111, 0.65) 50%, rgba(10, 28, 80, 0.25) 100% );
    }    
    .hero-content h1,
    .hero-desc,
    .hero-checklist {
        text-shadow:0px 2px 2px rgba(0,0,0,0.6);
    }    
    .why-stats   { grid-template-columns: 1fr; }
    .why-features { grid-template-columns: 1fr; }
    .why-feature  { border-right: none; }
    .why-mini-steps { flex-direction: column; gap: 14px; }
    .grid-4 { grid-template-columns: 1fr; }
    .student-gains { background: url('images/student_gains_background_mobile.png');
        background-size: cover;
        background-position: unset;
        background-repeat: no-repeat;}

    .steps-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { min-height: 480px; padding: 70px 0 50px; }
    .hero-float { display: none; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .cta-btns { flex-direction: column; align-items: center; }
    .btn { justify-content: center; width: 100%; max-width: 360px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
