.image-frame::after,
.image-frame::before {
    content: "";
    width: 160px;
    height: 140px;
    background: #0d2b8f;
    border-radius: 15px;
}

.country-desc,
.insight-card p,
.toc-list li,
.toc-list li a,
p.small.mb-1,
span.text-muted {
    font-size: 14px;
}

.city-card img,
.institution-img img {
    object-fit: cover;
    transition: transform 0.5s;
}

.info-table thead th,
.language-table thead th {
    background-color: #fff1ec;
    border-bottom: 1px solid #f1d6cd;
}

.cost-card,
.scholarship-box,
thead th {
    text-align: center;
}

.language-table .test-name,
.small-table td,
.small-table th,
thead th {
    vertical-align: middle;
}

.country-hero {
    padding-top: 50px;
}

.breadcrumb-country {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.blog-title-link:hover,
.breadcrumb-home {
    color: var(--main-color);
    text-decoration: none;
}

.breadcrumb-home:hover,
.icon-box,
.institution-card h6 .arrow,
.intake-type.primary,
.intake-type.secondary,
.intake-type.tertiary,
.partner-institute-count,
.popular-city,
.toc-list li a:hover {
    color: var(--main-color);
}

.breadcrumb-current {
    color: var(--heading-color);
    font-weight: 500;
}

.country-flag img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.country-section {
    background: #e3f3fc;
}

p.small.mb-1 {
    font-weight: 700;
}

.country-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--main-color);
}

.info-card {
    background: #fff;
    border-radius: 12px;
}

.explore-all {
    text-decoration: none !important;
    color: var(--heading-color) !important;
    cursor: pointer;
}

.explore-all:hover {
    text-decoration: none !important;
    color: var(--main-color) !important;
}

.hero-img-wrapper {
    position: relative;
    z-index: 3;
}

.hero-img {
    border-radius: 18px;
    width: 100%;
}

.blue-shape-bottom,
.blue-shape-top {
    height: 150px;
    background: #103b8e;
    border-radius: 40px;
    position: absolute;
    z-index: 1;
}

.blue-shape-top {
    top: -30px;
    right: 40px;
    width: 140px;
}

.blue-shape-bottom {
    bottom: -30px;
    right: 0;
    width: 170px;
}

.image-frame {
    position: relative;
    display: inline-block;
    padding: 40px;
    margin-left: 200px;
    background: 0 0;
}

.main-img {
    display: block;
    width: 100%;
    max-width: 500px;
    border-radius: 22px;
    position: relative;
    z-index: 5;
}

.image-frame::before {
    position: absolute;
    top: 60px;
    left: 60px;
    transform: translate(-30%, -30%);
    z-index: 1;
}

.image-frame::after {
    position: absolute;
    bottom: 60px;
    right: 60px;
    transform: translate(30%, 30%);
    z-index: 1;
}

.toc-wrapper {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    top: 100px;
}

.toc-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.cost-legend,
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li a {
    display: block;
    color: #333;
    text-decoration: none;
}

.toc-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.toc-list li a.active {
    color: var(--main-color) !important;
    font-weight: 600;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-wrap {
    width: 36px;
    height: 36px;
    background: #e8f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 18px;
}

.toc-cta,
.toc-wrapper {
    border-radius: 12px;
    padding: 20px;
}

.section-title h4 {
    font-weight: 600;
    margin: 0;
    color: var(--heading-color);
    white-space: nowrap;
}

.section-title .line {
    flex: 1;
    height: 1px;
    background: #cfd3e6;
    margin-left: 10px;
}

.toc-cta {
    top: 700px;
}

.toc-sticky {
    position: sticky;
    top: 100px;
}

.toc-wrapper {
    background: #fff;
}

.toc-cta {
    background: #fff3ef;
}

.insight-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.insight-card h5 {
    color: var(--main-color);
    font-weight: 700;
}

.insight-card.wide {
    height: 100%;
}

.insight-card p {
    font-weight: 500;
}

.institution-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.institution-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: 0.35s;
}

.course-pill,
.explore-btn,
.scholarship-btn {
    transition: 0.3s;
    text-decoration: none;
}

.institution-img {
    position: relative;
    overflow: hidden;
}

.institution-img img {
    width: 100%;
    height: 220px;
}

.institution-logo-box {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    max-width: 70%;
}

.institution-logo-box img {
    max-height: 36px;
    display: block;
    margin-bottom: 6px;
}

.institution-logo-box .cricos {
    font-size: 11px;
    color: #555;
}

.institution-card .card-body {
    padding: 18px;
}

.institution-card h6 {
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 12px;
}

.institution-card .meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: #444;
}

.institution-card .meta li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.institution-card .meta i {
    color: #1f2b7b;
}

.institution-card-link:hover .institution-card {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.city-card:hover img,
.institution-card-link:hover .institution-img img {
    transform: scale(1.08);
}

.institutions-cta {
    margin-top: 24px;
}

.cta-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.explore-btn:hover,
.scholarship-btn:hover {
    background: var(--hover-color);
    color: #fff;
}

.city-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    height: 320px;
}

.cost-card,
.course-pill {
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.city-card img {
    width: 100%;
    height: 100%;
}

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.city-overlay h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.city-overlay span {
    font-size: 13px;
}

.course-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 68px;
    padding: 10px 14px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dot,
.scholarship-logos,
thead th > span {
    display: inline-block;
}

.course-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.course-pill span {
    line-height: 1.3;
    word-break: break-word;
}

.course-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    color: var(--main-color);
}

.section-desc {
    color: #555;
    max-width: 900px;
    font-size: 14px;
}

.cost-card {
    background: #fff3ef;
    padding: 16px;
}

.cost-card h6 {
    margin-bottom: 6px;
    font-weight: 600;
}

.cost-card p {
    margin: 0;
    font-size: 15px;
}

.cost-pie-img {
    max-width: 420px;
}

.cost-legend li {
    margin-bottom: 16px;
    font-size: 14px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.accommodation {
    background: #ff5722;
}

.dot.food {
    background: #2196f3;
}

.dot.transport {
    background: #ffc107;
}

.dot.misc {
    background: #9c27b0;
}

.admission-list {
    padding-left: 20px;
}

.admission-list li {
    margin-bottom: 10px;
    color: #444;
    font-size: 14px;
}

.scholarship-section {
    background: #fdeee9;
    border-radius: 15px;
}

.scholarship-box {
    background: #fdeee9;
    border-radius: 20px;
    padding: 15px 20px;
}

.scholarship-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.scholarship-logos {
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
}

.scholarship-logos img {
    max-width: 100%;
    height: auto;
}

.scholarship-logos .country-show-more-university {
    text-decoration: none;
}

.scholarship-logos .country-show-more-university .more-text {
    color: var(--main-color);
    transition: color 0.2s;
}

.scholarship-logos .country-show-more-university:hover .more-text {
    color: var(--hover-color);
}

.scholarship-subtext {
    color: #444;
    margin-bottom: 20px;
}

.scholarship-btn {
    background: var(--main-color);
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 500;
}

.scholarship-btn i {
    margin-left: 6px;
    font-size: 13px;
}

.info-table th {
    font-weight: 600;
    font-size: 14px;
    border-bottom: none;
}

.visa-list {
    padding-left: 20px;
    color: #444;
    font-size: 14px;
}

.visa-list li {
    margin-bottom: 8px;
}

.intakes-table,
.work-table {
    max-width: 520px;
}

.info-table thead,
.intakes-table thead {
    background: #fff1ec;
}

.intakes-table th {
    font-size: 14px;
    font-weight: 600;
    border-bottom: none;
}

.info-table td,
.intakes-table td {
    font-size: 14px;
    color: #444;
    vertical-align: middle;
}

.info-table tbody tr,
.intakes-table tbody tr,
.language-table tbody tr {
    border-top: 1px solid #eee;
}

.intake-type {
    font-size: 12px;
    font-weight: 500;
}

.info-table thead th {
    color: var(--heading-color);
    color: #1f2b7b;
    font-weight: 600;
    font-size: 14px;
}

.language-table {
    max-width: 720px;
    border: 1px solid #f1d6cd;
    border-radius: 14px;
    overflow: hidden;
}

.language-table thead th {
    color: #1f2b7b;
    font-weight: 600;
    font-size: 14px;
}

.info-table thead th:first-child,
.info-table thead th:not(:last-child),
.language-table thead th:first-child {
    border-right: 1px solid #f1d6cd;
}

.language-table .test-name {
    width: 180px;
}

.language-table .test-name img {
    max-height: 32px;
    max-width: 140px;
}

.language-table td {
    font-size: 14px;
    color: #444;
}

.course-table {
    margin: 0 0 10px !important;
}

.table-head td p {
    text-align: left !important;
    margin: 0;
}

.university-logo {
    max-height: 45px;
    object-fit: contain;
}

.more-text {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.spinner-red {
    color: var(--main-color) !important;
}

.info-table {
    background: #fff;
    border: 1px solid #f1d6cd;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.scholarship-table {
    max-width: 900px;
}

.blog-section {
    background-color: #fff;
    padding: 70px 0;
}

.blog-title-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

thead th > span {
    text-align: left;
    margin: 0 auto;
    white-space: normal;
}

.show-more-cities-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--main-color);
    text-decoration: none;
    border: 1px solid var(--main-color);
    border-radius: 30px;
    background-color: transparent;
    transition: all 0.25s ease;
}

.show-more-cities-btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

/* Hover effect */
.show-more-cities-btn:hover {
    background-color: var(--main-color);
    color: #fff;
}

.show-more-cities-btn:hover i {
    transform: translateY(2px);
}

@media (max-width: 1200px) {
    .country-title {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .image-frame {
        margin-left: 0;
    }

    .main-img {
        border-radius: 18px;
    }

    .image-frame::before {
        top: 45px;
        left: 45px;
        width: 80px;
        height: 80px;
    }

    .image-frame::after {
        top: 132px;
        left: 330px;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .country-hero {
        display: block !important;
        padding-top: 15px;
    }

    .country-hero.align-items-center {
        align-items: flex-start !important;
    }

    .country-image-section {
        margin-top: 24px;
    }

    .image-frame {
        padding: 20px 20px 35px;
        margin: 0 auto;
        display: block;
    }

    .image-frame::before {
        top: 30px;
        left: 30px;
        width: 90px;
        height: 90px;
    }

    .image-frame::after {
        top: 180px !important;
        left: 417px !important;
        width: 95px;
        height: 75px;
    }

    .cost-pie-img {
        max-width: 100%;
    }

    .scholarship-box {
        padding: 30px 15px;
    }

    .scholarship-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .scholarship-logos {
        padding: 12px;
    }
}

@media (max-width: 991px) {
    .blue-shape-bottom,
    .blue-shape-top,
    .toc-cta,
    .toc-wrapper {
        display: none;
    }
}

@media (max-width: 576px) {
    .country-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .country-image-section {
        margin-bottom: 15px !important;
    }

    .country-title {
        font-size: 28px;
    }

    .hero-img {
        border-radius: 14px;
    }

    .image-frame {
        margin-left: 0;
    }

    .image-frame::before {
        top: 30px;
        left: 35px;
        width: 90px;
        height: 70px;
    }

    .image-frame::after,
    .section-title .line {
        display: none;
    }

    .course-pill {
        height: auto;
        min-height: 60px;
    }

    .institution-img img {
        height: 180px;
    }

    .institution-logo-box {
        max-width: 85%;
    }

    .section-title {
        display: flex;
        align-items: center;
    }

    .section-title h4 {
        line-height: 1.3;
        font-size: 16px;
        white-space: normal;
    }

    .intakes-table,
    .language-table,
    .scholarship-table,
    .work-table {
        max-width: 100%;
    }

    .language-table .test-name {
        width: auto;
    }

    .info-table td,
    .info-table th,
    .intakes-table td,
    .intakes-table th,
    .language-table td {
        font-size: 13px;
    }

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

    .institutions-cta .explore-btn {
        margin: 0 auto;
    }
}
