/********** Template CSS **********/
:root {
--primary: #fdb94d;   /* yellow - buttons, highlights, headings ka accent */
--secondary: #757575; /* grey - body text */
--light: #F3F6F8;     /* light grey background */
--dark: #26247b;      /* navy - headings, dark sections */
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** 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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #26247b;
}

.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;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.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) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}


/*** Campus Banners ***/
.campus-banner {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.campus-banner-bg {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
    filter: grayscale(20%) brightness(.85) saturate(.9);
}

.campus-banner-overlay {
    position: absolute;
    inset: 0;
}

.campus-banner.text-left .campus-banner-overlay {
    background: linear-gradient(100deg, rgba(12, 43, 75, .88) 0%, rgba(12, 43, 75, .62) 45%, rgba(12, 43, 75, .25) 75%);
}

.campus-banner.text-right .campus-banner-overlay {
    background: linear-gradient(260deg, rgba(12, 43, 75, .88) 0%, rgba(12, 43, 75, .62) 45%, rgba(12, 43, 75, .25) 75%);
}

.campus-banner > .container {
    position: relative;
    z-index: 2;
}

.campus-banner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 18px;
    color: var(--primary);
}

.campus-banner-eyebrow::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
}

.campus-banner-text h1 {
    color: #FFFFFF;
    font-weight: 700;
}

.campus-banner-text p {
    color: rgba(255, 255, 255, .8);
    max-width: 480px;
}

/* Polaroid photo card */
.polaroid-card {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 356px;
    background: #FFFFFF;
    padding: 18px 18px 55px 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, .35);
    transform: rotate(-5deg);
    transition: transform .4s ease;
}

.campus-banner.text-right .polaroid-card {
    transform: rotate(5deg);
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.03) !important;
}

.polaroid-card img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    height: auto;
    object-fit: cover;
}

.polaroid-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    text-align: center;
    font-family: 'Amita', cursive;
    font-size: 18px;
    color: var(--dark);
}

.polaroid-tape {
    position: absolute;
    top: -16px;
    left: 50%;
    width: 90px;
    height: 32px;
    margin-left: -45px;
    background: rgba(243, 189, 0, .55);
    border: 1px solid rgba(243, 189, 0, .7);
    transform: rotate(-3deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

.polaroid-tape.tape-white {
    background: rgba(255, 255, 255, .6);
    border-color: rgba(255, 255, 255, .8);
    transform: rotate(3deg);
}

@media (max-width: 991.98px) {
    .campus-banner {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .campus-banner.text-left .campus-banner-overlay,
    .campus-banner.text-right .campus-banner-overlay {
        background: linear-gradient(180deg, rgba(12, 43, 75, .9) 0%, rgba(12, 43, 75, .78) 100%);
    }

    .campus-banner-text {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .campus-banner-text p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .polaroid-card {
        transform: rotate(-3deg);
    }

    .campus-banner.text-right .polaroid-card {
        transform: rotate(3deg);
    }

    .campus-banner .row.justify-content-center-mobile {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .campus-banner {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .campus-banner-text h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .campus-banner-text p {
        font-size: .95rem;
    }

    .campus-banner-eyebrow {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .polaroid-card {
        max-width: 260px;
        padding: 12px 12px 40px 12px;
    }

    .polaroid-caption {
        font-size: 16px;
        bottom: 12px;
    }

    .polaroid-tape {
        width: 65px;
        height: 24px;
        margin-left: -32px;
        top: -12px;
    }
}

/*** Page Subtitle ***/
.page-subtitle {
    color: #fdb94d;
}

/*** Navbar Dropdown Spacing ***/
.navbar .dropdown-menu .dropdown-item {
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar .dropdown-menu .dropdown-item + .dropdown-item {
    border-top: 1px solid rgba(0, 0, 0, .05);
}



/* ===== Notice Board Style ===== */
.notice-board {
    position: relative;
    padding: 35px 20px 25px;
    border-radius: 6px;
    background-color: #a97c50;
    background-image:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 4px);
    border: 10px solid #6b4423;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 0 25px rgba(0,0,0,0.3);
}

.notice-pin {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #b02a2a);
    box-shadow: 0 3px 5px rgba(0,0,0,0.5);
    z-index: 3;
}

.notice-paper {
    background: #fffdf5;
    padding: 25px 22px;
    border-radius: 2px;
    transform: rotate(-1.2deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
    position: relative;
}

.notice-paper-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 2px;
}
.notice-paper-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-date {
    display: inline-block;
    background: #f0e6d2;
    color: #6b4423;
    font-weight: bold;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.notice-heading {
    color: #1a1a4d;
    font-weight: 700;
    margin-bottom: 12px;
}

.notice-body {
    color: #444;
    text-align: left;
    line-height: 1.7;
    font-family: 'Segoe UI', sans-serif;
}

/*Gallery cover images: always fill their box, regardless of the uploaded photo's size/orientation -->*/

.gallery-cover-box {
    position: relative;
    flex: 1 1 auto;   /* grow to fill all remaining space in the card */
    min-height: 220px; /* fallback size when there's no extra space to stretch into */
    overflow: hidden;
}
.gallery-cover-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
 