/* 1. RESET + GLOBAL */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/*** Button Start ***/


.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-primary:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

.btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-light:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-primary);
    color: var(--bs-light) !important;
}

.btn-hover {
    transition: 0.5s;
}

.btn-hover:hover {
    color: var(--bs-secondary) !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/

/* 2. TOPBAR */
/* ===== TOPBAR FINAL (NO WRAP GUARANTEE) ===== */

.topbar {
    background: #123a7a;
    height: 45px;
    display: flex;
    align-items: center;
    padding-top: 10px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 32px;
    display:flex;
align-items:center;
justify-content:center;   /* centers the items */
gap:30px;                 /* spacing between items */
flex-wrap:wrap;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

/* LINKS */
.topbar a {
    color: #fff;
    font-size: 12.5px;
    text-decoration: none;
    white-space: nowrap;
}

.topbar a:hover {
    color: #ffd24d;
}

/* LOGIN */
.topbar .login {
    font-weight: 600;
    cursor: pointer;
}

/* DROPDOWN BOX */
.login-menu {
    min-width: 220px;
    padding: 6px 0;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: dropdownFade 0.2s ease-in-out;
}

/* DROPDOWN ITEMS */
.login-menu .dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: #123a7a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

/* ICON STYLE */
.login-menu .dropdown-item i {
    color: #0d6efd;
    font-size: 14px;
}

/* HOVER EFFECT */
.login-menu .dropdown-item:hover {
    background: #f1f6ff;
    color: #f5f6f9f1;
    transform: translateX(2px);
    border-radius: 9px;
}

/* LOGIN TEXT HOVER */
.topbar .login:hover {
    color: #ffd24d;
}


/* Make dropdown parent relative */
.topbar .dropdown {
    position: relative;
}

/* Proper dropdown styling */
.topbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 6px;
    min-width: 220px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== LOGIN DROPDOWN HOVER ===== */
@media (min-width: 992px) {

    .topbar .dropdown-menu {
        display: none;
        margin-top: 0;
    }

    .topbar .dropdown:hover>.dropdown-menu {
        display: block;
    }

}

/* ANIMATION */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TOPBAR DROPDOWN FIX ===== */

.topbar {
    position: relative;
    z-index: 2000;
    overflow: visible !important;
}

.topbar .container,
.topbar-inner,
.topbar-right {
    overflow: visible !important;
}

.topbar .dropdown {
    position: relative;
}

.topbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 9999;
    display: none;
}

/* Hover open */
@media (min-width: 992px) {
    .topbar .dropdown:hover>.dropdown-menu {
        display: block;
    }
}




/*** Topbar End ***/


/* 3. HEADER / BANNER */

@font-face {
    font-family: 'PanAmTextCaps' ;
    src: url('../web_ribbon/fonts/PanAmTextCaps-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/* HEADER */
.header-section {
    height: 120px;
    /* display: flex;
    align-items: center; */
    padding: 0 24px;
}

.header-section .row {
    --bs-gutter-x: 1.5rem;
    /* Bootstrap default */
}



/* Reduce column padding (tight layout) */
.header-section .col-lg-2,
.header-section .col-lg-8 {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* Remove default margins */
h1,h2,h3,p{
    margin: 0;
}

/* LEFT LOGO */
.college-logo {
    max-height: 100px;
    display: block;
    margin: 0 auto;
    margin-left: 110px;
}

/* COLLEGE NAME */
.college-name {
    font-family: 'PanAmTextCaps';
    font-weight: 500;
    font-size: clamp(20px, 4vw, 52px);
    color: #2f3b8f;
    letter-spacing: 2px;
     white-space: normal;
    text-align: center;
    line-height: 1;
}

/* AUTONOMOUS */
.autonomous-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.green-line {
    width: 120px;
    height: 4px;
    background: #2e7d32;
}

.autonomous {
    color: #ff0000;
    font-weight: bold;
    font-size: 22px;
    margin: 0 10px;
}

/* APPROVAL TEXT */
.approval-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 2px;
}

/* ADDRESS */
.address {
    font-weight: 800;
    font-size: 18px;
    margin-top: 2px;
    color: rgba(0, 0, 0, 0.584);
}

/* RIGHT SECTION */
.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.bslogos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .bslogosP{
    margin-left: 40px;


} */
.small-logo {
    height: 55px;
    /* reduced logo size */
    margin: 0 -3px;
    /* tight spacing */
}

.counselling-label {
    font-size: 15px;
    color: #2f3b8f;
    font-weight: 600;
    text-align: center;
}

.counselling-code {
    font-size: 26px;
    font-weight: 900;
    color: #fefeff;
    text-align: center;
    width: auto;
    height: auto;
    background-color: #0051cc;
    border-radius: 13px;
    letter-spacing: 3.5px;

}

.estdtext {
    font-size: 11px;

    font-weight: 900;
    
    color: rgba(0, 0, 0, 0.459);
    margin-right: 15px;

}

/* Responsive */
@media (max-width:992px) {

    .header-section {
        height: auto;
        padding: 15px 10px;
    }

    .college-name {
        font-size: 28px;
        white-space: normal;
    }

    .autonomous {
        font-size: 16px;
    }

    .approval-text {
        display: none;
        /* hide approval on small screens */
    }

    .address {
        font-size: 14px;
    }

    .small-logo {
        height: 38px;
        margin: 0 -2px;
    }
}

/**banner END**/

.navbar-light:not(.sticky-top) {
    background: transparent !important;
    box-shadow: none;
}




.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    padding: 35px 15px;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;


}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--bs-dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-light .navbar-brand h1 {
    color: var(--bs-white);
}

.sticky-top.navbar-light .navbar-brand h1 {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
    opacity: 1;
    visibility: visible;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
    opacity: 1;
    visibility: visible;
}
/* hide logo initially */
.navbar:not(.sticky-top) .nav-logo{
opacity:0;
visibility:hidden;
transform:translateY(-10px);
transition:all .3s ease;
}

/* show logo when navbar becomes sticky */
.navbar.sticky-top .nav-logo{
opacity:1;
visibility:visible;
transform:translateY(0);
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: fixed;
        background: #ffffff !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--bs-primary);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--bs-primary) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }

    .dropdown-menu {
        position: static !important;
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-submenu>.dropdown-menu {
        margin-left: 15px;
        border-left: 2px solid #0d6efd;
    }
}

@media (min-width: 992px) {


    /* Sticky state - turns white */
    .navbar.sticky-top {
        position: fixed;
        top: 0;
        width: 100%;
        background: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1050;
    }

    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1050;
    }



    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 0;
        bottom: -1px;
        left: 0;
        background: #123a7a;
        transition: .5s;
        z-index: -1;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        height: calc(100% + 1px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .dropdown-submenu>.dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
    }


    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Prevent click delay */
    .navbar .dropdown-toggle::after {
        pointer-events: none;
    }

}


/* ---------- MULTI LEVEL DROPDOWN FIX ---------- */


.dropdown-submenu {
    position: relative;
}

/* Hide submenu */
.dropdown-submenu>.dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;

    min-width: 200px;
    max-width: 200px;
    display: none;
    z-index: 1050;
}

/* Show submenu ONLY when hovered */
.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Desktop hover */
@media (min-width:992px) {

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

}

/* Mobile click (JS handles .show) */
@media (max-width:991px) {

    .dropdown-submenu>.dropdown-menu {
        display: none;
    }

    .dropdown-submenu>.dropdown-menu.show {
        display: block;
    }

}

/* ===== DROPDOWN HOVER BACKGROUND ===== */

/* Normal dropdown items */


/* Hover effect */
.dropdown-menu .dropdown-item:hover {
    background-color: #2671ea;
    font-weight: 500;
    color: #ebebeb;
}

/* Keep hover active when submenu is open */
.dropdown-submenu:hover>.dropdown-item {
    background-color: #efb188fd;
    color: #1f1b1ba4;
    font-weight: 500;
    border-left: 6px solid #d15e00;

}

/* Main dropdown width */
.dropdown-menu {

    min-width: 200px;
    border-radius: 8px;
}


/* Dropdown item layout */
.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

/* Arrow icon size */
.dropdown-item span {
    font-size: 12px;
    margin-left: 10px;
}



/* Default submenu (right side) */
.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
}

/* OPEN UPWARD for Facilities */
.dropdown-submenu-up>.dropdown-menu {
    bottom: 0;
    top: auto;
}

.dropdown-submenu-up>.dropdown-item span {
    transform: rotate(-90deg);
    display: inline-block;
}




.top-banner img {
    max-height: 130px;
    /* 🔽 reduce height */
    max-width: 95%;

}


/* Default navbar over hero */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: transparent !important;
    transition: all 0.3s ease;

}

/* Navbar initially over carousel */
.hero-wrapper .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: transparent !important;
}

/* STICKY NAVBAR */
.navbar.sticky-top {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* TRANSPARENT NAVBAR LINKS */
.navbar:not(.sticky-top) .nav-link {
    color: #ffffff !important;
}

/* STICKY NAVBAR LINKS */
.navbar.sticky-top .nav-link {
    color: #000000 !important;
}






/* Push hero down so it is not hidden */

.hero-wrapper {
    position: relative;
}

.hero-wrapper .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

@media (min-width:992px) {

    .hero-wrapper .navbar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        background: transparent;
    }

}

/* Space for navbar */
.hero {
    padding-top: 90px;
}

/* Sticky = white */
.sticky-top.navbar-light {
    position: fixed;
    background: #ffffff !important;
}

/* Transparent navbar over hero - initially */
.hero-wrapper .navbar:not(.sticky-top) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    transition: all 0.3s ease;
    z-index: 1050;
    box-shadow: none;
}

/* Sticky navbar */




.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    min-height: 100px;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption center */
/* Fix carousel caption positioning */
.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto !important;
    text-align: center;
    z-index: 10;
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    z-index: 2;
}

@media (max-width:768px) {
    .hero-carousel {
        height: auto;
    }
}

/**navbar END**/

/*About Section*/
.abtimg:hover {
    transform: scale(1.05);
    transition: 0.7s;
}

.about-img-wrap {
    min-height: 400px;
}

.btnabt {
    padding: 10px 26px;
        background: linear-gradient(135deg, #0066ff 0%, #0051cc 100%);  
    color: #fefeff !important;
    
    font-size: 14px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;

    width: auto;
   
    min-width: 200px;
 
}
.btnabt:hover{
    color: black;
}


/* ABOUT IMAGE FIX – MOBILE ONLY */
@media (max-width: 768px) {
    .abtimg {
        height: 220px !important;
        object-fit: cover;
        border-radius: 12px;


    }

    .btnabt {
        padding: 8px 20px;
        font-size: 13px;
        min-width: 120px;
    }

    .about .h-100 {
        min-height: auto !important;
    }
}

@media (max-width: 768px) {
    .about-img-wrap {
        min-height: auto;
    }
}



/*About Section*/
.abtimg:hover {
    transform: scale(1.05);
    transition: 0.7s;
}

/*About section End*/

/* 6. HERO / CAROUSEL */

.carousel-header {
    height: auto;
}



.carousel-header .carousel-inner,
.carousel-header .carousel-item,
.carousel-header .carousel-item img {
    height: 100px;
}

.carousel-header .carousel-item img{
    width:100%;
    height:auto;
    object-fit:cover;
}

.carousel-header .carousel-control-prev,
.carousel-header .carousel-control-next {
    background: transparent;
}

.carousel-header .carousel-control-prev .carousel-control-prev-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 25px 30px;
    border-top-left-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 50px;
    background-size: 60% 60%;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 25px 30px;
    border-top-left-radius: 50px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 0;
    background-size: 60% 60%;

}

.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
    opacity: 0;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 20%;
    top: 0;
    left: 0;
    padding-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.5));
    background-size: cover;
}

@media (max-width: 768px) {

    .carousel-header .carousel-inner .carousel-item img,
.carousel-header .carousel-inner .carousel-item .carousel-caption {
    height: auto;
    max-height: 700px;
    margin-top: 0;
}

    .carousel-header {
        height: 220px;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        opacity: 0;
    }

    .search-bar {
        margin-top: -100px;
        transition: 0.5s;
    }
}

/*** Carousel Hero Header End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(19, 53, 123, 0.5), rgba(19, 53, 123, 0.5)), url(../img/breadcrumb-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 150px 0 50px 0;
}

.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-secondary) !important;
}

/*** Single Page Hero Header End ***/

/*** About Start ***/
.about .container .section-about-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.about .container .section-about-title::before {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}

/*** About End ***/

/* 7. SECTIONS (Departments, News, Gallery…) */

/*** Department Start ***/
.dpt-jus{
   text-align: justify;
   
}
/* Header Section */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.8s ease;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #0066ff 0%, #0051cc 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
    text-transform: uppercase;
}

.title {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #0066ff 0%, #0051cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1em;
    color: #0066ff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
    width:100%;
max-width:100%;
overflow:hidden;
}
/* Card Styles */
.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e3f0ff;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 320px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

.card:nth-child(7) {
    animation-delay: 0.7s;
}

.card:nth-child(8) {
    animation-delay: 0.8s;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066ff 0%, #0051cc 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 102, 255, 0.25);
    border-color: rgba(0, 102, 255, 0.3);
}

/* Card Header */
.card-header {
    padding: 20px 16px;
    background: linear-gradient(135deg, #0066ff 0%, #0051cc 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.code {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.95;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

.name {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.icon {
    font-size: 28px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card:hover .icon {
    transform: rotate(20deg) scale(1.15);
}

/* Card Content */
.card-content {
    padding: 16px 16px 12px 16px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.description {
    color: #475569;
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.features {
    list-style: none;
    margin: 0;
}

.features li {
    color: #5a6c7d;
    font-size: 0.8em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.features li:last-child {
    margin-bottom: 0;
}

.card:hover .features li {
    color: #0066ff;
    transform: translateX(2px);
}

.features li::before {
    content: '•';
    color: #0066ff;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Card Footer */
.card-footer {
    padding: 12px 16px 16px 16px;
    border-top: 1px solid #e3f0ff;
    position: relative;
    z-index: 1;
}

.stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.stat {
    flex: 1;
    padding: 8px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f1ff 100%);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #d4e6ff;
}

.card:hover .stat {
    background: linear-gradient(135deg, #0066ff 0%, #0051cc 100%);
    color: white;
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.1em;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: #0066ff;
    transition: color 0.3s ease;
}

.card:hover .stat-value {
    color: white;
}

.stat-label {
    font-size: 0.65em;
    color: #0066ff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.card:hover .stat-label {
    color: white;
}

/* Button */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
     width: auto;
    max-width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #0066ff 0%, #0051cc 100%);
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    gap: 6px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(2px);
}

/* View More Button */
.view-more {
    text-align: center;
    margin-top: 50px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #0066ff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.4s ease;
    border: 2px solid #0066ff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.15);
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066ff 0%, #0051cc 100%);
    z-index: -1;
    transition: left 0.4s ease;
}

.view-btn:hover::before {
    left: 0;
}

.view-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.3);
    border-color: transparent;
}

.view-btn span:last-child {
    transition: transform 0.3s ease;
}

.view-btn:hover span:last-child {
    transform: translateX(3px);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
    }

    .card {
        height: 300px;
    }

    .header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {

    .title {
        font-size: 1.6em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        height: 290px;
    }

    .header {
        margin-bottom: 30px;
    }

    .badge {
        padding: 6px 14px;
        font-size: 9px;
    }

    .card-header {
        padding: 14px 12px;
        min-height: 90px;
    }

    .name {
        font-size: 1.1em;
        margin-top: 4px;
    }

    .icon {
        font-size: 24px;
    }

    .card-content {
        padding: 12px 12px 8px 12px;
    }

    .description {
        font-size: 0.8em;
        margin-bottom: 8px;
    }

    .features li {
        font-size: 0.75em;
        margin-bottom: 4px;
    }

    .card-footer {
        padding: 10px 12px 12px 12px;
    }

    .stats {
        gap: 8px;
        margin-bottom: 10px;
    }

    .stat {
        padding: 6px;
    }

    .stat-value {
        font-size: 1em;
    }

    .stat-label {
        font-size: 0.6em;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}

/*** Department End ***/

/*** News Start ***/


/* Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeDown 0.7s ease;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0052d4 0%, #0041a8 100%);
    color: white;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(2, 17, 41, 0.909);
}

.section-title {
    font-size: 2.4em;
    font-weight: 800;
    background: linear-gradient(135deg, #0052d4 0%, #0041a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1em;
    color: #6b7fa3;
    font-weight: 500;
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* News Box */


/* Box Header */
.box-header {
    background: linear-gradient(135deg, #0052d4 0%, #0041a8 100%);
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
}

.box-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.box-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.header-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-box:hover .header-icon {
    transform: scale(1.1) rotate(5deg);
}

.header-text h3 {
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 2px;
}

.header-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78em;
    font-weight: 500;
}

.live-dot {
    position: absolute;
    top: 22px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.live-dot .dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-dot span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Scrollable Content */
.scroll-area {
    height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.scroll-area::-webkit-scrollbar {
    width: 4px;
}

.scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0052d4, #4d9aff);
    border-radius: 10px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
    background: #0041a8;
}

/* News Item */
.news-item {
    padding: 20px;
    border-bottom: 1px solid #eef3ff;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0052d4, #4d9aff);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.news-item:hover {
    background: linear-gradient(135deg, #f0f6ff 0%, #fafcff 100%);
    padding-left: 26px;
}

.news-item:hover::before {
    opacity: 1;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8f0fe 0%, #dce8ff 100%);
    color: #0052d4;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1em;
    font-weight: 700;
    color: #0d2137;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: #0052d4;
}

.news-desc {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item,
.news-file,
.download-btn {
    box-shadow: none !important;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* News Section Cards Shadow */
.news-card {
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    border: 2px solid rgba(155, 151, 205, 0.422);
    border-top: none;
}

/* Hover Effect */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18) !important;
}

.news-body {
    flex: 1;

}

.card-header {
    font-size: xx-large;
}

.news-item {
    border-bottom: 2px solid #0b083120;
    padding: 10px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.card-header i {
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 6px;
}

.card-header i {
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Pagination Container */
#circular-pagination,
#exam-pagination,
#placement-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Pagination Buttons */
#circular-pagination button,
#exam-pagination button,
#placement-pagination button {
    width: 38px;
    height: 38px;
    border: none;
    background: #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

/* Hover */
#circular-pagination button:hover,
#exam-pagination button:hover,
#placement-pagination button:hover {
    background: #93c5fd;
}

/* Active Page */
#circular-pagination button.active,
#exam-pagination button.active,
#placement-pagination button.active {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Arrow Buttons */
.pagination-arrow {
    font-size: 18px;
    font-weight: bold;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    background: #fee2e2;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all .25s ease;
}

.pdf-download:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.news-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #16a34a;
    color: #fff;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.badge-important {
    background: #dc2626;
    color: #fff;
}

.tag-new {
    background: #dcfce7;
    color: #16a34a;
}

.tag-important {
    background: #fee2e2;
    color: #dc2626;
}

.tag-update {
    background: #dbeafe;
    color: #2563eb;
}

.news-file {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f5f8ff 0%, #eef3ff 100%);
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 12px;
    border: 1px solid #dce8ff;
    transition: all 0.3s ease;
}

.news-file:hover {
    border-color: #010500;
    background: #e8f0fe;
}

.file-icon {
    font-size: 18px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 0.82em;
    font-weight: 600;
    color: #0052d4;
    display: block;
}

.file-size {
    font-size: 0.7em;
    color: #94a3b8;
}

.download-btn {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #0052d4 0%, #0041a8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 82, 212, 0.4);
}

/* Box Footer */
.box-footer {
    padding: 14px 20px;
    border-top: 1px solid #eef3ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafcff 0%, #f5f8ff 100%);
}

.footer-count {
    font-size: 0.78em;
    color: #6b7fa3;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0052d4;
    font-size: 0.85em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.view-all:hover {
    background: #e8f0fe;
    transform: translateX(3px);
}

.view-all .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.view-all:hover .arrow {
    transform: translateX(4px);
}

/* Scroll indicator */
.scroll-fade {
    position: relative;
}

.scroll-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 4px;
    height: 50px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    z-index: 5;
    border-radius: 0 0 0 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-fade.scrolled-bottom::after {
    opacity: 0;
}

/* Color Variants */
.news-box.green .box-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.news-box.green::after {
    background: linear-gradient(90deg, #059669, #34d399);
}

.news-box.green .news-date {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.news-box.green .news-item:hover .news-title {
    color: #059669;
}

.news-box.green .news-item::before {
    background: linear-gradient(180deg, #059669, #34d399);
}

.news-box.green .news-item:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #fafcff 100%);
}

.news-box.green .file-name {
    color: #059669;
}

.news-box.green .news-file:hover {
    border-color: #059669;
    background: #d1fae5;
}

.news-box.green .news-file {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
}

.news-box.green .download-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.news-box.green .download-btn:hover {
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.news-box.green .view-all {
    color: #059669;
}

.news-box.green .view-all:hover {
    background: #d1fae5;
}

.news-box.green .header-icon {
    background: rgba(255, 255, 255, 0.2);
}

.news-box.green:hover {
    box-shadow: 0 20px 50px rgba(5, 150, 105, 0.18);
    border-color: #059669;
}

.news-box.orange .box-header {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
}

.news-box.orange::after {
    background: linear-gradient(90deg, #c2410c, #fb923c);
}

.news-box.orange .news-date {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
}

.news-box.orange .news-item:hover .news-title {
    color: #c2410c;
}

.news-box.orange .news-item::before {
    background: linear-gradient(180deg, #c2410c, #fb923c);
}

.news-box.orange .news-item:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #fafcff 100%);
}

.news-box.orange .file-name {
    color: #c2410c;
}

.news-box.orange .news-file:hover {
    border-color: #c2410c;
    background: #ffedd5;
}

.news-box.orange .news-file {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
}

.news-box.orange .download-btn {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
}

.news-box.orange .download-btn:hover {
    box-shadow: 0 6px 16px rgba(194, 65, 12, 0.4);
}

.news-box.orange .view-all {
    color: #c2410c;
}

.news-box.orange .view-all:hover {
    background: #ffedd5;
}

.news-box.orange .header-icon {
    background: rgba(255, 255, 255, 0.2);
}

.news-box.orange:hover {
    box-shadow: 0 20px 50px rgba(194, 65, 12, 0.18);
    border-color: #c2410c;
}

/* Animations */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .news-box:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 700px) {


    .section-title {
        font-size: 1.8em;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-box:nth-child(3) {
        max-width: 100%;
    }

    .scroll-area {
        height: 300px;
    }

    .section-header {
        margin-bottom: 35px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5em;
    }

    .header-text h3 {
        font-size: 1.05em;
    }

    .box-header {
        padding: 18px 16px;
    }

    .news-item {
        padding: 16px;
    }

    .news-item:hover {
        padding-left: 22px;
    }

    .scroll-area {
        height: 260px;
    }
}

/*** News End ***/


/*** Gallery Start ***/
.gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.5s;
}

.gallery .gallery-item .gallery-content {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: 0.5s;
}

.gallery .gallery-item .gallery-content .gallery-info {
    position: relative;
    margin-bottom: -100%;
    opacity: 0;
    transition: 0.5s;
}

.gallery .gallery-item .gallery-plus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
}

.gallery .gallery-item:hover .gallery-content .gallery-info,
.gallery .gallery-item:hover .gallery-plus-icon {
    opacity: 1;
    margin: 0;
}

.gallery .gallery-item:hover img {
    transform: scale(1.2);
}

.gallery .gallery-item:hover .gallery-content {
    background: rgba(19, 53, 123, 0.8);
}

.gallery .tab-class .nav-item {
    padding: 0 0 20px 0;
}
.gallery .tab-class .nav-item:hover{
     background-color: #0b97c183;
     border-radius: 50%;
     border-bottom-left-radius: 20px;
     border-bottom-right-radius: 20px;
    
          
}
.gallery .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}

.gallery .tab-class .nav-item a.active span {
    color: var(--bs-white) !important;
}

@media (max-width:768px) {
    .gallery .gallery-item img {
        min-height: 200px;
    }

    .nav-pills .nav-item {
        margin-bottom: 8px;
    }
}

/*** Gallery End ***/

/*** Testimonial Start ***/
.testimonial {
    background: #f8fafc;
    padding: 80px 0;
    position: relative;
    display: block !important;
    visibility: visible !important;
}

.testimonial .testimonial-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .testimonial-item .testimonial-img {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 10px auto;
    /* center it normally */
    border: 3px dotted var(--bs-primary);
    border-radius: 50%;
    transform: none;
    /* ✅ remove the upward shift */
    left: auto;
    top: auto;
}

.testimonial .testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;

    align-items: center;
    justify-content: center;
   

}

.testimonial-carousel .testimonial-item {
    min-height: 260px;
    display: block;
}

.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary);
}

.testimonial .testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    top: -55px;
    left: 0;
    padding: 5px 30px;
    border: 1px solid var(--bs-primary);
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: -55px;
    right: 0;
    padding: 5px 30px;
    border: 1px solid var(--bs-primary);
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev i,
.testimonial .testimonial-carousel .owl-nav .owl-next i {
    color: var(--bs-primary);
    font-size: 17px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover i,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover i {
    color: var(--bs-white);
}

.testimonial .testimonial-carousel .owl-item.center .testimonial-item .testimonial-comment {
    background: var(--bs-primary) !important;
    color: var(--bs-white);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-item.center .testimonial-item .testimonial-img {
    border: 3px solid var(--bs-white);
    border-style: dotted;
    transition: 0.5s;
}

.testimonial-info {
    margin-top: 15px;
}


/*** Testimonial End ***/
/*** Contact Start ***/
.contact .container form .btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.contact .container form .btn.btn-primary:hover {
    box-shadow: inset 1000px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

/*** Contact End ***/

/* 8. FOOTER */
.footer {
    background: var(--bs-dark);
}


.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-primary);
}


.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}


/*** Footer End ***/



/*** copyright end ***/

/* 9. SOCIAL BAR */



/**social media icons end**/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 98;
}

/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}

.copytext {
    margin-left: 270px;
}

/*** copyright end ***/




/* Brand colors */
.twitter:hover {
    background: #1da1f2;
    color: #f9f5f5;
    transform: scale(1.15);
}

.facebook:hover {
    background: #0852b2;
    color: #f9f4f4;
    transform: scale(1.15);
}

.linkedin:hover {
    background: #344cc4;
    color: #f9f8f8;
    transform: scale(1.15);
}

.instagram:hover {
    background: #dd2a7b;
    color: #f8f1f1;
    transform: scale(1.15);
}

.youtube:hover {
    background: #f6f0f0;
    color: #f51414;
    transform: scale(1.15);
}


/**social media icons end**/
/* FIX: Login dropdown visibility */
.dropdown-left {
    position: relative;
}

.dropdown-left>.dropdown-menu {
    right: 0;
    left: auto;
    top: 100%;
    margin-top: 6px;
    z-index: 99999;
}

/* ===== MOBILE DROPDOWN FIX ===== */
@media (max-width: 991px) {

    /* Let dropdown stay inside navbar */
    .navbar {
        overflow: visible !important;
    }

    /* Make dropdown full width & visible */
    .dropdown-menu {
        position: relative;
        float: none;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 6px;
        transform: none;
    }

    /* Better tap targets */
    .dropdown-menu .dropdown-item {
        padding: 12px 16px;
    }

    .dropdown-submenu>.dropdown-menu {
        display: none;
    }

    .dropdown-submenu>.dropdown-menu.show {
        display: block;
    }

    .copytext {
        margin-left: 0px;
    }

}

/* ================= SOCIAL DESKTOP ================= */

.social-wrapper {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

/* Desktop box */
.social-icons {
    background: #123a7a;
    padding: 12px 8px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Icon style */
.social-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #123a7a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform .3s;
}


/* Hide toggle on desktop */
/* ================= DESKTOP SOCIAL ================= */
@media (min-width: 992px) {

    .social-wrapper {
        position: fixed;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
    }

    .social-icons {
        background: #123a7a;
        padding: 6px 5px;
        /* ⬅ smaller */
        border-radius: 14px;
        /* ⬅ tighter */
        gap: 6px;
        /* ⬅ compact */
        box-shadow: 0 8px 18px rgba(0, 0, 0, .25);

    }

    .social-icon {
        width: 32px;
        /* ⬅ smaller */
        height: 32px;
        font-size: 15px;
    }

    .social-icon:hover {
        transform: translateX(6px) scale(1.12);
    }

    .social-toggle {
        display: none !important;
    }

}

@media (max-width: 991px) {

    .social-wrapper {
        position: fixed;
        right: 20px;
        bottom: 120px;
        z-index: 9999;
    }

    .social-toggle {
        all: unset;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #123a7a;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
    }

    .social-icons {
        position: absolute;
        right: 0;
        top: 0;
        pointer-events: none;
    }

    .social-icon {
        position: absolute;
        opacity: 0;
        transform: scale(0);
    }

    .social-wrapper.active .social-icon {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    /* RIGHT HALF CIRCLE */
    .social-wrapper.active .social-icon:nth-child(1) {
        transform: translate(0, -80px);
    }

    .social-wrapper.active .social-icon:nth-child(2) {
        transform: translate(55px, -55px);
    }

    .social-wrapper.active .social-icon:nth-child(3) {
        transform: translate(80px, 0);
    }

    .social-wrapper.active .social-icon:nth-child(4) {
        transform: translate(55px, 55px);
    }

    .social-wrapper.active .social-icon:nth-child(5) {
        transform: translate(0, 80px);
    }
}



.social-toggle {
    display: none;
}

@media (min-width: 992px) {

    .social-icons {
        background: #123a7a;
        padding: 6px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    }

    .social-icon {
        width: 32px;
        height: 32px;
        background: #fff;
        color: #123a7a;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        transition: .3s;
    }

    .social-icon:hover {
        transform: translateX(6px) scale(1.12);
    }
}

.social-wrapper.scrolled .social-icons {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

.social-wrapper.scrolled .social-toggle {
    display: flex;
}

@media (min-width: 992px) {
    .social-toggle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #123a7a;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
        cursor: pointer;
    }

    .social-wrapper.scrolled .social-icons {
        position: absolute;
        left: 0;
        top: 0;
        background: none;
    }

    /* HALF CIRCLE */
    .social-wrapper.scrolled.active .social-icon {
        position: absolute;
        opacity: 1;
        transform: scale(1);
    }

    .social-wrapper.scrolled.active .social-icon:nth-child(1) {
        transform: translate(0, -80px);
    }

    .social-wrapper.scrolled.active .social-icon:nth-child(2) {
        transform: translate(55px, -55px);
    }

    .social-wrapper.scrolled.active .social-icon:nth-child(3) {
        transform: translate(80px, 0);
    }

    .social-wrapper.scrolled.active .social-icon:nth-child(4) {
        transform: translate(55px, 55px);
    }

    .social-wrapper.scrolled.active .social-icon:nth-child(5) {
        transform: translate(0, 80px);
    }
}

.testimonial-carousel .testimonial-item {
    position: relative;
    overflow: hidden;
}

.testimonial-carousel .testimonial-img img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    background: #fff;
}

@media (max-width: 991px) {

    .social-wrapper {
        right: 20px;
        bottom: 120px;
        left: auto;
        top: auto;
        transform: none;
    }

    .social-toggle {
        display: flex;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #123a7a;
        color: #fff;
        font-size: 22px;
    }

    .social-icons {
        position: absolute;
        right: 0;
        top: 0;
        pointer-events: none;
    }

    .social-icon {
        position: absolute;
        opacity: 0;
        transform: scale(0);
    }

    .social-wrapper.active .social-icon {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;

    }

    .dropdown-submenu>.dropdown-menu {
        display: none;
    }

    .dropdown-submenu>.dropdown-menu.show {
        display: block;
    }
}

/* REMOVE DROPDOWN SIDE ARROWS */
.dropdown-menu li::after,
.dropdown-submenu::after,
.dropdown-item::after {
    content: none !important;
}

@media (max-width: 768px) {

    .testimonial,
    .testimonial-carousel,
    .testimonial-carousel .owl-stage-outer,
    .testimonial-carousel .owl-stage,
    .testimonial-carousel .owl-item {
        height: auto !important;
        overflow: visible !important;
    }
}

/* ===== MOBILE NAVBAR SCROLL FIX ===== */
@media (max-width: 991px) {

    .navbar-collapse {
        max-height: calc(100vh - 80px);
        /* height of screen minus navbar */
        overflow-y: auto;
        overflow-x: hidden;
        background: #fff;
    }

    .navbar-nav {
        padding-bottom: 20px;
    }

    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background: #0d6efd;
        border-radius: 10px;
    }
}
.owl-stage-outer{
overflow:hidden;
width:100%;
}

.owl-carousel{
width:100%;
max-width:100%;
}


.navbar .nav-link{
color:white !important;
}
.home-page .navbar .nav-link{
color:#0d6efd !important;
}

/* Get In Touch alignment */
.contact-section a{
display:flex;
align-items:center;
gap:10px;
margin-bottom:10px;
color:#fff;
text-decoration:none;
}

.contact-section i{
min-width:20px;
text-align:center;
font-size:15px;
}

.contact-text{
display:inline-block;
}
/* hide logo initially */
.navbar .nav-logo{
opacity:0;
visibility:hidden;
transform:translateY(-10px);
transition:all .3s ease;
}

/* show logo when navbar becomes sticky */
.navbar.sticky-top .nav-logo{
opacity:1;
visibility:visible;
transform:translateY(0);
}

/* Footer link styling */
.footer a{
    text-decoration: none !important;
    color: #cfcfcf !important;
}

/* Footer hover */
.footer a:hover{
    color: #ffffff !important;
}

/* Copyright links */
.copyright a{
    text-decoration: none !important;
    color: #cfcfcf !important;
}

.copyright a:hover{
    color: #ffffff !important;
}