/* ============================================================
   Fairytales Academy â€” Homepage CSS
   Production-ready | RTL Compatible | Responsive
   ============================================================ */




/* ============================================================
   BANNER
   ============================================================ */
.banner {
  margin-top: 0px;
  padding-top: 85px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  background: #FFF8FC;
}



.banner .container {
  position: relative;
  z-index: 1;
}

.banner_txt {
  max-width: 520px;
  padding-bottom: 20px;
}

.banner_txt h1 {
  font-size: 56px;
  font-weight: 900;
  color: #1F1A1D;
  line-height: 1.25;
  margin-bottom: 36px;
}

.banner_txt .btn {
    background: #602C7F;
    border-radius: 9999px;
    font-size: 17px;
    color: #fff !important;
    padding: 14px 36px;
    box-shadow: 0px 8px 10px -6px #602C7F4D;
}

.banner_happy_families {
    display: flex;
    align-items: center;
    padding-top: 18px;
}

.avatar_wrap {
    display: flex;
    align-items: center;
    /* Adjust this to move the whole group if needed */
    /* padding-left: 20px; */
}

.avatar_wrap img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%; /* Makes them circles */
    border: 3px solid #fff; /* The "inset" gap color (change to match background) */
    margin-left: -15px; /* This creates the overlap */
    position: relative;
    transition: transform 0.2s ease;
}

/* Fixes the first image so it doesn't have a negative margin */
.avatar_wrap img:first-child {
    margin-left: 0;
    z-index: 3;
}

.avatar_wrap img:nth-child(2) { z-index: 2; }
.avatar_wrap img:nth-child(3) { z-index: 1; }

/* Optional: Bring to front on hover */
.avatar_wrap img:hover {
    /* transform: translateY(-5px);
    z-index: 10; */
}

.banner_wrap_btn {
    display: flex;
    margin: 26px 0;
    gap: 18px;
}

.banner_txt span.top_txt_badge {
    color: #A01060;
    background:  #FFDAE9;
    padding: 10px 33px 10px 21px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.banner_txt .btn.btn_vid {
    background: #F5D9FF;
    color: #602C7F !important;
}

.banner_ima img {
    max-width: 550px;
    height: 530px;
    border-radius: 32px;
    width: 100%;
    /* object-fit: contain; */
    transform: rotateZ(1.8deg);
}

.star_wrap {
    /* display: flex; */
    background: #ffff;
    box-shadow: 0px 25px 50px -12px #00000040;
    width: 171px;
    padding: 12px 16px;
    position: absolute;
    right: 71px;
    bottom: -20px;
    border-radius: 12px;
    border: 1px solid #FFDAE9;
}

.wrap_star_num {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.banner_ima {
    position: relative;
}

.star_wrap li {
    font-size: 13px;
    color: #4D444C;
    line-height: 1.3;
    font-weight: bold;
}

.wrap_star_num h4 {
    color: #602C7F;
}

.banner_txt p {
    color: #4D444C;
    line-height: 32.5px;
    font-size: 20px;
}

.star_wrap i {
    color: #E040A0;
}

.banner_txt .btn.btn_vid:hover{box-shadow:none}

.banner_happy_families p {
    color: #4D444C;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0px;
    padding-inline-start: 17px;
}

.banner_txt h1 span.colored {
    font-weight: 400;
}

/* ============================================================
   Legacy Section
   ============================================================ */

   .legacy {
    background: #FFF0F7;
    margin-top: -29px;
    padding-top: 22px;
    padding-bottom: 56px;
}

.legacy .heading {
    text-align: center;
    padding: 20px 0 50px;
}

.legacy .heading h2 {
    font-size: 48px;
    font-weight: bold;
    color: #1F1A1D;
}

.legacy h2 {
    color: #602C7F;
    margin-bottom: 12px;
}

.legacy p {
    color: #4D444C;
}

.row.row_block_1 .row {
    background: #fff;
    border-radius: 40px;
    padding: 42px;
}

.num_blocks {
    display: flex;
    gap: 22px;
    justify-content:space-between;
    margin-top: 15px;
}

.vison_block {
    background: #602C7F;
    text-align: center;
    padding: 61px 44px;
    border-radius: 40px;
}

.vison_block h3 {
    color: #fff;
    margin-bottom: 10px;
}

.vison_block p {
    color: #fff;
    font-size: 16px;
    padding: 20px 0;
}

.vison_block .icon {
    background: #805699;
    display: inline-block;
    padding: 12px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.block_ima img {
    border-radius: 16px;
    height: 100%;
}
.num_blocks .num_block:first-child{background: #FBF0FF;}
.num_blocks .num_block:last-child{background: #FBF0FF;}
.num_blocks .num_block {
    padding: 12px 12px;
    border-radius:12px;
    width: 100%;
}

.num_blocks .num_block h2 {
    font-size: 30px;
    margin-bottom: 0;
}

.num_blocks .num_block:first-child h2{color: #602C7F;}
.num_blocks .num_block:first-child span{color: #602C7F}

.num_blocks .num_block:last-child h2{color: #E040A0B2;}
.num_blocks .num_block:last-child span{color: #E040A0B2;}

.row.row_block_1 {
    margin-bottom: 38px;
}

.block_ima {
    height: 100%;
}

.row.row_block_2 {
    padding: 30px 0;
}

.block_finst {
    background: #D0F4FF;
    min-height: 429px;
    position: relative;
    padding: 40px;
    box-shadow: 0px 10px 15px -3px #0000001A;
    border-radius: 40px;
}

.block_finst_logo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 10px solid #FFFFFF;
}

.block_finst_logo {
    position: absolute;
    bottom: 11px;
    right: 12px;
    z-index: 0;
}

.block_finst h2 {
    color: #004E60;
    margin-bottom: 0;
}

.block_finst span {
    color: #004E60CC;
    font-size: 12px;
    font-family: "Libre Caslon Text", serif;
    margin-bottom: 11px;
    display: inline-block;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.block_finst p {
    color: #004E60B2;
    font-size: 16px;
}

.community_block {
    background: #E040A0;
    padding: 118px 0;
    color: #fff;
    border-radius: 40px;
    height: 100%;
}

.community_block img {
    height: 184px;
    width: 225px;
    object-fit: cover;
    border-radius: 11px;
    margin-left: 24px;
    object-position: center;
}

.community_block .row {
    align-items: center;
}

.community_block p {
    color: #fff;
    font-size: 18px;
    margin-top: 20px;
}


/* ============================================================
   Pathways Programs
   ============================================================ */
/* Section */
.pathway_programs {
    background: #f3edf1;
    padding: 80px 0;
}

/* Heading */
.pathway_programs .heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 20px;
}

.pathway_programs .title_wrap h3 {
    font-size: 42px;
    font-weight: 700;
    margin: 10px 0 0;
    color: #1e1e1e;
}

.pathway_programs .pathway-badge {
    font-size: 13px;
    letter-spacing: 2px;
    color: #e14d9a;
    text-transform: uppercase;
    font-weight: 600;
}

.pathway_programs .heading p {
    max-width: 350px;
    color: #6b6b6b;
    font-size: 16px;
    line-height: 1.6;
}

/* Cards Wrapper */
.program_cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.program_card {
    background: #ffffff;
    /* Increase radius to match Figma */
    border-radius: 40px;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    
    /* REMOVE OLD ::AFTER AND USE THIS: */
    border-bottom: 15px solid #6c3eb8;
    overflow: hidden;
    border-bottom: 10px solid #6c3eb8;
}

/* DELETE THIS ENTIRE BLOCK FROM YOUR CSS */
.program_card::after {
    display: none; 
}

.program_card .icon {
    width: 70px;
    height: 70px;
    /* This specific radius creates the playful blob shape */
    border-radius: 25px 12px 25px 12px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.program_card .icon img {
    width: 28px;

}

/* Title */
.program_card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #5a2ca0;
}

/* Description */
.program_card p {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* List */
.program_card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.program_card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.program_card ul li img {
    width: 14px;
}

.btn_details {
    display: block; /* Makes it easier to center/size */
    text-align: center;
    padding: 14px 20px;
    border-radius: 50px; /* Max rounding */
    border: 2px solid #6c3eb8;
    color: #6c3eb8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px; /* Matches the airy typography */
    transition: all 0.3s ease;
}

.btn_details:hover {
    background: #6c3eb8;
    color: #fff;
}

.program_card:nth-child(1) ul li i,.program_card:nth-child(4) ul li i {color:#E040A0;}
.program_card:nth-child(2) ul li i {color:#602C7F;}
.program_card:nth-child(3) ul li i {color:#00B4D8;}

/* --- Variants (like Figma colors per card) --- */
.program_card:nth-child(1) .icon { background: #F5D9FF; }
/* Card 2 */
.program_card:nth-child(2) h3 { color: #e14d9a; }
.program_card:nth-child(2) .icon { background: #ffe6f1; }
.program_card:nth-child(2)::after { background: #e14d9a; }
.program_card:nth-child(2) .btn_details {
    border-color: #e14d9a;
    color: #e14d9a;
}
.program_card:nth-child(2) .btn_details:hover {
    background: #e14d9a;
    color: #fff;
}

/* Card 3 */
.program_card:nth-child(3) h3 { color: #1aa6b7; }
.program_card:nth-child(3) .icon { background: #e6f7fa; }
.program_card:nth-child(3)::after { background: #1aa6b7; }
.program_card:nth-child(3) .btn_details {
    border-color: #1aa6b7;
    color: #1aa6b7;
}
.program_card:nth-child(3) .btn_details:hover {
    background: #1aa6b7;
    color: #fff;
}

/* Card 4 */
.program_card:nth-child(4) h3 { color: #6c3eb8; }
.program_card:nth-child(4) .icon { background: #f3e9ff; }
.program_card:nth-child(4)::after { background: #6c3eb8; }

/* Card 1: Purple (Standard) */
.program_card:nth-child(1) { border-bottom-color: #5a2ca0; }

/* Card 2: Pink */
.program_card:nth-child(2) { border-bottom-color: #e14d9a; }
.program_card:nth-child(2) h3 { color: #e14d9a; }

/* Card 3: Cyan */
.program_card:nth-child(3) { border-bottom-color: #1aa6b7; }
.program_card:nth-child(3) h3 { color: #1aa6b7; }

/* Card 4: Dark Purple */
.program_card:nth-child(4) { border-bottom-color: #4b2475; }

/* Responsive */
@media (max-width: 992px) {
    .program_cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pathway_programs .heading {
        flex-direction: column;
    }

    .pathway_programs .heading p {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .program_cards {
        grid-template-columns: 1fr;
    }
}




/* ============================================================
   Join Us
   ============================================================ */

/* Join Us Section */
.join_us {
    padding: 80px 0;
    position: relative;
}

section.join_us::after {
    content: "";
    position: absolute;
    right: 212px;
    bottom: 81px;
    width: 500px;
    height: 200px;
    background-image: url(../images/join-shape.svg);
    background-size: cover;
    z-index: 9;
    border-radius: 40px;
}

.join_us .container {
    border-radius: 40px;
    padding: 70px 20px;
    text-align: center;
    color: #fff;
    max-width: 1100px;
    box-shadow: 0px 25px 50px -12px #602C7F66;
     /* Fallback */
    background: linear-gradient(135deg, #662D8C 0%, #3E206D 100%);
    /* Adding a subtle radial glow to match the image perfectly */
    background-image: radial-gradient(circle at top left, #7b339b, transparent), 
                      radial-gradient(circle at bottom right, #5c3b9b, #3e206d);
}

/* Title */
.join_us h2 {
    font-size: 67px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.join_us h2 .colored {
    color: #E040A0;
    display: inline-table;
    font-weight: 400;
}

/* Text */
.join_us p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
    color: #f3eaff;
}

/* Buttons */
.join_us .deut_btn {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* Base button */
.join_us .btn {
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    transition: 0.3s ease;
    background: #70418C;
    min-width: 200px;
}

/* Primary button */
.join_us .btn-schedule {
    background: linear-gradient(135deg, #ff4fa3, #ff7ab6);
    border: none;
    box-shadow: 0 10px 25px rgba(255, 79, 163, 0.4);
}

.join_us .btn-schedule:hover {
    transform: translateY(-2px);
}

/* Secondary */
.join_us .btn:hover {
    background: #fff;
    color: #6c3eb8 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .join_us h2 {
        font-size: 30px;
    }
}


/* ============================================================
   BRANCHES
   ============================================================ */
.branches {
    padding: 0 0 var(--section-py) 0;
    background: var(--white);
}

.branch {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    height: 100%;
    position: relative;
}

.branch:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Full image â€” fills the card */
.branch_background {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.branch_background img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.branch:hover .branch_background img {
    transform: scale(1.05);
}

/* Info overlay â€” sits at the bottom of the image */
.branch_content {
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    padding: 40px 14px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    z-index: 2;
    text-align: center;
    border-radius: 10px;
    height: 129px;
}

/* Avatar overlapping */
.branch_content .avatar {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 4px;
    margin: -84px auto 5px;
}

.branch_content .avatar img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.branch_content .address{font-weight: 400 !important;}
/* Branch info text */
.branch_info {
    flex: 1;
}

.branch_info h2 {
    font-size: 13px;
    font-weight: 800;
    color: #602C7F;
    margin-bottom: 3px;
    font-family: var(--font-body);
    line-height: 1.3;
}

.branch_info .location,
.branch_info .address {
    display: block;
    font-size: 11px;
    color: #000;
    line-height: 1.5;
    font-weight: bold;
}

/* Per-card accent color on the info overlay */
.col-md-3:nth-child(1) .branch_content {background: linear-gradient(180deg, #B7E2E5 59.16%, rgba(183, 226, 229, 0) 100%);}
.col-md-3:nth-child(2) .branch_content {background: linear-gradient(180deg, #E77FB1 49.54%, rgba(231, 127, 177, 0) 100%);}
.col-md-3:nth-child(3) .branch_content {background: linear-gradient(180deg, #ABBBD4 58.09%, rgba(171, 187, 212, 0) 100%);}
.col-md-3:nth-child(4) .branch_content {background: linear-gradient(180deg, #602C7F 55.3%, rgba(96, 44, 127, 0) 100%);}

/* Branch name color per card */
.col-md-3:nth-child(1) .branch_info h2 {}
.col-md-3:nth-child(2) .branch_info h2 { }
.col-md-3:nth-child(3) .branch_info h2 { }
.col-md-3:nth-child(4) .branch_info h2,.col-md-3:nth-child(4) .branch_info span {color: #fff !important; }


/* ============================================================
   ABOUT US 
   ============================================================ */
.about_us {
    padding: 0 0 var(--section-py) 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about_us::before {
    display: none; /* remove old diagonal bg */
}

.about_us .container {
    position: relative;
    z-index: 1;
}

/* ---- Image stack ---- */
.wrap_imgs {
    position: relative;
    height: 620px;
}

/* Vertical color bars on the left */
.wrap_imgs::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 6px;
    height: 140px;
    background: var(--purple);
    border-radius: 4px;
    z-index: 1;
}

.wrap_imgs::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 23px;
    width: 13px;
    height: 93px;
    background: #602C7F;
    border-radius: 50px;
    z-index: 1;
}

.wrap_imgs::after {
    content: '';
    position: absolute;
    left: -13px;
    top: 20px;
    width: 13px;
    height: 80px;
    background: transparent;
    border-radius: 50px;
    z-index: 1;

    /* Bar 2 â€” pink, offset down */
    box-shadow:
        0 110px 0 0 #E77FB1,   /* second bar â€” pink */
        0 200px 0 0  #B7E2E5;
;   /* third bar  â€” teal/cyan */
}

/* Top image â€” portrait, right side */
.wrap_imgs .img-1 {
    position: absolute;
    top: 0;
    left: 20px;
    right: 0;
    width: calc(100% - 20px);
    height: 58%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

/* Bottom image â€” portrait, slightly left */
.wrap_imgs .img-2 {
    position: absolute;
    bottom: 0;
    left: -49px;
    width: 68%;
    height: 50%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.wrap_imgs .img-1 img,
.wrap_imgs .img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2017 circular badge â€” large, overlaps bottom-right */
.wrap_imgs .circular {
    position: absolute;
    bottom: 72px;
    right: 62px;
    width: 240px;
    height: 240px;
    background: #D9D9D9;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: none;
    border: none;
    border: 4px solid #FFFFFF;
}

.wrap_imgs .circular h2 {
    font-size: 69px;
    font-weight: 900;
    color: #602C7F;
    line-height: 1;
    margin-bottom: 2px;
}

.wrap_imgs .circular h4 {
    font-size: 32px;
    font-weight: 400;
    color: #602C7F;
    text-transform: capitalize;
    letter-spacing: 1px;
}

/* ---- About content (right col) ---- */
.wrap_content {
    padding-left: 40px;
    padding-right: 0;
    padding-top: 10px;
}

[dir="rtl"] .wrap_content {
    padding-left: 0;
    padding-right: 40px;
}

.wrap_content > h2 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.wrap_content > p {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Feature boxes â€” purple & pink fills */
.wrap_content .item_wrap {
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    margin-bottom: 16px;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.wrap_content .item_wrap:hover {
    transform: translateY(-3px);
}

/* First box â€” purple */
.wrap_content .row .col-md-6:nth-child(1) .item_wrap {
    background: #602C7F;
}

.wrap_content .row .col-md-6:nth-child(1) .item_wrap h2,
.wrap_content .row .col-md-6:nth-child(1) .item_wrap p {
    color: var(--white);
}

/* Second box â€” pink */
.wrap_content .row .col-md-6:nth-child(2) .item_wrap {
    background: #E77FB1;
}

.wrap_content .row .col-md-6:nth-child(2) .item_wrap h2,
.wrap_content .row .col-md-6:nth-child(2) .item_wrap p {
    color: var(--white);
}

.wrap_content .item_wrap h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.wrap_content .item_wrap p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Checklist */
.wrap_content .list {
    margin: 24px 0 28px;
}

.wrap_content .list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    padding: 8px 0;
    border-bottom: none;
}

.wrap_content .list li .icon-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #602C7F;
    border-radius: 50%;
    padding: 5px;
}

/* Book a Tour button */
.wrap_content .btn {
    background: #E77FB1;
    color: #602c7f !important;
    padding: 14px 44px;
    border-radius: 5px;
    font-size: 16px;
}

.wrap_content .btn:hover {
    background: #E77FB1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .wrap_imgs {
        height: 500px;
        margin-bottom: 40px;
    }

    .wrap_imgs .circular {
        width: 140px;
        height: 140px;
    }

    .wrap_imgs .circular h2 {
        font-size: 36px;
    }

    .wrap_content {
        padding-left: 0;
    }

    [dir="rtl"] .wrap_content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .branch_background {
        aspect-ratio: 3/3.5;
    }

    .wrap_imgs {
        height: 420px;
        margin-bottom: 36px;
    }

    .wrap_imgs .circular {
        width: 120px;
        height: 120px;
    }

    .wrap_imgs .circular h2 {
        font-size: 30px;
    }
}

/* ============================================================
   TEAM SECTION
   ============================================================ */

.team {
    margin-top: 40px;
    padding: 0;
    background: #602C7F;
    position: relative;
}

.team::after {position: absolute;content: "";width: 100%;height: 40px;
    background-image: url(../images/footer_bg.svg);top: -26px;left: 0;right: 0;
    background-size: cover;background-repeat: no-repeat;}

.team .contianer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section label */
.team > .contianer > .heading {
    padding: var(--section-py) 0 0;
}

/* ---- Purple experts block with wavy top ---- */
.team .experts {
    background: var(--purple);
    padding: 60px 60px 0;
    margin-top: 0;
    position: relative;
    overflow: visible; /* let circles bleed out */
    border-radius: 0;
}

/* Wavy SVG top edge */
.team .experts::before {
    content: '';
    position: absolute;
    top: -48px;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--purple);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath d='M0,52 C180,0 360,52 540,26 C720,0 900,52 1080,26 C1260,0 1440,52 1440,52 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath d='M0,52 C180,0 360,52 540,26 C720,0 900,52 1080,26 C1260,0 1440,52 1440,52 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    z-index: 2;
}

/* Actually use clip-path wave for better support */
.team .experts {
    clip-path: none;
    margin-top: -40px;
}

/* Wave shape via pseudo on the section itself */
.team::before {
    content: '';
    display: block;
    width: 100%;
    height: 55px;
    background: var(--purple);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 55'%3E%3Cpath d='M0,55 L0,30 C120,55 240,5 360,30 C480,55 600,5 720,30 C840,55 960,5 1080,30 C1200,55 1320,5 1440,30 L1440,55 Z' fill='white'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 55'%3E%3Cpath d='M0,55 L0,30 C120,55 240,5 360,30 C480,55 600,5 720,30 C840,55 960,5 1080,30 C1200,55 1320,5 1440,30 L1440,55 Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    flex-shrink: 0;
}

/* Decorative dots */
.team .experts::after {
    content: '';
    position: absolute;
    top: 60px;
    right: 40px;
    width: 18px;
    height: 18px;
    background: var(--pink);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 120px 0 14px var(--yellow);
}

/* ---- Sub heading ---- */
.team .sub_heading {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.team .sub_heading h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    font-family: var(--font-display);
}

.team .sub_heading h2 .colored {
    color: #E77FB1;
}

/* ---- Expert cards â€” white with dark text ---- */
.expert_item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.90);
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: none;
}

.expert_item:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Middle card (2nd in each row) â€” pink highlight */
.team .row > .col-md-4:nth-child(2) .expert_item {
    background: #E77FB1;
}

.team .row > .col-md-4:nth-child(2) .expert_item .person_name {
    color: var(--white);
}

.team .row > .col-md-4:nth-child(2) .expert_item .job_title {
    color: rgba(255,255,255,0.85);
}

.expert_item .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.expert_item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert_item .content {
    flex: 1;
}

.expert_item .person_name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-body);
    margin-bottom: 3px;
    display: block;
}

.expert_item .job_title {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
}

/* ---- Locations & Facilities ---- */
.loc_faci {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 100px; /* space for circles to bleed */
    position: relative;
    z-index: 2;
}

/* "Locations & Facilities" heading â€” white text on purple */
.loc_faci::before {
    content: 'Locations \0026  Facilities';
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-display);
    background: none;
    border-radius: 0;
    padding: 0;
}

.loc_faci .facilities {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    flex-wrap: nowrap;
    /* margin-bottom: -76px; */
}

/* Circles â€” large, bleeding below section */
.facility {
    background: #D8D4E8;         /* light lavender/gray */
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.facility:hover {
    transform: scale(1.05);
}

/* 2nd circle â€” pink */
.facility:nth-child(2) {
    background: #E77FB1;
    width: 206px;
    height: 206px;
    margin-top: -20px; /* slightly larger + higher */
}

/* 4th circle â€” light blue */
.facility:nth-child(4) {
    background: #B8C8D8;
}

.facility:nth-child(1) , .facility:nth-child(3) {
    width: 240px;
    height: 240px;
}
.facility h2 {
    font-size: 50px;
    font-weight: 700;
    color: #602C7F;
    line-height: 1;
    margin-bottom: 13px;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.facility:nth-child(2) h2 {
    color: var(--white);
    font-size: 40px;
}

.facility:nth-child(4) h2 {
    color: var(--purple);
}

.facility h2 .counter {
    font-size: inherit;
}

.facility h2 .appened_sign {
    font-size: 50px;
    font-weight: 400;
    color: #602C7F;
}

.facility h4 {
    font-size: 13px;
    color: #602C7F;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
}

.facility:nth-child(2) h4 {
    color: rgba(255,255,255,0.9);
}

/* White bg section that circles bleed into */
.team {
    padding-bottom: 0;
}

/* Pull the facilities row up so circles cross the purple/white border */
.team .experts {
    padding-bottom: 0;
    /* margin-bottom: -90px; */
}

.loc_faci {
    padding-bottom: 110px;
}

/* Extra white space after team to clear the bleeding circles */
.team + section {
    padding-top: calc(var(--section-py) + 60px);
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
    padding: 65px 0;
    background: var(--white);
}

.testimonials .contianer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* "Stories From Our Fairytales Families" â€” left aligned, bold serif */
.testimonials .stories h3 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    text-align: center;
    color: #602C7F;
    margin-bottom: 60px;
    margin-top: 60px;
    line-height: 1.3;
}

.testimonials .stories h3 .colored {
    color: #E77FB1;
}

/* ---- Card ---- */
.testimonial_card {
    background: #F5F3F8;
    border-radius: 16px;
    padding: 0 24px 28px;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-top: 40px; /* space for avatar overflow */
    border: 1px solid #EDE9F4;
    border-top: 18px solid #D9D9D9;
}

.testimonial_card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Remove old quote mark */
.testimonial_card::before {
    display: none;
}

/* Avatar overlaps top of card */
.testimonial_card .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 4px 16px rgba(107,45,139,0.15);
    flex-shrink: 0;
    margin-top: -56px;
    margin-bottom: 14px;
    background: var(--white);
}

.testimonial_card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial_card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
}

.testimonial_card .parent_name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.testimonial_card .student_parent_name {
    display: block;
    font-size: 13px;
    color: #E77FB1;
    margin-bottom: 16px;
    font-weight: 500;
}

.testimonial_card p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Stars */
.testimonial_card .content::after {
        content: '★★★★★';
    color: #F1B91E;
    font-size: 33px;
    display: block;
    letter-spacing: 3px;
    margin-top: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .team .experts {
        padding: 40px 30px 0;
    }

    /* .facility {
        width: 140px;
        height: 140px;
    }

    .facility:nth-child(2) {
        width: 160px;
        height: 160px;
    }

    .facility h2 {
        font-size: 28px;
    }

    .facility:nth-child(2) h2 {
        font-size: 32px;
    } */
}

@media (max-width: 768px) {
    .team .experts {
        padding: 30px 20px 0;
    }

    .loc_faci .facilities {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* .facility {
        width: 130px;
        height: 130px;
    }

    .facility:nth-child(2) {
        width: 150px;
        height: 150px;
        margin-top: 0;
    }

    .facility h2 {
        font-size: 24px;
    } */

    .testimonials .stories h3 {
        font-size: 22px;
    }

    .team .experts {
        margin-bottom: -60px;
    }

    .loc_faci {
        padding-bottom: 80px;
    }

    .team + section {
        padding-top: calc(var(--section-py) + 30px);
    }
}

@media (max-width: 480px) {
    /* .facility {
        width: 110px;
        height: 110px;
    }

    .facility:nth-child(2) {
        width: 125px;
        height: 125px;
    }

    .facility h2 {
        font-size: 20px;
    }

    .facility h4 {
        font-size: 11px;
    } */
}
/* ============================================================
   PROGRAMS SNAPSHOT
   ============================================================ */

.programs {
    padding: var(--section-py) 0;
    background: #EEEBF1; /* light lavender-gray from Figma */
}

.programs_out .heading {
    margin-bottom: 36px;
}

.programs_out .heading h2::after {
    width: calc(100% - 289px);
}

/* Remove the purple gradient — plain transparent */
.programs .curriculum {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    overflow: visible;
}

/* ---- Left text column ---- */
.curriculm_wrap_txt {
    padding-top: 40px;
    padding-right: 60px;
    padding-left: 0;
}

[dir="rtl"] .curriculm_wrap_txt {
    padding-right: 0;
    padding-left: 60px;
}

.curriculm_wrap_txt h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    color: var(--dark);           /* dark text, not white */
    line-height: 1.25;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.curriculm_wrap_txt h2 .colored {
    color: #E77FB1;           /* pink, not yellow */
}

.curriculm_wrap_txt p {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);           /* dark text */
    line-height: 1.8;
    margin-bottom: 32px;
}

/* View Curriculum button — solid pink pill */
.curriculm_wrap_txt .btn {
    background: #E77FB1;
    color: #602C7F !important;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
}

.curriculm_wrap_txt .btn:hover {
    background: #E77FB1;
    color: #602C7F !important;
    transform: translateY(-2px);
}

/* ---- Right image grid ---- */
.curriculm_wrap_ima {
    height: 100%;
}

.curriculm_wrap_ima .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

.curriculm_wrap_ima .item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.curriculm_wrap_ima .item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.curriculm_wrap_ima .item:hover img {
    transform: scale(1.04);
}

/* Bottom wide image — taller */
.curriculm_wrap_ima .col-md-12 .item img {
    height: 240px;
}

/* Caption — top-left label, subtle dark overlay */
.image_caption_txt_top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    /* background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.55) 0%,
        transparent 100%
    ); */
    padding: 14px 16px 32px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 70%);
}

.image_caption_txt_top h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);           /* dark text on light overlay */
    font-family: var(--font-body);
    margin: 0;
    background: rgba(255,255,255,0.75);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---- Link wrapper ---- */
.item_link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
}

/* Image zoom */
.item_link img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.col-md-12 .item_link img {
    height: 240px;
}

.item_link:hover img {
    transform: scale(1.08);
}

/* ---- Colored overlay ---- */
.item_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(107, 45, 139, 0.42) 0%,
        rgba(233, 30, 140, 0.30) 100%
    );
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    border-radius: 16px;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.item_link:hover .item_overlay {
    opacity: 1;
}

/* ---- "Explore Program" label ---- */
.item_overlay_label {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) 0.05s,
                opacity 0.3s ease 0.05s;
}

/* ---- Arrow icon ---- */
.item_overlay svg {
    transform: translateX(-8px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) 0.12s,
                opacity 0.3s ease 0.12s;
}

/* Animate in on hover — staggered */
.item_link:hover .item_overlay_label {
    transform: translateY(0);
    opacity: 1;
}

.item_link:hover .item_overlay svg {
    transform: translateX(0);
    opacity: 1;
}

/* Caption stays on top of overlay */
.item_link .image_caption_txt_top {
    z-index: 4;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .curriculm_wrap_txt {
        padding-right: 20px;
        padding-top: 20px;
        margin-bottom: 30px;
    }

    [dir="rtl"] .curriculm_wrap_txt {
        padding-left: 20px;
    }

    .curriculm_wrap_ima .item img {
        height: 180px;
    }

    .curriculm_wrap_ima .col-md-12 .item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .curriculm_wrap_txt {
        padding-right: 0;
        padding-left: 0;
    }

    [dir="rtl"] .curriculm_wrap_txt {
        padding-left: 0;
    }

    .curriculm_wrap_ima .item img {
        height: 160px;
    }

    .curriculm_wrap_ima .col-md-12 .item img {
        height: 180px;
    }
}
/* ============================================================
   RESPONSIVE â€” TABLET (â‰¤ 992px)
   ============================================================ */
@media (max-width: 992px) {

  .banner_txt h1 {
    font-size: 38px;
  }

  .wrap_imgs {
    height: 380px;
    margin-bottom: 40px;
  }

  .wrap_content {
    padding-right: 0;
    padding-left: 0;
  }

  [dir="rtl"] .wrap_content {
    padding-left: 0;
  }

  .team .experts {
    padding: 40px 30px;
  }

  .programs .curriculum {
    padding: 40px 30px;
  }

  .curriculm_wrap_txt {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 30px;
  }

  [dir="rtl"] .curriculm_wrap_txt {
    padding-left: 0;
  }

  .links_wrap {
    gap: 20px;
  }
}

/* ============================================================
   RESPONSIVE â€” MOBILE (â‰¤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-py: 48px;
  }

  .banner {
    min-height: 60vh;
    padding-bottom: 48px;
  }

  .banner_txt h1 {
    font-size: 28px;
  }

  .gallery_slider .item {
    flex: 0 0 calc(60% - 8px);
  }

  .wrap_imgs {
    height: auto;
    margin-bottom: 36px;
  }

  .wrap_imgs .img-1 {
    width: 100%;
    height: 100%;
    position: static;
  }

  .wrap_imgs .img-2 {
        width: 100%;
        height: 100%;
        position: static;
        margin: 40px 0;
  }

  /* .wrap_imgs .circular {
    width: 90px;
    height: 90px;
  } */

  .wrap_imgs .circular h2 {
    font-size: 20px;
  }

  .team .experts {
    padding: 30px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .loc_faci .facilities {
    gap: 14px;
  }

  /* .facility {
    width: 100px;
    height: 100px;
  }

  .facility h2 {
    font-size: 20px;
  } */

  .testimonials .stories h3 {
    font-size: 20px;
  }

  .programs .curriculum {
    padding: 30px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .links_wrap {
    flex-direction: column;
    gap: 16px;
  }


  .heading h2 {
    font-size: 18px;
  }
}

/* ============================================================
   RESPONSIVE â€” SMALL MOBILE (â‰¤ 480px)
   ============================================================ */
@media (max-width: 480px) {

  .banner_txt h1 {
    font-size: 24px;
  }

  .gallery_slider .item {
    flex: 0 0 80%;
  }

  .wrap_imgs {
    height: auto;
  }

  .expert_item {
    padding: 10px 14px;
  }

  .testimonial_card {
    padding: 20px 16px;
  }
}


@media (max-width: 767px) {
    .branch{margin-bottom: 25px;}
    .branch_content{bottom: 25px;}
}