/* ==========================================
   Roshni Code Charm - SQL Tutorial
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Poppins', sans-serif;

    background: #f7f5ff;

    color: #333;

    line-height: 1.8;

}

/*=========================
Container
=========================*/

.container {

    width: 92%;

    max-width: 1400px;

    margin: auto;

}

/*=========================
Headings
=========================*/

h1 {

    font-size: 58px;

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 20px;

    color: #7b2cbf;

}

h2 {

    font-size: 38px;

    margin-bottom: 18px;

    color: #7b2cbf;

}

h3 {

    font-size: 26px;

    margin-bottom: 15px;

    color: #7b2cbf;

}

p {

    font-size: 17px;

    color: #555;

    margin-bottom: 18px;

}

/*=========================
Links
=========================*/

a {

    text-decoration: none;

    transition: .35s;

}

/*=========================
Images
=========================*/

img {

    max-width: 100%;

    display: block;

}

/*=========================
Hero Section
=========================*/

.hero {

    background: linear-gradient(135deg, #f3e8ff, #eef5ff);

    border-radius: 35px;

    padding: 90px 35px;

    margin: 35px auto;

    text-align: center;

    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);

}

.hero-badge {

    display: inline-block;

    background: #7b2cbf;

    color: #fff;

    padding: 10px 25px;

    border-radius: 50px;

    font-weight: 600;

    margin-bottom: 25px;

}

.hero p {

    max-width: 800px;

    margin: auto;

    font-size: 20px;

}

.hero-info {

    display: flex;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

    margin-top: 35px;

}

.hero-info span {

    background: #fff;

    padding: 12px 22px;

    border-radius: 40px;

    font-weight: 600;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

}

/*=========================
Buttons
=========================*/

.btn-primary {

    display: inline-block;

    margin-top: 35px;

    padding: 15px 34px;

    background: #7b2cbf;

    color: #fff;

    border-radius: 50px;

    font-weight: 700;

    box-shadow: 0 15px 30px rgba(123, 44, 191, .25);

}

.btn-primary:hover {

    background: #6520a8;

    transform: translateY(-4px);

}

/*=========================
Tutorial Layout
=========================*/

.tutorial-layout {

    display: grid;

    grid-template-columns: 290px 1fr;

    gap: 35px;

    margin: 60px auto;

}

/*=========================
Sidebar
=========================*/

.sidebar {

    position: sticky;

    top: 100px;

    height: max-content;

    background: #fff;

    padding: 28px;

    border-radius: 25px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

}

.sidebar h2 {

    font-size: 25px;

    margin-bottom: 18px;

}

.sidebar a {

    display: block;

    padding: 13px 18px;

    margin-bottom: 10px;

    border-radius: 15px;

    font-weight: 600;

    color: #555;

}

.sidebar a:hover {

    background: #7b2cbf;

    color: #fff;

    transform: translateX(6px);

}

/*=========================
Main Content
=========================*/

.content {

    background: #fff;

    padding: 45px;

    border-radius: 30px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

}

.content section {

    margin-bottom: 70px;

}

.content h2 {

    border-left: 7px solid #7b2cbf;

    padding-left: 16px;

}

/*=========================
Code Block
=========================*/

pre {

    background: #1f2333;

    color: #fff;

    padding: 22px;

    border-radius: 18px;

    overflow: auto;

    margin: 25px 0;

}

code {

    font-family: Consolas, monospace;

    font-size: 15px;

}

/*=========================
Cards
=========================*/

.card {

    background: #fff;

    border-radius: 25px;

    padding: 30px;

    margin: 30px 0;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);

    transition: .35s;

}

.card:hover {

    transform: translateY(-8px);

    box-shadow: 0 22px 45px rgba(123, 44, 191, .15);

}

/*=========================
Related Articles
=========================*/


.card ul li {

    margin: 15px 0;

}


.card a {

    color: #7b2cbf;

    font-weight: 600;

}


.card a:hover {

    color: #ff4da6;

}


/*=========================
Navigation
=========================*/


.navigation {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin: 50px 0;

    flex-wrap: wrap;

}


.navigation .btn-primary {

    margin: 0;

}

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

.footer {

    background: linear-gradient(135deg, #7b2cbf, #9d4edd);

    color: white;

    text-align: center;

    padding: 45px 20px;

    border-radius: 30px 30px 0 0;

    margin-top: 60px;

}


.footer h2 {

    color: white;

    font-size: 32px;

}


.footer p {

    color: white;

}


.footer-links {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

    margin: 25px 0;

}


.footer-links a {

    background: white;

    color: #7b2cbf;

    padding: 10px 20px;

    border-radius: 30px;

    font-weight: 600;

}


.footer-links a:hover {

    transform: translateY(-4px);

}



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


@media(max-width:900px) {


    .tutorial-layout {

        grid-template-columns: 1fr;

    }


    .sidebar {

        position: relative;

        top: 0;

    }


    .content {

        padding: 25px;

    }


    h1 {

        font-size: 38px;

    }


    h2 {

        font-size: 28px;

    }


    .hero {

        padding: 50px 20px;

    }


    .hero p {

        font-size: 17px;

    }


    .hero-info span {

        font-size: 14px;

    }



}



@media(max-width:600px) {


    .container {

        width: 95%;

    }


    .hero img {

        width: 130px !important;

    }


    .btn-primary {

        width: 100%;

    }


    .navigation {

        flex-direction: column;

    }


    .navigation a {

        text-align: center;

    }


    pre {

        font-size: 13px;

        padding: 15px;

    }


    .footer h2 {

        font-size: 25px;

    }


}

/* =========================================
   PROGRAMMING TUTORIALS SECTION
========================================= */

.programming-tutorials {
    width: 100%;
    padding: 90px 0;
    background: #f8f8ff;
    overflow: hidden;
}

.programming-tutorials .container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Section Heading */

.programming-tutorials .section-title {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.programming-tutorials .section-title span {
    display: inline-block;
    padding: 10px 22px;
    background: #eee7ff;
    color: #7b2cbf;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.programming-tutorials .section-title h2 {
    font-size: 46px;
    color: #202638;
    margin-bottom: 18px;
}

.programming-tutorials .section-title p {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
}


/* =========================================
   CARDS
========================================= */

.programming-tutorials .student-ai-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    align-items: stretch;
}

.programming-tutorials .student-ai-card {
    width: 100%;
    min-width: 0;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #eee8ff;
    border-radius: 26px;
    box-shadow: 0 12px 35px rgba(123, 44, 191, 0.08);

    display: flex;
    flex-direction: column;

    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.programming-tutorials .student-ai-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(123, 44, 191, 0.15);
}


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

.programming-tutorials .student-ai-icon {
    width: 70px;
    height: 70px;

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

    background: #eee7ff;
    border-radius: 20px;

    font-size: 35px;
    margin-bottom: 22px;
}


/* =========================================
   LABEL
========================================= */

.programming-tutorials .tutorial-label {
    display: inline-block;
    width: fit-content;

    padding: 8px 14px;
    margin-bottom: 18px;

    background: #f0e7ff;
    color: #7b2cbf;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================
   CARD TEXT
========================================= */

.programming-tutorials .student-ai-card h3 {
    color: #202638;
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.programming-tutorials .student-ai-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
}


/* =========================================
   POINTS
========================================= */

.programming-tutorials .tutorial-points {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.programming-tutorials .tutorial-points li {
    color: #555;
    font-size: 14px;
    margin: 10px 0;
}


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

.programming-tutorials .tool-btn {
    display: inline-block;
    width: fit-content;

    margin-top: auto;

    color: #7b2cbf;
    font-weight: 700;
    text-decoration: none;

    transition: 0.3s;
}

.programming-tutorials .tool-btn:hover {
    color: #ff4da6;
    transform: translateX(4px);
}


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

@media (max-width: 900px) {

    .programming-tutorials .student-ai-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programming-tutorials .section-title h2 {
        font-size: 38px;
    }
}


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

@media (max-width: 600px) {

    .programming-tutorials {
        padding: 60px 0;
    }

    .programming-tutorials .student-ai-cards {
        grid-template-columns: 1fr;
    }

    .programming-tutorials .section-title h2 {
        font-size: 32px;
    }

    .programming-tutorials .student-ai-card {
        padding: 25px;
    }
}