/* =========================================================
   DISHA COMPUTER EDUCATION
   PREMIUM COURSES PAGE
   RED / BLACK IT THEME
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.78)),
        url("https://wallpapers.com/images/hd/hacker-pictures-rn0sz3j1k4s3dnhs.jpg") center/cover fixed no-repeat;
    color: #fff;
    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.main-navbar {
    width: 100%;
    min-height: 72px;
    padding: 12px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(5, 5, 8, .88);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 0, 55, .35);

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow:
        0 5px 30px rgba(0,0,0,.5),
        0 0 30px rgba(255,0,50,.08);
}


.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .5px;

    color: #fff;

    text-shadow:
        0 0 8px rgba(255,0,60,.7),
        0 0 25px rgba(255,0,60,.35);
}


.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: .3s ease;
}

.nav-links a:hover {
    color: #ff1744;
    text-shadow: 0 0 12px rgba(255,0,60,.8);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown-menu {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);

    width: 230px;
    padding: 10px;

    background: rgba(10,10,14,.97);
    border: 1px solid rgba(255,0,55,.5);
    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.7),
        0 0 30px rgba(255,0,55,.18);

    opacity: 0;
    visibility: hidden;

    transition: .35s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 9px;
    margin: 3px 0;
    color: #eee;
}

.dropdown-menu a:hover {
    background: linear-gradient(
        90deg,
        rgba(255,0,55,.2),
        rgba(255,0,55,.05)
    );

    color: #ff3157;
    padding-left: 18px;
}


/* =========================================================
   NAV BUTTONS
   ========================================================= */

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-buttons a {
    text-decoration: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    transition: .3s ease;
}

.student-btn {
    background: linear-gradient(135deg,#ff1744,#ff4d6d);
}

.login-btn {
    background: linear-gradient(135deg,#b00020,#ff1744);
}

.nav-buttons a:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 25px rgba(255,0,55,.35);
}


/* =========================================================
   HERO
   ========================================================= */

.courses-hero {
    position: relative;
    text-align: center;

    padding: 95px 20px 70px;

    overflow: hidden;
}


.hero-glow {
    position: absolute;
    width: 450px;
    height: 450px;

    left: 50%;
    top: 20px;

    transform: translateX(-50%);

    background: radial-gradient(
        circle,
        rgba(255,0,55,.20),
        transparent 68%
    );

    filter: blur(20px);

    animation: heroPulse 4s infinite alternate;
}


@keyframes heroPulse {
    from {
        transform: translateX(-50%) scale(.85);
        opacity: .5;
    }

    to {
        transform: translateX(-50%) scale(1.15);
        opacity: 1;
    }
}


.hero-badge {
    position: relative;

    display: inline-block;

    padding: 9px 18px;

    border: 1px solid #ff1744;
    border-radius: 30px;

    color: #ff3157;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;

    background: rgba(255,0,55,.08);

    box-shadow:
        0 0 20px rgba(255,0,55,.15);

    animation: badgeGlow 2s infinite alternate;
}


@keyframes badgeGlow {
    from {
        box-shadow: 0 0 8px rgba(255,0,55,.15);
    }

    to {
        box-shadow: 0 0 25px rgba(255,0,55,.5);
    }
}


.courses-hero h1 {
    position: relative;

    margin: 22px 0 12px;

    font-size: clamp(38px, 5vw, 70px);
    font-weight: 950;
    line-height: 1.05;
}


.courses-hero h1 span {
    color: #ff1744;

    text-shadow:
        0 0 10px rgba(255,0,55,.8),
        0 0 30px rgba(255,0,55,.35);
}


.courses-hero p {
    position: relative;

    max-width: 700px;
    margin: auto;

    color: #bbb;
    line-height: 1.7;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.courses-section {
    width: 92%;
    max-width: 1400px;
    margin: auto;
    padding: 50px 0 80px;
}


.section-heading {
    text-align: center;
    margin-bottom: 45px;
}


.section-heading > span {
    color: #ff1744;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}


.section-heading h2 {
    margin: 12px 0;

    font-size: clamp(30px,4vw,48px);
}


.section-heading h2 strong {
    color: #ff1744;

    text-shadow:
        0 0 15px rgba(255,0,55,.45);
}


.section-heading p {
    color: #aaa;
}


/* =========================================================
   COURSES GRID
   ========================================================= */

.courses-grid {

    width: 100%;

    display: grid;

    /*
       DESKTOP:
       4 COURSES IN ONE ROW
    */
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;

    align-items: stretch;
}


/* =========================================================
   COURSE CARD
   ========================================================= */

.course-card {

    position: relative;

    min-height: 390px;

    padding: 27px 24px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(35,5,12,.96),
            rgba(10,7,10,.94)
        );

    border: 1px solid rgba(255,0,55,.38);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(0,0,0,.45),
        inset 0 0 30px rgba(255,0,55,.025);

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        border-color .35s ease,
        box-shadow .35s ease;
}


/* animated light */

.course-card::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -90px;
    right: -90px;

    background: radial-gradient(
        circle,
        rgba(255,0,55,.28),
        transparent 70%
    );

    transition: .5s ease;
}


.course-card::after {

    content: "";

    position: absolute;

    left: -100%;
    top: 0;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.06),
            transparent
        );

    transform: skewX(-20deg);

    transition: .7s ease;
}


.course-card:hover {

    transform:
        translateY(-12px)
        scale(1.02);

    border-color: #ff1744;

    box-shadow:
        0 25px 55px rgba(0,0,0,.65),
        0 0 30px rgba(255,0,55,.22);
}


.course-card:hover::before {
    transform: scale(1.7);
}


.course-card:hover::after {
    left: 130%;
}


/* =========================================================
   ICON
   ========================================================= */

.course-icon {

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(255,0,55,.25),
            rgba(255,0,55,.05)
        );

    border: 1px solid rgba(255,0,55,.55);

    box-shadow:
        0 0 20px rgba(255,0,55,.12);

    margin-bottom: 20px;

    transition: .4s ease;
}


.course-card:hover .course-icon {

    transform:
        rotate(-7deg)
        scale(1.12);

    box-shadow:
        0 0 30px rgba(255,0,55,.4);
}


/* =========================================================
   TAG
   ========================================================= */

.course-tag {

    display: inline-block;

    width: fit-content;

    padding: 6px 11px;

    margin-bottom: 9px;

    border-radius: 20px;

    background: rgba(255,0,55,.08);

    border: 1px solid rgba(255,0,55,.28);

    color: #ff526e;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;
}


/* =========================================================
   COURSE TEXT
   ========================================================= */

.course-card h3 {

    margin: 5px 0 10px;

    font-size: 24px;

    color: #fff;

    line-height: 1.15;
}


.course-card p {

    color: #aaa;

    font-size: 13px;

    line-height: 1.65;

    margin: 0 0 18px;
}


/* =========================================================
   COURSE INFO
   ========================================================= */

.course-info {

    display: flex;
    flex-direction: column;

    gap: 9px;

    margin-bottom: 22px;
}


.course-info span {

    padding: 9px 11px;

    border-radius: 9px;

    background: rgba(255,255,255,.035);

    border-left: 2px solid #ff1744;

    color: #c7c7c7;

    font-size: 11px;

    transition: .3s ease;
}


.course-card:hover .course-info span {
    background: rgba(255,0,55,.06);
    color: #fff;
}


/* =========================================================
   APPLY BUTTON
   ========================================================= */

.apply-btn {

    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;

    padding: 13px 16px;

    border-radius: 30px;

    text-decoration: none;

    color: #fff;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .5px;

    background:
        linear-gradient(
            135deg,
            #d90429,
            #ff1744,
            #ff4d6d
        );

    box-shadow:
        0 8px 20px rgba(255,0,55,.22);

    transition: .35s ease;
}


.apply-btn span {
    font-size: 18px;
    transition: .3s ease;
}


.apply-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(255,0,55,.45);
}


.apply-btn:hover span {
    transform: translateX(6px);
}


/* =========================================================
   CTA
   ========================================================= */

.courses-cta {

    width: 92%;
    max-width: 1400px;

    margin: 20px auto 80px;

    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border-radius: 24px;

    background:
        linear-gradient(
            120deg,
            rgba(100,0,20,.75),
            rgba(20,5,10,.9)
        );

    border: 1px solid rgba(255,0,55,.45);

    box-shadow:
        0 20px 60px rgba(0,0,0,.5),
        0 0 35px rgba(255,0,55,.08);
}


.courses-cta > div span {
    color: #ff3157;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}


.courses-cta h2 {
    margin: 10px 0;

    font-size: 32px;
}


.courses-cta h2 strong {
    color: #ff1744;
}


.courses-cta p {
    color: #aaa;
}


.cta-apply-btn {

    flex-shrink: 0;

    padding: 15px 25px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #d90429,
            #ff1744
        );

    color: #fff;

    text-decoration: none;

    font-weight: 900;

    box-shadow:
        0 10px 30px rgba(255,0,55,.25);

    transition: .3s ease;
}


.cta-apply-btn:hover {

    transform: translateY(-4px) scale(1.03);

    box-shadow:
        0 15px 40px rgba(255,0,55,.45);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    padding: 25px;

    text-align: center;

    border-top: 1px solid rgba(255,0,55,.15);

    color: #777;

    font-size: 13px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .courses-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .nav-links {
        gap: 13px;
    }

    .nav-buttons a {
        padding: 9px 12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .main-navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-buttons {
        display: none;
    }

    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }

    .courses-cta {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 550px) {

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .courses-section {
        width: 90%;
    }

    .course-card {
        min-height: auto;
    }

    .courses-hero {
        padding-top: 70px;
    }

    .courses-hero h1 {
        font-size: 40px;
    }

    .courses-cta {
        padding: 28px 20px;
    }

    .courses-cta h2 {
        font-size: 27px;
    }
}
/* =========================================================
   COURSE DETAILS BUTTON
========================================================= */

.details-btn {

    width: 100%;

    min-height: 48px;

    margin-top: 14px;

    padding: 13px 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    position: relative;

    overflow: hidden;

    border-radius: 12px;

    text-decoration: none;

    color: #ff3b5f;

    background:
        rgba(255, 23, 68, 0.07);

    border:
        1px solid
        rgba(255, 23, 68, 0.45);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    transition:
        .35s ease;

    box-shadow:
        0 0 0
        rgba(255, 23, 68, 0);

}


/* =========================================================
   SHINE EFFECT
========================================================= */

.details-btn::before {

    content: "";

    position: absolute;

    top: 0;

    left: -120%;

    width: 70%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.18),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        .6s ease;

}


/* =========================================================
   ARROW
========================================================= */

.details-btn span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition:
        .35s ease;

}


/* =========================================================
   HOVER
========================================================= */

.details-btn:hover {

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #b00020,
            #ff1744
        );

    border-color:
        #ff1744;

    transform:
        translateY(-3px);

    box-shadow:

        0 8px 25px
        rgba(255, 23, 68, .35),

        0 0 25px
        rgba(255, 23, 68, .18);

}


.details-btn:hover::before {

    left: 140%;

}


.details-btn:hover span {

    transform:
        translateX(5px);

}


/* =========================================================
   CLICK EFFECT
========================================================= */

.details-btn:active {

    transform:
        translateY(0)
        scale(.97);

    box-shadow:
        0 3px 10px
        rgba(255, 23, 68, .25);

}


/* =========================================================
   APPLY ONLINE BUTTON
   दोनों buttons के बीच proper spacing
========================================================= */

.details-btn + .apply-btn {

    margin-top: 10px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .details-btn {

        min-height: 46px;

        padding: 12px 15px;

        font-size: 10px;

    }

}
