 .college-header {
        background-image: url('/static/img/grade10.jpeg'); 
        background-position: 0% 65%;
        background-size: cover;
        background-repeat: no-repeat;
        height: 500px;
        grid-area: header;
    }

    .college-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(94, 94, 94, 0.4));
        height: 100%;
        width: 100%;
    }

    .college-overlay h1 {
        font-family: "Poppins", sans !important;
    }

    #grid-template {
        display: grid;
        min-height: 70vh;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "header header"
            "sidebar main"
            "foot foot";
    }

    #foot {
        grid-area: foot;
    }

    #course-sidebar {
        grid-area: sidebar;
        width: 30vw;
        align-self: stretch;
        display: flex;
    }

    .course-main {
        grid-area: main;
        padding: 20px;
        width: 50vw;
    }

    #course-sidebar li.active {
        font-weight: bold;
        color: #0d6efd;
    }

    .career-list {
        columns: 2;
        column-gap: 40px;
        padding-left: 20px;
    }

    #course-sidebar li {
        padding: 10px;
    }

    .career-list li {
        break-inside: avoid;
        margin-bottom: 10px;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .swiper-button-next,
    .swiper-button-prev {
        color: #0d6efd;
    }

    .swiper-pagination-bullet-active {
        background-color: #0d6efd;
    }

    hr {
        display: block;
    }

    #skills_to_learn img {
        height: auto; 
        max-width: 600px; 
        object-fit: contain;
    }

    #description img {
        height: 500px; 
        max-width: 100%; 
        object-fit: contain;
    }

    /* === Responsive Adjustments === */
    @media (max-width: 1040px) {
        #grid-template {
            grid-template-columns: 1fr;
            grid-template-areas:
                "header"
                "main"
                "foot";
            max-width: 100vw;
        }

        #course-sidebar {
            display: none;
        }

        .college-header {
            height: 350px;
            background-position: center 50%;
        }

        .college-overlay h1 {
            font-size: 2.2rem;
            max-width: 80%;
        }

        .course-main {
            width: 100%;
        }

        #skills_to_learn img {
            height: auto; 
            max-width: 90%; 
            object-fit: contain;
        }
        
        #description img {
            height: 300px; 
            max-width: 100%; 
            object-fit: cover;
        }
    }

    @media (max-width: 768px) {
        .college-header {
            height: 300px;
        }

        .college-overlay h1 {
            font-size: 1.8rem;
            max-width: 90%;
        }

        .swiper-slide {
            width: 80% !important;
        }

        .career-list {
            columns: 1;
            column-gap: 0;
        }
    }

    @media (max-width: 576px) {
        .college-header {
            height: 250px;
        }

        .college-overlay h1 {
            font-size: 1.6rem;
            max-width: 95%;
        }

        .swiper-slide {
            width: 90% !important;
        }

        .scroll-section p,
        .career-list li {
            font-size: 0.9rem;
        }
    }

      /* Size & ensure full coverage */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      width: 50px;
      height: 50px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }

    /* Prev arrow: centered, even polygon */
    .carousel-control-prev-icon {
      background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpolygon%20fill='%23447996'%20points='10,8%205,3%206,3%2011,8%206,13%205,13'/%3E%3C%2Fsvg%3E");
      transform: rotate(180deg);
    }

    /* Next arrow: same shape, just rotated 180° */
    .carousel-control-next-icon {
      background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpolygon%20fill='%23447996'%20points='10,8%205,3%206,3%2011,8%206,13%205,13'/%3E%3C%2Fsvg%3E");
    }

    /* 1. Remove inline width on .carousel-inner and make it fluid */
    #admissionCarousel .carousel-inner {
      max-width: clamp(85%, 85%, 100%);
      margin: 0 auto;
      padding: clamp(1rem, 2vw, 3rem) !important;
    }

    /* 2. Scale the slide titles & text responsively */
    #admissionCarousel h4 {
      font-size: clamp(1.3rem, 3vw, 1.6rem);
    }
    #admissionCarousel p,
    #admissionCarousel li {
      font-size: clamp(1rem, 2.5vw, 1.3rem);
    }

    /* 3. Ensure the two-column layout stacks nicely on small screens */
    @media (max-width: 768px) {
      #admissionCarousel .carousel-inner {
        width: 100%;
        padding: clamp(0.5rem, 3vw, 1.5rem) !important;
      }

      #admissionCarousel .row {
        flex-direction: column;
      }
      #admissionCarousel .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
      }
    }

    /* 4. Tighten up spacing on mobiles */
    @media (max-width: 576px) {
      #admissionCarousel .carousel-inner {
        width: 100%;
        padding: clamp(0.5rem, 3vw, 1.5rem) !important;
      }
      .carousel-control-prev-icon,
      .carousel-control-next-icon {
        width: 30px;
        height: 30px;
      }
    }