:root {
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(2, 132, 199, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --accent: #0284c7;
    --accent-glow: rgba(2, 132, 199, 0.25);
    --purple: #7c3aed;
    --success: #059669;
    --font-main: "Times New Roman", Times, serif;
}

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

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06), 0 3px 10px rgba(2, 132, 199, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--accent-glow);
    flex-shrink: 0;
}

.logo-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text h2 {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    font-weight: bold;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    min-width: 180px;
    padding: 6px 0;
    display: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    z-index: 1010;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 6px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent);
    padding-left: 18px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lms-menu-container {
    position: relative;
}

.lms-trigger-btn {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: transform 0.2s;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.lms-trigger-btn:hover {
    transform: scale(1.05);
}

.lms-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    width: 180px;
    padding: 6px 0;
    display: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    z-index: 1020;
}

.lms-dropdown.show {
    display: block;
}

.lms-header {
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 3px;
    font-weight: bold;
}

.lms-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lms-dropdown a:hover {
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: var(--card-border);
    margin: 3px 0;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 35px 0 15px;
    overflow: hidden;
    text-align: center;
}

.hero-container-single {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 15px;
    max-width: 650px;
}

.center-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(2, 132, 199, 0.1);
}

/* STATS SECTION (Properly placed at the bottom below hero content with clean alignment) */
.stats-bottom-section {
    padding: 10px 0 30px;
}

.hero-stats-center {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.stat-card {
    padding: 15px;
    text-align: center;
}

.stat-card h3 {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* SECTIONS */
section {
    padding: 30px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 20px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.about-card {
    padding: 20px;
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.about-card .icon-box {
    width: 45px;
    height: 45px;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: bold;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* BACKGROUND ANIMATION FOR COURSES / TECHNOLOGIES SECTION */
.animated-bg-section {
    position: relative;
    background: linear-gradient(120deg, rgba(2, 132, 199, 0.04), rgba(124, 58, 237, 0.04), rgba(5, 150, 105, 0.04));
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* COURSES */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    border-color: transparent;
}

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

.course-card {
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.course-img {
    height: 100px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(124, 58, 237, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent);
}

.course-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 6px;
    width: max-content;
}

.course-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: bold;
}

.course-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 10px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--card-border);
    padding-top: 8px;
}

.view-blueprint {
    color: var(--accent);
    font-weight: bold;
}

/* SERVICES */
.services-section {
    background: rgba(255, 255, 255, 0.4);
}

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

.service-card {
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(2, 132, 199, 0.05);
    border-color: var(--accent);
}

.service-card .icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: bold;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.35;
}

/* CONSULTING & TRAINING */
.consulting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.consulting-card {
    padding: 22px;
}

.icon-title {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.consulting-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: bold;
}

.consulting-card p {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.consulting-card ul {
    list-style: none;
    margin-bottom: 15px;
}

.consulting-card ul li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.consulting-card ul li i {
    color: var(--success);
}

.verify-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.verify-box h4 {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: bold;
}

.verify-input-group {
    display: flex;
    gap: 6px;
}

.verify-input-group input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-main);
}

.verify-result {
    margin-top: 6px;
    font-size: 0.9rem;
}

/* TESTIMONIALS */
.testimonials-section {
    background: rgba(255, 255, 255, 0.4);
}

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

.testimonial-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #d97706;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-style: italic;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.client-info h4 {
    font-size: 0.95rem;
    margin-bottom: 1px;
    color: var(--text-primary);
    font-weight: bold;
}

.client-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
}

.contact-info-card {
    padding: 22px;
}

.contact-info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: bold;
}

.contact-info-card p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.contact-info-card i {
    color: var(--accent);
    width: 18px;
}

.contact-form {
    padding: 22px;
}

.contact-form h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: bold;
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
    font-weight: bold;
}

/* FOOTER */
.footer {
    background: #e2e8f0;
    border-top: 1px solid var(--card-border);
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-brand h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: bold;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.35;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: bold;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 5px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact p a {
    color: inherit;
    text-decoration: none;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* FLOATING REGISTER BUTTON */
.floating-register-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 999;
    animation: pulseGlow 2s infinite;
    transition: transform 0.3s;
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.floating-register-btn:hover {
    transform: scale(1.08);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 15px;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
}

.auth-modal-content, .register-modal-content {
    max-width: 450px;
}

.dashboard-modal-content {
    max-width: 850px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 3px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.auth-tab.active {
    background: var(--accent);
    color: #fff;
}

.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
}

.auth-links-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.auth-links-row a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
}

.otp-timer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.85rem;
    font-family: var(--font-main);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dash-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    padding: 12px;
    border-radius: 8px;
}

.dash-card h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dash-card h2 {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
}

.attendance-section, .certificate-section, .admin-database-section {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.attendance-section h3, .certificate-section h3, .admin-database-section h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: bold;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    min-width: 450px;
}

.data-table th, .data-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.data-table th {
    color: var(--text-secondary);
    font-weight: bold;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid, .courses-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-stats-center,
    .about-grid,
    .courses-grid,
    .services-grid,
    .consulting-grid,
    .testimonials-grid,
    .contact-grid,
    .footer-content,
    .dashboard-stats-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    .auth-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

:root {
    --bg-gradient: linear-gradient(135deg, #f8fbff 0%, #edf4ff 52%, #e9edff 100%);
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(14, 116, 190, 0.16);
    --text-primary: #10213b;
    --text-secondary: #52647e;
    --accent: #087fbd;
    --accent-glow: rgba(8, 127, 189, 0.22);
    --purple: #7045d8;
    --font-main: "Segoe UI", Arial, sans-serif;
}

body {
    background-color: #f5f8ff;
    background-image:
        radial-gradient(ellipse at 8% 12%, rgba(14, 165, 233, 0.12), transparent 30%),
        radial-gradient(ellipse at 92% 38%, rgba(124, 58, 237, 0.1), transparent 28%),
        var(--bg-gradient);
}

.hero-section {
    isolation: isolate;
    min-height: 470px;
    display: flex;
    align-items: center;
    padding: 86px 0 78px;
    background: linear-gradient(125deg, #07172f 0%, #102d50 58%, #164e75 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 22%, rgba(14, 165, 233, 0.28), transparent 27%),
        radial-gradient(circle at 86% 78%, rgba(124, 58, 237, 0.24), transparent 30%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: auto, auto, 42px 42px, 42px 42px;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-content h1 {
    color: #f8fbff;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero-content h1 strong {
    color: #f8fbff;
}

.hero-content h1 span {
    background: linear-gradient(120deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: rgba(240, 248, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 26px;
}

.hero-cta {
    margin-bottom: 0;
}

.hero-cta .btn-outline {
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.58);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

section {
    padding: 68px 0;
}

.stats-bottom-section {
    position: relative;
    z-index: 1;
    padding: 0 0 54px;
    margin-top: -28px;
}

.hero-stats-center {
    max-width: 660px;
    gap: 18px;
}

.stat-card {
    padding: 22px;
}

.stat-card h3 {
    font-size: 1.9rem;
}

.section-header {
    margin-bottom: 34px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.glass {
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(20, 45, 80, 0.08), 0 3px 12px rgba(20, 45, 80, 0.04);
}

.about-card,
.service-card,
.course-card,
.testimonial-card,
.consulting-card,
.contact-info-card,
.contact-form {
    border: 1px solid rgba(14, 116, 190, 0.14);
    box-shadow: 0 14px 36px rgba(20, 45, 80, 0.07);
}

.about-card,
.service-card,
.course-card,
.testimonial-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-card:hover,
.service-card:hover,
.course-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(20, 45, 80, 0.13);
}

.services-section,
.testimonials-section {
    background: rgba(255, 255, 255, 0.48);
}

.footer {
    background: #0b1c34;
    border-top: 1px solid rgba(125, 211, 252, 0.18);
}

.footer-brand h2,
.footer-links h4,
.footer-contact h4 {
    color: #f8fbff;
}

.footer-brand p,
.footer-links a,
.footer-contact p,
.footer-bottom {
    color: #bdcbe0;
}

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 0;
        padding: 74px 0 66px;
    }

    .hero-content h1 {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

}

:root {
    --font-main: Inter, "Segoe UI", Arial, sans-serif;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 1px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: right 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    right: 0;
}

.hero-section::before {
    animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(0, -10px, 0); }
}

.eyebrow {
    color: #7dd3fc !important;
    font-size: 0.78rem !important;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 12px !important;
    text-transform: uppercase;
}

.specialty-line {
    min-height: 1.7em;
    font-weight: 700;
}

.rotating-specialty {
    color: #7dd3fc;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.rotating-specialty.changing {
    opacity: 0;
    transform: translateY(5px);
}

.stats-bottom-section .hero-stats-center {
    max-width: 1050px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-section {
    padding: 76px 0;
}

.soft-section {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.55), rgba(224, 242, 254, 0.55));
}

.feature-grid,
.career-grid,
.contact-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.career-card,
.story-panel,
.timeline-step {
    padding: 25px;
    border: 1px solid rgba(14, 116, 190, 0.16);
    box-shadow: 0 14px 36px rgba(20, 45, 80, 0.07);
}

.feature-card,
.career-card {
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.career-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.6);
    box-shadow: 0 20px 46px rgba(20, 45, 80, 0.14), 0 0 20px rgba(2, 132, 199, 0.1);
}

.feature-card > i {
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.feature-card h3,
.career-card h3,
.story-panel h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
}

.feature-card p,
.career-card p,
.story-panel p,
.timeline-step p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.feature-card > span,
.feature-card a,
.text-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag-grid span,
.role-skills {
    padding: 9px 14px;
    border-radius: 999px;
    color: #17456b;
    background: rgba(14, 165, 233, 0.1);
    font-size: 0.9rem;
    font-weight: 650;
}

.story-panel {
    margin-top: 24px;
}

.story-panel p:last-child {
    margin-bottom: 0;
}

.stats-bottom-section .stat-card {
    border: 1px solid rgba(14, 116, 190, 0.16);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 45, 80, 0.08);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--purple));
}

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

.career-card .badge {
    margin-bottom: 14px;
}

.career-card .role-skills {
    display: inline-block;
    border-radius: 10px;
    line-height: 1.5;
}

.career-card .btn {
    margin-top: 8px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.timeline-step span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
}

.timeline-step h3 {
    font-size: 1.05rem;
}

.application-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: start;
}

.application-layout h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.application-layout h2 span {
    color: var(--accent);
}

.application-layout > div > p:not(.eyebrow) {
    color: var(--text-secondary);
    line-height: 1.8;
}

.career-form {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}

.career-form .form-group {
    display: grid;
    gap: 7px;
}

.career-form label {
    color: var(--text-primary);
    font-weight: 700;
}

.career-form input,
.career-form select,
.career-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
}

.career-form input:focus,
.career-form select:focus,
.career-form textarea:focus {
    outline: 3px solid rgba(2, 132, 199, 0.16);
    border-color: var(--accent);
}

.career-form button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.career-form button[type="submit"] {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.faq-list {
    max-width: 850px;
    margin: 24px auto 0;
}

.faq-item {
    margin: 10px 0;
    padding: 17px 20px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
}

.faq-item summary {
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 750;
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: faq-reveal 0.22s ease both;
}

@keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.process-list {
    max-width: 760px;
    margin: 0 auto;
    padding-left: 26px;
    color: var(--text-secondary);
    line-height: 2;
}

.course-card {
    cursor: default;
}

.course-body .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.course-body .tag-grid {
    justify-content: flex-start;
    margin: 8px 0;
}

.course-body .tag-grid span {
    padding: 5px 9px;
    font-size: 0.75rem;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary {
    background-image:
        linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, 0.28) 50%, transparent 64%),
        linear-gradient(135deg, var(--accent), var(--purple));
    background-size: 250% 100%, 100% 100%;
    background-position: 150% 0, 0 0;
    animation: button-shimmer 5s ease-in-out infinite;
}

@keyframes button-shimmer {
    0%, 60% { background-position: 150% 0, 0 0; }
    100% { background-position: -150% 0, 0 0; }
}

.motion-ready .reveal,
.motion-ready .reveal-left,
.motion-ready .reveal-right,
.motion-ready .reveal-scale {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal { transform: translateY(22px); }
.motion-ready .reveal-left { transform: translateX(-24px); }
.motion-ready .reveal-right { transform: translateX(24px); }
.motion-ready .reveal-scale { transform: scale(0.96); }

.motion-ready .is-visible {
    opacity: 1;
    transform: none;
}

.feature-grid > :nth-child(3n + 2),
.career-grid > :nth-child(2n + 2),
.timeline > :nth-child(2n + 2) {
    --reveal-delay: 90ms;
}

.feature-grid > :nth-child(3n),
.career-grid > :nth-child(3n) {
    --reveal-delay: 160ms;
}

.btn,
.feature-card,
.career-card,
.course-card,
.service-card {
    transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:hover {
    transform: translateY(-3px);
}

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

.contact-support-grid ol {
    padding-left: 22px;
    color: var(--text-secondary);
    line-height: 1.8;
}

[hidden] {
    display: none !important;
}

@media (max-width: 850px) {
    .feature-grid,
    .career-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .application-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .content-section {
        padding: 52px 0;
    }

    .stats-bottom-section .hero-stats-center,
    .feature-grid,
    .career-grid,
    .contact-support-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .career-form {
        padding: 18px;
    }
}

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

.verify-hero {
    min-height: 390px;
}

.verify-hero .hero-content {
    max-width: 880px;
}

.verify-primary-section {
    padding-top: 54px;
}

.verification-card {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 42px);
    border-color: rgba(14, 116, 190, 0.22);
}

.verification-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.verification-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.verification-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--text-secondary);
}

.verification-icon {
    display: grid;
    flex: 0 0 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--accent), var(--purple));
}

.verification-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.verification-controls input {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--text-primary);
    font: inherit;
}

.verification-controls input:focus {
    outline: 3px solid rgba(2, 132, 199, 0.16);
    border-color: var(--accent);
}

.verification-input-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.verification-option {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.verification-option h3 {
    margin: 0 0 14px;
    font-size: 1.08rem;
}

.qr-scan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qr-scan-actions [hidden] {
    display: none !important;
}

.qr-scan-actions .btn {
    margin: 0;
}

.qr-upload-label {
    display: block;
    margin: 18px 0 8px;
    color: var(--text-secondary);
    font-weight: 650;
}

.qr-upload-input {
    display: block;
    width: 100%;
    color: var(--text-secondary);
    font: inherit;
}

.qr-upload-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.qr-reader {
    width: 100%;
    max-width: 360px;
    margin: 16px auto 0;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.qr-reader[hidden] {
    display: none !important;
}

.qr-reader video {
    max-width: 100%;
    border-radius: 14px;
}

.qr-status {
    min-height: 1.5em;
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.sample-cert-help {
    margin: 12px 0 0;
    color: var(--text-secondary);
}

.text-button {
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.verification-result-card {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid;
    border-radius: 14px;
}

.verification-result-card.valid {
    border-color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    color: #14532d;
}

.verification-result-card.invalid {
    border-color: #dc2626;
    background: #fef2f2;
    color: #7f1d1d;
}

.verification-result-card h3 {
    margin: 0 0 16px;
}

.verification-result-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.verification-result-card dl > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid rgba(20, 83, 45, 0.15);
}

.verification-result-card dt {
    font-weight: 750;
}

.verification-result-card dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.verification-result-card.invalid a {
    color: #991b1b;
    font-weight: 700;
}

.verification-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
}

.verification-steps li {
    padding: 24px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(20, 45, 80, 0.06);
}

.verification-steps li > span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 850;
}

.verification-steps h3 {
    margin: 0 0 10px;
}

.verification-steps p,
.verification-info-grid p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.verification-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.verification-info-grid .story-panel {
    margin: 0;
}

.verification-info-grid h2 {
    margin-bottom: 14px;
    font-size: 1.45rem;
}

.verified-fields {
    display: grid;
    gap: 13px;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
}

.verified-fields i {
    margin-right: 8px;
    color: var(--success);
}

.verify-cta {
    background: linear-gradient(120deg, #0b1c34, #164e75);
    color: #fff;
}

.verify-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.verify-cta h2 {
    margin-bottom: 8px;
}

.verify-cta p {
    margin: 0;
    color: #bdcbe0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {
    .verification-controls,
    .verify-cta .container {
        align-items: stretch;
        flex-direction: column;
    }

    .verification-input-options {
        grid-template-columns: 1fr;
    }

    .verification-steps,
    .verification-info-grid {
        grid-template-columns: 1fr;
    }

    .verification-result-card dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (min-width: 769px) {
    .nav-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .brand-logo {
        order: 0;
        flex: 0 0 auto;
        margin: 0 auto 0 0;
    }

    .nav-links {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        order: 1;
        justify-content: flex-end;
        gap: clamp(6px, 1vw, 14px);
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-links > li {
        flex: 0 0 auto;
    }

    .nav-links > li > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        font-size: 0.95rem;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 220px;
        padding: 8px 0;
        border: 1px solid var(--card-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu,
    .dropdown.open > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
    }

    .brand-logo {
        order: 0;
        align-self: center;
        margin: 0 auto;
    }

    .nav-links {
        display: flex !important;
        position: static;
        order: 1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px 14px;
        flex: 0 0 auto;
        flex-basis: auto;
        width: 100%;
        min-width: 0;
        max-height: none;
        margin: 0;
        padding: 8px 12px;
        overflow: visible;
        white-space: normal;
    }

    .nav-links > li {
        width: auto;
        flex: 0 0 auto;
    }

    .nav-links > li > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        width: auto;
        padding: 8px 0;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-links .dropdown-menu,
    .nav-links .dropdown:hover > .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0 0 0 16px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-links .dropdown.open > .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu a {
        padding: 10px 12px;
    }
}

.container {
    max-width: 1240px;
    padding-right: 24px;
    padding-left: 24px;
}

.footer {
    padding-bottom: 104px;
}

.about-grid,
.feature-grid,
.career-grid,
.services-grid,
.courses-grid,
.testimonials-grid,
.internship-roadmap,
.verification-info-grid,
.contact-department-grid,
.impact-stats-grid,
.methodology-steps {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.about-grid,
.feature-grid,
.testimonials-grid,
.verification-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid,
.courses-grid,
.career-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-grid > *,
.about-grid > *,
.career-grid > *,
.services-grid > *,
.courses-grid > *,
.testimonials-grid > *,
.internship-roadmap > *,
.verification-info-grid > *,
.contact-department-grid > *,
.consulting-grid > *,
.contact-support-grid > *,
.verification-input-options > *,
.hero-stats-center > * {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.feature-card > a:last-child,
.career-card .btn,
.service-card > .btn,
.course-body .course-enroll,
.contact-department-grid .text-link {
    margin-top: auto;
}

.capability-grid {
    gap: 22px;
}

.capability-card {
    padding: 26px;
}

.capability-card h3 {
    min-height: 2.5em;
}

.capability-points {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 0;
    color: var(--text-secondary);
    list-style: none;
}

.capability-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.capability-points li::before {
    flex-shrink: 0;
    color: var(--success);
    content: "\2713";
    font-weight: 800;
}

.capability-tags,
.service-tags,
.course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.capability-tags {
    margin: 0 0 18px;
}

.capability-tags span,
.service-tags span,
.course-tools span {
    padding: 6px 10px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: #17456b;
    font-size: 0.8rem;
    font-weight: 700;
}

.capability-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: default;
    padding: 24px;
}

.service-card h4,
.course-body h4 {
    margin: 12px 0 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.65;
}

.service-deliverables {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 14px;
    padding: 0;
    color: var(--text-secondary);
    list-style: none;
    line-height: 1.5;
}

.service-deliverables li,
.course-syllabus li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    list-style: none;
}

.service-deliverables li::before,
.course-syllabus li::before {
    flex-shrink: 0;
    color: var(--success);
    content: "\2713";
    font-weight: 800;
}

.service-tags {
    justify-content: flex-start;
    margin: 0 0 18px;
}

.service-card > .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
}

.course-card {
    height: 100%;
}

.course-body {
    height: 100%;
    padding: 22px;
}

.course-badges {
    margin-bottom: 8px;
}

.course-badges .badge {
    width: auto;
    margin: 0;
    padding: 6px 10px;
}

.course-badges .mode-badge {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.course-body .course-level {
    flex-grow: 0;
}

.course-body p {
    flex-grow: 0;
    line-height: 1.55;
}

.course-syllabus {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    color: var(--text-secondary);
    list-style: none;
    line-height: 1.45;
}

.course-body .course-tools {
    justify-content: flex-start;
    margin: 0 0 12px;
}

.course-tools span {
    padding: 5px 9px;
    font-size: 0.76rem;
}

.course-body .course-capstone {
    margin-top: auto;
}

.course-body .course-enroll {
    align-self: stretch;
    width: 100%;
    min-height: 44px;
    justify-content: center;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: stretch;
    gap: 24px;
    margin-top: 30px;
}

.about-story-grid .story-panel {
    height: 100%;
    margin-top: 0;
}

.about-story-grid h3,
.methodology-panel h3 {
    margin: 0 0 14px;
    color: var(--text-primary);
}

.about-story-grid h4 {
    margin: 18px 0 8px;
    color: var(--text-primary);
}

.impact-panel {
    padding: 26px;
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.impact-stats-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 100px;
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.impact-stats-grid strong {
    color: var(--accent);
    font-size: 1.45rem;
}

.impact-stats-grid span {
    color: var(--text-secondary);
    line-height: 1.4;
}

.methodology-panel {
    margin-top: 24px;
    padding: 26px;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.methodology-steps li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.methodology-steps li > span,
.internship-roadmap li > span {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 850;
}

.methodology-steps strong {
    margin-bottom: 6px;
    color: var(--text-primary);
}

.methodology-steps p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.internship-roadmap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.internship-roadmap li {
    padding: 24px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(20, 45, 80, 0.06);
}

.internship-roadmap h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
}

.internship-roadmap p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.internship-roadmap strong {
    margin-top: auto;
    color: var(--accent);
    line-height: 1.5;
}

.hiring-application-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 24px;
}

.hiring-process-panel {
    padding: 26px;
}

.hiring-process-panel > h3 {
    margin-bottom: 18px;
    color: var(--text-primary);
}

.hiring-process-panel .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
}

.hiring-process-panel .timeline-step {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hiring-process-panel .timeline-step p {
    margin-top: auto;
}

.career-application-panel {
    max-width: 820px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.career-application-intro {
    padding: 4px 4px 0;
}

.career-application-intro h2 {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.career-application-intro h2 span {
    color: var(--accent);
}

.career-application-intro p:not(.eyebrow) {
    color: var(--text-secondary);
    line-height: 1.7;
}

.career-grid .career-card {
    padding: 24px;
}

.career-grid .career-card .btn {
    width: 100%;
    justify-content: center;
}

.verification-card {
    max-width: 760px;
}

.verification-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.verification-info-grid .story-panel {
    height: 100%;
    margin-top: 0;
    padding: 24px;
}

.verification-guide {
    display: grid;
    gap: 12px;
    padding-left: 22px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.verified-fields {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
}

.verified-fields li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.verified-fields i {
    margin-top: 4px;
    color: var(--success);
}

.contact-layout {
    display: flex;
    flex-direction: column;
}

.contact-info-card {
    padding: 24px;
}

.contact-info-card p a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-info-card p a:hover {
    color: var(--accent);
}

.contact-info-card .office-hours {
    display: block;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    line-height: 1.6;
}

.contact-department-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
}

.contact-department-grid > * {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.contact-department-grid .contact-info-card {
    padding: 24px;
}

.contact-department-grid .feature-card {
    padding: 24px;
}

.contact-department-grid .department-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    color: var(--text-secondary);
    list-style: none;
}

.contact-department-grid .department-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.contact-department-grid .department-card-check {
    flex-shrink: 0;
    color: var(--success);
    font-weight: 800;
}

.contact-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
}

.contact-support-grid .story-panel {
    height: 100%;
    margin-top: 0;
    padding: 20px;
}

.contact-support-grid ol {
    margin-top: 8px;
}

.contact-form {
    width: 100%;
    max-width: 820px;
    height: auto;
    margin: 48px auto 0;
    padding: 28px;
}

.contact-form .form-intro {
    margin: -4px 0 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form .form-group {
    margin-bottom: 14px;
}

.contact-form > button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
}

.contact-faqs {
    max-width: none;
    margin-top: 32px;
}

@media (min-width: 701px) and (max-width: 850px) {
    .about-grid,
    .feature-grid,
    .testimonials-grid,
    .verification-info-grid,
    .internship-roadmap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .hiring-process-panel .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .about-grid,
    .feature-grid,
    .testimonials-grid,
    .internship-roadmap,
    .verification-info-grid,
    .methodology-steps {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .courses-grid,
    .career-grid,
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hiring-process-panel .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .services-grid,
    .courses-grid,
    .career-grid,
    .capability-grid,
    .contact-department-grid,
    .hiring-process-panel .timeline {
        grid-template-columns: 1fr;
    }

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

    .footer {
        padding-bottom: 112px;
    }

    .career-application-panel,
    .contact-form {
        padding: 18px;
    }
}

.capability-points li {
    padding-left: 0;
}

.consulting-card ul li {
    align-items: flex-start;
    gap: 10px;
}

.consulting-card ul li > i,
.verified-fields i {
    flex-shrink: 0;
}

.submission-confirmation-overlay {
    z-index: 2200;
}

.submission-confirmation-content {
    max-width: 420px;
    padding: 32px;
    text-align: center;
}

.submission-confirmation-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 2rem;
    font-weight: 700;
}

.submission-confirmation-content h2 {
    margin: 0 0 8px;
}

.submission-confirmation-content p {
    margin: 0;
}

.submission-confirmation-content .btn {
    min-width: 100px;
    margin-top: 20px;
}

.menu-control {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 14px;
    border: 0;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #0369a1;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    display: none;
    min-width: 220px;
    padding: 6px 0;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.menu-control.open .menu-dropdown {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 9px 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus-visible {
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent);
}

.register-form-status {
    margin-top: 12px;
    color: #b91c1c;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .brand-logo {
        align-self: auto;
        margin: 0;
    }

    .menu-control {
        order: 0;
    }

    .nav-links {
        order: 1;
    }
}

.chatbot-widget {
    position: fixed;
    right: 20px;
    bottom: 82px;
    z-index: 1100;
}

.chatbot-toggle-btn {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
    color: #fff;
    cursor: pointer;
    font-size: 1.45rem;
    transition: transform 0.2s ease;
}

.chatbot-toggle-btn:hover,
.chatbot-toggle-btn:focus-visible {
    transform: translateY(-2px);
}

.chat-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    height: 540px;
    max-height: calc(100vh - 110px);
    width: 380px;
    max-width: calc(100vw - 32px);
    border: 1px solid var(--card-border);
    background: #fff;
}

.chat-popup[hidden] {
    display: none;
}

.chat-popup-header {
    display: flex;
    min-height: 58px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 0;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    font-weight: 700;
}

.chatbot-close-btn {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.chatbot-close-btn:hover,
.chatbot-close-btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 14px;
    background: #f8fafc;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.chat-bubble {
    max-width: 88%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.assistant-bubble {
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    background: #fff;
    color: #1e293b;
}

.chat-message-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-message-link:hover,
.chat-message-link:focus-visible {
    color: var(--purple);
}

.user-bubble {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
}

.chat-composer {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.chat-composer input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font: inherit;
}

.chat-composer input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(59, 130, 246, 0.18);
}

.chat-composer button {
    padding: 0 16px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.chat-composer button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.chat-composer .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-typing {
    color: #64748b;
    font-style: italic;
}

.chat-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.chat-popup,
.chat-popup * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .chatbot-widget {
        right: 12px;
        bottom: 84px;
    }

    .chatbot-toggle-btn {
        width: 54px;
        height: 54px;
    }

    .chat-popup {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: 70vh;
    }
}
