/* Banner Layout - 70% Video, 30% Content */
/* Banner */
.banner {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 600px;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.banner h1 {
    position: relative;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: justify;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
   
    padding: 20px;
}

.banner-content h1 {
    text-align: center;
}

/* Mobile: Move content below video */
@media (max-width: 768px) {
    .banner {
        height: auto;
        /* Adjust height dynamically */
        width: 100vw;
        display: flex;
        flex-direction: column;
        /* Stack video and content */
    }
.cdc-banner{
    height: 450px;
        /* Adjust height dynamically */
        width: 100vw;
        display: flex;
        flex-direction: column;
        /* Stack video and content */
}
    .banner-video {
        height: 60vh;
        /* Set video height to half screen */
    }
    .banner img{
        height: 450px;
        width: 100vw;
        display: flex;
        flex-direction: column;
    }

    .banner-content {
        position: relative;
        /* Removes absolute positioning */
        top: unset;
        left: unset;
        transform: none;
        width: 100%;
        /* Full width */
        text-align: justify;
        /* Center text for better readability */
        background-color: #1a464a;
        /* Remove background on mobile */
        padding: 20px;
    }
}
 /* Dropdown Background and Text Color */
  .dropdown-menu {
    background-color: #7ED4EC !important;
  }
  .dropdown-menu .dropdown-item {
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
    transition: color 0.3s ease-in-out;
    color: black;
}

  .dropdown-menu .dropdown-item {
    color: black !important;
  }

  /* Hover Effect */
  .dropdown-menu .dropdown-item:hover {
    background-color: white !important;
    color: black !important;
  }

  /* Show dropdown on hover for desktop */
  @media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
      display: block;
    }
  }

/* Section Wrapper */
.section-wrapper {
    width: 100%;
    height: 80vh;
    /* Keeps image fixed */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Image */
.section-wrapper::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('uploads/problem.jpg') no-repeat center center/cover;
    z-index: -1;
}

/* Content Container */
.content-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Puts elements on left & right */
    align-items: center;
    padding: 0 10%;
}

/* Problem & Solution Box */
.info-box {
    width: 20%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7); /* Dark transparent background */
    color: white;
    border-radius: 10px;
    text-align: center;
    position: relative;
    border: 3px solid yellow; /* Inner yellow border */
    outline: 3px solid white; /* Outer white border */
    outline-offset: 7px; /* Space between yellow and white border */
}

/* Highlighted Title */
.info-box h3 {
    color: #FFD700;
    /* Gold color */
    margin-bottom: 10px;
}

/* Light bulb icon */
.info-box::before {
    content: "💡"; /* Unicode for light bulb icon */
    font-size: 24px;
    font-weight: 900;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    padding: 5px;
    border-radius: 50%;
    color: yellow;
}

/* Responsive - Move content below image in mobile view */
@media (max-width: 768px) {
    .section-wrapper {
        height: 70vh;
        /* Let content determine height */
        display: block;
    }

    .section-wrapper::before {
        position: relative;
        /* Remove fixed positioning */
        height: 70vh;
        /* Reduce image height */
    }

    .content-container {
        flex-direction: column;
        height: auto;
    }

    .info-box {
        margin: 50px;
        width: 90%;
        justify-content: space-between;
    }
}

.highlight {
    background-color: #EEE30D;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.card-custom {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.circle-one {
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #ffeb3b;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.circle img.icon {
    width: 180px;
    /* Adjust as needed */
    height: 180px;
    object-fit: contain;
    border-radius: 50%;
    /* If you want it circular */
}

.card-title {
    font-weight: bold;
    font-size: 18px;
}

.competition-section .intra-highlight {
    background-color: #ffeb3b;
    padding: 10px;
    width: fit-content;
    margin: 10px auto;
    border-radius: 5px;
    font-weight: bold;
}

.competition-section .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.competition-section .card-custom {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.competition-section .card-title {
    font-weight: bold;
    font-size: 18px;
}

.competition-section .icon {
    font-size: 30px;
    color: #ffcc00;
}

/* Custom Navbar Styling */
.navbar-custom {
    background-color: #7ED4EC;
    /* Yellow Theme Color */
}

.navbar-custom .nav-link {
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
    transition: color 0.3s ease-in-out;
    color: black;
}

.navbar-custom .nav-link:hover {
    color: #ffffff !important;
    /* Light Blue Hover Effect */
}

.nav-logo {
    font-size: 36px;
    font-weight: bolder;
    text-decoration: none;
    color: #ffffff !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-color: #ffffff;
    border-radius: 3px;
}

/* partner school */
.left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card {
    transition: 0.2s;
    flex-grow: 1;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.card-body {
    text-align: center;
}

.card:hover {
    transform: scale(1.03);
}

/* Section Styling */
.career-town-section {
    width: 100%;
    background-color: #fff;
    padding: 20px 15px;
    text-align: center;
    border: 20px solid #7ED4EC;
    /* Dark red border */
    border-radius: 15px;
    /* Rounded edges */
    margin: 40px 10px;
    /* Spacing around section */
    max-width: 98%;
    /* Responsive width */
}

/* Cards Styling */
.step-card {
    position: relative;
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.8s ease-in-out, opacity 0.9s ease-in-out;
    min-height: 380px;
    /* Ensures uniform height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    /* Initially hidden */
    transform: translateY(30px);
}

.step-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Yellow Circle */
.step-circle {
    width: 90px;
    height: 90px;
    background-color: #FFD700;
    color: black;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
}

/* Black Curve */
.step-card::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 50px;
    background: black;
    border-radius: 50%;
}

/* General Section Styling */
.custom-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    /* 3/4 Width */
    margin: 30px auto;
    padding: 10px;
    background: #f0e7e7;
    /* Light Background */
    border: 15px solid #EEE30D;
    /* Premium Dark Red Border */
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

/* Content Styling */
.content {
    width: 60%;
    padding: 10px;
    text-align: left;
    /* Align text properly */
}

/* Image Styling */
.image-container {
    width: 50%;
    display: flex;
    justify-content: center;
}

.image-container img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    /* Circular Image */
    border: 4px solid #7ED4EC;
    /* Premium Border */
}

/* Reverse Section (Image Right, Content Left) */
.reverse {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-section {
        flex-direction: column;
        text-align: center;
        width: 90%;
        /* Full Width on Small Screens */
    }

    .content,
    .image-container {
        width: 100%;
    }

    .image-container img {
        width: 200px;
        height: 200px;
    }

    .content {
        text-align: center;
    }

    .card {
        margin-top: 10px;
    }
}

/* 8 cards styling */
.section-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.logo {
    width: 50px;
    /* Adjust as per your logo size */
    height: auto;
}

/* Card Styling */
.custom-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    height: 200px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
}

.custom-card h3 {
    font-size: 3rem;
    font-weight: bold;
    opacity: 0.5;
    transition: 0.3s;
}

.custom-card p {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    transition: 0.3s;
}

.custom-card .corner-color {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-bottom-left-radius: 80px;
    transition: 0.4s ease-in-out;
    z-index: 0;
}

.custom-card .content {
    position: relative;
    z-index: 2;
}

/* Hover Effect */
.custom-card:hover {
    background: var(--hover-color);
    transform: translateY(-5px);
}

.custom-card:hover .corner-color {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.custom-card:hover h3,
.custom-card:hover p {
    color: white;
    opacity: 1;
}

/* Color Variables */
.card-1 {
    --hover-color: #55c3a8;
}

.card-2 {
    --hover-color: #2d73b6;
}

.card-3 {
    --hover-color: #d9534f;
}

.card-4 {
    --hover-color: #83c441;
}

.card-5 {
    --hover-color: #c6a947;
}

.card-6 {
    --hover-color: #cf5fdb;
}

.card-7 {
    --hover-color: #f09a37;
}

.card-8 {
    --hover-color: rgb(213, 26, 138);
}

/* Responsive */
@media (max-width: 768px) {
    .section-heading {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-top: 10px;
    }
}