/********** Template CSS **********/
:root {
    --primary: #921e33;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
}

.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: #FFFFFF;
}

.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 ***/
/* --- Global Reset --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}


header {
    background-color: #ffffff;
}


.header-img-left, .header-img-right {
    max-height: 120px; 
    width: auto;
    max-width: 100%;
}

/* --- Navbar Section --- */
.bg-black {
    background-color: #000000 !important;
}

/* Navbar Link Styling */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px; 
    padding: 15px 12px !important;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.show {
    color: #cccccc !important;
}

/* --- Dropdown Styling --- */
.dropdown-menu {
    border-radius: 0; 
    margin-top: 0;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.dropdown-item {
    font-size: 14px;
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #000000; 
    color: #ffffff; 
}


@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s;
    }
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Adjustments --- */
@media (max-width: 991px) {
    .header-img-left, .header-img-right {
        max-height: 75px; 
        display: block;
        margin: 0 auto; 
    }
    
    .text-start, .text-end {
        text-align: center !important; 
    }

    .navbar-nav .nav-link {
        text-align: center;
        border-bottom: 1px solid #333;
    }
}


/*** main pic ***/

.hero-header {
   
    height: 80vh;
    min-height: 400px; 
    overflow: hidden;
}

.hero-img-container {
    width: 100%;
    height: 100%;
}

.hero-img-container img {
    object-fit: cover; 
    object-position: center;
}


/*** 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, .1);
    z-index: 1;
}

#header-carousel .carousel-item img {
    height: 600px; /* CHANGE THIS value to whatever height you prefer */
    object-fit: cover; /* Important: Prevents the image from looking squashed */
}

.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: 400px;
    }

    #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: -70px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/drone.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;
}

/* --- Notice Board Styles --- */

.notice-board-wrap {
    background-color: #f0f5fa;
    border-radius: 5px;
    /* We use Flexbox here to ensure the title stays at top and list fills the rest */
    display: flex;
    flex-direction: column;
}

/* THE FIX IS HERE */
.notice-scroll-area {
    /* Set a fixed height that roughly matches your form height */
    height: 450px;       
    
    /* Ensure scrollbar appears if content is taller than 450px */
    overflow-y: auto;    
    
    /* Makes it look cleaner */
    padding-right: 10px; 
}

.notice-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.notice-title:hover {
    color: #06A3DA;
}

.notice-date {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
}

/* Scrollbar Styling */
.notice-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.notice-scroll-area::-webkit-scrollbar-track {
    background: #e9ecef; 
}
.notice-scroll-area::-webkit-scrollbar-thumb {
    background: #ced4da; 
    border-radius: 3px;
}

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



.page-header {
    background: url(/img/3.jpg) center center no-repeat;
    background-size: cover;
}