/**
 * Tapasvi — Navigation, Footer, Homepage visibility
 */

.top-bar {
    background: linear-gradient(90deg, #1a2b3c, #243447) !important;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--tc-primary, #0091cd);
}
.top-bar .top-bar-contact {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}
.top-bar .top-bar-contact .email-link {
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.25;
    overflow: hidden;
}
.top-bar .top-bar-contact .email-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
}
.top-bar .top-bar-contact .email-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.65rem, 2.4vw, 0.85rem);
}
.top-bar .top-bar-contact .email-link:hover {
    text-decoration: underline;
    color: #f8f9fa !important;
}
.top-bar .top-bar-contact .call-btn {
    flex: 0 0 auto;
    border-radius: 999px;
    font-weight: 600;
    font-size: clamp(0.68rem, 2.2vw, 0.8rem);
    padding: 0.25rem clamp(0.45rem, 2vw, 0.85rem);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.2;
}
.top-bar .top-bar-contact .call-btn .call-icon {
    font-size: 0.75rem;
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.78rem;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }
    .top-bar .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
    .top-bar .top-bar-contact .call-btn {
        padding: 0.2rem 0.55rem;
    }
}

@media (max-width: 420px) {
    .top-bar .top-bar-contact .email-icon {
        display: none;
    }
    .top-bar .top-bar-contact .call-btn .call-btn-label {
        display: none;
    }
    .top-bar .top-bar-contact .call-btn {
        padding: 0.3rem 0.55rem;
    }
}

.site-navbar {
    background: #fff !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
.site-navbar .navbar-brand img {
    max-height: 58px;
    width: auto;
}
.site-navbar .navbar-nav {
    align-items: center;
    gap: 2px;
}
.site-navbar .nav-link {
    font-weight: 500;
    font-size: 0.88rem;
    color: #1a2b3c !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.site-navbar .nav-link:hover {
    color: var(--tc-primary, #0091cd) !important;
    background: rgba(0, 145, 205, 0.08);
}
.site-navbar .nav-link.active {
    color: #fff !important;
    background: var(--tc-primary, #0091cd);
    font-weight: 600;
}
.site-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
}
.site-navbar .dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
}
.site-navbar .nav-cta .animated-button {
    font-size: 0.82rem;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #f4a100, #ff8c00) !important;
    color: #1a2b3c !important;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .site-navbar .nav-link.active {
        background: rgba(0, 145, 205, 0.12);
        color: var(--tc-primary, #0091cd) !important;
    }
}

.hero {
    background: linear-gradient(160deg, #e8f7fc 0%, #d4effa 40%, #f0f9ff 100%);
    padding: 2rem 0 1.75rem;
    border-bottom: 2px solid rgba(0, 145, 205, 0.2);
}
.hero .main-logo {
    max-height: 140px;
    filter: drop-shadow(0 8px 20px rgba(0, 145, 205, 0.2));
}
.hero .hero-tagline {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--tc-dark, #1a2b3c);
    margin-bottom: 0.75rem;
}
.hm-login-label,
.hm-explore-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tc-primary, #0091cd);
    margin-bottom: 0.5rem;
}
.hm-about-institutions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 145, 205, 0.15);
}
.hm-about-institutions .hm-explore-label {
    margin-top: 0;
}
.hm-login-buttons-row {
    max-width: 720px;
}
.hm-login-buttons-row .btn {
    font-size: clamp(0.78rem, 2.2vw, 1rem);
}
.hm-explore-buttons-row {
    max-width: 900px;
}
.hm-explore-buttons-row .btn {
    font-size: clamp(0.72rem, 1.8vw, 0.9rem);
    padding: 0.6rem 0.4rem;
}
.institution-buttons-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.institution-buttons-row .btn {
    flex: 1 1 0;
    min-width: 0;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: clamp(0.72rem, 1.8vw, 0.95rem);
    padding: 0.7rem 0.45rem;
    white-space: normal;
    line-height: 1.25;
}

@media (max-width: 575.98px) {
    .institution-buttons-row,
    .hm-login-buttons-row,
    .hm-explore-buttons-row {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .institution-buttons-row .btn,
    .hm-login-buttons-row .btn,
    .hm-explore-buttons-row .btn {
        width: 100%;
        flex: none;
        font-size: 0.92rem;
        padding: 0.75rem 1rem;
    }
    .hero {
        padding: 1.5rem 0 1.25rem;
    }
    .hero .main-logo {
        max-height: 100px;
    }
    .hero .hero-tagline {
        font-size: 0.92rem;
        padding: 0 0.5rem;
    }
    .slider-section .carousel-inner img {
        min-height: 200px;
        max-height: 260px;
    }
}

.slider-section {
    padding: 1.25rem 0 1.5rem;
    background: #fff;
}
.slider-section .carousel {
    border-radius: var(--tc-box-radius, 16px);
    overflow: hidden;
}
.slider-section .carousel-inner img {
    object-fit: cover;
    min-height: 320px;
    max-height: 480px;
}
.slider-section .carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    left: 0; right: 0; bottom: 0;
    padding: 2rem 1.5rem 1.25rem;
}

.site-footer {
    position: relative;
    z-index: 20;
    clear: both;
    background: linear-gradient(180deg, #f0f9ff 0%, #e8f4fa 100%) !important;
    color: #374151 !important;
    padding: 2.5rem 0 2rem;
    margin-top: 0;
    border-top: 2px solid rgba(0, 145, 205, 0.2);
}
.site-footer-box {
    background: #ffffff !important;
    border: 2px solid rgba(0, 145, 205, 0.22) !important;
    border-radius: 14px;
    padding: 2rem 1.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 145, 205, 0.07);
}
.site-footer-brand {
    text-align: center;
}
.site-footer-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 280px;
    margin: 0 auto 1rem;
    padding: 0.5rem;
}
.site-footer-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    max-height: 90px;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
}
.site-footer-brand .tagline {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--tc-dark, #1a2b3c);
    font-weight: 500;
    margin-bottom: 0.85rem;
    text-align: center;
}
.site-footer-brand .address {
    font-size: 0.85rem;
    color: var(--tc-muted, #6c757d);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
}
.site-footer-brand .address i {
    color: var(--tc-primary, #0091cd);
    margin-top: 3px;
    flex-shrink: 0;
}
.site-footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.site-footer-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border: 2px solid rgba(0, 145, 205, 0.25);
    border-radius: 10px;
    color: var(--tc-primary, #0091cd);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.site-footer-social a:hover {
    background: var(--tc-primary, #0091cd);
    border-color: var(--tc-primary, #0091cd);
    color: #fff;
    transform: translateY(-2px);
}
.site-footer-col {
    margin-bottom: 0.25rem;
}
.site-footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tc-dark, #1a2b3c);
    margin-bottom: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--tc-primary, #0091cd);
    display: block;
    width: 100%;
}
.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer-links li {
    margin-bottom: 0.5rem;
}
.site-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    font-size: 0.88rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}
.site-footer-links a:hover {
    color: var(--tc-primary, #0091cd);
    padding-left: 4px;
}
.site-footer-links a i {
    color: var(--tc-primary, #0091cd);
    width: 14px;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.site-footer-links .footer-highlight a {
    color: #e67e00;
    font-weight: 700;
    background: #fff8e6;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px dashed #f4a100;
}
.site-footer-links .footer-highlight a:hover {
    background: #fff3cd;
    padding-left: 0.65rem;
}
.site-footer-contact p {
    margin-bottom: 0.65rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.5;
}
.site-footer-contact i {
    color: var(--tc-primary, #0091cd);
    margin-top: 3px;
    width: 18px;
    flex-shrink: 0;
}
.site-footer-bottom {
    margin-top: 2rem;
    padding: 1.25rem 0.5rem;
    border-top: 1px solid rgba(0, 145, 205, 0.15);
    text-align: center;
    font-size: 0.82rem;
    color: var(--tc-muted, #6c757d);
}
.site-footer-bottom a {
    color: var(--tc-primary, #0091cd);
    font-weight: 600;
    text-decoration: none;
}
.site-footer-bottom a:hover {
    text-decoration: underline;
}
.site-footer-bottom .legal-links {
    margin-top: 0.65rem;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 100%;
}
.site-footer-bottom .legal-links a {
    font-weight: 500;
    white-space: nowrap;
}
.site-footer-bottom .legal-links .legal-sep {
    margin: 0 0.5rem;
    color: rgba(0, 145, 205, 0.35);
    font-weight: 400;
    user-select: none;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .site-footer-brand {
        text-align: left;
    }
    .site-footer-logo-wrap {
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
    }
    .site-footer-brand .tagline,
    .site-footer-brand .address {
        text-align: left;
    }
    .site-footer-brand .address {
        justify-content: flex-start;
    }
    .site-footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 1.5rem 0 1.25rem;
    }
    .site-footer-box {
        padding: 1.5rem 1rem 0;
        border-radius: 12px;
    }
    .site-footer-logo {
        max-width: 220px;
        max-height: 76px;
    }
    .site-footer-heading {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    .site-footer-col {
        padding-bottom: 0.5rem;
    }
    .site-footer-links a {
        font-size: 0.85rem;
    }
    .site-footer-bottom {
        margin-top: 1.25rem;
        padding: 1rem 0.25rem;
    }
    .site-footer-bottom .legal-links a {
        font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    }
    .site-footer-bottom .legal-links .legal-sep {
        margin: 0 0.35rem;
        font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    }
}

@media (max-width: 575.98px) {
    .site-footer .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .site-footer-brand {
        border-bottom: 1px solid rgba(0, 145, 205, 0.12);
        padding-bottom: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

/* ── Mobile slide-in sidebar nav ────────────────────────────── */
.mobile-nav-sidebar {
    width: min(320px, 88vw);
    border-left: 2px solid rgba(0, 145, 205, 0.15);
}
.mobile-nav-sidebar .offcanvas-header {
    background: linear-gradient(135deg, #0091cd, #0077a8);
    color: #fff;
    padding: 1rem 1.1rem;
}
.mobile-nav-sidebar .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}
.mobile-nav-brand img {
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}
.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.5rem;
    color: var(--tc-dark, #1a2b3c);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-list li a i {
    width: 20px;
    color: var(--tc-primary, #0091cd);
    text-align: center;
}
.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
    background: #f0f9ff;
    color: var(--tc-primary, #0091cd);
}
.mobile-nav-cta {
    margin-bottom: 1rem;
}
.mobile-nav-contact {
    padding-top: 1rem;
    border-top: 1px solid #eef3f7;
    font-size: 0.8rem;
}
.mobile-nav-contact a {
    color: var(--tc-muted, #6c757d);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    word-break: break-all;
}
.mobile-nav-contact a i {
    color: var(--tc-primary, #0091cd);
    margin-top: 2px;
}

@media (max-width: 576px) {
    .email-text {
        max-width: 200px;
    }
}

