/* ===== CSS Variables ===== */
:root {
    --primary: #1a3a5c;
    --primary-dark: #0d1f33;
    --secondary: #c9a227;
    --secondary-light: #e6c44a;
    --accent: #2e7d32;
    --background: #f3f7fb;
    --background-light: #fffdf8;
    --text: #2c3e50;
    --text-light: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #f3f7fb;
    overflow-x: hidden;
}

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

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-up.delay-3 {
    animation-delay: 0.6s;
}

.animate-fade-up.delay-4 {
    animation-delay: 0.8s;
}

.animate-slide-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

.animate-slide-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-scale-up {
    opacity: 0;
    animation: scaleUp 0.6s ease forwards;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    max-height: 90px;
    overflow: hidden;
}

.header.scrolled {
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    max-width: 300px;
    flex-shrink: 1;
    min-width: 0;
}

.logo-mark,
.logo-wordmark {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-mark {
    align-items: center;
    flex-shrink: 0;
}

.logo-mark small {
    margin-top: 1px;
    color: #a87d12;
    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-wordmark {
    justify-content: center;
}

.logo:hover,
.logo:visited,
.logo:active {
    text-decoration: none !important;
}

.logo-image {
    height: 50px !important;
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    border: none;
    outline: none;
}

.logo-text {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    border-bottom: none;
}

.logo-powered {
    display: block;
    margin-top: 1px;
    color: #7a8793;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

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

.nav-franchise-link {
    margin-left: -10px;
    padding: 10px 17px;
    color: #ffffff;
    background: linear-gradient(135deg, #d22f2f, #ae1e27);
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(174, 30, 39, 0.22);
}

.nav-franchise-link:hover,
.nav-franchise-link.active {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(174, 30, 39, 0.3);
}

.nav-franchise-link::after {
    display: none;
}

.nav-student-link {
    margin-left: -22px;
    padding: 10px 17px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(26, 58, 92, 0.2);
}

.nav-student-link:hover,
.nav-student-link.active {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 58, 92, 0.28);
}

.nav-student-link::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    background:
        radial-gradient(circle at 78% 35%, rgba(201, 162, 39, 0.16), transparent 27%),
        radial-gradient(circle at 12% 82%, rgba(57, 116, 168, 0.12), transparent 30%),
        linear-gradient(135deg, #fffdf6 0%, #edf5fc 48%, #e7f0f8 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 58, 92, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: pulse 6s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 58px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
}

.hero-buttons .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
    border: none;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.45);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: white;
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.stat-number {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1;
}

.stat-plus {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
}

.hero-main-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 58, 92, 0.2);
    z-index: 2;
}

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

.hero-main-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}

.hero-float-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.float-card-content {
    padding: 12px 15px;
    background: white;
}

.float-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Playfair Display', Georgia, serif;
}

.float-text {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.float-card-1 {
    top: 40px;
    right: 0;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 60px;
    left: 0;
    animation-delay: 2s;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(26, 58, 92, 0.1) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.1);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about {
    background:
        radial-gradient(circle at 8% 15%, rgba(201, 162, 39, 0.11), transparent 24%),
        radial-gradient(circle at 92% 82%, rgba(43, 112, 165, 0.12), transparent 26%),
        linear-gradient(180deg, #fffdf8 0%, #f4f8fc 100%);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.director-message {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 34px;
    background: linear-gradient(135deg, #ffffff 0%, #f2f7fb 100%);
    border: 1px solid rgba(29, 77, 117, 0.1);
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(22, 63, 96, 0.1);
}

.director-message::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -70px;
    width: 220px;
    height: 220px;
    border: 36px solid rgba(201, 162, 39, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.director-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.director-message h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 29px;
    color: var(--primary);
    margin-bottom: 24px;
}

.director-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.director-photo {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    height: 240px;
    overflow: hidden;
    background: #3d4650;
    border: 5px solid #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 0 2px var(--secondary), 0 16px 30px rgba(13, 48, 78, 0.2);
}

.director-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 68%, rgba(7, 31, 52, 0.18));
    pointer-events: none;
}

.director-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: none;
}

.director-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.director-info h4 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 4px;
}

.director-info p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.director-quote {
    margin-top: 20px;
    font-style: italic;
    color: var(--text);
    line-height: 1.75;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.72);
    border-left: 4px solid var(--secondary);
    border-radius: 0 12px 12px 0;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mission, .vision {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(29, 77, 117, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(22, 63, 96, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission {
    background:
        radial-gradient(circle at 100% 0%, rgba(75, 149, 210, 0.18), transparent 42%),
        rgba(225, 240, 252, 0.72);
    border-color: rgba(47, 111, 162, 0.16);
    backdrop-filter: blur(10px);
}

.vision {
    background:
        radial-gradient(circle at 100% 0%, rgba(72, 169, 115, 0.16), transparent 42%),
        rgba(231, 247, 237, 0.7);
    border-color: rgba(53, 139, 91, 0.15);
    backdrop-filter: blur(10px);
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(22, 63, 96, 0.13);
}

.mission h4, .vision h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 15px;
}

.mission h4::before,
.vision h4::before {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #327bb1);
    border-radius: 10px;
    font-size: 16px;
}

.mission h4::before {
    content: '◆';
}

.vision h4::before {
    content: '✦';
}

.mission p {
    color: var(--text);
    line-height: 1.7;
}

.mission p + p {
    margin-top: 14px;
}

.vision ul {
    list-style: none;
}

.vision li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.6;
}

.vision li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.affiliations, .scholarships {
    padding: 27px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(29, 77, 117, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(22, 63, 96, 0.08);
}

.affiliations h4, .scholarships h4 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.affiliation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 11px;
    background: #f5f8fb;
    border: 1px solid rgba(29, 77, 117, 0.08);
    border-radius: 12px;
    font-size: 12px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.affiliation-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
}

.affiliation-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 10px;
}

.affiliation-item span {
    color: var(--text);
    font-weight: 500;
}

.scholarship-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scholarships {
    flex: 1;
    background:
        radial-gradient(circle at 100% 100%, rgba(201, 162, 39, 0.2), transparent 42%),
        rgba(252, 246, 222, 0.68);
    border-color: rgba(201, 162, 39, 0.18);
    backdrop-filter: blur(10px);
}

.scholarship-intro {
    margin: -5px 0 20px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.scholarship-note {
    margin-top: 20px;
    padding-top: 16px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.6;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.scholarship-tag {
    background: rgba(201, 162, 39, 0.12);
    color: #aa7e0c;
    padding: 8px 15px;
    border: 1px solid rgba(201, 162, 39, 0.13);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== Associated Institutions ===== */
.associations {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 20%, rgba(55, 112, 167, 0.11), transparent 24%),
        radial-gradient(circle at 92% 85%, rgba(201, 162, 39, 0.1), transparent 24%),
        linear-gradient(180deg, #f4f8fc 0%, #fffdf8 100%);
}

.association-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.association-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(29, 77, 117, 0.1);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(22, 63, 96, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.association-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(22, 63, 96, 0.16);
}

.association-logo-wrap {
    display: grid;
    place-items: center;
    height: 235px;
    padding: 30px 34px;
    background:
        linear-gradient(rgba(47, 111, 162, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 111, 162, 0.045) 1px, transparent 1px),
        #ffffff;
    background-size: 28px 28px, 28px 28px, auto;
    border-bottom: 0;
}

.association-logo-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 170px;
    object-fit: contain;
}

.association-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 168px;
    margin-top: -12px;
    padding: 29px 26px 27px;
    background:
        radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.2), transparent 35%),
        linear-gradient(135deg, #173b60 0%, #0c2844 100%);
    border-top: 3px solid var(--secondary);
    border-radius: 20px 20px 0 0;
}

.association-number {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.association-content h3 {
    position: relative;
    max-width: calc(100% - 50px);
    min-height: 54px;
    margin-bottom: 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.35;
}

.association-content p {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: #173b60;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(3, 19, 34, 0.18);
    font-size: 13px;
    font-weight: 700;
}

.association-content p span {
    color: #e91e78;
}

/* ===== Courses Section ===== */
/* ===== Nursing Colleges Section ===== */
.nursing-colleges {
    padding: 100px 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(30, 136, 229, 0.08), transparent 28%),
        linear-gradient(180deg, #edf6fd 0%, #f8fbfe 55%, #fffdf8 100%);
}

.nursing-colleges-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.nursing-college-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    background: #ffffff;
    border: 1px solid rgba(24, 78, 119, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(18, 63, 94, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.nursing-college-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(18, 63, 94, 0.17);
}

/* Branches Section */
.branches-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
    background:
        radial-gradient(circle at 15% 20%, rgba(27, 193, 239, 0.12), transparent 28%),
        radial-gradient(circle at 85% 75%, rgba(37, 211, 102, 0.1), transparent 26%),
        linear-gradient(180deg, #f7fbfe 0%, #eef7fb 100%);
}

.branches-heading {
    position: relative;
    z-index: 2;
}

.branches-world {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(100%, 1040px);
    aspect-ratio: 700 / 474;
    margin: 44px auto 0;
    border: 1px solid rgba(63, 207, 242, 0.42);
    border-radius: 28px;
    background-image:
        linear-gradient(180deg, rgba(2, 24, 43, 0.08), rgba(2, 30, 51, 0.2)),
        url('img/optimized/branches-world.webp');
    background-position: center;
    background-size: cover;
    box-shadow: 0 28px 70px rgba(7, 54, 86, 0.24), inset 0 0 50px rgba(55, 222, 255, 0.12);
    animation: branchesWorldFloat 6s ease-in-out infinite;
}

.branches-world::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(94, 229, 255, 0.13), transparent);
    transform: translateX(-100%);
    animation: branchesScan 6s linear infinite;
}

.branches-locations {
    position: absolute;
    inset: 0;
}

.branch-marker {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px 8px 8px;
    color: #ffffff;
    background: rgba(4, 37, 62, 0.82);
    border: 1px solid rgba(117, 231, 255, 0.62);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 16, 29, 0.32), 0 0 0 0 rgba(74, 224, 255, 0.4);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    animation: branchMarkerPulse 2.6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.branch-pin {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #082d48;
    background: #6fe7ff;
    border-radius: 50%;
    font-size: 13px;
}

.branches-world-caption {
    position: absolute;
    right: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #ffffff;
    background: rgba(3, 31, 52, 0.82);
    border: 1px solid rgba(100, 226, 255, 0.55);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.branches-world-caption strong {
    color: #68e8ff;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1;
}

.branches-world-caption span {
    max-width: 100px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.branches-orbit {
    position: absolute;
    left: 50%;
    top: 68%;
    z-index: -1;
    border: 1px solid rgba(102, 229, 255, 0.34);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-7deg);
    animation: branchesOrbitGlow 4s ease-in-out infinite;
}

.branches-orbit-one {
    width: 78%;
    height: 27%;
}

.branches-orbit-two {
    width: 94%;
    height: 38%;
    animation-delay: 1s;
}

@keyframes branchesWorldFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes branchMarkerPulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(0, 16, 29, 0.32), 0 0 0 0 rgba(74, 224, 255, 0.36); }
    50% { box-shadow: 0 10px 26px rgba(0, 16, 29, 0.38), 0 0 0 8px rgba(74, 224, 255, 0); }
}

@keyframes branchesScan {
    0% { transform: translateX(-100%); }
    55%, 100% { transform: translateX(100%); }
}

@keyframes branchesOrbitGlow {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.9; }
}

.nursing-college-image {
    height: 210px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--secondary);
}

.nursing-image-1 {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/kolkata-institute-nursing.webp");
}

.nursing-image-genex-healthcare {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/genex-healthcare-paramedical.webp");
}

.nursing-image-genex-law {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/genex-law-management.webp");
}

.nursing-image-2 {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/swami-vivekananda-nursing.webp");
}

.nursing-image-3 {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/kalpana-institute-nursing.webp");
}

.nursing-image-sskm-pharmacy {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/sskm-college-pharmacy.webp");
}

.nursing-image-5 {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/kalna-nursing-institute.webp");
}

.nursing-image-6 {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/international-nursing-research-optimized.webp");
}

.nursing-image-placement {
    background-image: linear-gradient(180deg, transparent 65%, rgba(6, 38, 74, 0.16)), url("img/optimized/placement-assurance.webp");
}

.nursing-college-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.nursing-college-content h3 {
    margin-bottom: 14px;
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 1.28rem;
    line-height: 1.35;
}

.nursing-college-address {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.nursing-details-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 11px 20px;
    color: #ffffff;
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), #245d8f);
    border-radius: 30px;
    box-shadow: 0 7px 18px rgba(30, 136, 229, 0.22);
    transition: gap 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nursing-details-btn:hover {
    gap: 12px;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(30, 136, 229, 0.3);
}

.courses {
    background:
        radial-gradient(circle at 90% 10%, rgba(201, 162, 39, 0.08), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, #f3f7fb 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.course-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.course-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.course-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.course-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.course-link:hover {
    color: var(--primary);
}

/* ===== Course Details Modal ===== */
body.modal-open {
    overflow: hidden;
}

.course-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.course-modal.active {
    opacity: 1;
    visibility: visible;
}

.course-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 35, 0.78);
    backdrop-filter: blur(5px);
}

.course-modal-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    width: min(900px, 100%);
    max-height: min(680px, calc(100vh - 48px));
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
    transform: translateY(22px) scale(0.97);
    transition: transform 0.25s ease;
}

.course-modal.active .course-modal-dialog {
    transform: translateY(0) scale(1);
}

.course-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 35, 60, 0.88);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.course-modal-close:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}

.course-modal-image-wrap {
    min-height: 520px;
    background: #e8eef3;
}

.course-modal-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

.course-modal-content {
    padding: 48px 46px 42px;
    overflow-y: auto;
}

.course-modal-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #b78608;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.course-modal-content h2 {
    margin-bottom: 14px;
    color: var(--primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.course-modal-content > p {
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.75;
}

.course-modal-content h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 17px;
}

.course-modal-content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.course-modal-content li {
    position: relative;
    padding-left: 21px;
    color: var(--text);
    font-size: 14px;
}

.course-modal-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #25d366;
    font-weight: 800;
}

.course-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 22px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.course-apply-button:hover {
    background: #1eaf54;
    transform: translateY(-2px);
}

/* Institution popup: full-image showcase layout */
.institute-modal .course-modal-dialog {
    display: block;
    width: min(680px, 100%);
    max-height: min(690px, calc(100vh - 40px));
    overflow-y: auto;
    background:
        radial-gradient(circle at 95% 75%, rgba(201, 162, 39, 0.08), transparent 28%),
        #ffffff;
}

.institute-modal .course-modal-image-wrap {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    padding: 10px;
    background: linear-gradient(135deg, rgba(15, 49, 80, 0.98), rgba(31, 91, 137, 0.94));
}

.institute-modal .course-modal-image-wrap::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    pointer-events: none;
}

.institute-modal .course-modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border-radius: 14px;
}

.institute-modal .course-modal-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.9fr);
    column-gap: 26px;
    padding: 24px 28px 28px;
    overflow: visible;
}

.institute-modal .course-modal-label,
.institute-modal .course-modal-content h2,
.institute-modal .course-modal-content > p {
    grid-column: 1;
}

.institute-modal .course-modal-content h2 {
    font-size: clamp(25px, 4vw, 32px);
}

.institute-modal .course-modal-content > p {
    margin-bottom: 0;
}

.institute-modal .course-modal-content h3,
.institute-modal .course-modal-content ul {
    grid-column: 2;
}

.institute-modal .course-modal-content h3 {
    grid-row: 1;
    align-self: end;
    margin: 0 0 16px;
}

.institute-modal .course-modal-content ul {
    grid-row: 2 / span 3;
    grid-template-columns: 1fr;
    align-content: start;
    margin: 0;
}

.institute-modal .course-apply-button {
    grid-column: 1 / -1;
    margin-top: 22px;
    background: linear-gradient(135deg, #25d366, #159447);
}

.partner-universities {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.partner-universities h4 {
    text-align: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 30px;
}

.partner-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.partner-universities,
.partner-hospitals {
    background: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.partner-universities h4,
.partner-hospitals h4 {
    text-align: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 25px;
    word-wrap: break-word;
}

.university-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.university-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--background);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.university-item:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.uni-logo {
    width: 52px;
    height: 52px;
    padding: 3px;
    overflow: hidden;
    background: #ffffff;
    color: white;
    border: 2px solid rgba(26, 58, 92, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 31, 51, 0.12);
}

.uni-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.university-item:last-child .uni-logo {
    padding: 0;
    border: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

/* Hospital Partners */
.partner-hospitals {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.partner-hospitals h4 {
    color: white;
}

.hospital-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 15px;
}

.hospital-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.hospital-feature-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(3, 20, 35, 0.24);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hospital-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(3, 20, 35, 0.32);
}

.hospital-logo-wrap {
    display: grid;
    place-items: center;
    height: 138px;
    padding: 21px 18px;
    background:
        linear-gradient(rgba(35, 91, 136, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 91, 136, 0.045) 1px, transparent 1px),
        #ffffff;
    background-size: 24px 24px, 24px 24px, auto;
}

.hospital-logo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hospital-feature-card:nth-child(3) .hospital-logo-wrap {
    padding: 12px 10px;
}

.hospital-feature-card:nth-child(3) .hospital-logo-wrap img {
    object-fit: contain;
    object-position: center;
}

.hospital-feature-card:nth-child(4) .hospital-logo-wrap {
    padding: 16px 12px;
}

.hospital-feature-card:nth-child(4) .hospital-logo-wrap img {
    object-fit: contain;
    object-position: center;
}

.hospital-feature-content {
    flex: 1;
    padding: 17px 16px 19px;
    text-align: center;
    background: linear-gradient(135deg, #f6f9fc, #edf4f9);
    border-top: 3px solid var(--secondary);
}

.hospital-feature-content h5 {
    min-height: 42px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 15px;
    line-height: 1.35;
}

.hospital-feature-content p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
}

.hospital-feature-content p span {
    color: var(--secondary-light);
}

.hospital-network-title {
    margin: 0 0 17px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.hospital-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hospital-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.hospital-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hospital-more {
    text-align: center;
    color: var(--secondary);
    font-weight: 600;
    font-size: 16px;
    padding-top: 10px;
}

/* ===== Services Section ===== */
.services {
    background:
        radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.2), transparent 25%),
        radial-gradient(circle at 8% 85%, rgba(65, 137, 190, 0.18), transparent 28%),
        linear-gradient(135deg, #193f65 0%, #102b47 52%, #091b2e 100%);
    color: white;
}

.services .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.services .section-title {
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ===== Homepage Franchise CTA ===== */
.home-franchise {
    padding: 76px 0;
    background: #f3f7fb;
}

.home-franchise-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: center;
    min-height: 390px;
    padding: 58px 64px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 38%, rgba(62, 154, 221, 0.32), transparent 31%),
        linear-gradient(135deg, #0d2744 0%, #173f69 58%, #102e50 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 26px 60px rgba(13, 39, 68, 0.24);
}

.home-franchise-card::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(230, 196, 74, 0.25);
    border-radius: 50%;
}

.home-franchise-copy {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.home-franchise-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #f2ce55;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-franchise-copy h2 {
    max-width: 660px;
    margin-bottom: 16px;
    color: #ffffff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
}

.home-franchise-copy p {
    max-width: 630px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.7;
}

.home-franchise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.home-franchise-primary,
.home-franchise-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.home-franchise-primary {
    color: #163758;
    background: linear-gradient(135deg, #f1ce59, #d9ae2d);
    box-shadow: 0 10px 22px rgba(201, 162, 39, 0.25);
}

.home-franchise-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.home-franchise-primary:hover,
.home-franchise-secondary:hover {
    transform: translateY(-3px);
}

.home-franchise-visual {
    position: relative;
    z-index: 2;
    justify-self: center;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(111, 190, 241, 0.28);
    border-radius: 50%;
    animation: franchiseOrbit 16s linear infinite;
}

.home-franchise-logo-ring {
    position: absolute;
    inset: 53px;
    display: grid;
    place-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 9px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 13px rgba(76, 161, 221, 0.08), 0 22px 45px rgba(0, 14, 28, 0.26);
    animation: franchiseOrbitReverse 16s linear infinite;
}

.home-franchise-logo-ring img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.home-franchise-logo-ring small {
    margin-top: 3px;
    color: #a87d12;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.franchise-orbit-label {
    position: absolute;
    padding: 7px 12px;
    color: #173c64;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 9px 22px rgba(0, 18, 35, 0.22);
    font-size: 11px;
    font-weight: 800;
    animation: franchiseOrbitReverse 16s linear infinite;
}

.label-education { top: 8px; left: 50%; transform: translateX(-50%); }
.label-career { right: -8px; bottom: 50px; }
.label-skills { left: -3px; bottom: 50px; }

@keyframes franchiseOrbit {
    to { transform: rotate(360deg); }
}

@keyframes franchiseOrbitReverse {
    to { transform: rotate(-360deg); }
}

/* ===== Download App Section ===== */
.download-app {
    background:
        radial-gradient(circle at 80% 42%, rgba(40, 139, 210, 0.22), transparent 30%),
        radial-gradient(circle at 12% 78%, rgba(201, 162, 39, 0.1), transparent 24%),
        linear-gradient(rgba(47, 111, 162, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 111, 162, 0.075) 1px, transparent 1px),
        linear-gradient(135deg, #f9fcff 0%, #eaf4fb 52%, #dcecf7 100%);
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.download-app::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 620px;
    height: 620px;
    background:
        radial-gradient(circle at center, transparent 46%, rgba(47, 111, 162, 0.13) 47%, transparent 48%),
        radial-gradient(circle at center, transparent 62%, rgba(47, 111, 162, 0.09) 63%, transparent 64%);
    border-radius: 50%;
    pointer-events: none;
}

.download-app::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(26, 82, 126, 0.28) 2px, transparent 3px) 0 0 / 84px 84px,
        linear-gradient(115deg, transparent 0 47%, rgba(47, 111, 162, 0.08) 47% 47.4%, transparent 47.4% 100%);
    opacity: 0.65;
    pointer-events: none;
}

.download-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(580px, 1.35fr);
    gap: 48px;
    align-items: center;
}

.download-content {
    max-width: 500px;
}

.download-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 20px;
}

.download-subtitle {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.download-features {
    list-style: none;
    margin-bottom: 35px;
}

.download-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.store-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.3);
}

.store-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-small {
    font-size: 10px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.store-big {
    font-size: 16px;
    font-weight: 600;
}

/* Phone Mockup */
.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
}

.app-qr-card {
    display: block;
    width: clamp(220px, 20vw, 300px);
    flex: 0 1 300px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 22px 50px rgba(15, 48, 82, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-qr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(15, 48, 82, 0.3);
}

.app-qr-card:focus-visible {
    outline: 4px solid var(--secondary);
    outline-offset: 5px;
}

.app-qr-card img {
    display: block;
    width: 100%;
    height: auto;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 28px;
    overflow: hidden;
}

.app-screen-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center center;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 40px 20px 15px;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 40px 20px 15px;
    color: white;
    font-weight: 600;
}

.phone-logo {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.phone-image {
    flex: 1;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.phone-content {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
}

.phone-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: white;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.phone-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.phone-card-icon {
    font-size: 22px;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Contact Section ===== */
.contact {
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 162, 39, 0.09), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, #f8f5ec 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.3);
}

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

.info-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-light);
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* ===== Gallery Section ===== */
.gallery {
    background:
        radial-gradient(circle at 92% 18%, rgba(56, 119, 171, 0.1), transparent 24%),
        linear-gradient(180deg, #edf5fb 0%, #f5f8fb 100%);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--border);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 92, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

/* ===== Footer ===== */
.footer {
    background:
        radial-gradient(circle at 88% 5%, rgba(201, 162, 39, 0.14), transparent 22%),
        linear-gradient(135deg, #102b47 0%, #091a2b 65%, #06131f 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    margin-bottom: 15px;
}

.footer-logo:hover,
.footer-logo:visited,
.footer-logo:active {
    text-decoration: none !important;
}

.footer-logo-image {
    height: 50px;
    width: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.footer-tagline {
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--secondary);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin: 0 auto 35px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-container {
        max-width: 400px;
        height: 400px;
        margin: 0 auto;
    }
    
    .hero-main-image {
        width: 300px;
        height: 300px;
    }
    
    .nursing-colleges-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .hospital-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .download-content {
        max-width: 100%;
    }

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

    .download-visual {
        order: -1;
    }

    .app-qr-card {
        width: min(280px, 35vw);
        flex-basis: 280px;
    }

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

@media (max-width: 768px) {
    .header,
    .header .container {
        overflow: visible;
    }

    .logo {
        max-width: 200px;
    }

    .logo-image {
        height: 40px;
        width: 40px;
    }

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

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 999;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1001;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 8px;
        border-radius: 10px;
    }

    .mobile-menu-btn.active {
        background: rgba(26, 58, 92, 0.08);
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .hero-stats .stat-item {
        flex: 1 1 0;
        min-width: 0;
        padding: 14px 4px 12px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(26, 58, 92, 0.08);
        border-radius: 13px;
        box-shadow: 0 7px 20px rgba(26, 58, 92, 0.08);
    }

    .hero-stats .stat-number {
        font-size: 25px;
    }

    .hero-stats .stat-plus {
        font-size: 16px;
    }

    .hero-stats .stat-label {
        min-height: 15px;
        margin-top: 7px;
        font-size: 10px;
        white-space: nowrap;
    }

    .stat-divider {
        display: none;
    }

    .hero-float-card {
        display: none;
    }

    .hero-main-image {
        width: 280px;
        height: 280px;
    }

    .hero-image-container {
        max-width: 320px;
        height: 320px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .director-message {
        padding: 28px;
    }

    .director-info {
        align-items: flex-start;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .nursing-colleges {
        padding: 75px 0;
    }

    .association-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .association-logo-wrap {
        height: 225px;
    }

    .association-content h3 {
        min-height: 0;
    }

    .nursing-colleges-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .nursing-college-card {
        min-height: 410px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .university-logos {
        gap: 15px;
    }

    .university-item {
        padding: 10px 15px;
        font-size: 13px;
    }

    .uni-logo {
        width: 38px;
        height: 38px;
        font-size: 10px;
    }

    .hospital-list {
        gap: 10px;
    }

    .hospital-item {
        padding: 8px 14px;
        font-size: 12px;
    }

    .download-title {
        font-size: 32px;
    }

    .download-features {
        width: min(100%, 300px);
        margin-right: auto;
        margin-bottom: 35px;
        margin-left: auto;
    }

    .download-features li {
        justify-content: flex-start;
        width: 100%;
        text-align: left;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .phone-mockup {
        transform: none;
        width: 240px;
        height: 480px;
    }

    .download-visual {
        gap: 24px;
    }

    .app-qr-card {
        width: min(240px, 38vw);
        flex-basis: 240px;
        border-radius: 18px;
    }

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

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo-image {
        height: 40px;
        width: 40px;
    }

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

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

    .course-modal {
        padding: 16px;
    }

    .course-modal-dialog {
        display: block;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .course-modal-image-wrap {
        min-height: 0;
        height: 230px;
    }

    .course-modal-content {
        padding: 30px 24px 26px;
        overflow: visible;
    }

    .institute-modal .course-modal-dialog {
        max-height: calc(100vh - 32px);
    }

    .institute-modal .course-modal-image-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
        padding: 9px;
    }

    .institute-modal .course-modal-image-wrap::after {
        inset: 9px;
    }

    .institute-modal .course-modal-content {
        display: block;
        padding: 26px 24px 28px;
    }

    .institute-modal .course-modal-content > p {
        margin-bottom: 22px;
    }

    .institute-modal .course-modal-content ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .download-visual {
        flex-direction: column;
        gap: 34px;
    }

    .app-qr-card {
        width: min(280px, 88vw);
        flex-basis: auto;
    }

    .hero-title {
        font-size: 28px;
    }

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

    .hero-stats {
        gap: 6px;
    }

    .hero-stats .stat-item {
        padding: 12px 2px 10px;
    }

    .hero-stats .stat-number {
        font-size: 22px;
    }

    .hero-stats .stat-plus {
        font-size: 14px;
    }

    .hero-stats .stat-label {
        font-size: 9px;
    }

    .cta-button.primary,
    .cta-button.secondary {
        padding: 14px 28px;
        font-size: 14px;
        min-width: 140px;
    }

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

    .director-message {
        padding: 24px 20px;
    }

    .director-message h3 {
        font-size: 25px;
    }

    .director-info {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        text-align: center;
    }

    .director-photo {
        flex-basis: 222px;
        width: 185px;
        height: 222px;
    }

    .director-quote {
        text-align: left;
    }

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

    .download-title {
        font-size: 26px;
    }

    .download-features {
        width: min(100%, 285px);
    }

    .download-features li {
        gap: 10px;
        font-size: 14px;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 22px;
    }

    .phone-header {
        padding: 30px 15px 10px;
        font-size: 12px;
    }

    .phone-logo {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .phone-image {
        padding: 0 10px;
    }

    .phone-image img {
        border-radius: 10px;
    }

    .phone-content {
        padding: 8px;
        gap: 5px;
    }

    .phone-card {
        padding: 10px 6px;
        font-size: 9px;
    }

    .phone-card-icon {
        font-size: 18px;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .partner-universities,
    .partner-hospitals {
        padding: 25px 15px;
    }

    .partner-universities h4,
    .partner-hospitals h4 {
        font-size: 18px;
    }

    .university-logos {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .university-item {
        width: 100%;
        padding: 12px 15px;
        justify-content: flex-start;
    }

    .hospital-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hospital-feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hospital-feature-card {
        display: grid;
        grid-template-columns: 42% 58%;
    }

    .hospital-logo-wrap {
        height: 132px;
        padding: 18px 12px;
    }

    .hospital-feature-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 12px;
        border-top: 0;
        border-left: 3px solid var(--secondary);
    }

    .hospital-feature-content h5 {
        min-height: 0;
        margin-bottom: 9px;
        font-size: 14px;
    }

    .hospital-item {
        width: auto;
        padding: 8px 12px;
        font-size: 11px;
        text-align: center;
    }

    .hospital-more {
        font-size: 14px;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .course-modal-content ul {
        grid-template-columns: 1fr;
    }

    .institute-modal .course-modal-image-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
        padding: 9px;
    }

    .institute-modal .course-modal-image-wrap::after {
        inset: 9px;
    }

    .institute-modal .course-modal-content ul {
        grid-template-columns: 1fr;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 768px) {
    .branches-section {
        padding: 64px 0 72px;
    }

    .branches-world {
        aspect-ratio: auto;
        min-height: 610px;
        margin-top: 32px;
        background-position: center top;
        border-radius: 22px;
        animation-duration: 7s;
    }

    .branches-locations {
        inset: auto 14px 76px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 16px;
        background: rgba(2, 27, 46, 0.82);
        border: 1px solid rgba(106, 229, 255, 0.36);
        border-radius: 18px;
        backdrop-filter: blur(10px);
    }

    .branch-marker {
        position: static;
        justify-content: flex-start;
        width: 100%;
        padding: 7px 9px 7px 7px;
        font-size: 12px;
        transform: none;
    }

    .branch-pin {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
    }

    .branches-world-caption {
        right: 14px;
        bottom: 14px;
        left: 14px;
        justify-content: center;
    }

    .branches-world-caption span {
        max-width: none;
    }
}

@media (max-width: 380px) {
    .branches-world {
        min-height: 660px;
    }

    .branches-locations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-franchise-link {
        display: inline-flex;
        justify-content: center;
        margin: 0;
        padding: 11px 22px;
    }

    .nav-student-link {
        display: inline-flex;
        justify-content: center;
        margin: 0;
        padding: 11px 22px;
    }

    .home-franchise {
        padding: 54px 0;
    }

    .home-franchise-card {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: 0;
        padding: 42px 24px 38px;
        text-align: center;
        border-radius: 22px;
    }

    .home-franchise-copy h2 {
        font-size: 35px;
    }

    .home-franchise-copy p {
        font-size: 15px;
    }

    .home-franchise-actions {
        justify-content: center;
    }

    .home-franchise-primary,
    .home-franchise-secondary {
        width: min(100%, 270px);
    }

    .home-franchise-visual {
        width: 220px;
        height: 220px;
    }

    .home-franchise-logo-ring {
        inset: 44px;
    }

    .home-franchise-logo-ring img {
        width: 70px;
        height: 70px;
    }
}
