/* 
   REDUCE SIZE BY 20%
   Setting html root to 80% scales all Bootstrap 'rem' units automatically.
*/
html {
    font-size: 80%; 
}

body {
    font-family: 'Poppins', sans-serif !important;
    color: #333;
    line-height: 1.5;
}

/* Headings Line-Height Fix for Mozilla/Chrome consistency */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
}

/* NAVIGATION STYLE */
.custom_navbar {
    background: rgba(11, 11, 11, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom_navbar .nav-link {
    font-weight: 500;
    color: rgb(247, 250, 253) !important;
}

.custom_navbar .nav-link:hover, .nav-link.active {
    font-weight: 700;
    color: #ffa400 !important;
}


/* HEADER STYLE */
.mainHeader {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.35); /* Combined for Firefox */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transform: scale(1.05); 
}

.headerContainer {
    z-index: 2;
    background: rgba(15, 15, 15, 0.55);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* OFFERING SECTION */
.custom_offer_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    font-weight: 600;
    height: 160px; /* Reduced from 200px */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px;
}

/* COURSES SECTION */
.courseBox .nav-link { color: #fff; }

.courseBox .nav-tabs .nav-link.active {
    color: #0e1727 !important;
    font-weight: 800;
}

.pricing6 { background-color: #5367af; }

.custom_course_card {
    background-color: #000620;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* CERTIFICATION SECTION STYLE */
.certification {
    background-color: #ffffff;
    height: fit-content;
    padding: 4rem; /* Scaled by rem */
}

.certImage {
    box-shadow: rgba(49, 59, 68, 0.4) 6px 2px 16px 0px;
}

.cardHolder {
    width: 232px;  /* 290 * 0.8 */
    height: 240px; /* 300 * 0.8 */
    perspective: 1000px;
}

.badgeHolder {
    justify-content: center;
    gap: 64px; /* 80 * 0.8 */
}

.logo {
    display: flex;
    margin-top: 5px;
    padding-right: 20px;
    align-items: center;
    justify-content: flex-end;
  }

.card {
    height: 100%;
    border-radius: 40px; /* 50 * 0.8 */
    background: #0d0c0c;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 40px 45px rgba(0,0,0,0.2);
}

.glass, .glass_silver {
    position: absolute;
    inset: 6px; /* 8 * 0.8 */
    border-radius: 44px; /* 55 * 0.8 */
    border-top-right-radius: 100%;
    border-left: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.glass { background: linear-gradient(to right, #d19e1d, #ffd86e, #e3a812); }
.glass_silver { background: radial-gradient(at center, #DCDBDB, #707070); }

.content {
    padding: 24px 48px 0px 24px; /* Scaled */
    transform: translate3d(0, 0, 20px);
}

.content .title { font-weight: 800; font-size: 20px; } /* 25 * 0.8 */
.content .stars { font-weight: 600; font-size: 28px; } /* 35 * 0.8 */
.content .badgeid { font-weight: 300; font-size: 12px; } /* 15 * 0.8 */

.bottom {
    padding: 8px 10px;
    position: absolute;
    bottom: 4px;
    right: 25px;
    display: flex;
    transform: translate3d(0, 0, 20px);
}

.bottom .text { font-size: 10px; font-weight: 600; } /* 12 * 0.8 */

/* SCROLL ANIMATIONS */
@keyframes appear {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom_offer_card, .custom_course_card, .certHolder, .badgeHolder {
    opacity: 1; /* Fallback for Mozilla */
}

@supports (animation-timeline: view()) {
    .custom_offer_card, .custom_course_card, .certHolder, .badgeHolder {
        animation: appear linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 30%;
    }
}

/* FOOTER */
.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
}

.btn2 {
    color: whitesmoke;
    background-color: transparent;
    border: none;
    font-size: 0.9rem;
}

/* SCALE DOWN ICONS SET IN HTML */
img[height="50"] { height: 40px !important; }
img[height="40"] { height: 32px !important; }
img[height="35"] { height: 28px !important; }

/* --- RESPONSIVE OVERRIDES --- */

/* Tablet & Mobile (Below 992px) */
@media (max-width: 991.98px) {
    /* 1. Navbar Center Alignment */
    .navbar-collapse {
        text-align: center;
        background: rgba(0, 0, 0, 0.95); /* Solid background for readability */
        margin-top: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .navbar-nav {
        gap: 10px !important;
    }

    .navbar-nav .nav-item .btn {
        display: inline-block;
        margin-top: 10px;
    }

    /* 2. Hero Section Scaling */
    .display-1 {
        font-size: 3.2rem !important; /* Smaller 'Data Professional' */
        line-height: 1.1;
    }

    .mainHeader {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: auto; /* Allow content to dictate height */
    }

    /* 3. Fix Form Card Margin */
    .headerContainer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
}

/* Mobile Specific (Below 576px) */
@media (max-width: 575.98px) {
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .headerSubtitle {
        font-size: 1.2rem !important;
    }

    .offerHeadText {
        font-size: 1.5rem !important;
    }

    /* Reduce vertical padding for sections to save scroll space */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Make badges stack better */
    .badgeHolder {
        gap: 30px !important;
    }
}

/* Fix for the "Edge" span to prevent it from cutting off */
.headerSubtitle span {
    white-space: nowrap;
}