/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

.font-large {
    font-size: large;
}

.font-2rem {
    font-size: 2rem;
    margin: 16px 0;
}

.fs-5 {
    font-size: 1.5rem;
}

.font-xlarge {
    font-size: xx-large;
}

.footer h5 {
    font-weight: bold;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 5px;
}

.social-icon-pop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.social-icon-pop:hover {
    background: #384e36b2;
    transition: all 1s ease-in-out;
}

.social-icon i {
    font-size: 26px;
    color: white;
}

.bottom-footer {
    padding: 15px 0;
    border-top: 1px solid #444;
    margin-left: 2rem;
}

.bottom-footer p {
    padding-top: 2rem;

}

.bottom-footer a {
    color: white;
    text-decoration: none;
}

.bottom-footer a:hover {
    cursor: pointer;
}

@media (max-width: 768px) {
    .footer-toggle {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none;
        width: 100%;
        background: none;
        color: white;
        font-size: 18px;
        text-align: left;
    }

    #aboutUs>li,
    #admission>li,
    #gallery>li {
        margin: 5px 20px;
    }
}

.footer-toggle .toggle-icon i {
    transition: transform 0.3s ease-in-out;
}

.footer-toggle[aria-expanded="true"] .toggle-icon i {
    transform: rotate(180deg);
}

.about-text {
    text-align: justify;
    font-size: large;
}

.text-justify {
    text-align: justify;
    font-weight: normal;
}

#aboutUs>li,
#admission>li,
#gallery>li {
    margin: 15px 5px;
    font-size: 1.08rem;
    font-weight: 400;
}

.btn-enroll {
    font-weight: bold;
    border-radius: 15x;
    padding: 5px !important;
}

.scrollbar-none {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.contact-hover:hover {
    color: #759872b2;
    transition: all 1s ease-in-out;
}

#contactBanner {
    transform: translateY(0) !important;
    transition: transform 0.3s ease-in-out;
}

/* Make modal slide from the right */
.modal.modal-right .modal-dialog {
    position: fixed !important;
    right: 0;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

/* When modal is shown, slide it in */
.modal.show .modal-dialog {
    transform: translateX(0);
}

.img-fluid {
    border-radius: 10px;
}

figure {
    margin: 0;
}

.header-bg-img {
    background: url('../img//real/header-bg.jpg') no-repeat center center;
    background-repeat: no-repeat;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 400px;
    width: 100%;
    background-size: contain;
    background-position: center;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .header-bg-img {
        background-size: contain;
    }
}

@media (max-width: 480px) {
    .header-bg-img {
        background-size: cover;
    }
}

.card-body>ol>li {
    margin-top: 10px;
    font-size: large;
    cursor: default;
}


.custom-shadow {
    box-shadow: 0px 4px 10px #ece7e7;
    transition: box-shadow 0.3s ease-in-out;
}

.custom-shadow:hover {
    box-shadow: 0px 6px 15px #fefefe88;
}

form>div>label {
    margin-left: 5px;
    margin-bottom: 0;
    cursor: default;
}

.submenu-icon {
    display: none;
}

.submenu li:hover .submenu-icon {
    display: inline-block;
    transform: rotate(360deg);
    color: #AFB;
}

/* Sidebar Styling */
#secondary {
    background: #000;
    /* Black background */
    color: #fff;
    padding: 20px;
    border-radius: 10px;
}

/* Search Bar */
#secondary .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    /* Subtle underline */
    color: #fff;
    font-size: 14px;
}

#secondary .form-control::placeholder {
    color: #aaa;
}

#secondary .btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
}

/* Recent Posts */
#secondary h5 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

#secondary .list-group-item {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

#secondary .list-group-item img {
    width: 120px;
    height: 100px;
    border-radius: 5px;
    margin-right: 10px;
    object-fit: cover;
}

#secondary .list-group-item small {
    color: #aaa;
    font-size: 12px;
}

#secondary .list-group-item h6 {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

/* recent post  */
.related-article {
    top: 70%;
    width: 300px;
    display: flex;
    right: -272px;
    z-index: 9999999;
    flex-direction: row;
}

.related-article:hover {
    right: 0;
    transition: all 0.5s ease-in-out;
}

.hover-me {
    writing-mode: vertical-rl;
    text-align: center;
    margin-right: 10px;
    transform: rotate(180deg);
    background-color: #052202;
    border-radius: 0;
}

.related-article h5 {
    font-size: small;
    margin-top: 5px;
    margin-bottom: 5px;
}

.related-article h6 {
    font-size: x-small;
}

.social-share {
    display: flex;
    justify-content: end;
    align-items: center;
}

.social-share a {
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    padding: 2px 7px 0 7px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.social-icons a:hover {
    background-color: #35c026;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    /* border-top: 1px solid #444; */
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-backdrop.show {
    opacity: 1;
    /* default is 0.5 — increase for darker background */
    background-color: #000000;
    /* darker color */
}

.gallery-img {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.modal-img {
    height: 60vh;
    width: 100%;
    margin-top: -120px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.modal-img.fullscreen {
    width: 95vw !important;
    height: 91vh !important;
    object-fit: contain;
}

.custom-lightbox-height {
    width: auto;
    margin: 0 auto;
    padding: 1rem;
}

.custom-lightbox-height .modal-content {
    padding: 0;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 10px;
}

.custom-lightbox-height .modal-body {
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header {
    align-items: center;
    padding: 0.75rem 1rem;
}

/* Arrows responsive placement */
.modal-body button {
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    color: white;
}

.modal-body button:hover {
    background: #2b101099;
}

@media (max-width: 768px) {
    .modal-img {
        max-height: 60vh;
    }

    .modal-body {
        padding: 0.5rem;
    }

    .modal-content {
        border-radius: 0;
    }

    .modal-dialog {
        margin: 0;
    }

    .modal-header {
        padding: 0.5rem 1rem;
    }

    .modal-body button {
        font-size: 1.2rem;
        padding: 0.25rem 0.75rem;
    }
}

#caption {
    color: #ccc;
    font-size: 0.95rem;
    text-align: center;
    word-wrap: break-word;
}

.box_facilities i,
.box_facilities svg {
    transition: transform 0.3s ease-in-out;
}

.box_facilities:hover i,
.box_facilities:hover svg {
    transform: scale(1.1);
    color: #ffcc00;
}

.box_facilities:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}