/* ===== Hero ===== */
.hero {
    padding: 48px 0 60px;
}

.hero-slider {
    position: relative;
}

.hero-slides {
    position: relative;
    transition: height .35s ease;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 40px;
    align-items: center;
    transition: opacity .7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

.hero-img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.hero-img img {
    border-radius: 18px;
}

.hero-text {
    text-align: right;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-idp {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.idp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(122, 26, 43, .08);
}

.idp-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.idp-mark svg {
    width: 100%;
    height: 100%;
}

.idp-badge .idp-text {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    color: #3a3a3a;
}

.idp-badge .divider {
    width: 1px;
    height: 22px;
    background: var(--line);
}

.idp-badge .ielts-text {
    font-weight: 900;
    font-size: 20px;
    color: var(--red);
    letter-spacing: .5px;
}

.idp-caption {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.hero-city {
    font-size: 26px;
    font-weight: 800;
    color: var(--maroon);
    margin-bottom: 14px;
}

.hero-text p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 480px;
    margin-bottom: 22px;
    margin-right: 0;
    margin-left: auto;
}

.hero-feats {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    justify-content: flex-end;
}

.hero-feats li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a3a3c;
}

.hero-feats i {
    color: var(--maroon);
    font-size: 15px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    z-index: 5;
    transition: background .2s ease, color .2s ease;
}

.hero-arrow:hover {
    background: var(--maroon);
    color: #fff;
}

.hero-arrow.prev {
    right: -6px;
}

.hero-arrow.next {
    left: -6px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
    transition: all .25s ease;
}

.hero-dot.active {
    width: 26px;
    border-radius: 5px;
    background: var(--maroon);
}

.hero-slider.single-slide .hero-arrow,
.hero-slider.single-slide .hero-dots {
    display: none;
}

/* ===== Services ===== */
.services {
    background: var(--cream);
}

.service-grid {
    display: grid;
    grid-template-columns:repeat(6, 1fr);
    gap: 16px;
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 24px 14px;
    text-align: center;
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1.5px;
    background: conic-gradient(from 0deg, var(--clr), transparent 30%, transparent 70%, var(--clr));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    animation: spin 3s linear infinite paused;
    z-index: 0;
}

.service-card:hover, .service-card.active {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--clr) 45%, transparent);
}

.service-card:hover::before, .service-card.active::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--cream);
    color: var(--clr);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover .service-icon, .service-card.active .service-icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--clr) 16%, transparent);
}

.service-card h3 {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-card p {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: var(--muted);
}

/* ===== Exam dates ===== */
.dates .wrap {
    display: grid;
    grid-template-columns:0.85fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.calendar-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.calendar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 700;
}

.cal-head button {
    color: var(--maroon);
    font-size: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
}

.cal-grid {
    display: grid;
    grid-template-columns:repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 13px;
}

.cal-grid .dow {
    color: var(--muted);
    font-weight: 700;
    padding-bottom: 8px;
    font-size: 12px;
}

.cal-grid .day {
    padding: 8px 0;
    border-radius: 8px;
    font-weight: 600;
    color: #4a3a3c;
}

.cal-grid .day.today {
    background: var(--maroon);
    color: #fff;
}

.cal-grid .day.marked {
    background: var(--maroon-light);
    color: #fff;
}

.cal-grid .day.marked.available {
    background: #2e9e5b;
}

.cal-grid .day.marked.limited {
    background: #e0a536;
}

.cal-grid .day.marked.full {
    background: #c0392b;
}

.cal-legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cal-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.green {
    background: var(--green);
}

.dot.amber {
    background: var(--amber);
}

.dot.red {
    background: var(--red);
}

/* No-fee registration banner — sits in the white space under the calendar, outside its cream box */
.fee-banner {
    position: relative;
    padding: 18px 20px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(120deg, var(--maroon) 0%, var(--maroon-light) 55%, var(--gold) 130%);
    box-shadow: 0 10px 26px -8px rgba(122, 26, 43, .4);
    animation: fee-glow 2.6s ease-in-out infinite;
}

@keyframes fee-glow {
    0%, 100% {
        box-shadow: 0 10px 26px -8px rgba(122, 26, 43, .4);
    }
    50% {
        box-shadow: 0 10px 30px -4px rgba(201, 154, 74, .5);
    }
}

.fee-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    animation: fee-bounce 1.8s ease-in-out infinite;
}

@keyframes fee-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-4px) rotate(-8deg);
    }
}

.fee-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
}

.fee-text strong {
    font-size: 16px;
    font-weight: 800;
}

.fee-text span {
    font-size: 12px;
    opacity: .9;
}

.fee-spark {
    position: absolute;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    animation: fee-spark 2.6s ease-in-out infinite;
}

.fee-spark.s1 {
    top: 12px;
    left: 18px;
    animation-delay: .3s;
}

.fee-spark.s2 {
    bottom: 12px;
    left: 42px;
    font-size: 10px;
    animation-delay: 1.1s;
}

@keyframes fee-spark {
    0%, 100% {
        opacity: 0;
        transform: scale(.6);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.exam-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exam-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 20px;
}

.exam-mid {
    flex: 1;
}

.exam-mid h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.exam-meta {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.exam-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.capacity {
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.capacity.open {
    color: var(--green);
}

.capacity.limited {
    color: var(--amber);
}

.exam-date-badge {
    text-align: center;
    background: var(--cream);
    border-radius: 10px;
    padding: 8px 16px;
    min-width: 78px;
}

.exam-date-badge .num {
    font-size: 22px;
    font-weight: 800;
    color: var(--maroon);
    line-height: 1;
}

.exam-date-badge .sub {
    font-size: 11px;
    color: var(--muted);
}

.register-mini {
    background: var(--maroon);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dates-cta {
    text-align: center;
    margin-top: 28px;
}

/* ===== About ===== */
.about .wrap {
    display: grid;
    grid-template-columns:1fr 1.1fr;
    gap: 44px;
    align-items: center;
}

.about-img {
    border-radius: 16px;
    overflow: hidden;
}

.about-text {
    text-align: right;
}

.about-text h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
}

.about-text p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 22px;
}

.about-feats {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.about-feats li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    justify-content: flex-end;
}

.about-feats i {
    color: var(--maroon);
}

/* ===== Tours ===== */
.tours-head {
    text-align: center;
    margin-bottom: 36px;
}

.tours-head h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.tours-head p {
    color: var(--muted);
    font-size: 13.5px;
}

.tours-grid {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 32px;
}

.tours-cta {
    text-align: center;
}

/* All three cards: 3D flip, each with its own back image */
.tour-card {
    background: transparent;
    border: none;
    padding: 0;
    perspective: 1200px;
}

.tour-card.featured .flip-inner {
    height: 250px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 220px;
    transition: transform .7s cubic-bezier(.4, .2, .2, 1);
    transform-style: preserve-3d;
}

.tour-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 20px;
    border: 1px solid var(--line);
}

.flip-front {
    background: #fff;
}

.tour-card.featured .flip-front {
    background: #fff;
    border-color: var(--line);
}

.flip-front .tour-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: var(--maroon);
}

.tour-card.featured .flip-front .tour-icon {
    background: #fff;
    color: var(--gold);
}

.flip-front h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.flip-front p {
    font-size: 12.5px;
    color: var(--muted);
}

.flip-back {
    transform: rotateY(180deg);
    color: #fff;
    border-color: transparent;
    background-size: cover;
    background-position: center;
}

.flip-back::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(0deg, rgba(30, 10, 15, .8), rgba(30, 10, 15, .15));
}

.flip-back .tour-icon, .flip-back h3, .flip-back p {
    position: relative;
    z-index: 1;
}

.flip-back .tour-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    color: #fff;
    backdrop-filter: blur(2px);
}

.flip-back h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.flip-back p {
    color: #f0e6e2;
    font-size: 12px;
}

@media (max-width: 780px) {
    .tours-grid {
        grid-template-columns:1fr;
    }
}

/* ===== Articles ===== */
.articles {
    background: var(--cream);
}

.article-carousel {
    position: relative;
}

.article-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 18px;
}

.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.article-thumb {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.article-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--maroon-dark);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
}

.article-body {
    padding: 16px;
}

.article-body h3 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.6;
    min-height: 44px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
}

.carousel-arrow {
    position: absolute;
    top: 45%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
}

.carousel-arrow.left {
    left: -50px;
}

.carousel-arrow.right {
    right: -50px;
}

.articles-cta {
    text-align: center;
    margin-top: 32px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14.5px;
}

.faq-q .plus {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13.5px;
    transition: max-height .3s ease, padding .3s ease;
}

.faq-item.open .faq-a {
    padding: 0 20px 18px;
    max-height: 200px;
}

.faq-cta {
    text-align: center;
    margin-top: 24px;
}

/* ===== CTA banner ===== */
.cta-banner {
    background: var(--maroon);
    color: #fff;
    padding: 0;
}

.cta-banner .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-banner h3 {
    font-size: 19px;
    font-weight: 800;
}

.cta-banner p {
    font-size: 13px;
    opacity: .85;
    margin-top: 4px;
}

.cta-banner .btn {
    background: #fff;
    color: var(--maroon);
}

.cta-banner .btn:hover {
    background: var(--cream);
}
