/* =========================================
   Roshni Code Charm
   AI Tools Course
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {

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

    background: #f6f7ff;

    color: #333;

    line-height: 1.8;

}


/* =========================================
CONTAINER
========================================= */

.container {

    width: 92%;

    max-width: 1400px;

    margin: auto;

}


/* =========================================
LINKS
========================================= */

a {

    text-decoration: none;

    transition: .3s;

}


/* =========================================
HEADINGS
========================================= */

h1 {

    font-size: 60px;

    color: #7b2cbf;

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 20px;

}


h2 {

    font-size: 36px;

    color: #7b2cbf;

    margin-bottom: 20px;

}


h3 {

    font-size: 24px;

    color: #7b2cbf;

    margin-bottom: 15px;

}


p {

    margin-bottom: 18px;

    color: #555;

}


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

.hero {

    text-align: center;

    padding: 90px 30px;

    margin: 40px 0;

    border-radius: 35px;

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

    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);

}


.hero-badge {

    display: inline-block;

    background: #7b2cbf;

    color: white;

    padding: 12px 28px;

    border-radius: 40px;

    font-weight: 600;

    margin-bottom: 25px;

}


.hero img {

    width: 220px;

    margin: 25px auto;

    display: block;

}


.hero p {

    max-width: 800px;

    margin: 20px auto;

    font-size: 20px;

}


.hero-info {

    display: flex;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

    margin: 35px 0;

}


.hero-info span {

    background: white;

    padding: 12px 22px;

    border-radius: 30px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    font-weight: 600;

}


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

.btn-primary {

    display: inline-block;

    background: #7b2cbf;

    color: white;

    padding: 16px 34px;

    border-radius: 40px;

    font-weight: 700;

    transition: .3s;

}


.btn-primary:hover {

    background: #ff4da6;

    transform: translateY(-5px);

}

/* =========================================
TUTORIAL LAYOUT
========================================= */

.tutorial-layout {

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 35px;

    margin: 50px 0;

}


/* =========================================
SIDEBAR
========================================= */

.sidebar {

    background: #ffffff;

    padding: 25px;

    border-radius: 25px;

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

    position: sticky;

    top: 20px;

    height: max-content;

}


.sidebar h2 {

    font-size: 26px;

    margin-bottom: 20px;

}


.sidebar a {

    display: block;

    padding: 12px 15px;

    margin: 8px 0;

    color: #555;

    font-weight: 600;

    border-radius: 12px;

    transition: .3s;

}


.sidebar a:hover {

    background: #7b2cbf;

    color: white;

    padding-left: 20px;

}


/* =========================================
CONTENT
========================================= */

.content {

    background: white;

    padding: 40px;

    border-radius: 30px;

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

}


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

.content section {

    margin-bottom: 70px;

}


.content h2 {

    border-left: 6px solid #7b2cbf;

    padding-left: 15px;

}


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

.card {

    background: #fff;

    padding: 28px;

    margin: 25px 0;

    border-radius: 22px;

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

    transition: .3s;

}


.card:hover {

    transform: translateY(-8px);

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

}


/* =========================================
LISTS
========================================= */

ul,
ol {

    margin-left: 25px;

}


li {

    margin: 10px 0;

}

/* =========================================
CODE BLOCKS
========================================= */

pre {

    background: #1e1e2f;

    color: #ffffff;

    padding: 22px;

    border-radius: 18px;

    overflow-x: auto;

    margin: 20px 0;

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

}


code {

    font-family: Consolas, monospace;

    font-size: 15px;

}


/* =========================================
TIP BOX
========================================= */

.tip-box {

    background: #e8fff1;

    border-left: 6px solid #20c997;

    padding: 20px;

    border-radius: 16px;

    margin: 25px 0;

}


.tip-box strong {

    color: #0c8c5a;

}


/* =========================================
WARNING BOX
========================================= */

.warning-box {

    background: #fff4e5;

    border-left: 6px solid #ff9800;

    padding: 20px;

    border-radius: 16px;

    margin: 25px 0;

}


.warning-box strong {

    color: #d97706;

}


/* =========================================
TABLES
========================================= */

table {

    width: 100%;

    border-collapse: collapse;

    margin: 25px 0;

    background: white;

}


table th {

    background: #7b2cbf;

    color: white;

    padding: 15px;

}


table td {

    padding: 15px;

    border: 1px solid #ddd;

}


table tr:nth-child(even) {

    background: #f7f7ff;

}


/* =========================================
IMAGES
========================================= */

img {

    max-width: 100%;

    height: auto;

    border-radius: 20px;

}


/* =========================================
SECTION SPACING
========================================= */

section {

    scroll-margin-top: 90px;

}

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

.footer {

    margin-top: 70px;

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

    color: #fff;

    text-align: center;

    padding: 50px 20px;

    border-radius: 35px 35px 0 0;

}

.footer h2 {

    color: white;

    margin-bottom: 15px;

}

.footer p {

    color: white;

}

.footer-links {

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;

    margin: 25px 0;

}

.footer-links a {

    background: white;

    color: #7b2cbf;

    padding: 12px 22px;

    border-radius: 30px;

    font-weight: 600;

}

.footer-links a:hover {

    background: #f3e8ff;

    transform: translateY(-3px);

}


/* =========================================
NAVIGATION BUTTONS
========================================= */

.navigation {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin: 50px 0;

    flex-wrap: wrap;

}


/* =========================================
SMOOTH ANIMATION
========================================= */

.card,
.hero,
.sidebar {

    animation: fadeUp .7s ease;

}

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(25px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =========================================
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: 55px 20px;

    }

}


@media(max-width:600px) {

    .hero img {

        width: 140px;

    }

    .hero-info {

        flex-direction: column;

        align-items: center;

    }

    .btn-primary {

        width: 100%;

        text-align: center;

    }

    .navigation {

        flex-direction: column;

    }

    .footer-links {

        flex-direction: column;

    }

    pre {

        font-size: 13px;

    }

}

/* =========================================
QUIZ
========================================= */

#quiz {

    margin-top: 60px;

}

#quiz ol {

    padding-left: 25px;

}

#quiz li {

    margin-bottom: 15px;

    font-size: 17px;

}

/* =========================================
FAQ
========================================= */

#faq {

    margin-top: 60px;

}

#faq .card {

    cursor: pointer;

    transition: .3s;

}

#faq .card:hover {

    transform: translateY(-5px);

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

}

/* =========================================
CERTIFICATE
========================================= */

#certificate {

    text-align: center;

    margin-top: 70px;

}

#certificate .card {

    padding: 45px;

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

    color: #fff;

    border: none;

}

#certificate h2 {

    font-size: 38px;

    margin-bottom: 20px;

    color: #fff;

}

#certificate p {

    color: #fff;

    font-size: 18px;

}

/* =========================================
RELATED COURSES
========================================= */

#related ul {

    list-style: none;

    padding: 0;

}

#related li {

    padding: 15px 20px;

    margin-bottom: 12px;

    background: #faf7ff;

    border-radius: 12px;

    transition: .3s;

    font-weight: 600;

}

#related li:hover {

    background: #7b2cbf;

    color: #fff;

    transform: translateX(8px);

}

/* =========================================
PREVIOUS / NEXT
========================================= */

.navigation {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin: 70px 0;

    flex-wrap: wrap;

}

.navigation a {

    display: inline-block;

}

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

.footer {

    margin-top: 80px;

    padding: 50px 20px;

    text-align: center;

    background: #1f1f2e;

    color: #ffffff;

}

.footer h2 {

    font-size: 32px;

    margin-bottom: 15px;

    color: #c77dff;

}

.footer p {

    opacity: .9;

    margin-bottom: 10px;

}

/* =========================================
SCROLLBAR
========================================= */

::-webkit-scrollbar {

    width: 10px;

}

::-webkit-scrollbar-thumb {

    background: #7b2cbf;

    border-radius: 20px;

}

::-webkit-scrollbar-track {

    background: #ececec;

}

/* =========================================
ANIMATIONS
========================================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

section {

    animation: fadeUp .7s ease;

}

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

@media(max-width:992px) {

    .tutorial-layout {

        grid-template-columns: 1fr;

    }

    .sidebar {

        position: relative;

        top: 0;

        margin-bottom: 30px;

    }

    .hero h1 {

        font-size: 42px;

    }

    .hero-image {

        width: 300px;

    }

    .content {

        padding: 25px;

    }

}

@media(max-width:768px) {

    .nav-container {

        flex-direction: column;

        gap: 18px;

    }

    .nav-links {

        flex-wrap: wrap;

        justify-content: center;

    }

    .hero {

        padding: 60px 20px;

    }

    .hero h1 {

        font-size: 34px;

    }

    .hero p {

        font-size: 17px;

    }

    .hero-buttons {

        flex-direction: column;

        align-items: center;

    }

    .btn-primary,

    .btn-secondary {

        width: 100%;

        max-width: 300px;

        text-align: center;

    }

    .content h1 {

        font-size: 32px;

    }

    .content h2 {

        font-size: 25px;

    }

    table {

        display: block;

        overflow-x: auto;

    }

    .navigation {

        flex-direction: column;

    }

}

@media(max-width:480px) {

    .logo {

        font-size: 20px;

    }

    .hero-image {

        width: 220px;

    }

    .sidebar {

        padding: 18px;

    }

    .content {

        padding: 20px;

    }

    .card {

        padding: 18px;

    }

    .footer h2 {

        font-size: 24px;

    }

}

/* ==================================================
        AI STUDY ASSISTANT
================================================== */

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

body {
    font-family: "Poppins", sans-serif;
    background: #f8f7ff;
    color: #25283d;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}


/* ==================================================
        HEADER
================================================== */

header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    color: #7b2cbf;
    font-size: 26px;
    font-weight: 700;
}

.back-home {
    text-decoration: none;
    color: #7b2cbf;
    font-weight: 600;
}

.back-home:hover {
    color: #e754a6;
}


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

.study-hero {
    text-align: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg,
            #f8f2ff,
            #fff5fb);
}

.topic-label {
    display: inline-block;
    padding: 10px 22px;
    background: #eee4ff;
    color: #7b2cbf;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.study-hero h1 {
    margin-top: 25px;
    font-size: 55px;
    line-height: 1.2;
    color: #25283d;
}

.study-hero p {
    max-width: 750px;
    margin: 25px auto 0;
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}


/* ==================================================
        CONTENT
================================================== */

.study-content {
    padding: 80px 0;
}

.content-box {
    background: #ffffff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.08);
}

.content-box h2 {
    color: #7b2cbf;
    font-size: 30px;
    margin-bottom: 18px;
}

.content-box p {
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}


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

.study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 30px;
}

.study-card {
    padding: 28px;
    background: #faf8ff;
    border: 1px solid #eee5ff;
    border-radius: 20px;
    font-size: 30px;
    transition: 0.3s ease;
}

.study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(123, 44, 191, 0.12);
}

.study-card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
    color: #25283d;
}

.study-card p {
    font-size: 15px;
    line-height: 1.7;
}


/* ==================================================
        PROMPT BOX
================================================== */

.prompt-box {
    margin: 25px 0;
    padding: 22px 25px;
    background: #25283d;
    color: #ffffff;
    border-left: 5px solid #7b2cbf;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.7;
}


/* ==================================================
        TIP BOX
================================================== */

.tip-box {
    padding: 30px;
    margin-top: 30px;
    background: #f0e7ff;
    border-radius: 20px;
    border-left: 5px solid #7b2cbf;
}

.tip-box h3 {
    color: #7b2cbf;
    margin-bottom: 10px;
    font-size: 21px;
}

.tip-box p {
    color: #555;
    line-height: 1.7;
}


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

footer {
    padding: 30px;
    text-align: center;
    background: #151927;
    color: #ffffff;
}

footer p {
    font-size: 14px;
}


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

@media (max-width: 800px) {

    .study-hero h1 {
        font-size: 42px;
    }

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

}


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

@media (max-width: 600px) {

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .study-hero {
        padding: 70px 15px 60px;
    }

    .study-hero h1 {
        font-size: 34px;
    }

    .study-hero p {
        font-size: 16px;
    }

    .content-box {
        padding: 25px;
    }

    .content-box h2 {
        font-size: 25px;
    }

}

/* ==================================================
        AI STUDY ASSISTANT - PREMIUM PAGE
================================================== */

.study-header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.study-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.study-header .logo {
    color: #7b2cbf;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.back-home {
    color: #7b2cbf;
    text-decoration: none;
    font-weight: 600;
}


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

.study-hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f7efff, #fff1f8);
}

.topic-label {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    background: #eadcff;
    color: #7b2cbf;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.study-hero h1 {
    margin: 25px 0 15px;
    font-size: 56px;
    color: #25283d;
}

.study-hero p {
    max-width: 750px;
    margin: auto;
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}


/* ================= CONTENT ================= */

.study-content {
    padding: 90px 0;
    background: #faf9ff;
}

.study-section {
    background: #ffffff;
    padding: 45px;
    margin-bottom: 30px;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(123, 44, 191, 0.07);
}

.section-number {
    display: inline-block;
    margin-bottom: 12px;
    color: #9b5de5;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
}

.study-section h2 {
    margin-bottom: 20px;
    color: #25283d;
    font-size: 30px;
}

.study-section>p {
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}


/* ================= FEATURES ================= */

.study-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.study-feature {
    padding: 28px;
    border-radius: 20px;
    background: #faf7ff;
    border: 1px solid #eee5ff;
    transition: 0.3s ease;
}

.study-feature:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(123, 44, 191, 0.12);
}

.study-feature span {
    font-size: 32px;
}

.study-feature h3 {
    margin: 15px 0 10px;
    font-size: 19px;
}

.study-feature p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* ================= STEPS ================= */

.study-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.study-step {
    padding: 25px;
    border-radius: 18px;
    background: #f7f1ff;
}

.study-step strong {
    font-size: 28px;
    color: #7b2cbf;
}

.study-step h3 {
    margin: 12px 0 8px;
}

.study-step p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}


/* ================= PROMPTS ================= */

.prompt-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 22px 25px;
    border-radius: 16px;
    background: #f8f2ff;
    border-left: 5px solid #7b2cbf;
}

.prompt-card span {
    font-size: 25px;
}

.prompt-card p {
    color: #555;
    line-height: 1.6;
}


/* ================= BAD VS GOOD ================= */

.prompt-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.bad-prompt,
.good-prompt {
    padding: 28px;
    border-radius: 20px;
}

.bad-prompt {
    background: #fff1f1;
    border: 1px solid #ffd6d6;
}

.good-prompt {
    background: #f0fff6;
    border: 1px solid #cceedd;
}

.bad-prompt span,
.good-prompt span {
    display: block;
    margin-bottom: 15px;
    font-weight: 800;
}

.bad-prompt p,
.good-prompt p {
    color: #555;
    line-height: 1.7;
}


/* ================= MISTAKES ================= */

.mistake-list,
.takeaway-list {
    list-style: none;
    padding: 0;
}

.mistake-list li,
.takeaway-list li {
    padding: 15px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #faf7ff;
    color: #555;
}


/* ================= WARNING ================= */

.study-warning {
    margin-bottom: 30px;
    padding: 35px;
    border-radius: 22px;
    background: #fff8e8;
    border-left: 6px solid #f4b400;
}

.study-warning h2 {
    margin-bottom: 12px;
    color: #8a6200;
}

.study-warning p {
    color: #665b43;
    line-height: 1.7;
}


/* ================= QUIZ ================= */

.study-quiz {
    padding: 45px;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 25px;
    background: linear-gradient(135deg, #7b2cbf, #9b5de5);
    color: #ffffff;
}

.study-quiz .section-number {
    color: #eadcff;
}

.study-quiz h2 {
    margin-bottom: 25px;
    font-size: 32px;
}

.study-quiz>p {
    margin-bottom: 25px;
    font-size: 18px;
}

.study-quiz button {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    color: #5a189a;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.study-quiz button:hover {
    transform: translateY(-2px);
    background: #f5edff;
}


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

footer {
    padding: 30px;
    text-align: center;
    background: #171827;
    color: #ffffff;
}


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

@media (max-width: 900px) {

    .study-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .study-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .study-hero h1 {
        font-size: 45px;
    }

}


@media (max-width: 600px) {

    .study-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .study-hero {
        padding: 70px 15px;
    }

    .study-hero h1 {
        font-size: 34px;
    }

    .study-hero p {
        font-size: 16px;
    }

    .study-content {
        padding: 55px 0;
    }

    .study-section {
        padding: 25px;
    }

    .study-section h2 {
        font-size: 25px;
    }

    .study-feature-grid,
    .study-steps,
    .prompt-comparison {
        grid-template-columns: 1fr;
    }

    .study-quiz {
        padding: 30px 20px;
    }

}

/* ==================================================
        AI STUDY ASSISTANT PREMIUM PAGE
================================================== */

.study-header {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.study-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.study-logo {
    color: #7b2cbf;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
}

.back-home {
    color: #7b2cbf;
    text-decoration: none;
    font-weight: 600;
}


/* HERO */

.study-hero {
    padding: 90px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8efff, #fff2f9);
}

.study-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: #eadcff;
    color: #7b2cbf;
    font-size: 13px;
    font-weight: 700;
}

.study-hero h1 {
    margin: 22px 0;
    font-size: 58px;
    line-height: 1.1;
    color: #25283d;
}

.study-hero h1 span {
    color: #7b2cbf;
}

.study-hero-content>p {
    max-width: 600px;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.primary-btn,
.secondary-btn {
    padding: 14px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.primary-btn {
    background: #7b2cbf;
    color: #fff;
}

.secondary-btn {
    background: #fff;
    color: #7b2cbf;
    border: 1px solid #ddd;
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-3px);
}


/* HERO VISUAL */

.study-hero-visual {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eadcff, #ffdff1);
}

.study-illustration {
    position: relative;
    z-index: 2;
}

.laptop-screen {
    width: 330px;
    height: 220px;
    padding: 12px;
    border-radius: 18px;
    background: #25283d;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .18);
}

.screen-top {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.screen-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: .7;
}

.ai-screen {
    height: 165px;
    border-radius: 10px;
    background: #f8f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ai-face {
    font-size: 60px;
}

.ai-lines {
    width: 100px;
}

.ai-lines span {
    display: block;
    height: 9px;
    margin: 12px 0;
    border-radius: 10px;
    background: #c9a7f5;
}

.floating-icon {
    position: absolute;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    font-size: 28px;
    box-shadow: 0 15px 30px rgba(123, 44, 191, .15);
}

.icon-book {
    top: -25px;
    left: -35px;
}

.icon-brain {
    top: 25px;
    right: -45px;
}

.icon-star {
    bottom: -30px;
    left: 15px;
}

.icon-bulb {
    bottom: 10px;
    right: -25px;
}


/* SECTIONS */

.study-section-wrap {
    padding: 90px 0;
    background: #fff;
}

.light-section {
    background: #faf8ff;
}

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

.section-heading.center {
    text-align: center;
}

.section-heading span {
    color: #7b2cbf;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin: 12px 0;
    font-size: 38px;
    color: #25283d;
}

.section-heading p {
    max-width: 700px;
    color: #666;
    line-height: 1.8;
}

.section-heading.center p {
    margin: auto;
}


/* INTRO */

.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.info-card {
    padding: 32px;
    border-radius: 25px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 15px 35px rgba(123, 44, 191, .07);
}

.large-card {
    grid-row: span 2;
}

.card-icon,
.mini-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.info-card p {
    color: #666;
    line-height: 1.8;
}


/* FEATURES */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 30px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #eee;
    transition: .3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(123, 44, 191, .12);
}

.feature-icon {
    font-size: 35px;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}


/* STEPS */

.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    padding: 28px;
    border-radius: 22px;
    background: #faf7ff;
    border: 1px solid #eee4ff;
}

.step-number {
    margin-bottom: 15px;
    font-size: 30px;
    font-weight: 800;
    color: #7b2cbf;
}

.step-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* PROMPT LAB */

.prompt-lab {
    padding: 90px 0;
    background: linear-gradient(135deg, #f8f0ff, #fff1f8);
}

.prompt-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.prompt-panel {
    padding: 35px;
    border-radius: 24px;
}

.prompt-panel.bad {
    background: #fff0f0;
    border: 1px solid #ffd6d6;
}

.prompt-panel.good {
    background: #edfff5;
    border: 1px solid #ccebd9;
}

.prompt-label {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 800;
}

.prompt-panel h3 {
    line-height: 1.6;
    margin-bottom: 15px;
}

.prompt-panel p {
    color: #666;
    line-height: 1.7;
}

.prompt-examples {
    margin-top: 25px;
    display: grid;
    gap: 12px;
}

.prompt-example {
    padding: 18px 22px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}


/* SUBJECTS */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.subject-card {
    padding: 25px 18px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
}

.subject-icon {
    font-size: 35px;
    margin-bottom: 12px;
}

.subject-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}


/* BEFORE AFTER */

.before-after {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 20px;
}

.note-box {
    padding: 35px;
    border-radius: 24px;
}

.note-box.before {
    background: #fff3f3;
}

.note-box.after {
    background: #f0fff6;
}

.note-box span {
    font-size: 13px;
    font-weight: 800;
}

.note-box h3 {
    margin: 15px 0;
}

.note-box p,
.note-box li {
    color: #666;
    line-height: 1.7;
}

.note-box ul {
    padding-left: 20px;
}

.arrow-between {
    text-align: center;
    font-size: 35px;
    color: #7b2cbf;
}


/* MISTAKES */

.mistakes-section {
    padding: 90px 0;
    background: #25283d;
}

.mistakes-section .section-heading h2 {
    color: #fff;
}

.mistake-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mistake-card {
    padding: 28px;
    border-radius: 20px;
    background: #303348;
}

.mistake-card>span {
    font-size: 30px;
}

.mistake-card h3 {
    margin: 15px 0 10px;
    color: #fff;
}

.mistake-card p {
    color: #c7c8d2;
    line-height: 1.7;
    font-size: 14px;
}


/* QUIZ */

.quiz-section {
    padding: 100px 0;
    background: #f8f5ff;
}

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

.quiz-heading span {
    color: #7b2cbf;
    font-size: 13px;
    font-weight: 800;
}

.quiz-heading h2 {
    margin: 12px 0;
    font-size: 40px;
}

.quiz-heading p {
    color: #666;
}

.quiz-box {
    max-width: 850px;
    margin: auto;
    padding: 40px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(123, 44, 191, .1);
}

.quiz-question {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.quiz-question h3 {
    margin-bottom: 18px;
}

.quiz-question button {
    display: block;
    width: 100%;
    margin: 9px 0;
    padding: 14px 18px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: .2s;
}

.quiz-question button:hover {
    border-color: #7b2cbf;
    background: #faf5ff;
}

.quiz-question button.selected {
    border-color: #7b2cbf;
    background: #eee2ff;
}

.submit-quiz {
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    border: none;
    border-radius: 30px;
    background: #7b2cbf;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.quiz-result {
    margin-top: 25px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}


/* SAFETY */

.safety-section {
    padding: 70px 0;
}

.safety-box {
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 35px;
    border-radius: 25px;
    background: #fff8e8;
    border-left: 6px solid #f2b400;
}

.safety-icon {
    font-size: 45px;
}

.safety-box>div:last-child>span {
    color: #8b6800;
    font-size: 13px;
    font-weight: 800;
}

.safety-box h2 {
    margin: 8px 0;
}

.safety-box p {
    color: #665b43;
    line-height: 1.7;
}


/* TAKEAWAYS */

.takeaway-section {
    padding: 90px 0;
    background: #fff;
}

.takeaway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.takeaway-grid div {
    padding: 20px;
    border-radius: 15px;
    background: #f8f2ff;
    color: #555;
}


/* NEXT */

.next-topic {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(135deg, #7b2cbf, #9b5de5);
    color: #fff;
}

.next-topic p {
    opacity: .85;
}

.next-topic h2 {
    margin: 12px 0 25px;
    font-size: 35px;
}

.next-topic a {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 30px;
    background: #fff;
    color: #7b2cbf;
    text-decoration: none;
    font-weight: 700;
}


/* FOOTER */

footer {
    padding: 40px 0;
    text-align: center;
    background: #171827;
    color: #fff;
}

footer h3 {
    margin-bottom: 8px;
}

footer p {
    color: #c8c8d0;
}

footer .copyright {
    margin-top: 18px;
    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .study-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .study-hero-content>p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mistake-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .study-nav {
        flex-direction: column;
        gap: 12px;
    }

    .study-hero {
        padding: 65px 0;
    }

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

    .study-hero-visual {
        min-height: 300px;
    }

    .laptop-screen {
        width: 280px;
    }

    .feature-grid,
    .steps-wrapper,
    .subject-grid,
    .mistake-grid,
    .takeaway-grid,
    .intro-grid,
    .prompt-comparison-grid {
        grid-template-columns: 1fr;
    }

    .large-card {
        grid-row: auto;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .arrow-between {
        transform: rotate(90deg);
    }

    .quiz-box {
        padding: 22px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .safety-box {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* ========================================
   QUIZ OPTIONS
======================================== */

.quiz-question button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    margin: 12px 0;

    border: 2px solid #e6ddff;
    border-radius: 14px;

    background: #ffffff;
    color: #333;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;

    text-align: left;
    cursor: pointer;

    transition: all 0.3s ease;
}


/* Hover */

.quiz-question button:hover {
    border-color: #7b2cbf;
    transform: translateX(5px);
}


/* Correct Answer */

.quiz-question button.correct {
    background: #e8fff1;
    border-color: #27ae60;
    color: #16803c;
}


/* Wrong Answer */

.quiz-question button.wrong {
    background: #fff0f0;
    border-color: #e74c3c;
    color: #c0392b;
}


/* Disabled */

.quiz-question button:disabled {
    cursor: default;
}


/* Score */

.quiz-result {
    margin-top: 30px;
    padding: 20px;

    border-radius: 16px;

    background: #f5efff;
    color: #6c4df6;

    font-size: 20px;
    font-weight: 700;

    text-align: center;
}

/* ========================================
   AI NOTE MAKER PAGE
======================================== */

.ai-tool-hero {
    padding: 90px 20px 70px;
    text-align: center;
    background: #f8f5ff;
}

.ai-tool-badge {
    display: inline-block;
    padding: 12px 25px;
    margin-bottom: 25px;
    border-radius: 30px;
    background: #eee7ff;
    color: #6c4df6;
    font-weight: 700;
    letter-spacing: 1px;
}

.ai-tool-hero h1 {
    max-width: 900px;
    margin: auto;
    font-size: 52px;
    line-height: 1.2;
    color: #202536;
}

.ai-tool-hero h1 span {
    color: #7048e8;
}

.ai-tool-hero p {
    max-width: 700px;
    margin: 25px auto;
    font-size: 18px;
    line-height: 1.7;
    color: #666;
}


/* HERO FEATURES */

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.hero-features div {
    padding: 12px 18px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(108, 77, 246, 0.08);
    color: #555;
}


/* ========================================
   NOTE MAKER
======================================== */

.note-maker-section {
    padding: 90px 0;
    background: #fff;
}

.note-maker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.note-input-card,
.generated-notes-card {
    padding: 35px;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(50, 30, 100, 0.10);
    border: 1px solid #eee8ff;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #f0eaff;
    font-size: 30px;
}

.note-input-card h3,
.generated-notes-card h3 {
    font-size: 25px;
    color: #24283a;
    margin-bottom: 8px;
}

.note-input-card p,
.generated-notes-card>p {
    color: #777;
    margin-bottom: 20px;
}


/* TEXTAREA */

#noteInput {
    width: 100%;
    min-height: 280px;
    padding: 18px;
    resize: vertical;

    border: 2px solid #e5ddff;
    border-radius: 16px;

    outline: none;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.6;

    transition: 0.3s;
    box-sizing: border-box;
}

#noteInput:focus {
    border-color: #7b2cbf;
    box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.08);
}


/* BUTTONS */

.note-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.primary-btn,
.secondary-btn,
.copy-btn,
.tool-btn {
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn {
    background: #7048e8;
    color: white;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(112, 72, 232, 0.25);
}

.secondary-btn {
    background: #f1edff;
    color: #7048e8;
}

.secondary-btn:hover {
    background: #e5dcff;
}

.copy-btn {
    margin-top: 20px;
    background: #f1edff;
    color: #7048e8;
}


/* CHARACTER COUNT */

.character-count {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}


/* EMPTY OUTPUT */

.notes-output {
    min-height: 300px;
    padding: 25px;
    border-radius: 18px;
    background: #faf9ff;
    border: 2px dashed #ddd2ff;
}

.empty-notes {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.empty-notes h4 {
    font-size: 20px;
    color: #333;
}

.empty-notes p {
    color: #777;
}


/* ========================================
   STUDY TOOLS
======================================== */

.study-tools-section,
.note-tips-section,
.note-quiz-section {
    padding: 90px 0;
    background: #f8f6ff;
}

.study-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.study-tool-card {
    padding: 30px;
    background: white;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(50, 30, 100, 0.08);
    transition: 0.3s;
}

.study-tool-card:hover {
    transform: translateY(-8px);
}

.tool-icon {
    font-size: 35px;
    margin-bottom: 18px;
}

.study-tool-card h3 {
    color: #282b3b;
    font-size: 21px;
}

.study-tool-card p {
    color: #777;
    line-height: 1.7;
}

.tool-btn {
    margin-top: 15px;
    background: #f0eaff;
    color: #7048e8;
}


/* ========================================
   TIPS
======================================== */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 45px;
}

.tip-card {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(50, 30, 100, 0.08);
}

.tip-card span {
    font-size: 14px;
    font-weight: 700;
    color: #7048e8;
}

.tip-card h3 {
    margin: 15px 0 10px;
}

.tip-card p {
    color: #777;
    line-height: 1.6;
}


/* ========================================
   QUIZ
======================================== */

.note-quiz {
    max-width: 850px;
    margin: 45px auto 0;
}

.note-quiz-question {
    padding: 30px;
    margin-bottom: 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(50, 30, 100, 0.08);
}

.note-quiz-question h3 {
    margin-bottom: 20px;
    color: #282b3b;
}

.note-quiz-option {
    display: block;
    width: 100%;
    padding: 15px 18px;
    margin: 12px 0;

    border: 2px solid #e5ddff;
    border-radius: 12px;

    background: white;
    color: #444;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    text-align: left;

    cursor: pointer;
    transition: 0.3s;
}

.note-quiz-option:hover {
    border-color: #7048e8;
    transform: translateX(5px);
}

.note-quiz-option.correct {
    background: #e8fff1;
    border-color: #27ae60;
    color: #16803c;
}

.note-quiz-option.wrong {
    background: #fff0f0;
    border-color: #e74c3c;
    color: #c0392b;
}

.quiz-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}


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

@media (max-width: 900px) {

    .note-maker-grid {
        grid-template-columns: 1fr;
    }

    .study-tools-grid,
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-tool-hero h1 {
        font-size: 42px;
    }

}


@media (max-width: 600px) {

    .study-tools-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .ai-tool-hero h1 {
        font-size: 34px;
    }

    .note-input-card,
    .generated-notes-card {
        padding: 22px;
    }

    .note-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

}

.pdf-summary-result {
    line-height: 1.7;
}

.summary-heading {
    font-size: 22px;
    font-weight: 700;
    color: #7048e8;
    margin-bottom: 15px;
}

.summary-meta {
    padding: 10px 14px;
    margin: 15px 0 25px;
    border-radius: 10px;
    background: #f1edff;
    color: #7048e8;
    font-size: 14px;
}

.summary-subtitle {
    margin-top: 20px;
}

.summary-points-list {
    padding-left: 22px;
}

.summary-points-list li {
    margin-bottom: 12px;
    color: #555;
}