/********** Max Tutorials - Template CSS **********/
:root {
    --primary: #1a56db;
    --primary-dark: #1342ab;
    --accent: #f59e0b;
    --light: #f1f5f9;
    --dark: #0f172a;
}

/* Override Bootstrap primary utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-out, visibility 0s linear .3s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .3s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .4s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 4px;
}


/*** Navbar & Scroll-Spy Active State ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 18px;
    padding: 25px 4px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    transition: color 0.25s ease;
    cursor: pointer;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand {
    min-height: 75px;
}

.brand-logo-slot {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.4px;
    line-height: 1.1;
}

.navbar-light.sticky-top {
    top: 0;
    transition: .4s;
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .4s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service / Highlights ***/
.service-item {
    background: var(--light);
    transition: .4s;
    height: 100%;
}

.service-item:hover {
    margin-top: -8px;
    background: var(--primary);
}

.service-item * {
    transition: .4s;
}

.service-item:hover * {
    color: #FFFFFF !important;
}


/*** Filter Dropdown Boxes (Star Performers & Events) ***/
.filter-select-box {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 6px 16px;
    box-shadow: 0 3px 10px rgba(26, 86, 219, 0.08);
}

.filter-select-box select {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    padding-right: 4px;
}


/*** Star Performers Cards & Coming Soon ***/
.topper-card {
    background: #FFFFFF;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.topper-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 13px;
    border-radius: 20px;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.rank-2 {
    background: linear-gradient(135deg, #64748b, #475569);
}

.rank-3 {
    background: linear-gradient(135deg, #b45309, #92400e);
}

.topper-photo-wrap {
    height: 240px;
    overflow: hidden;
    background: var(--light);
}

.topper-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: .4s;
}

.topper-card:hover .topper-photo-wrap img {
    transform: scale(1.06);
}

.coming-soon-box {
    background: #FFFFFF;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 44px 24px;
    max-width: 680px;
    margin: 0 auto;
}


/*** 4 Event Cards Grid ***/
.event-category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 245px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.event-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.event-category-card:hover img {
    transform: scale(1.08);
}

.event-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 12%, rgba(15, 23, 42, 0.15) 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}


/*** Compact Faculty & Academic Assistants Cards ***/
.team-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: .3s;
}

.team-item:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.team-photo-box {
    height: 175px;
    overflow: hidden;
    background: #e2e8f0;
}

.team-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: .4s;
}

.team-item:hover .team-photo-box img {
    transform: scale(1.05);
}

.hiring-card {
    border: 2px dashed var(--primary);
    border-radius: 8px;
    background: #FFFFFF;
    transition: .3s;
}

.hiring-card:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}


/*** Redesigned "Our Students Say!" Section (Fixed 4-Line Height + "+ More") ***/
.testimonial-redesigned {
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.testimonial-redesigned .testimonial-carousel::before,
.testimonial-redesigned .testimonial-carousel::after {
    display: none;
}

.review-modern-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 206px;
    display: flex;
    flex-direction: column;
}

.review-modern-card .quote-mark-icon {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #bfdbfe;
    font-size: 20px;
}

.review-modern-card .review-avatar {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.review-body-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.review-modern-card .review-quote-text {
    font-size: 0.9rem;
    line-height: 1.48;
    color: #334155;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-more-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    align-self: flex-end;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

.review-more-btn:hover {
    color: var(--primary-dark);
}

.testimonial-carousel .owl-item.center .review-modern-card {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 12px 26px rgba(26, 86, 219, 0.25);
}

.testimonial-carousel .owl-item.center .review-modern-card .quote-mark-icon,
.testimonial-carousel .owl-item.center .review-modern-card h6,
.testimonial-carousel .owl-item.center .review-modern-card .review-quote-text {
    color: #ffffff !important;
}

.testimonial-carousel .owl-item.center .review-modern-card .review-meta-sub {
    color: #dbeafe !important;
}

.testimonial-carousel .owl-item.center .review-modern-card .review-avatar {
    border-color: var(--accent);
}

.testimonial-carousel .owl-item.center .review-modern-card .review-more-btn {
    color: #fde68a !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    transition: .3s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.15);
}


/*** Social Buttons (WhatsApp & Instagram) ***/
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #FFFFFF !important;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    border-color: #1ebe5d;
    color: #FFFFFF !important;
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border: none;
    color: #FFFFFF !important;
}

.btn-instagram:hover {
    opacity: 0.9;
    color: #FFFFFF !important;
}


/*** Live Diff Preview Mode ***/
.preview-banner {
    background: #0f172a;
    color: #ffffff;
    border-bottom: 3px solid #f59e0b;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.preview-mode [data-preview-section] {
    opacity: 0.28;
    filter: grayscale(55%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

body.preview-mode [data-preview-section].preview-changed {
    opacity: 1 !important;
    filter: none !important;
    position: relative;
    outline: 3px solid #f59e0b;
    outline-offset: -3px;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.32);
    border-radius: 6px;
}

.preview-diff-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1040;
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
}


/*** Unified Dark-Navy Contact & Footer Section ***/
.unified-contact-footer {
    background: linear-gradient(180deg, #0f172a 0%, #090e1a 100%);
    color: #e2e8f0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.inquiry-glass-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.inquiry-glass-card .form-control,
.inquiry-glass-card .form-select {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
}

.inquiry-glass-card .form-control:focus,
.inquiry-glass-card .form-select:focus {
    background-color: #0f172a;
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.25);
}

.inquiry-glass-card .form-floating > label {
    color: #94a3b8;
}

.footer .btn.btn-link {
    display: inline-block;
    margin-right: 18px;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--accent);
}

.footer .btn.btn-link:hover {
    color: var(--accent);
    box-shadow: none;
}

.footer .copyright {
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .15);
    cursor: pointer;
    color: #cbd5e1;
}

.footer .footer-menu a:hover {
    color: var(--accent);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/*** Mobile Responsiveness & Touch Polish (Phones) ***/
html,
body {
    overflow-x: clip;
}

@media (max-width: 767.98px) {
    /* Keep Logo, Title & Hamburger Button on One Single Row */
    .navbar-light .navbar-brand {
        min-height: 64px;
        max-width: calc(100% - 70px);
    }

    .brand-logo-slot {
        width: 44px;
        height: 44px;
        margin-right: 10px !important;
    }

    #navInstituteName {
        font-size: 1.25rem;
    }

    .navbar-toggler {
        margin-right: 12px !important;
        padding: 6px 10px;
    }

    /* Hide Side Arrows on Hero (Touch Swipe Works Natively & Prevents Text Overlap) */
    .header-carousel .owl-nav {
        display: none !important;
    }

    .header-carousel .display-3 {
        font-size: 2rem;
    }

    /* Full-Width Easy-to-Tap Filter Dropdowns */
    .filter-select-box {
        width: 100%;
        justify-content: space-between;
        padding: 8px 16px;
    }

    .filter-select-box select {
        flex: 1;
        text-align: right;
    }

    /* Prevent iOS Safari Auto-Zoom When Tapping Inputs (Requires >= 16px) */
    .inquiry-glass-card .form-control,
    .inquiry-glass-card .form-select,
    #captchaInput {
        font-size: 16px !important;
    }

    .inquiry-glass-card {
        padding: 20px 16px;
    }

    /* Clean Centered Footer Links Without Trailing Dividers */
    .footer .footer-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    .footer .footer-menu a {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    /* Compact Back-to-Top Button */
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
}