@import url('https://fonts.googleapis.com/css2?family=Comme:wght@100..900&display=swap');

body,
html {
    font-family: "Comme", sans-serif;
}

p {
    text-align: justify;
}

.top_head {
    padding: 10px 0;
}

a {
    text-decoration: none;
}

.about_us h3 {
    text-transform: capitalize;
    color: #322c65;
    font-family: initial;
    margin-bottom: 1rem;
    font-weight: 700;
}

.abot_into {
    border-radius: 2rem;
    padding: 1rem;
    border: 2px dotted #858585;
}

.top_head h3 {
    text-transform: capitalize;
    color: #322c65;
    font-family: initial;
    font-size: 50px;
    margin: 0;
    padding: 0;
    font-weight: 700;
}

.our_schools {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.our_schools img {
    width: 70%;
    transition: 0.3s;
}

.our_schools img:hover {
    transform: scale(1.1);
}

.navbar>.container {
    justify-content: center;
}

.top_head h5 {
    color: #322c65;
    font-weight: 700;
}

.top_head p {
    font-weight: 500;
}

.space {
    padding: 50px 0;
}

/* .top_head p {
    font-size: 13px;
    display: block;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 24px;
    color: #666666;
} */

/* .top_head p span {
    text-transform: capitalize;
    font-size: 13px;
} */
.dropend {
    width: 15rem;
}

.nav-link {
    font-size: 14px;
    color: white !important;
    letter-spacing: 0.06em;
    font-weight: 600;
    text-transform: capitalize !important;
}

.dropend a {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #494c4f !important;
}

/* .navbar_list_padd {
    padding: 0 10% 0 0;
} */

.nav_bg {
    height: 60px;
    background-color: #832520;
}

.navbar-collapse {
    flex-grow: 0;
}

.logo img {
    margin: 0 1rem;
    position: relative;
    z-index: 9;
    width: 115px;
}

/* .navbar-collapse ul li:last-child .dropdown-menu {
    right: -20px !important;
} */

.sticky {
    height: 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky .logo img {
    width: 250px;
}

.social_desk {
    color: white;
    position: fixed;
    right: 0;
    bottom: 11%;
    z-index: 999999;
}

.page_head {
    text-align: center;
    color: white;
}

.page_head h3 {
    font-size: 30px;
    display: block;
    font-weight: 600;
    margin-bottom: 20px;
}

.breadcrumb_card {
    padding: 0.5rem;
    display: flex;
    justify-content: center;
}

.breadcrumb li a {
    color: white;
}

.breadcrumb li {
    margin: 0 1rem;
}

.breadcrumb li.active,
.breadcrumb li i {
    color: #ff882d;
}

.breadcrumb_bg {
    background-size: cover;
    background-position-y: 35%;
    background-image: url(../img/parallax.jpg);
}

.page_head .breadcrumb {
    padding: 0.5rem;
    background-color: #000;
}

.social_desk a {
    text-decoration: none;
    align-items: center;
    justify-content: center;
    display: flex;
    width: 40px;
    height: 40px;
    padding: 0.8rem;
    color: white;
    font-size: 18px;
    transition: .3s ease-in-out;
}

.social_desk a:hover {
    transform: scale(1.1);
}

.contact_det .cd {
    margin-bottom: 2rem;
}

.contact_det .social a i {
    align-items: center;
    justify-content: center;
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white !important;
    background: #e67817;
}

.contact_det .social a i:hover {
    background: #322c65;
}

.errorMsgArrow {
    color: red;
}

.contact_det h3 {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #bcbcbc;
    font-size: 18px;
    font-weight: bold;
}

.text-justify {
    text-align: justify;
}

.info_card img {
    width: 80px;
    margin: 0 auto 1rem auto;
    display: block;
}

.info_card {
    background-color: white;
    padding: 2rem;
    text-align: center;
}

.info_card h3 {
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 16px;
}

.headline h3 {
    margin-bottom: 2rem;
    color: #832520;
    display: inline-block;
    font-weight: 700;
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.facility_card .content {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.facility_card .content .content-overlay {
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}

.facility_card .content:hover .content-overlay {
    opacity: 1;
}

.facility_card .content-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.facility_card .content-details {
    position: absolute;
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

.facility_card .content:hover .content-details {
    top: 50%;
    left: 50%;
    opacity: 1;
}

.facility_card .content-details h3 {
    line-height: 1.5em;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.facility_card .fadeIn-bottom {
    top: 80%;
}

.button-two {
    color: #322c65;
    border-radius: 4px;
    border: 1px solid #322c65;
    background-color: #fff;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.2s;
}

.button-two span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.button-two:hover {
    padding: 15px 30px;
    background-color: #322c65;
    color: white;
}

.gallery img {
    width: 100%;
    /* height: 180px; */
    object-fit: cover;
}

.testimonial {
    justify-content: center;
    display: flex;
    text-align: center;
}

.test_card {
    display: flex;
    justify-self: start;
    width: 80%;
}

.test_card img {
    margin: 0 10px;
    width: 150px;
    height: 150px;
    border-radius: 5px;
    object-fit: cover;
}

.content h1,
.content p {
    color: #333;
}

.events_card {
    display: flex;
}

.events_card .time {
    border-radius: 0.5rem 1.5rem 1.5rem 0.5rem;
    background-color: #832520;
    width: 20%;
    justify-content: center;
    align-items: center;
    display: flex;
    color: white;
}

.events_card .time h2 {
    font-size: 24px;
    text-align: center;
    font-weight: bold;
}

.events_card .details {
    border-radius: 1.5rem 0.5rem 0.5rem 1.5rem;
    width: 80%;
    padding: 1rem;
    background-color: #322c65;
}

.events_card .details h3 {
    color: white;
    line-height: 1.2;
    font-size: 18px;
    display: block;
    display: -webkit-box;
    /* -webkit-line-clamp: 1; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events_card .details p {
    color: white;
    line-height: 1.5;
    font-size: 14px;
    display: block;
    display: -webkit-box;
    /* -webkit-line-clamp: 5; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events_card .details a {
    color: white;
    font-size: 14px;
}

.ftr_logo img {
    width: 100%;
}

.mission_vision_card {
    transform: scale(0.9);
    transition: .6s;
    background-color: #ecf6ff;
    border-radius: 2rem;
    padding: 1rem;
    border: 1px solid rgb(197, 197, 197);
}

.mission_vision_card:hover {
    transform: scale(1.1);
}

.mission_vision h3 {
    font-weight: bold;
    line-height: 1.2;
    color: #322c65;
    font-size: 18px;
    text-align: center;
}

.mission_vision p {
    text-align: center;
}

.mission_vision img {
    width: 50px;
    margin: 1rem auto;
    display: block;
}

.dear_parents h3 {
    text-transform: capitalize;
    color: #322c65;
    margin-bottom: 1rem;
    padding: 0;
    font-weight: 700;
}

.management_card img {
    margin-bottom: 2rem;
    width: 100%;
    border-radius: 1rem;
}

.management_card h3 {
    font-size: 24px;
    color: #322c65;
    font-weight: bold;
}

.dropdown-item {
    font-size: 14px;
    font-weight: 400 !important;
    padding: 6px;
    letter-spacing: 0.06em;
}

.management_card h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.admission_criteria h3 {
    font-size: 20px;
    font-weight: bold;
}

.certificates_card .col-md-3 {
    margin-bottom: 2rem;
}

.certificates_card h3 {
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 8rem;
    border: 1px solid grey;
    border-radius: 1rem;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    transition: .5s;
}

.certificates_card h3:hover {
    background-color: #322c65;
    transform: scale(1.1);
    color: white;
}

.pta_member h3 {
    margin-bottom: 1rem;
    font-size: 24px;
    font-weight: bold;
}

.imp_pta {
    padding: 0.5rem;
}

.imp_pta h5 {
    color: #322c65;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.dropend .dropdown-toggle::after {
    margin: -6px 0;
    float: right;
    content: "\203A";
    font-weight: 400;
    font-size: 20px;
    border: none;
}

.logo2 {
    display: none;
}

.nav-link {
    color: black;
}

.quick_link {
    padding-left: 3rem;
}

.quick_link .cc {
    display: flex;
    justify-content: center;
}

.contact_tb p i {
    position: absolute;
    margin: 5px -2rem;
}

.contact_tb p {
    text-align: left;
    padding-left: 2rem;
}

.bddr {
    border: 1px dotted #838383;
}

.landing_card img {
    margin: 0 0 0 -90px;
    border-radius: 1rem;
    border: 5px solid white;
    width: 50rem;
}

.admission_form h3 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #322c65;
}

.admission_form h5 {
    padding: 1rem;
    border-bottom: 2px dotted #c6c6c6;
    font-size: 20px;
    font-weight: bold;
}

.adm_fon_ox {
    border: 2px dotted grey;
    border-radius: 1rem;
    padding: 3rem;
    background-color: rgba(243, 243, 243, 0.808);
}

#AboutSlider img {
    object-fit: contain;
    height: 420px;
    background: #000000;
}

@media (max-width:768px) {
    .our_schools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing_card img {
        border-radius: 1rem;
        border: 5px solid white;
        width: 100%;
        margin: 0;
    }

    .gallery img {
        height: auto;
    }

    .dmn {
        display: grid;
        display: -moz-inline-box;
    }

    .facility_card {
        height: 100%;
    }

    .logo2 img {
        width: 240px;
    }

    .social_desk {
        display: none;
    }

    .dropend a {
        color: white !important;
    }

    .copy .col-md-3 {
        margin-bottom: 3rem;
    }

    .quick_link {
        padding-left: 1rem;
    }

    .test_card {
        display: block;
        justify-self: start;
        width: 100%;
    }

    .events_card {
        display: block;
    }

    .events_card .time {
        width: 100%;
        border-radius: 0;
        padding: 0.5rem;
    }

    .events_card .details {
        width: 100%;
        border-radius: 0;
    }

    .test_card img {
        margin: 0 0 2rem 0;
        width: 100px;
        height: 100px;
        border-radius: 5px;
        object-fit: cover;
    }

    .cc {
        width: 50%;
    }

    .quick_link h6,
    .contact_tb h6 {
        text-align: left;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .breadcrumb li:nth-child(2),
    .breadcrumb li:nth-child(3) {
        display: none;
    }

    .copy {
        position: absolute;
        top: 10%;
        height: 100%;
        margin-top: 0em;
        width: 100%;
    }

    .dropdown-menu .nav-item {
        border-bottom: none;
    }

    .nav-item {
        border-bottom: 1px solid #3b3b3b;
    }
}

@media (max-width:984px) {
    .dropdown-menu {
        /* background-color: transparent; */
        margin-bottom: 0.5rem;
        padding: 1rem !important;
        background-color: #da6a12;
    }

    .nav-link {
        color: white;
    }

    .dropdown-item {
        font-size: 14px;
        color: white !important;
        padding: 10px 0;
    }

    .dropdown:hover>.dropdown-menu,
    .dropend:hover>.dropdown-menu {
        border: none;
    }

    /* .dropend a {
            border-bottom: 1px solid #df6506;} */





    .navbar>.container {
        justify-content: space-between;
    }

    .dropend {
        width: 100%;
    }

    .nav_bg {
        height: auto;
    }

    .top_head {
        display: none;
    }

    .logo2 {
        display: block;
    }

    /* .top_head {
        display: none;
    } */
}

#top_down_button {
    align-items: center;
    justify-content: center;
    display: flex;
    background-color: #832520;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 0px;
    position: fixed;
    bottom: 32px;
    right: 0px;
    transition: background-color .3s,
        opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#top_down_button::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
    line-height: 50px;
    color: #fff;
}

#top_down_button:hover {
    cursor: pointer;
    background-color: #322c65;
}

#top_down_button:active {
    background-color: #322c65;
}

#top_down_button.show {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 500px) {

    #top_down_button {
        margin: 30px 0;
    }
}

.gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.gallery_grid img {
    width: 100%;

    object-fit: cover;
}

.gallery_grid .cols-2 {
    grid-column: span 2;
}

.gallery_grid .rows-2 {
    grid-row: span 2;
}

.gallery_grid .cols-2-rows-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.fac-section {
    padding: 90px 5%;
    background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 60%, #f0f4f0 100%);
    position: relative;
    overflow: hidden;
}

.fac-section::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 107, 42, 0.04) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}


.fac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.fac-card {
    background: var(--white);
    border-radius: 20px;
    padding: 10px 16px;
    border: 1px solid #413c70;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    animation: fadeUp 0.5s ease both;
}

.fac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, var(--navy)), transparent);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fac-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-color, var(--navy)), transparent 70%);
    opacity: 0.04;
    transition: opacity 0.3s ease;
}

.fac-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.fac-card:hover::before {
    opacity: 1;
}

.fac-card:hover::after {
    opacity: 0.08;
}

.fac-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.fac-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.fac-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.fac-card p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fac-card:nth-child(1) {
    animation-delay: 0.05s;
}

.fac-card:nth-child(2) {
    animation-delay: 0.1s;
}

.fac-card:nth-child(3) {
    animation-delay: 0.15s;
}

.fac-card:nth-child(4) {
    animation-delay: 0.2s;
}

.fac-card:nth-child(5) {
    animation-delay: 0.25s;
}

.fac-card:nth-child(6) {
    animation-delay: 0.3s;
}

.fac-card:nth-child(7) {
    animation-delay: 0.35s;
}

.fac-card:nth-child(8) {
    animation-delay: 0.4s;
}

.fac-card:nth-child(9) {
    animation-delay: 0.45s;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .fac-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .fac-grid {
        grid-template-columns: 1fr;
    }

}