@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* =========================================================
   M & M CONSULTANCY & TRAINING INSTITUTE
   Premium responsive website stylesheet
   Primary brand: #29266f
   ========================================================= */

/* 1. DESIGN TOKENS
--------------------------------------------------------- */
:root {
    --blue: #a30303;
    --blue2: #b80707;
    --blue3: #514ca5;
    --blue-dark: #1c1a4d;

    --ink: #19191f;
    --muted: #6d6c7b;
    --line: #e7e6ee;
    --paper: #f7f7fa;
    --white: #ffffff;
    --pale: #eeedf8;

    --success: #16794b;
    --danger: #b42318;

    --shadow-sm: 0 5px 18px rgba(35, 32, 94, .05);
    --shadow: 0 18px 55px rgba(35, 32, 94, .10);
    --shadow-lg: 0 28px 75px rgba(35, 32, 94, .16);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --container: 1160px;
    --transition: 220ms ease;
}

/* 2. RESET & BASE
--------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: 'DM Sans', Arial, sans-serif;
}

button,
input,
select,
textarea {
    font-size: inherit;
}

button,
select {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 18px;
    color: inherit;
    font-family: 'Manrope', 'DM Sans', sans-serif;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(2.65rem, 5.8vw, 5.1rem);
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    letter-spacing: -.045em;
}

h3 {
    font-size: 1.24rem;
    letter-spacing: -.025em;
}

h4 {
    font-size: 1.03rem;
}

p {
    margin: 0 0 18px;
    color: var(--muted);
}

p:last-child {
    margin-bottom: 0;
}

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

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

ul,
ol {
    padding-left: 24px;
}

::selection {
    background: #dcd9fa;
    color: var(--blue-dark);
}

:focus-visible {
    outline: 3px solid #a5a0f1;
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

/* 3. TOP INFORMATION BAR
--------------------------------------------------------- */
.topline {
    padding: 9px 0;
    background: #17171c;
    color: #e8e7f6;
    font-size: .79rem;
    line-height: 1.5;
}

.topline .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    flex-wrap: wrap;
}

.topline p {
    margin: 0;
    color: inherit;
}

.topline a {
    color: #d5d3f8;
}

.topline a:hover {
    color: var(--white);
}

/* 4. HEADER & NAVIGATION
--------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(30, 28, 74, .07);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 3px 20px rgba(25, 23, 70, .025);
}

.navwrap {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 220px;
    flex-shrink: 0;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-fallback {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--blue), var(--blue2));
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.1em;
    box-shadow: 0 6px 18px rgba(41, 38, 111, .2);
}

.brand-name {
    color: var(--blue);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.brand-name small {
    display: block;
    margin-top: 5px;
    color: #777583;
    font-family: 'DM Sans', sans-serif;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .105em;
    line-height: 1.5;
    text-transform: uppercase;
}

.navlinks {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 27px);
}

.navlinks a {
    position: relative;
    color: #464552;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color var(--transition);
}

.navlinks a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    border-radius: 5px;
    background: var(--blue);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.navlinks a:not(.nav-cta):hover::after,
.navlinks a:not(.nav-cta).active::after {
    transform: scaleX(1);
}

.navlinks a:hover,
.navlinks a.active {
    color: var(--blue);
}

.navlinks .nav-cta {
    padding: 12px 19px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 5px 14px rgba(41, 38, 111, .13);
    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.navlinks .nav-cta:hover {
    border-color: var(--blue2);
    background: var(--blue2);
    color: var(--white);
    box-shadow: 0 9px 20px rgba(41, 38, 111, .2);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e2f1;
    border-radius: 12px;
    background: var(--pale);
    color: var(--blue);
    font-size: 1.35rem;
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: #e3e1f5;
}

/* 5. HERO SECTION
--------------------------------------------------------- */
.hero {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(
            112deg,
            rgba(27, 25, 79, .97),
            rgba(41, 38, 111, .88)
        ),
        url('images/hero-placeholder.jpg') center / cover no-repeat;
    color: var(--white);
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: -220px;
    right: -130px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 65px rgba(255, 255, 255, .025),
        0 0 0 130px rgba(255, 255, 255, .018);
    content: '';
    pointer-events: none;
}

.hero::after {
    position: absolute;
    z-index: -1;
    bottom: -180px;
    left: 30%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(122, 116, 222, .10);
    filter: blur(65px);
    content: '';
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(35px, 5vw, 70px);
    min-height: 600px;
    padding: 96px 0 102px;
}

.hero h1 {
    max-width: 760px;
    color: var(--white);
}

.hero h1 span {
    color: #c6c4f4;
}

.hero p {
    max-width: 590px;
    color: #e2e1f2;
    font-size: 1.04rem;
    line-height: 1.9;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--blue2);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 27px;
    height: 2px;
    flex-shrink: 0;
    border-radius: 5px;
    background: currentColor;
    content: '';
}

.hero .eyebrow {
    color: #d6d4ff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .89rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

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

.btn:active {
    transform: translateY(0);
}

.btn-light {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .09);
}

.btn-light:hover {
    background: #f0efff;
    color: var(--blue-dark);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .15);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .035);
    color: var(--white);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .10);
    color: var(--white);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 7px 18px rgba(41, 38, 111, .14);
}

.btn-primary:hover {
    background: var(--blue2);
    box-shadow: 0 10px 25px rgba(41, 38, 111, .22);
}

.btn-outline {
    border-color: #d4d2e4;
    background: var(--white);
    color: var(--blue);
}

.btn-outline:hover {
    border-color: var(--blue);
    background: var(--pale);
}

.hero-photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            180deg,
            rgba(24, 22, 66, .02) 30%,
            rgba(24, 22, 66, .35)
        ),
        url('images/hero-side-placeholder.jpg') center / cover no-repeat,
        #6865a1;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
    transition: box-shadow 300ms ease;
}

.hero-photo:hover {
    box-shadow: 0 34px 85px rgba(0, 0, 0, .29);
}

.photo-note {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    padding: 18px 21px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 15px;
    background: rgba(255, 255, 255, .95);
    color: var(--blue);
    font-weight: 800;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.photo-note small {
    display: block;
    margin-top: 4px;
    color: #737181;
    font-size: .82rem;
    font-weight: 500;
}

/* 6. TRUST INDICATORS
--------------------------------------------------------- */
.trust {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.trust-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.trust-item {
    padding: 8px 18px;
    border-left: 2px solid #d4d2f2;
}

.trust-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--blue);
    font-family: 'Manrope', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.5;
}

.trust-item span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.6;
}

/* 7. GENERAL SECTIONS
--------------------------------------------------------- */
.section {
    padding: 94px 0;
}

.section-soft {
    background: var(--paper);
}

.section-blue {
    background:
        radial-gradient(
            ellipse at top right,
            rgba(116, 111, 205, .20),
            transparent 48%
        ),
        var(--blue);
    color: var(--white);
}

.section-blue p {
    color: #e0dff3;
}

.section-blue h2,
.section-blue h3,
.section-blue h4 {
    color: var(--white);
}

.section-head {
    max-width: 710px;
    margin-bottom: 43px;
}

.section-head.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-head.center .eyebrow {
    justify-content: center;
}

.section-head p {
    font-size: 1rem;
    line-height: 1.85;
}

.section-head h2 {
    margin-bottom: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(35px, 5vw, 65px);
}

/* 8. IMAGE PANELS
--------------------------------------------------------- */
.image-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 440px;
    border: 1px solid rgba(41, 38, 111, .08);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            rgba(41, 38, 111, .08),
            rgba(41, 38, 111, .25)
        ),
        url('images/about-placeholder.jpg') center / cover no-repeat,
        #d7d6e7;
    box-shadow: var(--shadow);
}

.image-panel::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.image-panel .image-label {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    padding: 15px 19px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    color: var(--blue);
    font-weight: 800;
    line-height: 1.5;
    box-shadow: var(--shadow);
}

/* 9. CHECK LISTS
--------------------------------------------------------- */
.checks {
    display: grid;
    gap: 13px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

.checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #494856;
    line-height: 1.7;
}

.checks li::before {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-top: 1px;
    place-items: center;
    border-radius: 50%;
    background: var(--pale);
    color: var(--blue);
    content: '✓';
    font-size: .8rem;
    font-weight: 800;
}

/* 10. SERVICE & FEATURE CARDS
--------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card::before {
    position: absolute;
    top: 0;
    right: 20px;
    left: 20px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--blue), #8d89d3);
    content: '';
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    border-color: #c5c3e6;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 23px;
    place-items: center;
    border: 1px solid #e5e3f6;
    border-radius: 16px;
    background: linear-gradient(145deg, #f1f0ff, #e8e6fa);
    color: var(--blue);
    font-size: 1.35rem;
    transition:
        background var(--transition),
        transform var(--transition);
}

.card:hover .card-icon {
    background: #e5e2ff;
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--ink);
}

.card p {
    font-size: .92rem;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--blue);
    font-size: .88rem;
    font-weight: 800;
    transition: gap var(--transition), color var(--transition);
}

.text-link:hover {
    gap: 13px;
    color: var(--blue3);
}

/* 11. STATISTICS
--------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.stat {
    padding: 24px;
    border-left: 1px solid rgba(255, 255, 255, .28);
}

.stat strong {
    display: block;
    margin-bottom: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.04em;
}

.stat span {
    color: #e0dff3;
    font-size: .88rem;
    line-height: 1.6;
}

/* 12. INNER PAGE HERO
--------------------------------------------------------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 82px 0 76px;
    background:
        linear-gradient(
            110deg,
            rgba(30, 28, 83, .97),
            rgba(41, 38, 111, .88)
        ),
        url('images/page-banner-placeholder.jpg') center / cover no-repeat;
    color: var(--white);
}

.page-hero::after {
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -80px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, .025),
        0 0 0 90px rgba(255, 255, 255, .02);
    content: '';
    pointer-events: none;
}

.page-hero h1 {
    max-width: 850px;
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    color: var(--white);
}

.page-hero p {
    max-width: 700px;
    color: #e4e3f5;
    font-size: 1rem;
    line-height: 1.85;
}

.breadcrumbs {
    position: relative;
    z-index: 1;
    margin-bottom: 23px;
    color: #d1cff7;
    font-size: .82rem;
}

.breadcrumbs a {
    color: var(--white);
}

.breadcrumbs a:hover {
    color: #d6d4ff;
}

/* 13. PRINCIPLES & QUOTES
--------------------------------------------------------- */
.principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.principle {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.principle:hover {
    border-color: #c9c6ea;
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.principle strong {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
}

.principle p {
    font-size: .92rem;
}

.quote {
    padding: 31px;
    border-left: 4px solid #8d89d3;
    border-radius: 0 16px 16px 0;
    background: var(--pale);
    color: var(--blue);
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.75;
}

/* 14. COURSE FILTERS
--------------------------------------------------------- */
.course-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter {
    padding: 10px 17px;
    border: 1px solid #d9d8e5;
    border-radius: 999px;
    background: var(--white);
    color: #555366;
    font-size: .84rem;
    font-weight: 700;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

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

.course-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.course-card:hover {
    border-color: #c5c3e6;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.course-card .tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pale);
    color: var(--blue);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.course-card h3 {
    margin-top: 15px;
    margin-bottom: 12px;
}

.course-card p {
    font-size: .9rem;
    line-height: 1.8;
}

/* 15. BLOG & ARTICLES
--------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.blog-card:hover {
    border-color: #d0cdea;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background:
        linear-gradient(
            140deg,
            rgba(41, 38, 111, .08),
            rgba(41, 38, 111, .28)
        ),
        url('images/blog-placeholder.jpg') center / cover no-repeat,
        #deddeb;
}

.blog-image::after {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 6px;
    background: rgba(255, 255, 255, .93);
    color: var(--blue);
    content: 'BLOG IMAGE PLACEHOLDER';
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.blog-body {
    padding: 25px;
}

.meta {
    margin-bottom: 12px;
    color: #7a7987;
    font-size: .77rem;
    line-height: 1.6;
}

.blog-body h3 {
    margin-bottom: 13px;
    line-height: 1.4;
}

.blog-body p {
    font-size: .9rem;
    line-height: 1.8;
}

/* 16. PARTNER LOGOS
--------------------------------------------------------- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.logo-slot {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 17px;
    border: 1px dashed #c6c4dd;
    border-radius: 15px;
    background: var(--white);
    color: #89879a;
    text-align: center;
    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.logo-slot:hover {
    border-color: #9995d0;
    background: #fcfbff;
    transform: translateY(-3px);
}

.logo-slot strong {
    color: var(--blue);
    font-size: .8rem;
}

.logo-slot span {
    font-size: .72rem;
}

.logo-slot img {
    max-width: 150px;
    max-height: 58px;
    object-fit: contain;
}

/* 17. CERTIFICATES & DOCUMENTS
--------------------------------------------------------- */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.certificate-slot {
    display: grid;
    min-height: 210px;
    padding: 24px;
    place-items: center;
    border: 1px dashed #c6c4dd;
    border-radius: 16px;
    background: linear-gradient(145deg, #fcfcff, #eeedf8);
    color: #7a788c;
    text-align: center;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.certificate-slot:hover {
    border-color: #a5a0d5;
    box-shadow: var(--shadow-sm);
}

.certificate-slot strong {
    display: block;
    margin-bottom: 5px;
    color: var(--blue);
}

/* 18. CONTACT SECTION
--------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 50px;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-row {
    padding: 19px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--paper);
    transition:
        background var(--transition),
        border-color var(--transition);
}

.contact-row:hover {
    border-color: #e0deef;
    background: #f3f2fa;
}

.contact-row strong {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: .84rem;
    font-weight: 800;
}

.contact-row span,
.contact-row a {
    color: #5d5c6b;
    font-size: .91rem;
    overflow-wrap: anywhere;
}

.contact-row a:hover {
    color: var(--blue);
}

/* 19. FORMS & INPUTS
--------------------------------------------------------- */
.form {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

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

.field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: #494856;
    font-size: .83rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #dedde8;
    border-radius: 11px;
    outline: none;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.field input,
.field select {
    min-height: 49px;
}

.field textarea {
    min-height: 145px;
    resize: vertical;
    line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a09eae;
    opacity: 1;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: #8985c9;
    outline: none;
    background: #fdfdff;
    box-shadow: 0 0 0 4px rgba(137, 133, 201, .13);
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled {
    background: #f3f3f6;
    cursor: not-allowed;
}

.field input[type="checkbox"],
.field input[type="radio"] {
    width: auto;
    min-height: auto;
    accent-color: var(--blue);
}

.field input[type="file"] {
    padding: 10px;
    font-size: .83rem;
}

.field select {
    cursor: pointer;
}

.field .error,
.field .field-error {
    color: var(--danger);
    font-size: .79rem;
}

.form .btn {
    margin-top: 5px;
}

/* 20. CALL-TO-ACTION PANEL
--------------------------------------------------------- */
.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 42px;
    border: 1px solid #e0dfef;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            ellipse at top right,
            rgba(137, 133, 201, .12),
            transparent 50%
        ),
        linear-gradient(115deg, #eeedf8, #f9f9fc);
}

.cta > div:first-child {
    min-width: 0;
}

.cta h2 {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.cta p {
    max-width: 620px;
    line-height: 1.8;
}

.cta .actions {
    flex-shrink: 0;
    margin-top: 0;
}

/* 21. FOOTER
--------------------------------------------------------- */
.footer {
    padding: 64px 0 25px;
    background:
        radial-gradient(
            ellipse at top left,
            rgba(75, 70, 147, .16),
            transparent 48%
        ),
        #17171c;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr .8fr 1fr;
    gap: 38px;
    padding-bottom: 42px;
}

.footer h4 {
    margin-bottom: 19px;
    color: var(--white);
    font-size: .96rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.footer p,
.footer a {
    color: #c4c3d0;
    font-size: .87rem;
    line-height: 1.85;
}

.footer p {
    margin-bottom: 15px;
}

.footer a:hover {
    color: #d0cffb;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    width: fit-content;
    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-links a:hover {
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-top: 22px;
    border-top: 1px solid #38383f;
    color: #aaa9b8;
    font-size: .79rem;
    line-height: 1.7;
}

.footer-bottom p {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

/* 22. UTILITY CLASSES
--------------------------------------------------------- */
.mobile-note {
    display: none;
}

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

.text-blue {
    color: var(--blue);
}

.text-muted {
    color: var(--muted);
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.w-full {
    width: 100%;
}

/* 23. LARGE TABLETS & SMALL LAPTOPS
--------------------------------------------------------- */
@media (max-width: 1080px) {
    .navlinks {
        gap: 15px;
    }

    .navlinks a {
        font-size: .83rem;
    }

    .brand {
        min-width: auto;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand-name {
        font-size: .92rem;
    }

    .hero-grid {
        gap: 38px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

/* 24. TABLET & MOBILE NAVIGATION
--------------------------------------------------------- */
@media (max-width: 860px) {
    .navwrap {
        min-height: 76px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .navlinks {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 24px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 20px 30px rgba(0, 0, 0, .09);
    }

    .navlinks.open {
        display: flex;
        flex-direction: column;
    }

    .navlinks a {
        display: block;
        padding: 12px 4px;
        font-size: .93rem;
        white-space: normal;
    }

    .navlinks a:not(.nav-cta)::after {
        display: none;
    }

    .navlinks .nav-cta {
        margin-top: 10px;
        padding: 13px 18px;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
        gap: 28px;
        min-height: auto;
        padding: 75px 0;
    }

    .hero-photo {
        min-height: 360px;
    }

    .grid-2 {
        gap: 35px;
    }

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

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

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

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

    .contact-grid {
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .cta {
        padding: 32px;
    }
}

/* 25. MOBILE
--------------------------------------------------------- */
@media (max-width: 600px) {
    html {
        scroll-padding-top: 82px;
    }

    body {
        font-size: 14px;
    }

    .container {
        width: calc(100% - 32px);
    }

    h1 {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    h3 {
        font-size: 1.16rem;
    }

    .topline {
        padding: 8px 0;
        font-size: .76rem;
    }

    .topline .container {
        justify-content: center;
        gap: 5px 14px;
        text-align: center;
    }

    .navwrap {
        min-height: 70px;
        gap: 12px;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .brand-fallback {
        width: 43px;
        height: 43px;
        border-radius: 13px;
        font-size: .92rem;
    }

    .brand-name {
        font-size: .84rem;
    }

    .brand-name small {
        margin-top: 4px;
        font-size: .56rem;
        letter-spacing: .07em;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .navlinks {
        padding: 10px 20px 22px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding: 62px 0 56px;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero p {
        font-size: .96rem;
        line-height: 1.85;
    }

    .hero::before {
        top: -90px;
        right: -250px;
        width: 430px;
        height: 430px;
    }

    .hero-photo {
        min-height: 320px;
        border-radius: 21px;
    }

    .photo-note {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 15px 16px;
    }

    .actions {
        gap: 10px;
        margin-top: 24px;
    }

    .btn {
        min-height: 46px;
        padding: 12px 18px;
        font-size: .84rem;
    }

    .section {
        padding: 68px 0;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .section-head p {
        font-size: .94rem;
    }

    .grid-2,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .image-panel {
        min-height: 330px;
        border-radius: 21px;
    }

    .trust {
        padding: 22px 0;
    }

    .trust-inner {
        gap: 18px 10px;
    }

    .trust-item {
        padding: 5px 10px;
    }

    .trust-item strong {
        font-size: .9rem;
    }

    .trust-item span {
        font-size: .77rem;
    }

    .cards,
    .blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .card {
        padding: 25px;
    }

    .card-icon {
        margin-bottom: 18px;
    }

    .stats {
        gap: 12px;
    }

    .stat {
        padding: 19px 15px;
    }

    .stat strong {
        font-size: 1.65rem;
    }

    .stat span {
        font-size: .79rem;
    }

    .page-hero {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: clamp(2.3rem, 9vw, 3.2rem);
    }

    .page-hero p {
        font-size: .94rem;
    }

    .principles {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .principle {
        padding: 22px;
    }

    .quote {
        padding: 24px;
        font-size: 1rem;
    }

    .course-tools {
        gap: 8px;
    }

    .filter {
        padding: 9px 14px;
        font-size: .8rem;
    }

    .course-card {
        padding: 23px;
    }

    .blog-image {
        height: 210px;
    }

    .blog-body {
        padding: 22px;
    }

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

    .logo-slot {
        min-height: 110px;
        padding: 12px;
    }

    .certificate-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .certificate-slot {
        min-height: 180px;
    }

    .contact-grid {
        gap: 28px;
    }

    .contact-list {
        gap: 11px;
    }

    .contact-row {
        padding: 16px;
    }

    .form {
        padding: 23px 19px;
        border-radius: 17px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .field.full {
        grid-column: auto;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }

    .cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 27px 23px;
        border-radius: 21px;
    }

    .cta .actions {
        width: 100%;
    }

    .footer {
        padding: 48px 0 22px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding-bottom: 30px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer h4 {
        margin-bottom: 13px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-top: 18px;
    }
}

/* 26. EXTRA SMALL PHONES
--------------------------------------------------------- */
@media (max-width: 380px) {
    .container {
        width: calc(100% - 26px);
    }

    .brand-name {
        font-size: .78rem;
    }

    .brand-name small {
        font-size: .51rem;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand-fallback {
        width: 39px;
        height: 39px;
    }

    .hero-grid {
        padding: 52px 0 48px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-photo {
        min-height: 275px;
    }

    .trust-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .trust-item {
        padding: 5px 12px;
    }

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

    .stat {
        padding: 15px 18px;
    }

    .logo-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .form {
        padding: 20px 16px;
    }

    .cta {
        padding: 23px 18px;
    }
}

/* 27. ACCESSIBILITY & MOTION
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* 28. PRINT
--------------------------------------------------------- */
@media print {
    .topline,
    .header,
    .menu-toggle,
    .actions,
    .cta,
    .footer {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section,
    .page-hero {
        padding: 24px 0;
        background: #fff !important;
        color: #000 !important;
    }

    .hero h1,
    .page-hero h1,
    .section-blue h2,
    .section-blue h3 {
        color: #000 !important;
    }

    .hero p,
    .page-hero p,
    .section-blue p {
        color: #333 !important;
    }

    .card,
    .course-card,
    .blog-card,
    .form {
        break-inside: avoid;
        box-shadow: none;
    }
}
