/* =========================================
   WELCOME POPUP
========================================= */

#welcomePopup .modal-content {
    background: transparent;
}

#welcomePopup img {
    border-radius: 20px;
}

/* Darker backdrop for focus */
.modal-backdrop.show {
    opacity: 0.85;
}

/* body part */
body {
    font-family: 'Poppins', 'Gill Sans', Calibri, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.navbar .container {
    padding-left: 0px;
}

/* ✅ Navbar Styling */
.navbar {
    background-color: #07305d;
    padding: 0;
    border-bottom: solid 4px #1b1a1a;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
}


/* .navbar-brand img {
      height: 80px;
      width: auto;
      object-fit: contain;
      padding: 0;
      margin: 0;
    } */

.navbar-brand img {
    height: 100px;
    /* Set height */
    width: auto;
    /* Auto width to maintain ratio */
    display: block;
    /* Remove inline-block whitespace */
    margin: 0;
    padding: 0;
}


.navbar-nav .nav-link {
    color: white !important;
    font-size: 1rem;
    /* padding: 7px 10px; */
    padding: 8px 14px !important;
    transition: color 0.3s, background 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #f40c0c !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.social-icons-nav a {
    color: #f1f1f0;
    font-size: 1.3rem;
    padding: 5px;
    transition: 0.3s;
}

.social-icons-nav a:hover {
    color: #f40c0c;
}


.dropdown-menu {
    background-color: #041c35;
    border: none;
}

.dropdown-item {
    color: white;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffcc00;
}

/* ✅ Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    /* IMPORTANT: use height, not min-height */
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    color: white;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Background Layer */
/* .hero-bg {
      height: 100%;
      width: 100%;
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      filter: brightness(0.6);
      optional dark overlay
    }*/

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(1.3);
    /* Increase value for more brightness */
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.45); */
}


.hero-section h2,
.hero-section p {
    position: relative;
    z-index: 5;
}

/* Make carousel fill hero */
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    position: absolute;
    inset: 0;
    height: 100%;
}


/* Content stays on top */
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

/* dark overlay */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* z-index: -1; */
}

/* Hero Title */
.hero-section h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
}

/* Hero text */
.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
}

/* Hero Logo (Top-right on large screens) */
.hero-logo {
    position: absolute;
    top: 80px;
    right: 50px;
    height: 240px;
    width: auto;
    object-fit: contain;
}

/* ✨ Hero Title Animation */
.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 1.0s ease-out forwards;
    color: #ffcc00;
    font-family: 'Courier New', monospace;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* video after hero section */
.video-wrapper {
    /* border: 8px solid #f4b42a; */
    /* background-size: contain; */
    object-fit: cover;
    /* border-radius: 50%; */
    padding: 5px;
    /* background: #fff; */

}

/* cards -carousel */

/* Background with overlay */
.testimonials-section {
    background: url("https://admin.umt.edu.pk/Media/Site/UMT/FileManager/2018/topStory/pic7.jpg") center/cover no-repeat;
    position: relative;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Transparent dark overlay */
}

.testimonials-section * {
    position: relative;
    z-index: 2;
}

/* Section title decoration */
.section-title .highlight {
    color: #ffcc00;
    font-size: 32px;
    font-weight: bold;
}

/* Card */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

/* Profile image */
.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Make arrows small and move to top */
/* Make the arrows smaller & place at top-right of the card block */
.custom-carousel-btn {
    position: absolute;
    top: 10px;
    /* Move above cards */
    right: 0;
    width: 32px;
    height: 32px;
    background: #ffcc00;
    border-radius: 6px;
    z-index: 20;
    opacity: 1;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    right: 45px !important;
    /* Previous arrow */
    left: auto !important;
}

.carousel-control-next {
    right: 5px !important;
    /* Next arrow */
}

.btn-arrow {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    line-height: 0;
}

.testimonial-card {
    min-height: 220px;
}


/* ✅ Footer Section */
.footer-section {
    background-color: #0d141c;
    color: #ddd;
    font-size: 0.95rem;
    padding: 50px 0 20px 0;
}

/* logo appeared in right of the footer section */
.footer-logo {
    height: 300px;
    width: auto;
    object-fit: contain;
    margin-top: 10px;
}

.footer-section h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    margin: 5px 0;
}

.footer-section .gallery img {
    transition: transform 0.5s ease;
    cursor: pointer;
}

/* reduced the hover scale so layout doesn't break */
.footer-section .gallery img:hover {
    transform: scale(1.6);
    z-index: 5;
}

/* ✅ Social Icons */
.social-icons a {
    color: #ffcc00;
    font-size: 1 rem;
    padding: 10px;
    margin: 5px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Equal column alignment */
.footer-section .col-lg-4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

@media (max-width: 992px) {
    .hero-logo {
        height: 180px;
        right: 20px;
        top: 30px;
    }

    .hero-section h2 {
        font-size: 2.3rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {

    /* Move logo to center on small screens */
    .hero-logo {
        position: static;
        margin: 0 auto 20px;
        display: block;
        height: 160px;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        height: 130px;
    }

    .hero-section h2 {
        font-size: 1.7rem;
    }

    .footer-logo {
        height: 160px;
    }

    .footer-logo {
        height: 140px;
    }

    .footer-section .gallery img {
        width: 100%;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h5 {
        margin-top: 20px;
    }
}

/* Modal image max size */
.img-modal-inner {
    max-height: 85vh;
    object-fit: contain;
    width: 100%;
}

/* ==============================
   Academy Hero Section
============================== */

/* ==========================
   HERO SECTION
========================== */

.academy-hero {
    background-color: #b30000;
    width: 100%;
    margin: 0;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* LEFT SIDE */

.hero-left {
    flex: 1;
    min-width: 420px;
}

.academy-title {
    padding-left: 150px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 46px;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2px;
    white-space: nowrap;
}

.gold {
    color: #ffb300;
}

.affiliation {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 18px;
}

/* RIGHT SIDE */

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 600px;
}

.curve-svg {
    padding-right: 240px;
    width: 550px;
    height: auto;
    display: block;
    overflow: visible;
}

.curve-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 34px;
    fill: #ffffff;
}

.gold-small {
    fill: #ffcc33;
    font-weight: 900;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1200px) {

    .academy-title {
        font-size: 50px;
    }

    .curve-text {
        font-size: 20px;
    }

    .curve-svg {
        width: 400px;
        padding-right: 0;
    }
}

@media (max-width: 768px) {

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .academy-title {
        font-size: 38px;
        padding-left: 0;
        white-space: normal;
    }

    .hero-right {
        justify-content: center;
        min-width: 100%;
        margin-top: 30px;
    }

    .curve-svg {
        width: 100%;
        max-width: 360px;
        padding-right: 0;
    }

    .curve-text {
        font-size: 16px;
    }
}