/* =====================================================================
   Solwin Systems Training Portal — main stylesheet
   Blue-themed, modern, responsive.
   ===================================================================== */
:root {
    --blue-900: #0a2036;
    --blue-800: #103257;
    --blue-700: #14548f;
    --blue-600: #1a66ac;
    --blue-500: #3d82c4;
    --blue-100: #e5edf8;
    --blue-50:  #f3f7fc;
    --teal:     #14548f;   /* single navy accent — no secondary hues */
    --purple:   #14548f;   /* single navy accent — no secondary hues */
    --ink:      #14202e;
    --slate:    #5a6678;
    --line:     #dbe3ee;
    --white:    #ffffff;
    --bg:       #f4f7fb;
    --amber:    #c98a1e;
    --radius:   3px;
    --shadow:   0 2px 6px rgba(16, 50, 87, 0.06);
    --shadow-lg:0 6px 18px rgba(16, 50, 87, 0.10);
    --container: 1200px;
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--blue-900); }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 46px 0; }
.section--tight { padding: 34px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
    color: var(--blue-700); font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; font-size: .76rem; margin-bottom: 12px;
    display: inline-block; background: var(--blue-100); padding: 6px 14px; border-radius: 3px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.bg-tint { background: var(--blue-50); }
.bg-dark { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: #dbe7fb; }
.bg-dark h2, .bg-dark h3 { color: #fff; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 3px; font-weight: 600;
    border: 2px solid transparent; cursor: pointer; font-size: .95rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); color: #fff; box-shadow: 0 6px 16px rgba(109,52,214,.28); }
.btn-primary:hover { background: linear-gradient(135deg, #1f6fe0 0%, #6d28d9 100%); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(109,52,214,.38); }

/* Glossy chrome-bezel blue button (Register) */
.btn-glossy {
    position: relative; color: #fff; border: none; border-radius: 11px;
    padding: 12px 26px; font-weight: 800; letter-spacing: .01em;
    background: linear-gradient(to bottom, #2b86d4 0%, #1773c2 50%, #0b5896 100%);
    text-shadow: 0 1px 2px rgba(0,12,35,.45);
    box-shadow:
        0 0 0 1px #6f7a86,
        0 0 0 4px #dfe4ea,
        0 0 0 5px #9aa2ab,
        inset 0 -4px 8px rgba(0,25,60,.30),
        0 8px 16px rgba(0,0,0,.26);
    overflow: hidden; transition: filter .15s ease, transform .15s ease;
}
/* no light-blue gloss inside the button */
.btn-glossy::before, .btn-glossy::after { content: none; }
.btn-glossy:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.btn-glossy:active { filter: brightness(.96); transform: translateY(1px); }
/* Compact glossy button for the header nav */
.nav .btn-glossy { padding: 9px 19px; font-size: .88rem; border-radius: 9px; margin-left: 14px; }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-700); color: #fff; }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--blue-100); color: var(--blue-800); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--blue-800); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Top bar + Header ---- */
.topbar {
    background: var(--blue-900); color: #cfe0fb; font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 22px; flex-wrap: wrap; }
.topbar a { color: #cfe0fb; }
.topbar a:hover { color: #fff; }
.topbar .tb-links { display: flex; gap: 18px; align-items: center; }

.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img, .brand svg { height: 44px; width: auto; }
.brand .brand-text { font-weight: 800; font-size: 1.2rem; color: var(--blue-900); line-height: 1; }
.brand .brand-text small { display: block; font-size: .68rem; letter-spacing: .18em; color: var(--slate); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    padding: 10px 16px; border-radius: 8px; font-weight: 600; color: var(--ink); font-size: .98rem;
}
.nav a:hover, .nav a.active { background: var(--blue-100); color: var(--blue-700); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--blue-900); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* ---- Hero carousel ---- */
.hero { position: relative; overflow: hidden; background: var(--blue-900); }
.slides { position: relative; }
.slide {
    display: none; min-height: 520px;
    padding: 70px 0;
    background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-800) 100%);
    color: #eaf2ff;
}
/* Single navy scheme — all slides share one flat corporate treatment */
.slide.slide--teal,
.slide.slide--purple { background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-800) 100%); }
.slide.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: .25; } to { opacity: 1; } }
.slide .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.slide-body .kicker {
    display: inline-block; background: rgba(255,255,255,.12); color: #fff;
    padding: 6px 14px; border-radius: 3px; font-size: .8rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
    border-left: 3px solid var(--blue-500);
}
.slide-body h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 14px; }
.slide-body .lead { font-size: 1.25rem; font-weight: 600; color: #dfeaff; margin-bottom: 10px; }
.slide-body p { color: #cfe0fb; font-size: 1.05rem; max-width: 560px; }
.slide-body .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.slide-visual { display: flex; justify-content: center; }
.slide-visual svg, .slide-visual img { max-height: 340px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: rgba(255,255,255,.16); color: #fff; border: 0; width: 48px; height: 48px;
    border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
    transition: background .2s;
}
.slider-btn:hover { background: rgba(255,255,255,.34); }
.slider-btn.prev { left: 20px; } .slider-btn.next { right: 20px; }
.dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.dots button.active { background: #fff; width: 30px; border-radius: 999px; }

/* ---- Stat bar ---- */
.stats { background: var(--blue-700); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 22px; text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; }
.stat .lbl { font-size: .9rem; color: #cfe0fb; letter-spacing: .05em; }

/* ---- Training cards ---- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
/* Training-card grid: lays out ANY number of cards responsively and keeps the
   last row balanced. Cards flow left-to-right and wrap; a leftover/odd card is
   centred instead of stranded on the left, and cards never stretch too wide or
   overflow on small screens. */
.course-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 26px;
}
/* Every card is the exact same width (shrinks only on very small screens) and
   the same height, so full and sparse cards look identical. */
.course-grid > .course-card {
    flex: 0 1 340px;
    max-width: 340px;
    min-height: 580px;
}

.course-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-500); }
/* Solid blue training-card header — matches the Register button */
.course-media {
    position: relative; padding: 26px; overflow: hidden;
    background: linear-gradient(to bottom, #2b86d4 0%, #1773c2 50%, #0b5896 100%);
    color: #fff; display: flex; align-items: center; gap: 16px;
    text-shadow: 0 1px 2px rgba(0,12,35,.4);
    box-shadow: inset 0 -5px 10px rgba(0,25,60,.28);
}
/* no light-blue gloss inside the header */
.course-media::before, .course-media::after { content: none; }
.course-media .cc-icon { width: 60px; height: 60px; flex: none; }
.course-media .code {
    position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.18);
    padding: 4px 10px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
}
.course-media h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.course-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
    background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100);
    padding: 4px 11px; border-radius: 3px; font-size: .78rem; font-weight: 600;
}
/* Fixed, consistent description block so the feature list starts at the same
   place on every card (no flex-grow, which made the gap vary by text length). */
.course-body .desc { color: var(--slate); font-size: .95rem; min-height: 2.8em; margin-bottom: 4px; }
.course-features { list-style: none; padding: 0; margin: 14px 0; }
.course-features li { position: relative; padding-left: 26px; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.course-features li::before {
    content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800;
    background: var(--blue-100); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem;
}
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin: auto 0 16px; border-top: 1px dashed var(--line); padding-top: 16px; }
.price-row .price { font-size: 1.7rem; font-weight: 800; color: var(--blue-800); }
.price-row .price small { font-size: .85rem; color: var(--slate); font-weight: 600; }
.price-row .free { color: var(--teal); }
.course-actions { display: flex; gap: 10px; }
.course-actions .btn { flex: 1; }

/* ---- Webinar / upcoming section ---- */
.webinar-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    border-left: 5px solid var(--teal); padding: 24px; display: flex; gap: 20px; align-items: center;
    flex-wrap: wrap;
}
.webinar-card .wc-date {
    background: var(--blue-50); border-radius: 12px; text-align: center; padding: 14px 18px; flex: none; min-width: 92px;
}
.webinar-card .wc-date .d { font-size: 1.9rem; font-weight: 800; color: var(--blue-700); line-height: 1; }
.webinar-card .wc-date .m { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.webinar-card .wc-body { flex: 1; min-width: 240px; }
.webinar-card h3 { margin-bottom: 6px; }
.badge-free { background: var(--blue-700); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.badge-paid { background: var(--blue-100); color: var(--blue-700); padding: 3px 10px; border-radius: 3px; font-size: .74rem; font-weight: 800; }

/* ---- Message from founder ---- */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; }
.founder-photo {
    border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--blue-700), var(--purple)); aspect-ratio: 4/5;
}
.founder-photo img, .founder-photo svg { width: 100%; height: 100%; object-fit: cover; }
.founder blockquote { font-size: 1.12rem; color: var(--ink); border: 0; margin: 0; padding: 0; position: relative; }
.founder blockquote::before { content: "“"; font-size: 4rem; color: var(--blue-100); position: absolute; top: -30px; left: -12px; font-family: Georgia, serif; }
.founder .sign { margin-top: 20px; }
.founder .sign strong { font-size: 1.15rem; color: var(--blue-900); display: block; }
.founder .sign span { color: var(--slate); }

/* ---- Team ---- */
.team-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; transition: transform .18s; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-card .avatar { aspect-ratio: 1; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); }
.team-card .avatar img, .team-card .avatar svg { width: 100%; height: 100%; object-fit: cover; }
.team-card .tc-body { padding: 20px; }
.team-card h4 { margin-bottom: 2px; }
.team-card .role { color: var(--blue-700); font-weight: 600; font-size: .9rem; }
.team-card .bio { color: var(--slate); font-size: .88rem; margin-top: 10px; }

/* ---- Testimonials ---- */
.testi-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 20px; }
.testi-card { scroll-snap-align: start; flex: 0 0 360px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.testi-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.testi-card p { font-style: italic; color: var(--ink); }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testi-card .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-600), var(--purple)); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.testi-card .who img.av { object-fit: cover; }
.testi-card .who strong { display: block; }
.testi-card .who span { color: var(--slate); font-size: .85rem; }

/* ---- Forms ---- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 1rem; font-family: inherit; background: #fbfdff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
    border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: #d64545; }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: #e6faf0; color: #0a7d4f; border: 1px solid #b8ecd0; }
.alert-error { background: #fdeaea; color: #b3261e; border: 1px solid #f4c4c4; }
.alert-info { background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100); }

/* ---- Page hero (interior pages) ---- */
.page-hero { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 64px 0 56px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #cfe0fb; max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { color: #9fc0f5; font-size: .85rem; margin-bottom: 10px; }
.breadcrumb a { color: #cfe0fb; }

/* ---- Footer ---- */
.site-footer { background: var(--blue-900); color: #b9cbe8; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #b9cbe8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: .92rem; }
.mini-contact .field input, .mini-contact .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.mini-contact .field input::placeholder, .mini-contact .field textarea::placeholder { color: #8fa6c9; }
.mini-contact label { color: #dbe7fb; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }
.soc { display: flex; gap: 12px; }
.soc a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.soc a:hover { background: var(--blue-600); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 20px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card-plain { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li { padding-left: 34px; position: relative; margin-bottom: 14px; }
.icon-list li::before { content:"✓"; position:absolute; left:0; top:2px; width:22px; height:22px; background:var(--blue-100); color:var(--blue-700); border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:.8rem; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .slide .container { grid-template-columns: 1fr; text-align: center; }
    .slide-visual { display: none; }
    .founder { grid-template-columns: 1fr; }
    .founder-photo { max-width: 300px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        padding: 12px 18px 20px; box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .25s; gap: 2px; }
    .nav.open { transform: translateY(0); }
    .nav-toggle { display: block; }
    .nav .btn { margin: 8px 0 0; }
    .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .topbar .tb-links { display: none; }
    .section { padding: 38px 0; }
}
