/* Index Page — Vasi Web Institute */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.home-page {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.btn--primary {
    color: #ffffff;
    background: #0056e0;
    border-color: #0056e0;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: #0047b8;
    border-color: #0047b8;
}

.btn--outline {
    color: #1a2b4a;
    background: #ffffff;
    border-color: #d0dbe8;
}

.btn--outline:hover,
.btn--outline:focus-visible {
    border-color: #0056e0;
    color: #0056e0;
}

.btn--full {
    width: 100%;
}

/* Section utilities */
.section {
    padding: 5rem 0;
}

.section--alt {
    background: #f4f8ff;
}

.section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section__header {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    color: #0056e0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section__label-icon {
    width: 10px;
    height: 10px;
    background: #0056e0;
    border-radius: 2px;
}

.section__title {
    margin: 0 0 1rem;
    color: #0a1e3d;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section__title--center {
    text-align: center;
}

.section__text {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.section__text--center {
    text-align: center;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 20%, #dce9ff 0%, #f0f6ff 45%, #ffffff 100%);
    padding: 3.5rem 0 4rem;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    color: #0056e0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: #0056e0;
    border-radius: 50%;
}

.hero__title {
    margin: 0 0 1rem;
    color: #0a1e3d;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    margin: 0 0 1rem;
    color: #5a6578;
    font-size: 1.125rem;
}

.hero__subtitle strong {
    color: #0056e0;
    font-weight: 700;
}

.hero__desc {
    margin: 0 0 1.75rem;
    max-width: 520px;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.hero__stat {
    margin: 0;
}

.hero__stat dt {
    margin: 0 0 0.15rem;
    color: #0a1e3d;
    font-size: 1.5rem;
    font-weight: 800;
}

.hero__stat dd {
    margin: 0;
    color: #8a94a6;
    font-size: 0.8125rem;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__figure {
    margin: 0;
    width: 100%;
}

.hero__image {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 40, 90, 0.15);
}

.hero__tag {
    position: absolute;
    padding: 0.5rem 1rem;
    color: #1a2b4a;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 40, 90, 0.12);
    white-space: nowrap;
}

.hero__tag::before {
    content: "●";
    margin-right: 0.4rem;
    color: #0056e0;
    font-size: 0.6rem;
}

.hero__tag--1 {
    top: 8%;
    left: -4%;
}

.hero__tag--2 {
    top: 38%;
    right: -2%;
}

.hero__tag--3 {
    bottom: 28%;
    left: 0;
}

.hero__code {
    position: absolute;
    right: 5%;
    bottom: 8%;
    padding: 0.85rem 1.25rem;
    color: #a8c4ff;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.8125rem;
    background: #0a1e3d;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 30, 61, 0.35);
}

@media (min-width: 1024px) {
    .hero__inner {
        gap: 2.5rem;
        align-items: center;
    }

    .hero__visual {
        justify-content: flex-end;
        padding-left: 1rem;
    }

    .hero__figure {
        max-width: 580px;
    }

    .hero__image {
        max-width: 580px;
        width: 100%;
        min-height: 520px;
        object-fit: cover;
        object-position: center top;
    }

    .hero__tag--1 {
        left: -2%;
        top: 6%;
    }

    .hero__tag--2 {
        right: 0;
        top: 36%;
    }

    .hero__tag--3 {
        left: 2%;
        bottom: 32%;
    }

    .hero__code {
        right: 4%;
        bottom: 14%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        border-radius: 14px;
    }
}

.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 2rem auto 0;
    color: #8a94a6;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

.hero__scroll::after {
    content: "";
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, #0056e0, transparent);
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, #0a1e3d 0%, #1a3a6b 50%, #0d2744 100%);
    padding: 2.5rem 0;
}

.stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}

.stats-bar__item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
}

.stats-bar__item span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* About */
.about__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}

.about__media {
    position: relative;
    margin: 0;
}

.about__image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 40, 90, 0.12);
}

.about__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2rem 1.5rem 1.25rem;
    color: #ffffff;
    font-size: 0.875rem;
    background: linear-gradient(to top, rgba(10, 30, 61, 0.85), transparent);
    border-radius: 0 0 20px 20px;
}

.about__caption strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.about__features {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.about__feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid #e8edf4;
}

.about__feature-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #0056e0;
    font-size: 0.875rem;
    font-weight: 700;
    background: #eef4ff;
    border-radius: 10px;
}

.about__feature-title {
    margin: 0 0 0.25rem;
    color: #0a1e3d;
    font-size: 1.0625rem;
    font-weight: 700;
}

.about__feature p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Flagship Courses */
.flagship__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.flagship-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 40, 90, 0.08);
}

.flagship-card__media {
    margin: 0;
    overflow: hidden;
}

.flagship-card__media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.flagship-card__body {
    padding: 1.75rem;
}

.flagship-card__title {
    margin: 0 0 0.35rem;
    color: #0a1e3d;
    font-size: 1.375rem;
    font-weight: 800;
}

.flagship-card__duration {
    margin: 0 0 0.85rem;
    color: #0056e0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flagship-card__desc {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.flagship-card__list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.flagship-card__list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.flagship-card__list li + li {
    margin-top: 0.4rem;
}

.flagship-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0056e0;
    font-weight: 700;
}

/* Courses Grid */
.courses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.course-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 40, 90, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 40, 90, 0.12);
}

.course-card__media {
    position: relative;
    margin: 0;
}

.course-card__media::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: -1px auto 0;
    background: #0056e0;
    border-radius: 2px;
}

.course-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-card__body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.course-card__title {
    margin: 0 0 0.35rem;
    color: #0a1e3d;
    font-size: 1.25rem;
    font-weight: 800;
}

.course-card__duration {
    margin: 0 0 0.65rem;
    color: #0056e0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-card__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
}

.courses__cta {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

/* Labs */
.labs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.labs__list {
    margin: 1.5rem 0 2rem;
    padding: 0;
    list-style: none;
}

.labs__list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
}

.labs__list li + li {
    margin-top: 0.65rem;
}

.labs__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    background: #0056e0;
    border-radius: 50%;
}

.labs__gallery {
    position: relative;
    margin: 0;
}

.labs__image {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 40, 90, 0.12);
}

.labs__image--main {
    width: 100%;
}

.labs__image--secondary {
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    width: 45%;
    border: 4px solid #ffffff;
}

/* Why Choose Us */
.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-card:hover {
    border-color: #c5d9f5;
    box-shadow: 0 12px 32px rgba(0, 86, 224, 0.08);
}

.why-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    color: #0056e0;
    background: #eef4ff;
    border-radius: 12px;
}

.why-card__title {
    margin: 0 0 0.5rem;
    color: #0a1e3d;
    font-size: 1.0625rem;
    font-weight: 700;
}

.why-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
}

/* Testimonials */
.testimonials__slider {
    position: relative;
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
    margin: 0;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 40, 90, 0.08);
}

.testimonial-card__quote {
    margin: 0 0 1.5rem;
    color: #4a5568;
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-card__author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__author cite {
    display: block;
    color: #0a1e3d;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 700;
}

.testimonial-card__author span {
    display: block;
    color: #8a94a6;
    font-size: 0.8125rem;
}

.testimonials__controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.testimonials__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #0056e0;
    font-size: 1.125rem;
    background: #ffffff;
    border: 2px solid #d0dbe8;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.testimonials__btn:hover,
.testimonials__btn:focus-visible {
    background: #eef4ff;
    border-color: #0056e0;
    outline: none;
}

/* Contact */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact__details {
    margin: 1.5rem 0;
    font-style: normal;
}

.contact__detail {
    margin-bottom: 1.25rem;
}

.contact__detail strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0a1e3d;
    font-size: 0.875rem;
}

.contact__detail p {
    margin: 0;
    font-size: 0.9375rem;
}

.contact__detail a {
    color: #0056e0;
    text-decoration: none;
}

.contact__detail a:hover,
.contact__detail a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.contact__map {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 40, 90, 0.1);
}

.contact__map iframe {
    display: block;
    border: 0;
}

.contact__form {
    padding: 2rem;
    background: #f4f8ff;
    border-radius: 20px;
}

.contact__form-title {
    margin: 0 0 1.5rem;
    color: #0a1e3d;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact__field {
    margin-bottom: 1rem;
}

.contact__field label {
    display: block;
    margin-bottom: 0.35rem;
    color: #0a1e3d;
    font-size: 0.875rem;
    font-weight: 600;
}

.contact__field input,
.contact__field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #1a2b4a;
    background: #ffffff;
    border: 1px solid #d0dbe8;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__field input:focus,
.contact__field textarea:focus {
    border-color: #0056e0;
    box-shadow: 0 0 0 3px rgba(0, 86, 224, 0.15);
    outline: none;
}

.contact__field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero__inner,
    .about__grid,
    .labs__grid,
    .contact__grid,
    .flagship__grid {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        display: flex;
        flex-direction: column;
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 2;
        max-width: 100%;
        width: 100%;
        margin: 2rem auto 0;
    }

    .hero__image {
        max-width: 100%;
        min-height: unset;
    }

    .hero__tag--1 { left: 0; }
    .hero__tag--2 { right: 0; }

    .labs__image--secondary {
        position: static;
        width: 60%;
        margin: 1rem auto 0;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero__visual {
        margin-top: 2.5rem;
        padding: 0;
    }

    .hero__image {
        border-radius: 20px;
    }

    .hero__stats,
    .stats-bar__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses__grid,
    .why__grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .hero__tag {
        font-size: 0.72rem;
        padding: 0.4rem 0.75rem;
    }

    .hero__code {
        font-size: 0.7rem;
        padding: 0.6rem 0.9rem;
    }

    .hero__actions {
        display: none;
    }

    .hero__desc {
        display: none;
    }
}
