/********** Template CSS **********/
:root {
    --primary: #D20103;
    --secondary:#012340;
    --light: #F3F6F8;
    --dark: #1e2a59;
     --white: #ffffff;
     --success: #27AE60;      /* Green */
    --warning: #F39C12;      /* Orange */
    --info: #17A2B8;         /* Teal */
    --emergency: #D20103;    /* Emergency Red */
    --helpline: #27AE60;     /* Helpline Green */
    --shebox-purple: #9370DB; /* SHe-Box Purple */
    --light-primary: rgba(44, 62, 80, 0.1);
    --light-secondary: rgba(231, 76, 60, 0.1);
    --light-accent: rgba(52, 152, 219, 0.1);
    --light-emergency: rgba(210, 1, 3, 0.1);
    --light-shebox: rgba(147, 112, 219, 0.1);
     --primary-light: rgba(210, 1, 3, 0.1);
    --primary-dark: rgba(210, 1, 3, 0.8);
    --dark-light: rgba(30, 42, 89, 0.1);
    --gradient: linear-gradient(135deg, #D20103 0%, #1e2a59 100%);
    --shadow-sm: 0 2px 8px rgba(30, 42, 89, 0.1);
    --shadow-md: 0 4px 20px rgba(30, 42, 89, 0.15);
    --shadow-lg: 0 8px 40px rgba(30, 42, 89, 0.2);
   font-family: 'Times New Roman', Courier, monospace;
   font-size: 16px;
}
  
            
 h1, h2, h3, h4, h5, h6,
        .h1, .h2, .h3, .h4, .h5, .h6 {
            color: var(--primary) !important;
        }
.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;
}

/*Heading*/
h1,h2,h3,h4,h5,h6 {
    color:var(--primary);
}
/*** 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;
}

//* Custom Styles */
    .navbar {
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: auto;
        width: 100%;
        max-width: 200px;
        transition: transform 0.3s ease;
    }
    
    .navbar-brand:hover img {
        transform: scale(1.05);
    }
    
    .nav-link {
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.5rem 1rem !important;
        color: #333 !important;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover, 
    .nav-link:focus,
    .dropdown-item:hover {
        color: #D20103 !important;
    }
    
    /* Dropdown Styles */
    .dropdown-menu {
        border: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        border-radius: 8px;
        padding: 0.5rem 0;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .dropdown-item:hover {
        background-color: rgba(210, 1, 3, 0.1);
    }
    
    /* Submenu Styles - Desktop */
    @media (min-width: 992px) {
        .dropdown-submenu {
            position: relative;
        }
        
        .dropdown-submenu > .dropdown-menu {
            position: absolute;
            top: 0;
            left: 100%;
            margin-top: -0.5rem;
            margin-left: 0.1rem;
            display: none;
        }
        
        .dropdown-submenu:hover > .dropdown-menu {
            display: block;
        }
        
        .dropdown-submenu > .dropdown-toggle::after {
            content: "›";
            border: none;
            font-size: 1.2rem;
            font-weight: bold;
            vertical-align: middle;
            margin-left: 0.5rem;
        }
    }
    
    /* Mobile Styles */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            max-height: 80vh;
            overflow-y: auto;
            padding: 1rem 0;
        }
        
        /* Simple dropdown styling for mobile */
        .dropdown-menu {
            border: none;
            box-shadow: none;
            padding-left: 1.5rem;
            margin: 0;
            background: transparent;
            position: static !important;
            transform: none !important;
            border-left: 2px solid #dee2e6;
        }
        
        /* Remove hover effects on mobile */
        .dropdown-submenu:hover > .dropdown-menu {
            display: none;
        }
        
        .dropdown-submenu > .dropdown-menu {
            margin-left: 1rem !important;
            border-left: 2px solid #dee2e6;
            position: static !important;
            transform: none !important;
            background: rgba(255,255,255,0.5);
        }
        
        /* Adjust arrow for submenu on mobile */
        .dropdown-submenu > .dropdown-toggle::after {
            content: "▼";
            border: none;
            font-size: 0.8rem;
            vertical-align: middle;
            margin-left: 0.5rem;
        }
        
        /* Better touch targets */
        .dropdown-item {
            padding: 0.75rem 1rem;
        }
        
        /* Active state */
        .nav-item.active .nav-link {
            color: #D20103 !important;
            font-weight: 600;
        }
    }
    
    /* Mobile menu button */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    /* CTA Button */
    .cta-btn {
        background: linear-gradient(135deg, #D20103 0%, #b80102 100%);
        border: none;
        border-radius: 6px;
        font-weight: 600;
        transition: all 0.3s ease;
        color: white !important;
        text-align: center;
        display: inline-block;
    }
    
    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(210, 1, 3, 0.3);
        color: white !important;
    }
    
    @media (max-width: 991.98px) {
        .cta-btn {
            margin: 1rem 0;
            width: 100%;
        }
    }

/*** 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, .40);
    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/mainslider/slider1.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/mainslider/slider11.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);
}
 .text1 {
        font-size: 20px;
        font-weight: 600px;
        color:black;
        text-align: justify;
    }
    .text2 {
        font-size: 14px;
        text-align: justify;
        color:black;
    }
 .modal-content {
            border-radius: 15px; /* Rounded modal content */
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }
        .modal-header {
            background-color: var(--primary);
            border-bottom: 1px solid var(--primary);
            border-top-left-radius: 15px;
            border-top-right-radius: 15px;
            padding: 15px 20px;
        }
        .modal-title {
            font-weight: 700;
            color: var(--light);
        }
        .modal-body {
            padding: 20px;
            color: #495057;
        }
        .modal-footer {
            border-top: 1px solid var(--primary);
            padding: 15px 20px;
            border-bottom-left-radius: 15px;
            border-bottom-right-radius: 15px;
            background-color:var(--primary);
        }
    
            .custom-image-size {
            max-width: 200px;
            max-height: 150px;
            object-fit: cover;
            border-radius: 0.5rem; /* Add rounded corners to the image */
        
        }
        .custom-image-footer {
            max-width: 800px;
            max-height: 400px;
            object-fit: cover;
            border-radius: 0.5rem; /* Add rounded corners to the image */
        
        }
        .custom-list {
            list-style: none; /* Remove default bullet points */
            padding-left: 0;
            margin: 0;
        }

        .custom-list li {
            position: relative;
            padding-left: 2.5rem; /* Space for the icon */
            margin-bottom: 1rem;
            color: #495057;
            font-size: 1.1rem;
        }

        .custom-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1.5rem;
            height: 1.5rem;
            background-color: var(--primary); /* A nice primary blue color */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .custom-list li::after {
            content: '✓'; /* Unicode for a checkmark */
            position: absolute;
            left: 0;
            top: 50%;
            transform: translate(0, -50%);
            font-size: 1.1rem;
            color: white;
            font-weight: bold;
            width: 1.5rem;
            text-align: center;
        }
    
