
/* =====================================================
   MARAGATHAAM - VIDEO HERO SECTION
===================================================== */

.bb-hero-section {
    position: relative;
    width: 100%;
    height:500px;
    min-height:500px;
    overflow: hidden;
    background: #111;
    margin-top:6%;
}

/* VIDEO WRAPPER */

.bb-hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* VIDEO */

.bb-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
}

/* SOCIAL BAR */

.bb-hero-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;

    padding: 22px 15px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* SOCIAL ICONS */

.bb-social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bb-social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 17px;
    text-decoration: none;
    transition: 0.3s ease;
}

.bb-social-icons a:hover {
    color: #c62a81;
    transform: scale(1.2);
}

/* SOCIAL LINE */

.bb-social-line {
    width: 1px;
    height: 45px;
    background: rgba(255,255,255,0.7);
}

/* FOLLOW TEXT */

.bb-follow-text {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* =====================================================
   TABLET VIEW
===================================================== */

@media (max-width: 991px) {

    .bb-hero-section {
        height: 300px;
        min-height: 300px;     
           margin-top:10%;
    }

    .bb-hero-social {
        padding: 17px 11px;
        gap: 13px;
    }

    .bb-social-icons {
        gap: 16px;
    }

}

/* =====================================================
   MOBILE VIEW
===================================================== */

@media (max-width: 767px) {

    .bb-hero-section {
        height: 300px;
        min-height: 300px;

    }

    .bb-hero-video {
        object-position: center;
    }

    .bb-hero-social {
        top: auto;
        bottom: 20px;
        right: 12px;
        transform: none;

        flex-direction: row;
        padding: 9px 13px;
        gap: 10px;
    }

    .bb-social-icons {
        flex-direction: row;
        gap: 13px;
    }

    .bb-social-icons a {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .bb-social-line {
        width: 25px;
        height: 1px;
    }

    .bb-follow-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 8px;
        letter-spacing: 1px;
    }

}

/* SMALL MOBILE */

@media (max-width: 480px) {

    .bb-hero-section {
        height: 200px;
        min-height: 200px;
        margin-top: 18%;
    }

    .bb-hero-social {
        bottom: 12px;
        right: 8px;
    }

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* =================================
   MAIN SECTION
================================= */

.vm-section {
    position: relative;
    overflow: hidden;
    padding: 25px 3% 30px;

    background: linear-gradient(
        110deg,
        #16813d 0%,
        #4baa31 40%,
        #91bf32 70%,
        #e8d13a 100%
    );
}

/* =================================
   BACKGROUND GLITTER ANIMATION
================================= */

.vm-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;

    background-image:
        radial-gradient(2px 2px at 10% 20%, #fff, transparent),
        radial-gradient(2px 2px at 30% 70%, #fff, transparent),
        radial-gradient(3px 3px at 50% 30%, #fff, transparent),
        radial-gradient(2px 2px at 70% 60%, #fff, transparent),
        radial-gradient(3px 3px at 90% 15%, #fff, transparent),
        radial-gradient(2px 2px at 80% 85%, #fff, transparent);

    background-size: 180px 150px;
    animation: sparkleMove 5s linear infinite;
}

@keyframes sparkleMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 180px 150px;
    }
}

/* =================================
   MAIN HEADING
================================= */

.vm-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 65px;
}

.vm-heading h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.vm-heading .heading-line {
    width: 210px;
    height: 3px;
    background: #fff;
    margin: 16px auto 0;
    position: relative;
    border-radius: 10px;
}

.vm-heading .heading-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: -3px;
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
}

.vm-heading .heading-line::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -3px;
    top: -9px;
    color: #fff;
}

/* =================================
   CARD CONTAINER
================================= */

.vm-container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 35px;
    align-items: stretch;
}

/* =================================
   WHITE CARDS
================================= */

.vm-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 22px;

    width: 100%;
    min-height: 240px;
    padding: 40px 28px;

    background: #ffffff;
    border-radius: 40px;
    border: none;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

/* =================================
   VISION / MISSION LABEL
================================= */

.vm-label {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);

    width: 260px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 26px;
    font-weight: 700;

    border-radius: 40px 40px 0 0;
    z-index: 3;
}

/* LABEL ARROW */

.vm-label::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);

    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid;
}

/* VISION COLOR */

.vision-label {
    background: #43a587;
}

.vision-label::after {
    border-top-color: #43a587;
}

/* MISSION COLOR */

.mission-label {
    background: #df5155;
}

.mission-label::after {
    border-top-color: #df5155;
}

/* =================================
   ICON AREA
================================= */

.vm-icon {
    flex: 0 0 125px;
    min-width: 125px;
    height: 145px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 52px;
    color: #0b6409;

    border-right: 1px solid #dedede;
}

/* =================================
   CONTENT AREA
================================= */

.vm-content {
    flex: 1;
    min-width: 0;
}

.vm-content p {
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.85;
    text-align: justify;
    margin: 0;
}

/* =================================
   TABLET RESPONSIVE
================================= */

@media (max-width: 1100px) {

    .vm-section {
        padding-left: 25px;
        padding-right: 25px;
    }

    .vm-container {
        gap: 30px;
    }

    .vm-card {
        padding: 35px 20px;
        gap: 18px;
        min-height: 230px;
        border-radius: 32px;
    }

    .vm-label {
        width: 220px;
        height: 65px;
        top: -55px;
        font-size: 22px;
    }

    .vm-icon {
        flex-basis: 90px;
        min-width: 90px;
        height: 130px;
        font-size: 42px;
    }

    .vm-content p {
        font-size: 18px;
        line-height: 1.8;
    }
}

/* =================================
   MOBILE RESPONSIVE
================================= */

@media (max-width: 768px) {

    .vm-section {
        padding: 30px 15px;
    }

    .vm-heading {
        margin-bottom: 60px;
    }

    .vm-heading h2 {
        font-size: 20px;
    }

    .vm-heading .heading-line {
        width: 150px;
    }

    .vm-container {
        grid-template-columns: 1fr;
        gap: 75px;
    }

    .vm-card {
        min-height: auto;
        padding: 40px 20px 25px;

        flex-direction: column;
        gap: 15px;

        border-radius: 25px;
    }

    .vm-label {
        top: -38px;
        width: 195px;
        height: 58px;
        font-size: 20px;
    }

    .vm-label::after {
        bottom: -20px;
        border-left-width: 20px;
        border-right-width: 20px;
        border-top-width: 21px;
    }

    .vm-icon {
        flex: none;
        width: 100%;
        min-width: 0;
        height: 75px;
        font-size: 42px;

        border-right: none;
        border-bottom: 1px solid #dedede;
    }

    .vm-content p {
        font-size: 16px;
        line-height: 1.8;
        text-align: justify;
    }
}

/* =================================
   SMALL MOBILE
================================= */

@media (max-width: 480px) {

    .vm-heading h2 {
        font-size:17px;
    }

    .vm-card {
        padding: 38px 16px 22px;
    }

    .vm-label {
        width: 180px;
        font-size: 18px;
    }

    .vm-content p {
        font-size: 16px;
        line-height: 1.75;
    }
}


/* ==========================================
   BRAINYSCHOOL PROGRAMMES CAROUSEL
========================================== */

.tb-packages-v2 .tb-programmes-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 5;
}

.tb-packages-v2 .tb-programmes-counter {
    color: #243b2b;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.tb-packages-v2 .tb-programmes-arrow {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #245331;
    border-radius: 50%;
    background: #245331;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .25s ease,
                color .25s ease,
                transform .25s ease;
}

.tb-packages-v2 .tb-programmes-arrow:hover {
    background: #b58a5a;
    border-color: #b58a5a;
    color: #fff;
    transform: scale(1.06);
}

.tb-packages-v2 .tb-programmes-arrow:focus-visible {
    outline: 3px solid #b58a5a;
    outline-offset: 3px;
}

/* Horizontal scrolling track */
.tb-packages-v2 .tb-programmes-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 5px;
    padding-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    touch-action: pan-x pan-y;
}

.tb-packages-v2 .tb-programmes-track::-webkit-scrollbar {
    display: none;
}

/* Desktop: show 3 cards */
.tb-packages-v2 .tb-programmes-track > [class*="col-"] {
    flex: 0 0 33.333333% !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Keep cards at equal height */
.tb-packages-v2 .tb-package-card-v2 {
    height: 100%;
}

/* Tablet: show 2 cards */
@media (max-width: 991.98px) {
    .tb-packages-v2 .tb-programmes-track > [class*="col-"] {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}

/* Mobile: show 1 card */
@media (max-width: 575.98px) {
    .tb-packages-v2 .tb-programmes-track > [class*="col-"] {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tb-packages-v2 .tb-programmes-controls {
        gap: 14px;
        margin-bottom: 18px;
    }

    .tb-packages-v2 .tb-programmes-arrow {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .tb-packages-v2 .tb-programmes-counter {
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tb-packages-v2 .tb-programmes-track {
        scroll-behavior: auto;
    }

    .tb-packages-v2 .tb-programmes-arrow {
        transition: none;
    }
}

/* ==========================================
   BRAINY BLOOMS FOOTER
   BROWN + CRIMSON GRADIENT
   COMPACT RESPONSIVE DESIGN
========================================== */

.bb-footer {
    width: 100%;
    position: relative;
    overflow: hidden;
    color: #ffffff;
background: linear-gradient(110deg, #1F7A35, #63B82E, #FFD43B);
    font-size: 17px;
}

.bb-footer,
.bb-footer * {
    box-sizing: border-box;
}

.bb-footer p,
.bb-footer h3,
.bb-footer h4,
.bb-footer ul {
    margin-top: 0;
}

.bb-footer p,
.bb-footer h3,
.bb-footer h4,
.bb-footer li,
.bb-footer a,
.bb-footer span {
    color: #ffffff;
    font-size: 17px;
}

.bb-footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.bb-footer a {
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease, background 0.2s ease;
}

.bb-footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 12px 0;
}

/* MAIN GRID */

.bb-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.75fr 1.1fr 1fr;
    gap: 25px;
    align-items: start;
    padding-bottom: 24px;
}

.bb-footer-column {
    width: 100%;
    min-width: 0;
}

/* SCHOOL LOGO AND INTRODUCTION */

.bb-footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.bb-footer-logo img {
    display: block;
    width: auto;
    max-width: 165px;
    max-height: 72px;
    object-fit: contain;
}

.bb-footer-heading {
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.bb-footer-description {
    margin-bottom: 16px;
    text-align: justify;
    line-height: 1.65;
}

/* SECTION HEADINGS */

.bb-footer-title {
    position: relative;
    display: table;
    max-width: 100%;
    margin-bottom: 17px;
    padding-bottom: 8px;
    font-weight: 700;
    line-height: 1.45;
}

.bb-footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #ffffff;
}

/* SOCIAL ICONS */

.bb-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bb-footer .bb-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
}

.bb-footer .bb-social-link i {
    font-size: 17px;
}

.bb-footer .bb-social-link:hover {
    color: #7b1e29;
    background: #ffffff;
}

.bb-footer .bb-social-link:hover i {
    color: #7b1e29;
}

/* QUICK LINKS */

.bb-footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.bb-footer-links li {
    margin: 0;
    padding: 0;
}

.bb-footer .bb-footer-links a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.bb-footer-links a i {
    flex: 0 0 auto;
    margin-top: 6px;
    font-size: 13px;
}

.bb-footer .bb-footer-links a:hover,
.bb-footer .bb-contact-item a:hover,
.bb-footer .bb-map-link:hover {
    color: #ffe0d7;
    text-decoration: underline;
}

/* CONTACT DETAILS */

.bb-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bb-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.bb-contact-item > i {
    flex: 0 0 19px;
    width: 19px;
    margin-top: 5px;
    text-align: center;
    font-size: 17px;
}

.bb-contact-item p {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* GOOGLE MAP */

.bb-footer-map {
    width: 100%;
    height: 165px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    background: #ffffff;
}

.bb-footer-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.bb-footer .bb-map-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    line-height: 1.5;
    font-weight: 600;
}

/* COPYRIGHT ROW */

.bb-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.bb-footer .bb-copyright {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.bb-designed-by {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
}

.bb-designed-by span {
    white-space: nowrap;
}

.bb-designed-by a {
    display: inline-flex;
    align-items: center;
    max-width: 120px;
}

.bb-designed-by img {
    display: block;
    width: 100px;
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
}

/* SCROLL TO TOP */

.bb-footer .bb-scroll-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid #f7f7f7;
    border-radius: 3px;
    background:#6f0512;
    color:white;
    cursor: pointer;
}

.bb-footer .bb-scroll-top i {
    color: #ffffff;
    font-size: 17px;
}

.bb-footer .bb-scroll-top:hover {
    background: #57251f;
}

.bb-footer .bb-scroll-top:hover i {
    color: #ffffff;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1050px) {
    .bb-footer-container {
        padding: 28px 20px 0;
    }

    .bb-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 22px;
    }

    .bb-footer-map {
        height: 190px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {
    .bb-footer-container {
        padding: 24px 16px 0;
    }

    .bb-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding-bottom: 20px;
    }

    .bb-footer-column {
        min-width: 0;
    }

    .bb-footer-logo {
        margin-bottom: 10px;
    }

    .bb-footer-logo img {
        max-width: 150px;
        max-height: 65px;
    }

    .bb-footer-heading {
        margin-bottom: 9px;
    }

    .bb-footer-description {
        margin-bottom: 13px;
    }

    .bb-footer-title {
        margin-bottom: 13px;
    }

    .bb-footer-links {
        gap: 8px;
    }

    .bb-contact-list {
        gap: 10px;
    }

    .bb-footer-map {
        height: 190px;
    }

    /* Keep all footer text at 17px */
    .bb-footer,
    .bb-footer p,
    .bb-footer h3,
    .bb-footer h4,
    .bb-footer li,
    .bb-footer a,
    .bb-footer span,
    .bb-footer .bb-copyright {
        font-size: 17px;
    }

    /* Stack bottom row to prevent overflow */
    .bb-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0 16px;
    }

    .bb-footer .bb-copyright {
        width: 100%;
        line-height: 1.55;
    }

    .bb-designed-by {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .bb-designed-by img {
        width: 90px;
        max-height: 34px;
    }

    .bb-footer .bb-scroll-top {
        right: 10px;
        bottom: 10px;
        width: 36px;
        height: 36px;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 360px) {
    .bb-footer-container {
        padding-right: 13px;
        padding-left: 13px;
    }

    .bb-footer-grid {
        gap: 20px;
    }

    .bb-footer-map {
        height: 175px;
    }
}


/* =====================================================
   MARAGATHAM SCHOOL - COUNTING SECTION
===================================================== */

.maragatham-count-section {
    position: relative;
    width: 100%;
    padding: 25px 20px 20px;
    background: #ffffff;
    overflow: hidden;
}

.maragatham-count-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADING */

.maragatham-count-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.maragatham-count-subtitle {
    display: inline-block;
    color: #89bd3b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.maragatham-count-heading h2 {
    font-size: 34px;
    line-height: 1.3;
    font-weight: 800;
    color: #292929;
    margin: 0 0 12px;
}

.maragatham-count-heading h2 span {
    color: #c62a81;
}

.maragatham-count-heading p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* COUNT GRID */

.maragatham-count-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: stretch;
}

.maragatham-count-item {
    position: relative;
    text-align: center;
    padding: 20px 22px 25px;
    border-right: 1px solid #e5e8df;
}

.maragatham-count-item:last-child {
    border-right: none;
}

/* ICON */

.maragatham-count-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e8eadf;
}

.maragatham-count-icon svg {
    width: 38px;
    height: 38px;
}

.student-icon {
    color: #c62a81;
}

.staff-icon {
    color: #89bd3b;
}

.parent-icon {
    color: #c62a81;
}

.class-icon {
    color: #89bd3b;
}

/* NUMBERS */

.maragatham-count-item h3 {
    font-size: 43px;
    line-height: 1.1;
    font-weight: 800;
    color: #c62a81;
    margin: 0 0 9px;
    font-variant-numeric: tabular-nums;
}

.maragatham-count-item:nth-child(even) h3 {
    color: #78a92e;
}

.maragatham-count-item .maragatham-class-count {
    font-size: 38px;
    color: #c62a81;
}

.maragatham-class-count span {
    color: #89bd3b;
}

/* LABELS */

.maragatham-count-item h4 {
    font-size: 18px;
    font-weight: 750;
    color: #303030;
    margin: 0 0 8px;
}

.maragatham-count-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #777;
    margin: 0;
}

/* BOTTOM TEXT */

.maragatham-count-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 35px;
}

.maragatham-count-bottom span {
    width: 55px;
    height: 2px;
    background: #89bd3b;
}

.maragatham-count-bottom p {
    color: #c62a81;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .maragatham-count-section {
        padding: 55px 20px 40px;
    }

    .maragatham-count-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

    .maragatham-count-item:nth-child(2) {
        border-right: none;
    }

    .maragatham-count-item:nth-child(3),
    .maragatham-count-item:nth-child(4) {
        border-top: 1px solid #e5e8df;
        padding-top: 25px;
    }

    .maragatham-count-heading h2 {
        font-size: 30px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

    .maragatham-count-section {
        padding: 42px 14px 35px;
    }

    .maragatham-count-heading {
        margin-bottom: 25px;
    }

    .maragatham-count-heading h2 {
        font-size: 25px;
    }

    .maragatham-count-heading p {
        font-size: 14px;
    }

    .maragatham-count-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
    }

    .maragatham-count-item {
        padding: 18px 8px;
    }

    .maragatham-count-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .maragatham-count-icon svg {
        width: 30px;
        height: 30px;
    }

    .maragatham-count-item h3 {
        font-size: 32px;
    }

    .maragatham-count-item .maragatham-class-count {
        font-size: 29px;
    }

    .maragatham-count-item h4 {
        font-size: 15px;
    }

    .maragatham-count-item p {
        font-size: 12px;
    }

    .maragatham-count-bottom {
        gap: 9px;
        margin-top: 25px;
    }

    .maragatham-count-bottom span {
        width: 25px;
    }

    .maragatham-count-bottom p {
        font-size: 12px;
    }
}

/* SMALL MOBILE */

@media (max-width: 350px) {

    .maragatham-count-item h3 {
        font-size: 28px;
    }

    .maragatham-count-item .maragatham-class-count {
        font-size: 25px;
    }

    .maragatham-count-item h4 {
        font-size: 14px;
    }
}

