/* ---------- Tokens ---------- */
:root {
    --bg: #0b1020;
    --surface: #0b1020;
    --text: #eef1ff;
    --muted: #556078;
    --line: rgba(16, 24, 40, .1);
    --ph: rgba(16, 24, 40, .07);
    --accent: #007BFF;
    --accent-ink: #ffffff;
    --bar-bg: rgba(19, 26, 46, .82);
    --pill-bg: #101a3a;
    --pill-text: #f4f6ff;
    --pill-muted: #aab4d6;
    --amber: #ffc94a;
    --amber-ink: #1b1400;
    --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: inherit
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.3;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* ---------- Shared base ---------- */
.site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50
}

.site-header .inner {
    display: flex;
    align-items: center;
    gap: 10px
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.04em;
    color: inherit;
    text-decoration: none
}


.logo img {
    width: 150px;
}

/* checkbox powers the mobile menu with no JavaScript */
.toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px
}

.nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s
}

.toggle:checked~.nav {
    opacity: 1;
    visibility: visible;
    transform: none
}

.nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: background .2s, color .2s
}

.cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease
}

.cta:hover {
    transform: translateY(-1px)
}

.cta:active {
    transform: none
}

.burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer
}

.burger i,
.burger i::before,
.burger i::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--burger);
    transition: transform .25s ease, background .2s
}

.burger i {
    position: relative
}

.burger i::before,
.burger i::after {
    content: "";
    position: absolute;
    left: 0
}

.burger i::before {
    top: -6px
}

.burger i::after {
    top: 6px
}

.toggle:checked~.burger i {
    background: transparent
}

.toggle:checked~.burger i::before {
    transform: translateY(6px) rotate(45deg)
}

.toggle:checked~.burger i::after {
    transform: translateY(-6px) rotate(-45deg)
}

.site-header a:focus-visible,
.toggle:focus-visible~.burger {
    outline: 2px solid var(--focus);
    outline-offset: 2px
}

/* ---------- Variation 1: frosted bar ---------- */
.site-header--bar {
    --mark: var(--accent);
    --burger: var(--text);
    --focus: var(--accent);
    background: var(--bar-bg);
    color: var(--text);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px)
}

.site-header--bar .inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 64px;
    padding: 0 12px 0 20px
}

.site-header--bar .nav {
    padding: 8px 12px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 28px -18px rgba(16, 24, 40, .35)
}

.site-header--bar .nav a:hover,
.site-header--bar .nav a[aria-current] {
    background: var(--ph)
}

.site-header--bar .cta {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 6px 14px -6px rgba(37, 71, 245, .65)
}

/* ---------- Desktop: inline nav, hide the burger ---------- */
@media (min-width:860px) {
    .site-header .inner {
        gap: 20px
    }

    .logo {
        margin-right: 0
    }

    .site-header .nav {
        position: static;
        flex-direction: row;
        gap: 2px;
        margin-inline: auto;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none
    }

    .site-header .nav a {
        padding: 8px 14px;
        border-radius: 999px
    }

    .site-header .burger {
        display: none
    }

    .site-header .cta {
        padding: 10px 20px;
        font-size: .95rem
    }

    .site-header--bar .nav a {
        position: relative;
        color: var(--muted);
        border-radius: 8px
    }

    .site-header--bar .nav a:hover,
    .site-header--bar .nav a[aria-current] {
        background: none;
        color: var(--text)
    }

    .site-header--bar .nav a::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 2px;
        height: 2px;
        border-radius: 2px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease
    }

    .site-header--bar .nav a:hover::after,
    .site-header--bar .nav a[aria-current]::after {
        transform: scaleX(1)
    }

    .site-header--bar .inner {
        padding: 0 20px
    }

    .site-header--pill .inner {
        height: 60px;
        padding: 0 8px 0 22px
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        transition: none !important
    }
}


/* Websit Body - Hero Section */

.hero-section {
    min-height: 550px;
    background-image: url("https://devdott.com/academy/assets/images/hero-section.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 40px;
    padding-left: 50px;
}

.hero-section h1 {
    font-size: 5rem;
}

.hero-section p {
    font-size: 1.5rem;
}

.cta-container {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.cta-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: white;
    color: #0b1020;
    font-size: small;
}

/* why choose us section */
.why-us {
    display: flex;
    width: 100%;
    place-self: center;
    justify-content: space-evenly;
    background-color: #007bff21;
}

.us-container {
    display: flex;
    gap: 10px;
}

.us-container img {
    width: 30px;
}

.us-container span {
    color: #c9c9c9;
}

/* Courses section */
.course-section {
    margin-top: 50px;
    padding: 50px;
}

.course-section h2 {
    font-size: 3rem;
}

.course-section p {
    font-size: 14px;
}

.course-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-grid a {
    text-decoration: none;
    color: white;
}

.course-container {
    display: flex;
    gap: 30px;
}

.course {
    flex: 1;
    height: 300px;
    display: block;
    padding: 40px 20px 0;
    border-radius: 12px;
}

.course-icon {
    width: 40px;
}

.course a {
    text-decoration: none;
    color: white;
}

#web-dev {
    background-color: #0f0fed71;
}

#digital-marketing {
    background-color: rgba(255, 21, 196, 0.505);
}

#graphic-design {
    background-color: #23e00e69;
}

#kids-coding {
    background-color: #fe154fb3;
}

#e-commerce-mgt {
    background-color: #42035f;
}

/* summer section */
.summer-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 80px;
    margin-top: 150px;
    margin-bottom: 200px;
    gap: 50px;
}

.summer-section img {
    width: 600px;
    border-radius: 12px;
}

.holiday-special {
    color: #007BFF;
    font-weight: 700;
    font-size: 13px;
}

.summer-copy h2 {
    color: white;
    font-size: 40px;
}

.summer-copy h2 em {
    color: #007BFF
}

.summer-copy p {
    color: #c5d1e0;
    font-size: 14px;
    line-height: 1.9;
    padding-bottom: 30px;
}

.summer-button {
    background: #007BFF;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid #007BFF;
    padding: 15px;
    width: 300px;
    border-radius: 10px;
}

.summer-button:hover {
    background: #0b1020
}

/* popular section */

.popular-section {
    min-height: 600px;
    height: auto;
    justify-content: center;
}

.popular-header {
    padding-top: 15px;
    text-align: center;
    color: white;
}

.popular-header h2 {
    font-size: 60px;
}

.popular-header p {
    font-size: 18px;
    margin-top: -20px;
    margin-bottom: 60px;
    padding: 0 250px;
}

.section-header p {
    font-weight: 100;
    font-size: 12px;
}

.card-container {
    display: flex;
    height: auto;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
    padding: 0 20px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    width: 230px;
    border-radius: 8px;
    border: 1px solid #007bff;
}

.image-container {
    display: flex;
    justify-content: center;
}

.web-image {
    width: 210px;
    border-radius: 15px;
}

h2 {
    font-size: 16px;
    font-weight: 500;
}

.span-div {
    display: flex;
    justify-content: space-between;
}

.drop-icon {
    display: flex;
    border: 1px solid #007BFF;
    background-color: #007BFF;
    padding-right: 10px;
    border-radius: 20px;

}

.drop-icon span {
    padding-top: 8px;
    color: white;
}

.drop-up {
    margin-top: 7px;
    padding-left: 10px;
}

.drop-up img {
    height: 30px;
    width: 30px;
    padding-right: 2px;
}

.web {
    border: 1px solid #007bff37;
    background-color: #007bff37;
    padding: 10px;
    border-radius: 15px;
    color: #fbfafb;
}

.price-div {
    display: flex;
    justify-content: space-between;
}

.student {
    display: flex;
    gap: 3px;
}

.student img {
    width: 20px;

}

.courses-div {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    gap: 3px;
}

.courses-div span {
    padding-top: 5px;
}

strong {
    font-weight: 700;
    font-size: 18px;
}



/* Contact section */
.contact-section {
    margin-top: 200px;
    margin-bottom: 300px;
    padding: 0 80px
}

/* inner container housing both divs */
.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: start
}

.contact-copy {
    padding-top: 40px
}

.contact-copy h2 {
    color: var(--navy);
    font-size: 45px;
}

.contact-copy h2 em {
    color: #007BFF
}

.contact-copy>p {
    font-size: 14px;
    line-height: 1.9;
    max-width: 380px
}

.contact-prompt {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 35px
}

.prompt-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #0b1020
}

.contact-prompt div {
    display: flex;
    flex-direction: column
}

.contact-prompt strong {
    font-size: 12px
}

.contact-prompt small {
    font-size: 11px;
    color: #7c8797
}

.contact-form {
    width: 100%;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 15px 40px #24344a0b
}

.form-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 23px
}

.form-heading h3 {
    font-size: 21px;
    margin: 0;
    color: #0b1020;
}

.form-heading p {
    font-size: 10px;
    margin: 0;
    color: #0b1020;
}

.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #38475e;
    margin-bottom: 16px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid #0b1020;
    border-radius: 7px;
    background: #fff;
    color: #24344b;
    font: 400 12px "DM Sans", sans-serif;
    outline: none;
    transition: border .2s
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #5079a6
}

.contact-form textarea {
    resize: vertical
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #81868d
}

.submit-button {
    border-style: none;
    width: 100%;
    margin-top: 2px;
    background-color: #0b1020;
    color: white;
    padding: 10px 0;
    border-radius: 8px;
}

.privacy-note,
.form-feedback {
    font-size: 10px;
    text-align: center;
    margin: 12px 0 0;
    color: #0b1020;
}

.form-feedback {
    color: #276b4c;
    font-weight: 700
}

.whatsapp-container{
    display: flex;
    position: fixed;
    bottom: 100px;
    right: 30px;
}

.whatsapp-icon{
    width: 40px;
    height: 40px;
}

/* Footer section */
.footer-section {
    margin-top: 100px;
    padding: 20px;
    border-top: 1px solid #26364b;
}

.main-footer {
    display: flex;
    justify-content: space-evenly;
}

.footer-logo {
    width: 250px;
    margin-left: -50px;
}

.social-icon {
    width: 30px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    margin-left: -40px;
}

.footer-section a {
    text-decoration: none;
    color: rgb(251, 251, 251);
}

.footer-address p span {
    color: #007BFF;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #26364b;
    margin-top: 20px;
    padding: 17px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #909396;
    font-size: 14px
}

/*Targets standard tablets in portrait, small laptops, and iPads */
@media screen and (max-width: 1024px) {

    /* hero section */
    .hero-section {
        min-height: 450px;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* course container */
    .course-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .course-section {
        margin-top: 50px;
    }

    .course-section h2 {
        font-size: 2rem;
    }

    #e-commerce-mgt {
        display: none;
    }

    /* summer section */
    .summer-section {
        margin-top: 100px;
        margin-bottom: 200px;
        padding: 0 40px;
    }

    .summer-section img {
        width: 100%;
    }

    .summer-copy h2 {
        font-size: 30px;
    }

    .summer-copy p {
        font-size: 12px;
        line-height: 1.6;
        padding-bottom: 30px;
    }

    .summer-button {
        font-size: 12px;
    }

    /* popular section */

    .card-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .popular-header h2 {
    font-size: 40px;
}

.popular-header p{
    font-size: 14px;
    padding: 0 100px;
}
    
    /* footer section */
    .main-footer {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-logo {
        width: 150px;
        margin-left: -20px;
    }

    .social-icon {
        width: 30px;
    }

    .des-container p {
        font-size: .7rem;
    }

    .footer-links ul li a {
        font-size: .7rem;
    }

    .footer-address p {
        font-size: .7rem;
    }

}

/* Styles inside here apply ONLY to screens 768px wide or less */
@media screen and (max-width: 600px) {

    /* Hero section */
    .hero-section {
        min-height: 500px;
        background-size: cover;
        background-position: center right -550px;
        padding-top: 50px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section h1 {
        font-size: 2.3rem;
        margin-top: 40px;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .cta-container {
        margin-top: 30px;
        display: flex;
        gap: 30px;
    }

    .cta-btn {
        text-decoration: none;
        padding: 10px 15px;
        border-radius: 6px;
        background-color: white;
        color: #0b1020;
        font-size: small;
    }

    /* Why choose us */
    .why-us {
        display: block;
        padding-left: 20px;
        width: 100%;
        border-radius: 0;
    }

    .us-container p span {
        font-size: .7rem;
    }

    /* Our courses section */
    .course-section h2 {
        font-size: 2.6rem;
    }

    .course-container {
        display: block;
    }

    .course-grid {
        display: block;
    }


    .course {
        margin-top: 20px;
    }

    /* Contact section */

    .contact-section {
        margin-top: 50px;
        padding: 0 20px;
    }

    .container {
        display: block;
    }

    .contact-copy {
        padding-bottom: 40px;
    }

    /* summer section */

    .summer-section {
        display: block;
        padding: 0 20px;
    }

    .summer-copy h2 {
        font-size: 40px;
    }

    .summer-copy p {
        font-size: 14px;
    }

    .summer-button {
        font-size: 14px;
    }

/* popular section */
 .card-container {
        display: block;
        align-content: center;
        justify-self: center;
    }

    .card{
        margin-bottom: 20px;
        width: 300px;
    }

    .web-image {
    width: 280px;
    border-radius: 15px;
}

.popular-header{
    padding: 0 30px;
}

  .popular-header h2 {
    font-size: 30px;
}

.popular-header p{
    padding: 0;
}

    /* Footer section */
    .footer-section {
        padding: 20px;
    }

    .main-footer {
        display: block;
    }

    .des-container p {
        font-size: .8rem;
    }

    .footer-links ul li a {
        font-size: .8rem;
    }

    .footer-links {
        padding-top: 30px;
    }

    .footer-address {
        padding-top: 20px;
    }

    .footer-address p {
        font-size: .8rem;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
    }

    .footer-bottom span {
        font-size: .6rem;
    }

}