:root {
    --public-blue: #0b33bd;
    --public-blue-dark: #082995;
    --public-red: #ff2e32;
    --public-red-dark: #ed2428;
    --public-ink: #061328;
    --public-muted: #5e6b7c;
    --public-border: #d9dee8;
    --public-shell: #f5f7fb;
    --public-white: #ffffff;
    --public-shadow: 0 16px 38px rgba(9, 27, 61, 0.12);
    --public-radius: 8px;
    --public-container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.public-page {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--public-ink);
    background: var(--public-shell);
    font-family: "Poppins", Arial, sans-serif;
}

.public-page a {
    color: inherit;
    text-decoration: none;
}

.public-page img {
    display: block;
    max-width: 100%;
}

.public-page button,
.public-page input,
.public-page textarea,
.public-page select {
    font: inherit;
}

.public-container {
    width: min(var(--public-container), calc(100% - 28px));
    margin: 0 auto;
}

.public-topbar {
    background: var(--public-blue);
    color: var(--public-white);
    font-size: 13px;
    font-weight: 600;
}

.public-topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.public-contact-list,
.public-location {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.public-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1.35;
    min-width: 0;
}

.public-icon-text span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-icon-text svg,
.public-btn svg,
.public-nav-toggle svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.public-header {
    position: relative;
    z-index: 100;
    background: #f3f5f9;
    border-bottom: 1px solid rgba(6, 19, 40, 0.22);
}

.public-header-inner {
    min-height: 102px;
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
}

.public-logo {
    width: 204px;
    height: 90px;
    object-fit: contain;
    background: var(--public-white);
}

.public-nav {
    min-width: 0;
    height: 100%;
    display: flex;
    justify-content: center;
}

.public-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.35vw, 30px);
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.public-nav-link,
.public-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #051225;
    cursor: pointer;
    font-size: clamp(13px, 0.82vw, 16px);
    font-weight: 500;
    white-space: nowrap;
}

.public-nav-link:hover,
.public-nav-trigger:hover,
.public-nav-item:focus-within > .public-nav-trigger {
    color: var(--public-blue);
}

.public-nav-trigger svg {
    width: 15px;
    height: 15px;
    transition: transform 160ms ease;
}

.public-nav-item:hover .public-nav-trigger svg,
.public-nav-item:focus-within .public-nav-trigger svg,
.public-nav-item.is-open .public-nav-trigger svg {
    transform: rotate(180deg);
}

.public-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    z-index: 130;
    width: 330px;
    padding: 20px 28px;
    border: 1px solid var(--public-border);
    border-radius: 6px;
    background: var(--public-white);
    box-shadow: 0 12px 28px rgba(6, 19, 40, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.public-nav-item:hover > .public-dropdown,
.public-nav-item:focus-within > .public-dropdown,
.public-nav-item.is-open > .public-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.public-menu-list {
    display: grid;
    gap: 0;
}

.public-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 54px;
    padding: 0;
    border-radius: 0;
    color: #071225;
    font-size: 15px;
    font-weight: 700;
}

.public-submenu-item {
    position: relative;
}

.public-submenu {
    position: absolute;
    top: -14px;
    left: calc(100% + 18px);
    z-index: 135;
    width: 280px;
    max-height: min(520px, calc(100vh - 160px));
    overflow: auto;
    padding: 14px 20px;
    border: 1px solid var(--public-border);
    border-radius: 6px;
    background: var(--public-white);
    box-shadow: 0 12px 28px rgba(6, 19, 40, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.public-submenu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    width: 20px;
}

.public-submenu-item:hover > .public-submenu,
.public-submenu-item:focus-within > .public-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.public-submenu a {
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
}

.public-menu-list a:hover {
    color: var(--public-blue);
    background: transparent;
}

.public-menu-list a svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
    flex: 0 0 auto;
}

.public-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.public-topbar-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.public-btn,
.home-red-btn,
.home-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--public-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.public-btn:hover,
.home-red-btn:hover,
.home-outline-btn:hover {
    transform: translateY(-1px);
}

.public-btn-primary {
    background: var(--public-blue);
    color: var(--public-white) !important;
    box-shadow: 0 10px 22px rgba(11, 51, 189, 0.18);
}

.public-btn-primary span,
.public-btn-primary svg {
    color: inherit;
}

.public-btn-primary:hover {
    background: var(--public-blue-dark);
}

.public-btn-secondary {
    background: var(--public-white);
    color: var(--public-blue);
    border-color: rgba(11, 51, 189, 0.24);
}

.public-btn-danger {
    background: var(--public-red);
    color: var(--public-white);
}

.public-btn-compact {
    min-height: 30px;
    padding: 7px 10px;
    border-color: rgba(255, 255, 255, 0.38);
    font-size: 12px;
}

.public-topbar-auth .public-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.public-topbar-auth .public-btn-primary {
    background: #fff;
    color: var(--public-blue);
    box-shadow: none;
}

.public-topbar-auth .public-btn-danger {
    background: var(--public-red);
    color: #fff;
}

.public-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    background: var(--public-white);
    color: var(--public-ink);
    cursor: pointer;
}

.public-mobile-panel {
    display: none;
    border-top: 1px solid var(--public-border);
    background: var(--public-white);
}

.public-mobile-panel.is-open {
    display: block;
}

.public-mobile-nav {
    display: grid;
    gap: 8px;
    padding: 16px 0 20px;
}

.public-mobile-link,
.public-mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    background: #f8fafc;
    color: var(--public-ink);
    font-weight: 700;
}

.public-mobile-details {
    display: grid;
    gap: 8px;
}

.public-mobile-details[open] .public-mobile-summary svg {
    transform: rotate(180deg);
}

.public-mobile-subgrid {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.public-mobile-subgrid a {
    display: block;
    padding: 10px 12px;
    border-left: 3px solid var(--public-blue);
    background: #f3f6ff;
    color: var(--public-muted);
    font-size: 14px;
    font-weight: 600;
}

.public-mobile-auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.public-ticker {
    position: relative;
    z-index: 10;
    overflow: hidden;
    margin: 39px 8px 18px;
    background: var(--public-red);
    color: #fff;
}

.public-ticker-track {
    display: flex;
    width: max-content;
    animation: publicTicker 28s linear infinite;
}

.public-ticker:hover .public-ticker-track {
    animation-play-state: paused;
}

.public-ticker-group {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 12px 32px;
    white-space: nowrap;
    font-size: clamp(17px, 1.35vw, 25px);
    font-weight: 800;
}

@keyframes publicTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.home-hero {
    position: relative;
    overflow: hidden;
    height: clamp(430px, 27vw, 520px);
    margin: 0 8px;
    background: #07152d;
}

.home-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity 700ms ease, visibility 700ms ease, transform 1400ms ease;
}

.home-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.home-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 18, 40, 0.42), rgba(7, 18, 40, 0.18));
}

.home-slide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.home-hero-card {
    width: min(690px, 100%);
    margin-left: 45px;
    padding: 36px 50px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(6, 24, 55, 0.72);
    color: var(--public-white);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

.home-badge,
.home-section-heading span,
.home-label,
.home-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
}

.home-badge {
    margin-bottom: 24px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
}

.home-hero-card h1,
.home-hero-card h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(28px, 2.35vw, 36px);
    line-height: 1.16;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.home-hero-card p {
    max-width: 550px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.home-red-btn {
    background: #ff4448;
    color: #fff;
    border-radius: 999px;
    padding-inline: 28px;
}

.home-red-btn:hover {
    background: var(--public-red-dark);
}

.home-outline-btn {
    width: fit-content;
    background: var(--public-blue);
    color: #fff;
    border-radius: 999px;
    padding-inline: 20px;
}

.home-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(5, 15, 34, 0.36);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.home-slider-prev {
    left: 20px;
}

.home-slider-next {
    right: 20px;
}

.home-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.home-slider-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.home-slider-dot.is-active {
    width: 32px;
    background: #fff;
}

.home-section {
    padding: 54px 0;
}

.home-skill-section {
    background: #f7f9ff;
}

.home-exam-section {
    background: linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
}

.home-services-section {
    background: #ffffff;
}

.home-about-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ef 0%, #f4f8ff 48%, #ffffff 100%);
}

.home-gallery-section {
    background: #f7f9ff;
}

.home-section-heading {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.home-section-heading span {
    margin-bottom: 12px;
    padding: 7px 15px;
    background: #eef3ff;
    color: #3158d4;
    font-size: 13px;
}

.home-section-heading h2 {
    margin: 0 0 12px;
    color: var(--public-ink);
    font-size: clamp(30px, 2.25vw, 42px);
    line-height: 1.16;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.home-section-heading p {
    margin: 0;
    color: var(--public-muted);
    font-size: 16px;
    line-height: 1.65;
}

.home-course-grid,
.home-exam-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-course-card,
.home-exam-card,
.home-service-grid article,
.home-about-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--public-shadow);
}

.home-course-card,
.home-exam-card {
    overflow: hidden;
    border: 1px solid #e6ebf4;
}

.home-course-card.is-featured,
.home-exam-card.is-featured {
    transform: translateY(-8px);
}

.home-course-card img {
    width: 100%;
    height: 205px;
    object-fit: cover;
}

.home-card-body,
.home-exam-card > div {
    padding: 22px;
}

.home-tag {
    margin-bottom: 10px;
    padding: 6px 13px;
    background: #eef3ff;
    color: #3158d4;
    font-size: 12px;
}

.home-course-card h3,
.home-exam-card h3,
.home-service-grid h3,
.home-about-grid h3 {
    margin: 0 0 10px;
    color: var(--public-ink);
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: 0;
}

.home-course-card p,
.home-service-grid p,
.home-about-grid p {
    margin: 0 0 16px;
    color: var(--public-muted);
    line-height: 1.6;
}

.home-course-card ul,
.home-exam-card ul,
.home-about-card ul {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.home-course-card li,
.home-exam-card li,
.home-about-card li {
    position: relative;
    padding-left: 18px;
    color: #243047;
    font-size: 14px;
    line-height: 1.45;
}

.home-course-card li::before,
.home-exam-card li::before,
.home-about-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--public-red);
}

.home-exam-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #eef3ff;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-service-grid > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-service-grid article {
    min-height: 210px;
    padding: 26px 22px;
    border: 1px solid #e8edf5;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-service-grid article:hover {
    transform: translateY(-6px);
}

.home-service-grid svg {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    padding: 9px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    color: var(--public-blue);
    background: #f4f7ff;
}

.why-choose-us {
    padding: 72px 20px;
    background:
        linear-gradient(rgba(9, 20, 45, 0.76), rgba(9, 20, 45, 0.8)),
        url("../images/banners/academy-computer-lab-2.png") center / cover;
    color: #ffffff;
}

.why-choose-us .container {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.why-choose-us .section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.why-choose-us .section-heading h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: 0;
}

.why-choose-us .section-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.5;
}

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

.why-card {
    min-height: 245px;
    padding: 18px 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.why-icon {
    width: 100%;
    height: 112px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon img {
    width: 142px;
    height: 104px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.why-card h3 {
    margin: 0 0 8px;
    color: var(--public-ink);
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: 0;
}

.why-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.home-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.home-about-content {
    padding: 30px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 45px rgba(28, 57, 100, 0.09);
}

.home-label {
    margin-bottom: 14px;
    padding: 8px 15px;
    background: #fff1ec;
    color: var(--public-red-dark);
    font-size: 13px;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 24px;
}

.home-feature-grid span {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    color: #243047;
    font-weight: 700;
}

.home-feature-grid svg {
    width: 18px;
    color: var(--public-red);
}

.home-about-card {
    padding: 30px;
    background: #082a7a;
    color: #fff;
}

.home-about-card h3,
.home-about-card li {
    color: #fff;
}

.home-about-card > span {
    display: block;
    margin-bottom: 8px;
    color: #a8c0ff;
    font-weight: 700;
}

.home-about-card ul {
    margin-top: 22px;
}

.home-about-card li::before {
    background: #fff;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.home-stats strong {
    display: block;
    padding: 16px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.11);
    text-align: center;
    font-size: 25px;
}

.home-stats span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #c9d7ff;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: repeat(2, 220px);
    gap: 18px;
}

.home-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--public-shadow);
}

.home-gallery-grid img:first-child {
    grid-row: span 2;
}

.home-cta-section {
    padding: 48px 0;
    background: #ffffff;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, #092f91, #0b33bd);
    color: #fff;
}

.home-cta-inner span {
    color: #d8e3ff;
    font-weight: 700;
}

.home-cta-inner h2 {
    max-width: 700px;
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(26px, 2vw, 38px);
    line-height: 1.18;
    letter-spacing: 0;
}

.public-footer {
    position: relative;
    overflow: hidden;
    padding: 55px 0 24px;
    background: linear-gradient(135deg, #061328, #0a2b78);
    color: rgba(255, 255, 255, 0.78);
}

.public-footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 20px;
}

.public-footer-main > section {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.public-footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 14px;
}

.public-footer p {
    margin: 0;
    line-height: 1.7;
}

.public-footer h2 {
    position: relative;
    margin: 0 0 18px;
    color: #fff;
    font-size: 19px;
    letter-spacing: 0;
}

.public-footer h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--public-red);
}

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

.public-footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.public-footer-links a:hover {
    color: #fff;
}

.public-footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.public-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
}

.public-whatsapp-float,
.public-scroll-top {
    position: fixed;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(5, 80, 40, 0.34);
}

.public-whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    background: #1bbf62;
}

.public-scroll-top {
    right: 18px;
    bottom: 86px;
    width: 44px;
    height: 44px;
    background: var(--public-blue);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.public-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.public-whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 1460px) {
    .public-header-inner {
        grid-template-columns: 185px minmax(0, 1fr) auto;
        gap: 16px;
    }

    .public-logo {
        width: 184px;
        height: 80px;
    }

    .public-topbar-inner {
        gap: 14px;
    }
}

@media (max-width: 1260px) {
    .public-header-inner {
        grid-template-columns: 170px 1fr auto;
    }

    .public-logo {
        width: 168px;
        height: 74px;
    }

    .public-nav-list {
        gap: 10px;
    }

    .public-header-actions {
        gap: 6px;
    }

    .public-btn-primary:not(.public-btn-compact) span {
        display: none;
    }
}

@media (max-width: 1120px) {
    .public-topbar-auth {
        display: none;
    }

    .public-nav,
    .public-header-actions {
        display: none;
    }

    .public-header-inner {
        min-height: 78px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .public-nav-toggle {
        display: inline-flex;
        justify-self: end;
        flex: 0 0 46px;
    }

    .public-logo {
        width: 158px;
        height: 68px;
    }

    .public-ticker {
        margin-top: 18px;
    }

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

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

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

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

@media (max-width: 820px) {
    .public-topbar-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 14px;
        padding: 7px 0;
    }

    .public-contact-list {
        justify-content: center;
        flex-wrap: wrap;
        min-width: 0;
    }

    .public-submenu {
        position: static;
        width: auto;
        max-height: none;
        padding: 0 0 0 14px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .public-location {
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
    }

    .home-hero {
        height: 520px;
    }

    .home-hero-card {
        margin: 0 auto;
        padding: 26px 22px;
        text-align: center;
        width: calc(100vw - 36px);
        max-width: 620px;
    }

    .home-slide-inner {
        justify-content: center;
    }

    .home-slider-arrow {
        display: none;
    }

    .home-about-grid,
    .home-gallery-grid {
        grid-template-columns: 1fr;
    }

    .home-gallery-grid {
        grid-template-rows: none;
    }

    .home-gallery-grid img,
    .home-gallery-grid img:first-child {
        grid-row: auto;
        height: 240px;
    }

    .home-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .public-container {
        width: min(calc(100% - 22px), var(--public-container));
    }

    .home-slide-inner.public-container,
    .home-section > .public-container,
    .home-cta-section > .public-container {
        width: min(338px, calc(100vw - 22px));
        margin-left: 11px;
        margin-right: 0;
    }

    .public-contact-list {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        justify-items: center;
        gap: 6px 12px;
        font-size: 12px;
    }

    .public-contact-link {
        max-width: 100%;
    }

    .public-contact-link span,
    .public-location span {
        display: inline-block;
        max-width: min(300px, calc(100vw - 58px));
        text-align: center;
    }

    .public-location {
        font-size: 11px;
    }

    .public-header-inner {
        min-height: 70px;
    }

    .public-logo {
        width: 138px;
        height: 58px;
    }

    .public-ticker {
        margin: 12px 7px 14px;
    }

    .public-ticker-group {
        gap: 38px;
        padding: 10px 24px;
    }

    .home-hero {
        height: 510px;
        margin-inline: 7px;
    }

    .home-hero-card {
        width: min(320px, calc(100vw - 30px));
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 24px 16px;
        border-radius: 20px;
    }

    .home-hero-card h1,
    .home-hero-card h2 {
        max-width: 250px;
        margin-inline: auto;
        font-size: 22px;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .home-hero-card p {
        max-width: 250px;
        margin-inline: auto;
        font-size: 14px;
    }

    .home-section-heading {
        max-width: calc(100vw - 28px);
    }

    .home-section-heading h2 {
        max-width: 290px;
        margin-inline: auto;
        overflow-wrap: break-word;
    }

    .home-section {
        padding: 42px 0;
    }

    .home-course-grid,
    .home-exam-grid,
    .home-service-grid,
    .public-footer-main,
    .home-feature-grid,
    .home-stats,
    .public-mobile-auth-row {
        grid-template-columns: 1fr;
    }

    .home-course-card.is-featured,
    .home-exam-card.is-featured {
        transform: none;
    }

    .home-course-card img,
    .home-exam-card img {
        height: 210px;
    }

    .why-choose-us {
        padding: 52px 16px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .why-card {
        min-height: auto;
    }

    .home-card-body,
    .home-exam-card > div,
    .home-about-content,
    .home-about-card,
    .home-cta-inner,
    .public-footer-main > section {
        padding: 20px;
    }

    .home-red-btn,
    .home-outline-btn,
    .public-mobile-auth-row .public-btn {
        width: 100%;
    }

    .public-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-whatsapp-float {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .public-ticker-track,
    .home-slide {
        animation: none;
        transition: none;
    }
}
