* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f8ff;
    color: #172033;
}

/* REGISTER POPUP */

#registerPopup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.65);

    justify-content: center;
    align-items: center;

    padding: 20px;
}

#registerPopup.active {
    display: flex;
}

.register-box {
    position: relative;

    background: white;

    width: 500px;
    max-width: 95%;

    max-height: 90vh;
    overflow-y: auto;

    padding: 30px;

    border-radius: 15px;

    box-sizing: border-box;
}

.register-box h2 {
    margin-top: 0;
    margin-bottom: 5px;
}

.register-box p {
    color: #666;
    margin-bottom: 20px;
}

.register-box label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 600;
}

.register-box input,
.register-box select {
    width: 100%;
    padding: 11px;

    border: 1px solid #ddd;
    border-radius: 6px;

    box-sizing: border-box;
}

.register-box input:focus,
.register-box select:focus {
    outline: none;
    border-color: #1769aa;
}

.register-box .close-btn {
    position: absolute;
    right: 15px;
    top: 12px;

    border: none;
    background: none;

    font-size: 28px;
    cursor: pointer;
}
/* ================= NAVBAR ================= */

.navbar {
    width: 100%;
    padding: 18px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #123b78;
}

.logo span {
    color: #0878e8;
}

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    text-decoration: none;
    color: #172033;
    font-weight: 600;
}

.navbar nav a:hover {
    color: #0878e8;
}

.nav-login {
    border: none;
    background: #0878e8;
    color: white;

    padding: 11px 20px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;
}

/* ================= CERTIFICATE SLIDER ================= */

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #ffffff;
}


/* =========================
   SLIDES
========================= */

.slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================
   IMAGE TRANSPARENCY
========================= */

.slide img {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.15) 12%,
        rgba(0,0,0,0.55) 30%,
        black 55%,
        black 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.15) 12%,
        rgba(0,0,0,0.55) 30%,
        black 55%,
        black 100%
    );
}


/* =========================
   OVERLAY
========================= */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.85) 25%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0) 75%
    );

    z-index: 2;
}


/* =========================
   HERO CONTENT
========================= */

.hero-content {
    position: absolute;
    z-index: 5;

    top: 50%;
    left: 8%;

    transform: translateY(-50%);

    max-width: 560px;
}

.small-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1769aa;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #111827;
}

.hero-content h1 span {
    display: block;
    color: #1769aa;
}

.hero-content > p:not(.small-title) {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 500px;
}


/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.primary-btn,
.secondary-btn {
    padding: 13px 25px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.primary-btn {
    background: #1769aa;
    color: white;
    border: 2px solid #1769aa;
}
/*
.secondary-btn {
    background: #1769aa;
    color: white;
    border: 2px solid #1769aa;
}

*/
.secondary-btn {
    background: #1769aa;
    color: white;
    border: 2px solid #1769aa;
    padding: 13px 25px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.secondary-btn:hover {
    background: #1769aa;
    border-color: #1769aa;
    color: white;
}
/* =========================
   SLIDER BUTTONS
========================= */

.slider-btn {
    position: absolute;
    z-index: 10;

    top: 50%;
    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,0.45);
    color: white;

    font-size: 24px;
    cursor: pointer;
}

 

/* =========================
   DOTS
========================= */

.slider-dots {
    position: absolute;
    z-index: 10;

    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: rgba(0,0,0,0.3);

    cursor: pointer;
}

.dot.active {
    background: #1769aa;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .hero-slider {
        height: 650px;
    }

    .hero-content {
        left: 6%;
        right: 6%;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content > p:not(.small-title) {
        font-size: 16px;
    }

    .slide img {
        object-position: 65% center;
    }

    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(255,255,255,0.96),
            rgba(255,255,255,0.65)
        );
    }

}

/* ================= SLIDER ARROWS ================= */

.slider-btn {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: rgba(20, 30, 40, 0.55);

    color: white;

    font-size: 28px;

    cursor: pointer;

    z-index: 20;

    transition: 0.3s;
}

.slider-btn:hover {
    background: #0878e8;
}

.slider-btn.prev {
    left: 25px;
}

.slider-btn.next {
    right: 25px;
}


/* ================= DOTS ================= */

.slider-dots {
    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: white;

    opacity: 0.6;

    cursor: pointer;
}

.dot.active {
    opacity: 1;
    background: #0878e8;
}


/* ================= HERO OVERLAP ================= */

.hero {
    position: relative;

    /* slider ke upar aaye */
    margin-top: -120px;

    z-index: 50;

    min-height: 620px;

    padding: 100px 8% 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(
            120deg,
            #061b3a,
            #0a4385
        );

    color: white;

    border-radius: 0;
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .certificate-slider {
        height: 420px;
    }

    .hero {
        margin-top: -70px;

        min-height: 600px;

        padding: 80px 6%;
    }

    .slider-btn {
        width: 42px;
        height: 42px;

        font-size: 20px;
    }

    .slider-btn.prev {
        left: 12px;
    }

    .slider-btn.next {
        right: 12px;
    }
}
/* ================= HERO ================= */

.hero {
    min-height: 650px;

    padding: 80px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(120deg,
        #061b3a,
        #0a4385);
    
    color: white;
}

.hero-content {
    max-width: 620px;
}

.small-title {
    color: #1d8cff;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #42a5ff;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 15px;
}

.primary-btn,
.secondary-btn {
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.primary-btn {
    background: #0878e8;
    color: white;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.hero-image {
    width: 400px;
    height: 400px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.code-box {
    width: 300px;
    height: 300px;

    border-radius: 30px;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.2);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    font-size: 38px;
}


/* ================= COURSES ================= */

.courses-section {
    padding: 90px 7%;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;
}

.section-heading > p:first-child {
    color: #0878e8;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 42px;
    margin: 12px 0;
}

.section-heading h2 span {
    color: #0878e8;
}

.section-heading p:last-child {
    color: #68758b;
}


/* COURSE GRID */

.courses-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}


/* COURSE CARD */

.course-card {
    background: white;

    border-radius: 16px;

    overflow: hidden;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(20,60,120,0.08);

    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 40px rgba(20,60,120,0.15);
}

.course-card img {
    width: 100%;
    height: 190px;

    object-fit: cover;

    display: block;
}

.course-content {
    padding: 22px;
}

.course-number {
    color: #0878e8;
    font-size: 13px;
    font-weight: bold;
}

.course-content h3 {
    font-size: 19px;
    line-height: 1.4;

    margin: 8px 0;
}

.course-content p {
    color: #68758b;
    font-size: 14px;
    margin-bottom: 10px;
}

.course-info {
    display: flex;
    justify-content: space-between;

    margin: 18px 0;

    font-size: 14px;
    font-weight: 700;
}

.course-info span:last-child {
    color: #0878e8;
}

.course-content button {
    width: 100%;

    border: none;

    background: #edf5ff;

    color: #0878e8;

    padding: 11px;

    border-radius: 7px;

    font-weight: 700;

    cursor: pointer;
}


/* ================= ABOUT ================= */

.about {
    padding: 100px 10%;

    background: white;

    text-align: center;
}

.about > div {
    max-width: 750px;
    margin: auto;
}

.about h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.about h2 span {
    color: #0878e8;
}

.about p:last-child {
    color: #68758b;
    line-height: 1.8;
}


/* ================= CONTACT ================= */

.contact {
    padding: 90px 10%;

    text-align: center;

    background: #061b3a;

    color: white;
}

.contact h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact p:last-child {
    color: #c8d7ec;
}


/* ================= COURSE POPUP ================= */

.popup-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.75);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 2000;
}

.popup-overlay.active {
    display: flex;
}

.course-popup {
    width: 900px;
    max-width: 100%;

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 18px;

    position: relative;

    display: grid;

    grid-template-columns: 45% 55%;

    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;

    min-height: 500px;

    object-fit: cover;
}

.popup-content {
    padding: 40px;
}

.close-btn {
    position: absolute;

    right: 15px;
    top: 15px;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: none;

    background: white;

    box-shadow: 0 3px 15px rgba(0,0,0,0.15);

    font-size: 25px;

    cursor: pointer;

    z-index: 5;
}

.popup-number {
    color: #0878e8;
    font-weight: bold;
}

.popup-content h2 {
    font-size: 32px;
    margin: 10px 0 25px;
}

.popup-info {
    display: flex;

    gap: 30px;

    margin-bottom: 25px;
}

.popup-info div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.popup-info small {
    color: #7c8799;
}

.popup-info strong {
    color: #0878e8;
    font-size: 18px;
}

.popup-content h3 {
    margin-bottom: 12px;
}

.popup-content ul {
    padding-left: 20px;

    line-height: 1.9;

    color: #566176;
}


.enroll-btn {
    margin-top: 30px;
    padding: 14px 28px;
    border: none;
    background: #0878e8;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}

/* ================= FLOATING LOGIN ================= */

.floating-login {
    position: fixed;

    right: 25px;
    bottom: 25px;

    background: #0878e8;

    color: white;

    border: none;

    padding: 15px 23px;

    border-radius: 50px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(8,120,232,0.35);

    z-index: 1500;
}


/* ================= LOGIN POPUP ================= */

.login-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.7);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 3000;

    padding: 20px;
}

.login-overlay.active {
    display: flex;
}

.login-box {
    width: 420px;

    max-width: 100%;

    background: white;

    padding: 40px;

    border-radius: 18px;

    position: relative;

    text-align: center;
}

.login-icon {
    font-size: 40px;

    margin-bottom: 10px;
}

.login-box h2 {
    font-size: 30px;
}

.login-box > p {
    color: #7c8799;

    margin: 8px 0 25px;
}

.login-box form {
    text-align: left;
}

.login-box label {
    display: block;

    font-size: 14px;

    font-weight: 600;

    margin: 15px 0 7px;
}

.login-box input {
    width: 100%;

    padding: 13px;

    border: 1px solid #d9e0eb;

    border-radius: 7px;

    outline: none;
}

.login-box input:focus {
    border-color: #0878e8;
}

.login-submit {
    width: 100%;

    margin-top: 22px;

    padding: 14px;

    border: none;

    background: #0878e8;

    color: white;

    border-radius: 7px;

    font-weight: 700;

    cursor: pointer;
}

.register-text a {
    color: #0878e8;

    font-weight: 700;

    text-decoration: none;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {

    .courses-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}

@media (max-width: 800px) {

    .navbar nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        padding-top: 60px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .courses-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .course-popup {
        grid-template-columns: 1fr;
    }

    .popup-image img {
        min-height: 250px;
        height: 250px;
    }

}

@media (max-width: 550px) {

    .navbar {
        padding: 15px 5%;
    }

    .logo {
        font-size: 23px;
    }

    .nav-login {
        padding: 9px 12px;
        font-size: 12px;
    }

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .courses-section {
        padding: 60px 5%;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        padding: 30px 25px;
    }

    .popup-content h2 {
        font-size: 25px;
    }

    .popup-info {
        gap: 20px;
    }

}
/* ================================
   FOOTER
================================ */

footer{
    background:#041027;

    color:#aebbd0;

    padding:60px 5% 25px;
}

.footer-grid{
    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:40px;
}

.footer-logo{
    color:white;

    font-size:23px;

    font-weight:900;

    margin-bottom:12px;
}

footer h3{
    color:white;

    margin-bottom:15px;
}

footer a,
footer p{
    display:block;

    margin:8px 0;

    font-size:14px;
    color:white;
    text-decoration: none;
}

footer a:hover{
    color:#f28c28;
}

.copyright{
    max-width:1200px;

    margin:40px auto 0;

    padding-top:20px;

    border-top:1px solid #1c2b43;

    text-align:center;

    font-size:12px;
}

.topbar{
    background:#07152f;
    color:#dce7f7;

    padding:9px 5%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:13px;
}

header{
    background:white;

    position:sticky;
    top:0;
    z-index:1000;

    box-shadow:0 5px 25px rgba(0,0,0,.08);
}

.navbar{
    min-height:78px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:25px;
    font-weight:900;
    color:#0754b8;
}

.logo span{
    color:#f28c28;
}

.logo small{
    display:block;

    font-size:8px;
    letter-spacing:3px;

    color:#7b8798;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:25px;
}

.nav-links a{
    font-size:14px;
    font-weight:700;

    transition:.3s;
}

.nav-links a:hover{
    color:#0754b8;
}


/* Floating Animation - Quick Features */

.quick {
    animation: floatingSwing 3s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes floatingSwing {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(12px);
    }

    100% {
        transform: translateY(0);
    }
}
