﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    /*  position: relative;
  min-height: 100%;*/
}

body {
    /*  margin-bottom: 60px;*/
}
/*li :hover{
    text-decoration-line:underline;
}*/
/* Enable dropdown on hover */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Optional: prevent jump on hover */
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    font-size: 1rem; /* Adjust font size */
    font-weight: 500; /* Slightly bolder */
    color: #333 !important; /* Darker text */
}

    .navbar-nav .nav-link:hover {
        color: #ff6a00 !important; /* Primary color on hover (you can customize) */
        /*                    text-decoration-line: underline;*/
    }

/* Hover dropdown */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern dropdown look */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

    .dropdown-item:hover {
        background-color: #f0f0f5;
        color: #0d6efd;
    }












.carousel-caption {
    /*    background: rgba(0, 0, 0, 0.6);*/
    border-radius: 1rem;
    padding: 2rem;
}

.object-fit-cover {
    object-fit: cover;
}

.animate-slide {
    animation: zoomIn 1s ease;
}

.animate-fade {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}



.course-section {
    background: #0A0A0A;
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

    .course-section .bg-img {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        background-size: cover;
        background-position: center;
        opacity: 0.15;
        z-index: 0;
    }

.course-content {
    position: relative;
    z-index: 1;
    background: #1B1B1B;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.course-section h2, .course-section h5 {
    color: #fff;
}

.course-section ul li {
    margin-bottom: 0.5rem;
}

.course-section a.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}



#videoCarousel .carousel-control-prev,
#videoCarousel .carousel-control-next {
    top: 35%;
    transform: translateY(-50%);
    width: 5%; /* Optional: Adjust width if needed */
}

#videoCarousel .carousel-control-prev-icon,
#videoCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Adds contrast */
    border-radius: 50%;
    padding: 15px;
}



.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.course-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    color: #fff;
}

.course-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 2rem;
    border-radius: 1rem;
}




/*<style >*/
html, body {
    overflow-x: hidden;
}

.custom-card {
    height: 490px !important;
    transition: transform 0.3s ease;
    will-change: transform;
    transform-origin: center;
    background-size: cover;
    background-position: center;
}

    .custom-card:hover {
        transform: scale(1.02);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
    }

    .custom-card .card-body {
        background-color: rgba(0, 0, 0, 0.5);
        padding: 2rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
        animation: fadeIn 0.6s ease-in-out;
    }

    .custom-card h3 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        margin-top: 2rem !important;
        animation: slideDown 0.6s ease;
    }

    .custom-card h4 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1rem;
        animation: slideDown 0.7s ease;
    }

    .custom-card p {
        font-size: 1rem;
        line-height: 1.5;
        /*        margin-bottom: auto;*/
        animation: fadeIn 0.8s ease;
    }

    .custom-card .btn {
        font-size: 0.75rem;
        /*        padding: 0.4rem 0.75rem;*/
        margin-top: 1.5rem;
        */
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .custom-card {
        height: auto;
    }

        .custom-card h3 {
            font-size: 1.5rem;
        }

        .custom-card h4 {
            font-size: 1.1rem;
        }

        .custom-card p {
            font-size: 0.95rem;
        }
}
/*
</style >*/


/*<style >*/
/* Hover Effects for Course Content */
.course-section {
/*    transition: all 0.3s ease-in-out;*/
}

    .course-section:hover {
/*        transform: scale(1.02);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);*/
    }

.course-btn {
    transition: all 0.3s ease;
}

    .course-btn:hover {
        background-color: #ff9800;
        color: white;
        transform: translateY(-5px);
    }

.course-img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .course-img:hover {
        transform: scale(1.05);
        filter: brightness(0.85);
    }

/* Background Image Hover Effects */
.course-section .bg-img {
    background-size: cover;
    background-position: center;
/*    transition: filter 0.3s ease-in-out;*/
}

.course-section:hover .bg-img {
/*    filter: blur(5px);*/
}

/* Adjustments to text and spacing */
.course-section .fw-bold {
    font-weight: 700;
}

.course-section ul li {
    line-height: 1.8;
}
/*card:hover*/
.card:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.shadow-hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

    .shadow-hover:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
    }

.play-icon {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.9;
}

.shadow-hover:hover .play-icon {
    transform: scale(1.15);
    opacity: 1;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out both;
}

.form-container:hover {
    background-color: rgba(0, 0, 0, 0.65) !important;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.4);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.nav-btn {
    transition: all 0.3s ease-in-out;
    border-width: 2px; /* Ensures the outline is visible */
    box-shadow: none;
    color: #343a40; /* Dark text color */
}

    .nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        background-color: #343a40; /* Dark background on hover */
        color: white !important; /* Change text color on hover to white */
        border-color: #343a40; /* Keep border color the same */
    }


.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.card-body img {
    transition: transform 0.3s ease;
}

    .card-body img:hover {
        transform: scale(1.05);
    }

.card-header {
    border-bottom: 2px solid #fff;
}

.card-body p {
    font-weight: 600;
    color: #f8f9fa;
}

.form-control {
    border: 1px solid #ddd;
}

    .form-control:focus {
        border-color: #ff6a00;
        box-shadow: 0 0 5px rgba(255, 106, 0, 0.5);
    }

/* Card shadow effect */
.shadow-lg {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Smaller Screens */
@media (max-width: 992px) {
    .col-md-5 {
        width: 90%;
        margin: 0 auto;
    }
}
/* Adjust image size slightly smaller on screens below 576px */
@media (max-width: 576px) {
    .custom-img {
        max-width: 210px; /* slightly smaller than the original 300px */
    }
}

/* Keep default size for larger screens */
.custom-img {
    max-width: 290px;
}
/*font*/
/* Global font reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base font styling */
html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: #f9f9f9;
    color: #222;
    padding: 0 1rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

/* Paragraphs */
p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Inputs & Buttons */
input, textarea, button, select {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: 0.3s;
}

    a:hover {
        text-decoration: underline;
    }

/* Make fonts responsive */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}
/* Force logo and toggle button to align in the same row on all screen sizes */
.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
}

/* Prevent logo and toggler from stacking */
.navbar .navbar-brand {
    margin-right: 0 !important;
}

/* Ensure toggle button remains visible and aligned on small screens */
.navbar-toggler {
    order: 2 !important;
    margin-left: auto !important;
}



@media (max-width: 576px) {
    .navbar .navbar-brand img {
        height: 40px; /* Slightly smaller logo */
    }

    .navbar .btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }
}
