/* BioMed Learn V3.2 — Global Styles */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0D6EFD;
    --primary-dark: #0056D6;
    --secondary: #00C896;
    --dark: #111827;
    --text: #4B5563;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 5px 15px rgba(0,0,0,.06);
    --shadow-md: 0 12px 30px rgba(0,0,0,.10);
    --radius: 20px;
    --transition: .35s ease;
    --header-height: 82px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }

section { padding: 110px 8%; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 42px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.section-title p { max-width: 720px; margin: 0 auto; color: var(--text); font-size: 17px; line-height: 1.8; }

#progress-bar {
    position: fixed; top: 0; left: 0; width: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 10002; transition: width .1s linear;
}

.header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 8%; background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,.05);
    z-index: 9999; transition: var(--transition);
}

.header.sticky { background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); }

.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--primary); }
.logo i { font-size: 32px; }

.navbar { display: flex; align-items: center; gap: 32px; }
.navbar a { color: var(--dark); font-size: 15px; font-weight: 500; position: relative; transition: var(--transition); }
.navbar a::after {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.navbar a:hover, .navbar a.active { color: var(--primary); }
.navbar a:hover::after, .navbar a.active::after { width: 100%; }

.menu-btn { display: none; font-size: 28px; color: var(--dark); z-index: 10001; }
.menu-btn.active i::before { content: "\f00d"; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 220px; height: 56px; padding: 0 28px; border-radius: 50px;
    font-size: 16px; font-weight: 600; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 25px rgba(13,110,253,.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }

.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: calc(var(--header-height) + 60px) 8% 80px;
    background: linear-gradient(135deg, #0D6EFD 0%, #338DFF 50%, #0056D6 100%);
    color: var(--white); position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,.06); top: -150px; right: -100px;
}
.hero::after {
    content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: rgba(0,200,150,.08); bottom: -120px; left: -80px;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
    padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 500;
    margin-bottom: 28px; border: 1px solid rgba(255,255,255,.2);
}
.hero h1 { font-size: 58px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.hero p { font-size: 18px; line-height: 1.8; opacity: .92; max-width: 700px; margin: 0 auto 40px; }
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

.search-section { background: var(--white); }
.search-box {
    display: flex; align-items: center; max-width: 760px; margin: 0 auto;
    background: var(--white); border: 2px solid var(--border); border-radius: 60px;
    padding: 8px 8px 8px 28px; box-shadow: var(--shadow-md); transition: var(--transition);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 12px 35px rgba(13,110,253,.15); }
.search-box i { color: var(--text); font-size: 18px; flex-shrink: 0; }
.search-box input {
    flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit;
    padding: 14px 16px; color: var(--dark); background: transparent;
}
.search-box button {
    background: var(--primary); color: var(--white); padding: 14px 32px;
    border-radius: 50px; font-size: 15px; font-weight: 600; transition: var(--transition); flex-shrink: 0;
}
.search-box button:hover { background: var(--primary-dark); }

.featured { background: var(--light); }
.equipment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; align-items: stretch; }
.equipment-card {
    display: flex; flex-direction: column; background: var(--white); border-radius: 24px;
    border: 1px solid rgba(13,110,253,.08); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: var(--transition); position: relative;
}
.equipment-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary)); z-index: 2;
}
.equipment-card img { width: 100%; height: 220px; object-fit: cover; transition: .5s ease; }
.equipment-card:hover img { transform: scale(1.05); }
.equipment-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.equipment-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.equipment-card p { color: var(--text); font-size: 15px; line-height: 1.75; flex: 1; margin-bottom: 20px; }
.equipment-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 15px; margin-top: auto; transition: var(--transition); }
.equipment-card a i { transition: var(--transition); }
.equipment-card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(13,110,253,.15); }
.equipment-card:hover a i { transform: translateX(6px); }

.categories { background: var(--white); }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; align-items: stretch; }
.category-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--white); border-radius: 22px; padding: 36px 20px; text-align: center;
    border: 1px solid rgba(13,110,253,.08); box-shadow: var(--shadow-sm);
    transition: var(--transition); position: relative; overflow: hidden;
}
.category-box::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.category-box i {
    width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 30px; color: var(--primary);
    background: rgba(13,110,253,.08); margin-bottom: 18px; transition: var(--transition);
}
.category-box h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.category-box:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(13,110,253,.12); }
.category-box:hover i { background: var(--primary); color: var(--white); transform: scale(1.08); }

.stats {
    background: linear-gradient(135deg, #0D6EFD, #338DFF);
    padding: 90px 8%; display: grid; grid-template-columns: repeat(4,1fr);
    gap: 24px; text-align: center; color: var(--white);
}
.stat-box { padding: 30px 16px; transition: var(--transition); }
.stat-box h2 { font-size: 52px; font-weight: 800; margin-bottom: 8px; }
.stat-box p { font-size: 16px; opacity: .92; font-weight: 500; }
.stat-box:hover { transform: translateY(-6px); }

.internship { background: var(--light); }
.internship-content {
    max-width: 1100px; margin: 0 auto; background: var(--white);
    padding: 60px 50px; border-radius: 28px; box-shadow: var(--shadow-md); text-align: center;
}
.internship-content .section-title { margin-bottom: 40px; }
.internship-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 40px; align-items: stretch; }
.feature {
    display: flex; flex-direction: column; align-items: center; background: var(--light);
    border: 1px solid rgba(13,110,253,.08); border-radius: 20px; padding: 32px 24px;
    text-align: center; transition: var(--transition);
}
.feature i {
    width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(13,110,253,.08); color: var(--primary);
    font-size: 30px; margin-bottom: 18px; transition: var(--transition);
}
.feature h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.feature p { color: var(--text); font-size: 15px; line-height: 1.75; flex: 1; }
.feature:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(13,110,253,.12); }
.feature:hover i { background: var(--primary); color: var(--white); }
.internship-content .btn { margin: 0 auto; }

.latest-articles { background: var(--light); }
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; align-items: stretch; }
.article-card {
    display: flex; flex-direction: column; background: var(--white); border-radius: 24px;
    overflow: hidden; border: 1px solid rgba(13,110,253,.08); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.article-card img { width: 100%; height: 200px; object-fit: cover; transition: .5s ease; }
.article-card:hover img { transform: scale(1.05); }
.article-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.article-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.article-card p { color: var(--text); font-size: 15px; line-height: 1.75; flex: 1; margin-bottom: 18px; }
.article-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 15px; margin-top: auto; transition: var(--transition); }
.article-card a i { transition: var(--transition); }
.article-card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(13,110,253,.12); }
.article-card:hover a i { transform: translateX(6px); }

.newsletter { background: var(--white); padding: 90px 8%; }
.newsletter-box {
    max-width: 760px; margin: 0 auto; text-align: center;
    background: linear-gradient(135deg, rgba(13,110,253,.06), rgba(0,200,150,.06));
    padding: 60px 50px; border-radius: 28px; border: 1px solid rgba(13,110,253,.1);
}
.newsletter-box h2 { font-size: 32px; font-weight: 700; margin-bottom: 14px; }
.newsletter-box p { color: var(--text); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.newsletter-box form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.newsletter-box input {
    flex: 1; padding: 16px 22px; border: 2px solid var(--border); border-radius: 50px;
    font-size: 15px; font-family: inherit; outline: none; transition: var(--transition);
}
.newsletter-box input:focus { border-color: var(--primary); }
.newsletter-box .btn { min-width: 150px; height: 54px; }

footer { background: var(--dark); color: rgba(255,255,255,.85); padding: 80px 8% 0; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-about .logo { color: var(--white); margin-bottom: 18px; }
.footer-about p { font-size: 15px; line-height: 1.8; opacity: .8; }
.footer-links h3, .footer-social h3 { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 15px; opacity: .75; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--secondary); padding-left: 4px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); font-size: 16px; transition: var(--transition);
}
.social-icons a:hover { background: var(--primary); transform: translateY(-4px); }
.copyright { text-align: center; padding: 28px 0; font-size: 14px; opacity: .6; }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: var(--white); border-radius: 50%; font-size: 18px;
    box-shadow: 0 8px 25px rgba(13,110,253,.4); opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

.page-hero {
    padding: calc(var(--header-height) + 60px) 8% 70px;
    background: linear-gradient(135deg, #0D6EFD, #338DFF);
    color: var(--white); text-align: center;
}
.page-hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 14px; }
.page-hero p { font-size: 17px; opacity: .9; max-width: 600px; margin: 0 auto; }

.coming-soon { text-align: center; padding: 80px 8%; background: var(--white); }
.coming-soon i { font-size: 64px; color: var(--primary); margin-bottom: 24px; }
.coming-soon h2 { font-size: 32px; margin-bottom: 14px; }
.coming-soon p { color: var(--text); font-size: 16px; max-width: 520px; margin: 0 auto 30px; }

/* Professional home-page refinement */
body { font-family: 'Inter', 'Poppins', sans-serif; letter-spacing: -0.01em; }
h1, h2, h3, .logo, .btn { font-family: 'Poppins', sans-serif; }
.header { padding: 0 8%; }
.logo { gap: 10px; color: var(--dark); font-size: 21px; letter-spacing: -0.04em; }
.logo-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, var(--primary), #4b9bff); border-radius: 11px; box-shadow: 0 8px 20px rgba(13,110,253,.25); }
.logo i { font-size: 18px; }
.logo strong { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.btn-header { min-width: auto; height: 42px; padding: 0 18px; font-size: 13px; background: var(--primary); color: var(--white); box-shadow: none; }
.btn-header:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hero { min-height: 780px; text-align: left; padding: calc(var(--header-height) + 70px) 8% 86px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-orb-1 { width: 460px; height: 460px; top: -185px; right: -110px; background: rgba(255,255,255,.12); }
.hero-orb-2 { width: 330px; height: 330px; bottom: -160px; left: 38%; background: rgba(0,200,150,.18); }
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, black, transparent 85%); }
.hero::before, .hero::after { display: none; }
.hero-inner { position: relative; z-index: 2; width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.8fr); align-items: center; gap: 64px; }
.hero-content { max-width: 700px; }
.hero h1 { font-size: clamp(42px, 4.4vw, 64px); letter-spacing: -0.055em; }
.text-gradient { color: #a9ffd9; }
.hero p { margin: 0 0 34px; max-width: 630px; }
.hero-buttons { justify-content: flex-start; }
.hero-stats { display: flex; align-items: center; gap: 28px; margin-top: 44px; }
.hero-stat { display: grid; gap: 1px; padding-right: 28px; border-right: 1px solid rgba(255,255,255,.25); }
.hero-stat:last-child { padding-right: 0; border: 0; }
.hero-stat strong { font-family: 'Poppins',sans-serif; font-size: 23px; line-height: 1.2; }
.hero-stat span { font-size: 12px; opacity: .78; }
.hero-visual { position: relative; min-height: 390px; }
.hero-card { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.13); box-shadow: 0 26px 55px rgba(0,35,100,.22); backdrop-filter: blur(15px); }
.hero-card-main { position: absolute; top: 36px; right: 30px; width: 310px; padding: 38px 32px; border-radius: 28px; }
.hero-card-main::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; pointer-events: none; }
.hero-card-icon { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 50px; border-radius: 18px; color: var(--primary); background: var(--white); font-size: 29px; }
.hero-card h3 { position: relative; z-index: 1; font-size: 23px; }
.hero-card p { position: relative; z-index: 1; margin: 4px 0 0; font-size: 13px; }
.hero-card-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; color: var(--dark); background: var(--white); font-size: 13px; font-weight: 700; box-shadow: 0 16px 35px rgba(0,30,90,.22); }
.hero-card-float i { color: var(--primary); font-size: 19px; }
.hero-card-2 { left: 0; bottom: 68px; }
.hero-card-3 { right: 0; bottom: 0; }
.search-section { padding: 56px 8%; border-bottom: 1px solid var(--border); }
.search-wrapper { width: min(920px,100%); margin: 0 auto; }
.search-box { max-width: none; }
.search-tags { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--text); }
.search-tags a { padding: 3px 10px; color: var(--primary); background: #edf4ff; border-radius: 99px; font-weight: 600; }
.section-label { display: inline-flex; padding: 5px 11px; margin-bottom: 12px; border-radius: 99px; color: var(--primary); background: #eaf2ff; font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.section-label-light { color: #dcecff; background: rgba(255,255,255,.12); }
.section-title h2 { letter-spacing: -.045em; }
.card-image { position: relative; overflow: hidden; background: #eef4ff; }
.card-badge { position: absolute; z-index: 1; top: 15px; left: 15px; padding: 5px 10px; color: #0759d4; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(0,0,0,.08); border-radius: 99px; font-size: 11px; font-weight: 700; }
.section-cta { display: flex; justify-content: center; margin-top: 42px; }
.btn-secondary { min-width: auto; height: 52px; color: var(--primary); background: #edf4ff; }
.btn-secondary:hover { transform: translateY(-3px); background: var(--primary); color: var(--white); }
.category-count { margin-top: 8px; color: var(--primary); font-size: 12px; font-weight: 700; }
.category-icon { margin-bottom: 16px; }
.category-box i { margin: 0; }
.stats { display: block; padding: 90px 8%; }
.stats-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 15px; background: rgba(255,255,255,.16); font-size: 21px; }
.feature-icon { margin-bottom: 18px; }
.feature-icon i { margin: 0; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; color: var(--text); font-size: 12px; }
.article-meta i { color: var(--primary); margin-right: 4px; }
.newsletter { background: var(--light); }
.newsletter-box { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; text-align: left; padding: 56px 62px; background: linear-gradient(135deg, #075dd9, #0e7cf2); color: var(--white); border: 0; }
.newsletter-box h2 { color: var(--white); font-size: 34px; letter-spacing: -.04em; }
.newsletter-box p { color: rgba(255,255,255,.8); margin: 0; }
.newsletter-box form { max-width: none; }
.newsletter-box .btn { background: var(--secondary); box-shadow: none; }
.newsletter-box .btn:hover { background: #00ad81; }
footer .logo-icon { background: rgba(255,255,255,.15); box-shadow: none; }

/* Component-style interactions: carousel, FAQ, dialogs and dark mode */
.icon-button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; color: var(--text); border: 1px solid var(--border); border-radius: 9px; background: var(--white); font-size: 12px; font-weight: 700; transition: var(--transition); }
.icon-button:hover { color: var(--primary); border-color: #b9d4ff; background: #f3f8ff; }
.icon-button kbd, .command-search kbd { padding: 1px 5px; color: var(--text); border: 1px solid var(--border); border-radius: 4px; background: var(--light); font-family: inherit; font-size: 10px; }
.theme-toggle { width: 38px; justify-content: center; padding: 0; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 9px; width: min(1280px,100%); margin: -42px auto 18px; }
.carousel-button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--primary); border: 1px solid #cce0ff; border-radius: 10px; background: var(--white); transition: var(--transition); }
.carousel-button:hover { color: var(--white); background: var(--primary); transform: translateY(-2px); }
.equipment-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3); grid-template-columns: unset; overflow-x: auto; padding: 4px 2px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.equipment-carousel::-webkit-scrollbar { display: none; }
.equipment-carousel .equipment-card { scroll-snap-align: start; }
.faq { background: var(--white); }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; width: min(1100px,100%); margin: 0 auto; align-items: start; }
.faq-intro h2 { margin-bottom: 16px; font-size: 38px; line-height: 1.2; letter-spacing: -.05em; }
.faq-intro p { margin-bottom: 28px; color: var(--text); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 2px; color: var(--dark); cursor: pointer; font-family: 'Poppins',sans-serif; font-size: 16px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--primary); font-size: 14px; transition: transform .25s ease; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { max-width: 690px; padding: 0 2px 22px; color: var(--text); font-size: 14px; }
.command-dialog, .terms-modal { position: fixed; z-index: 10005; inset: 0; display: grid; place-items: start center; padding: min(12vh,100px) 20px 20px; background: rgba(10,20,38,.55); backdrop-filter: blur(4px); }
.command-dialog[hidden], .terms-modal[hidden] { display: none; }
.command-panel { width: min(570px,100%); padding: 10px; border: 1px solid var(--border); border-radius: 15px; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.command-search { display: flex; align-items: center; gap: 10px; padding: 7px 9px 16px; border-bottom: 1px solid var(--border); color: var(--primary); }
.command-search input { flex: 1; border: 0; outline: 0; color: var(--dark); background: transparent; font: 15px 'Inter',sans-serif; }
.command-label { margin: 15px 9px 7px; color: var(--text); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.command-panel a { display: flex; align-items: center; gap: 11px; padding: 11px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.command-panel a:hover { color: var(--primary); background: #edf4ff; }
.command-panel a i { width: 18px; color: var(--primary); }
.command-panel a span { margin-left: auto; color: var(--text); font-size: 12px; }
.terms-card { width: min(520px,100%); overflow: hidden; border-radius: 20px; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.terms-heading { display: flex; gap: 14px; padding: 28px 28px 20px; }
.modal-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: none; border-radius: 12px; color: var(--primary); background: #eaf2ff; font-size: 20px; }
.terms-heading h2 { font-size: 20px; }
.terms-heading p { color: var(--text); font-size: 13px; }
.terms-copy { max-height: 185px; padding: 20px 28px; overflow-y: auto; border-block: 1px solid var(--border); color: var(--text); background: var(--light); font-size: 13px; }
.terms-copy p + p { margin-top: 12px; }
.terms-actions { display: flex; justify-content: end; gap: 10px; padding: 18px 28px; }
.terms-actions .btn { min-width: auto; height: 43px; padding: 0 16px; font-size: 13px; }
body.dark { --dark: #eaf1ff; --text: #aebbd0; --light: #0b1323; --white: #111c30; --border: #26354d; --shadow-sm: 0 5px 15px rgba(0,0,0,.24); --shadow-md: 0 12px 30px rgba(0,0,0,.32); background: var(--light); }
body.dark .header { background: rgba(12,20,35,.88); }
body.dark .logo { color: var(--dark); }
body.dark .search-tags a, body.dark .section-label, body.dark .btn-secondary, body.dark .modal-icon { background: #122848; }
body.dark .search-box, body.dark .icon-button, body.dark .carousel-button, body.dark .faq, body.dark .command-panel, body.dark .terms-card { background: var(--white); }
body.dark .category-box, body.dark .equipment-card, body.dark .article-card, body.dark .internship-content { background: #111c30; }
body.dark .feature { background: #0c1729; }
body.dark .theme-toggle i::before { content: '\f185'; }
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(circle at 16% 20%, #deecff 0, transparent 28%), var(--light); }
.not-found > .logo { position: absolute; top: 28px; left: max(5%,24px); }
.not-found-card { width: min(660px,100%); padding: 55px; text-align: center; border: 1px solid var(--border); border-radius: 28px; background: var(--white); box-shadow: var(--shadow-md); }
.not-found-card h1 { max-width: 500px; margin: 0 auto 14px; font-size: clamp(32px,5vw,52px); letter-spacing: -.06em; line-height: 1.1; }
.not-found-card > p { max-width: 510px; margin: 0 auto 28px; color: var(--text); }
.not-found-search { display: flex; overflow: hidden; margin: 0 auto 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--light); }
.not-found-search input { width: 100%; padding: 15px 17px; outline: 0; border: 0; color: var(--dark); background: transparent; font: 14px 'Inter',sans-serif; }
.not-found-search button { width: 52px; color: var(--white); background: var(--primary); }
.not-found-actions { display: flex; justify-content: center; gap: 12px; }
.not-found-actions .btn { min-width: 160px; }
.not-found-help { margin-top: 24px !important; font-size: 13px; }
.not-found-help a { color: var(--primary); font-weight: 700; }
body.dark .not-found { background: radial-gradient(circle at 16% 20%, #102d57 0, transparent 28%), var(--light); }
/* Keep the footer distinct and readable in dark mode. */
body.dark footer { background: #07111f; color: rgba(232,241,255,.86); }
body.dark footer .footer-about .logo { color: #f4f8ff; }
body.dark footer .footer-links h3, body.dark footer .footer-social h3 { color: #f4f8ff; }
body.dark footer .footer-links a { color: #b9c8dd; opacity: 1; }
body.dark footer .footer-links a:hover { color: #55d9b4; }
body.dark footer .copyright { color: #9caec7; opacity: 1; }

/* Prevent navigation overflow on regular laptop screens. */
@media (max-width: 1450px) and (min-width: 993px) {
    .header { padding-inline: 4%; }
    .navbar { gap: 20px; }
    .navbar a { font-size: 14px; }
    .logo { font-size: 19px; white-space: nowrap; }
    .logo-icon { width: 34px; height: 34px; }
    .header-actions { gap: 10px; }
    .command-menu-btn { padding-inline: 8px; }
    .btn-header { height: 38px; padding-inline: 14px; }
}

@media (max-width: 1120px) and (min-width: 993px) {
    .header { padding-inline: 24px; }
    .navbar { gap: 15px; }
    .navbar a { font-size: 13px; }
    .command-menu-btn span, .command-menu-btn kbd { display: none; }
    .command-menu-btn { width: 38px; justify-content: center; padding: 0; }
    .btn-header { display: none; }
}
@media (max-width: 768px) { .command-menu-btn span, .command-menu-btn kbd { display: none; } .command-menu-btn { width: 38px; justify-content: center; padding: 0; } .faq-layout { grid-template-columns: 1fr; gap: 38px; } .faq-intro h2 { font-size: 31px; } .carousel-controls { margin-top: -25px; } }
@media (max-width: 480px) { .header-actions { gap: 8px; } .theme-toggle, .command-menu-btn { height: 34px; width: 34px; } .carousel-controls { margin: -18px 0 15px; } .terms-actions { flex-direction: column-reverse; } .terms-actions .btn { width: 100%; } }
