/* ----------------------------------------------------
   MALABAR INSTITUTE OF PARAMEDICAL SCIENCE - STYLE.CSS
   ---------------------------------------------------- */

/* --- CSS Variables & Design System --- */
:root {
    --primary: #0b3c5d;       /* Deep Slate Blue (Trust) */
    --primary-light: #1d5f8a;
    --secondary: #00b4d8;     /* Modern Cyan/Teal (Clinical/Tech) */
    --secondary-dark: #0096b4;
    --accent: #4361ee;        /* Indigo Accent */
    --dark-bg: #0d1117;       /* Dark theme colors */
    --text-color: #2b2d42;    /* Charcoal text */
    --text-muted: #6c757d;    /* Slate grey text */
    --bg-light: #f6f9fc;      /* Background gray-blue */
    --card-bg: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0b3c5d 0%, #1d5f8a 100%);
    --gradient-accent: linear-gradient(135deg, #00b4d8 0%, #4361ee 100%);
    --gradient-light: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Tokens */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(11, 60, 93, 0.05);
    --shadow-md: 0 12px 24px -6px rgba(11, 60, 93, 0.08);
    --shadow-lg: 0 20px 40px -12px rgba(11, 60, 93, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(0, 180, 216, 0.6);
}

.btn-secondary {
    background-color: rgba(0, 180, 216, 0.1);
    color: #0b3c5d;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(0, 180, 216, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 15px auto;
    border-radius: 2px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Header & Sticky Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.header-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

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

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
    padding: 8px 0;
}

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

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

.nav-btn {
    background: var(--gradient-accent);
    color: #ffffff;
    padding: 10px 20px !important;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px -3px rgba(0, 180, 216, 0.3);
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -3px rgba(0, 180, 216, 0.5);
    color: #ffffff;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 140px; /* offset header */
    padding-bottom: 60px;
    background: var(--gradient-light);
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background-color: rgba(0, 180, 216, 0.08);
    color: var(--secondary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 180, 216, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 45px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(11, 60, 93, 0.1);
    padding-top: 30px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Image Card styling */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: visible;
    max-width: 480px;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 6px solid #ffffff;
}

/* Floating overlay cards */
.image-overlay-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.image-overlay-card i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.image-overlay-card h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.image-overlay-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-students {
    bottom: 30px;
    left: -30px;
    animation-delay: 0s;
}

.card-badge {
    top: 50px;
    right: -20px;
    animation-delay: 2s;
}

/* --- About Section --- */
.about-section {
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-feature {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    border: 1px solid rgba(11, 60, 93, 0.02);
}

.about-feature:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.feature-icon.bg-blue { background: rgba(11, 60, 93, 0.1); color: var(--primary); }
.feature-icon.bg-cyan { background: rgba(0, 180, 216, 0.1); color: var(--secondary); }
.feature-icon.bg-teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.feature-icon.bg-indigo { background: rgba(67, 97, 238, 0.1); color: var(--accent); }

.about-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Courses Section --- */
.courses-section {
    background-color: var(--bg-light);
}

.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid rgba(11, 60, 93, 0.08);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Grid layout with animations */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 60, 93, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
}

.course-card.hide {
    display: none;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 180, 216, 0.2);
}

.course-header {
    padding: 24px;
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Custom badges */
.course-badge {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-degree { background-color: rgba(11, 60, 93, 0.08); color: var(--primary); }
.badge-adv { background-color: rgba(67, 97, 238, 0.08); color: var(--accent); }
.badge-asap { background-color: rgba(0, 180, 216, 0.08); color: var(--secondary-dark); }
.badge-combo { background-color: rgba(20, 184, 166, 0.08); color: #14b8a6; }
.badge-cert { background-color: rgba(108, 117, 125, 0.08); color: var(--text-color); }

.course-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 180, 216, 0.06);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.course-card:hover .course-icon {
    background-color: var(--secondary);
    color: #ffffff;
    transition: var(--transition);
}

.course-body {
    padding: 0 24px 24px;
    flex-grow: 1;
}

.course-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.course-fullname {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-meta li {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-meta li i {
    color: var(--secondary);
}

.course-footer {
    padding: 20px 24px;
    background-color: rgba(11, 60, 93, 0.01);
    border-top: 1px solid rgba(11, 60, 93, 0.04);
}

.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
    width: 100%;
}

.btn-card-action i {
    transform: translateX(0);
    transition: var(--transition);
}

.course-card:hover .btn-card-action {
    color: var(--secondary-dark);
}

.course-card:hover .btn-card-action i {
    transform: translateX(6px);
}

/* --- Admissions Section --- */
.admissions-section {
    background-color: #ffffff;
}

.admissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.admission-step {
    padding: 30px 20px;
    border-left: 2px solid rgba(0, 180, 216, 0.2);
    position: relative;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.4;
    margin-bottom: 10px;
}

.admission-step h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.admission-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Notice Box */
.notice-box {
    background-color: rgba(220, 38, 38, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-left: 4px solid #dc2626;
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 900px;
    margin: 40px auto 0;
}

.notice-icon {
    font-size: 1.5rem;
    color: #dc2626;
    margin-top: 2px;
}

.notice-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.notice-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Contact & Inquiry Section --- */
.contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
}

.contact-lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 180, 216, 0.05);
}

.detail-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.detail-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-text a {
    color: var(--primary-light);
    font-weight: 500;
}

.detail-text a:hover {
    color: var(--secondary-dark);
}

.open-hours {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(11, 60, 93, 0.04);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--primary);
    font-family: var(--font-heading);
    width: fit-content;
}

/* Contact Form Block styling */
.contact-form-block {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 45px;
    border: 1px solid rgba(11, 60, 93, 0.02);
}

.contact-form-block h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-form-block p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(11, 60, 93, 0.12);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background-color: var(--bg-light);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

/* Submission feedback */
.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
}

.form-status.success {
    display: block;
    background-color: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.form-status.error {
    display: block;
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    padding-top: 80px;
    border-top: 4px solid var(--secondary);
}

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

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-title {
    color: #ffffff;
    font-size: 1.8rem;
}

.footer-desc {
    font-size: 0.88rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.footer-grid h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links ul,
.footer-courses-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-courses-links a {
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-courses-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact p i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-bottom {
    padding: 30px 0;
    background-color: rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.designer-text i {
    color: #dc2626;
}

/* --- Floating Keyframe Animation --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image-wrapper {
        order: -1;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 60px 0;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        padding: 40px 5%;
        transition: 0.4s ease-in-out;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }
    .nav-btn {
        display: inline-block;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .image-card {
        max-width: 380px;
    }
    .hero-image {
        height: 380px;
    }
    .card-students {
        left: -10px;
        bottom: 10px;
    }
    .card-badge {
        right: -10px;
        top: 20px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-block {
        padding: 30px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}
