/* ============================================
   AI IN EDUCATION SECTION STYLES
   Used by: ai-education/index.html and all sub-pages
   ============================================ */

/* ============================================
   AI EDUCATION OVERVIEW PAGE
   ============================================ */

.ai-education-section {
    background: transparent;
    padding: 1.5rem 0 2rem;
    width: 100%;
}

.ai-education-wrapper {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3.5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.2rem;
}

/* Left column (intro text) */
.ai-education-left {
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 640px;
}

.ai-eyebrow {
    color: var(--rust);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    margin-bottom: 0.7rem;
}

.ai-title {
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    margin-bottom: 1.3rem;
    line-height: 1.2;
    position: relative;
}

.ai-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--soft-blue);
}

.ai-intro-text {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #4b3f3a;
    margin-bottom: 1.2rem;
}

.ai-intro-text + .ai-intro-text {
    margin-top: 0.3rem;
}

/* Right column – tools as a grid */
.ai-education-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

/* Tool cards */
.ai-row {
    background: #f3e2ce;
    border-radius: 16px;
    padding: 1.8rem 2rem;
 box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.22s ease;
}

.ai-row:hover {
    transform: translateY(-4px);
box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
    background: #fefcf8;
}
/* Card Image */
.ai-row-image {
    width: calc(100% + 4rem);
    margin: -1.8rem -2rem 1rem -2rem;
    height: 140px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
}

.ai-row-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    margin-bottom: 0.25rem;
}

.ai-row-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rust);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.ai-row-text p {
    font-size: 0.98rem;
    color: #4f3f39;
    line-height: 1.65;
}

.ai-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.ai-row-meta span {
    font-size: 0.85rem;
    color: var(--rust);
    font-weight: 500;
}

.ai-row-button {
    align-self: flex-start;
    background: var(--soft-blue);
    padding: 0.6rem 1.3rem;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 8px 20px rgba(61, 92, 140, 0.30);
}

.ai-row-button:hover {
    background: #3d5c8c;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(61, 92, 140, 0.4);
}

.ai-soon {
    display: inline-block;
    margin-top: 0.3rem;
    color: var(--rust);
    font-style: italic;
    font-size: 0.9rem;
}


/* ============================================
   INTERACTIVE DEMOS SECTION
   ============================================ */

.interactive-demos-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 0rem;
}

/* Header */
.page-header {
    max-width: 820px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
}

.header-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 0.6rem;
}

.page-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Remove underline on this page */
.interactive-demos-section h2::after,
.interactive-demos-section .page-title::after {
    display: none;
}

.page-subtitle {
    font-size: 1.05rem;
    color: #5a4942;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Back Button Wrapper */
.back-button-wrapper {
    text-align: center;
    margin-top: 0.4rem;
    margin-bottom: 2rem;
}

/* Demo Cards Grid */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding-top: 1px; /* Space for image expansion */
}

/* Demo Card with Image */
.demo-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible; /* Allow image to expand outside */
    position: relative;
}

.demo-card:hover {
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 0, 0, 0.06);
}
/* Make entire card clickable */
a.demo-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Button hover effect when card is hovered */
.demo-card:hover .demo-primary-button {
    background: #3d5c8c;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(61, 92, 140, 0.35);
}

/* Image wrapper - expands upward on hover */
.demo-card-image-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    transition: height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.demo-card:hover .demo-card-image-wrapper {
    height: 165px;
    margin-top: -25px; /* Expand upward */
}

.demo-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.demo-card:hover .demo-card-image {
    transform: scale(1.05);
}

/* Card content */
.demo-card-content {
    padding: 1.75rem 1.75rem 1.75rem;
}

.demo-card h3 {
    font-size: 1.25rem;
    color: var(--dark-burgundy);
    margin-bottom: 0.5rem;
}

.demo-card p {
    font-size: 0.90rem;
    color: #5a4942;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.demo-primary-button {
    display: inline-block;
    background: var(--soft-blue);
    color: #ffffff;
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.demo-primary-button:hover {
    background: #3d5c8c;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(61, 92, 140, 0.35);
}

/* Blue Background Section with Curved Edges */
.blue-section-wrapper {
    background: linear-gradient(135deg, var(--soft-blue), #b8c4e8);
    margin-top: 2rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    border-radius: 60px 60px 0 0;
    padding: 4rem 2rem 10rem;
    overflow: visible;
}

/* Your Turn Section */
.your-turn-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s ease-out;
}

.your-turn-title {
    font-size: 1.8rem;
    color: var(--dark-burgundy);
    margin-bottom: 1rem;
    text-align: center;
}

.your-turn-intro {
    font-size: 1.05rem;
    color: #4c3c37;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Prompt Box */
.prompt-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.prompt-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--dark-burgundy);
}

.prompt-header strong {
    flex: 1;
}

.prompt-icon {
    font-size: 1.1rem;
}

.prompt-text p {
    font-size: 0.92rem;
    color: #5a4942;
    margin-bottom: 0.7rem;
}

.prompt-code {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    background: #f7f2ea;
    border-radius: 10px;
    padding: 1rem;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #3c302b;
    border: 1px solid rgba(0, 0, 0, 0.06);
    resize: vertical;
    min-height: 200px;
}

.copy-prompt-btn {
    background: var(--soft-blue);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.copy-prompt-btn:hover {
    background: #7a8fc7;
    transform: translateY(-1px);
}

/* Steps Card */
.steps-card {
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.steps-card h3 {
    font-size: 1.2rem;
    color: var(--dark-burgundy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 0.88rem;
    color: var(--dark-burgundy);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.step-content p {
    font-size: 0.8rem;
    color: #5a4942;
    margin: 0;
    line-height: 1.4;
}

/* Pro Tips */
.pro-tips {
    margin-top: 1.2rem;
    background: #fffaf0;
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
    border-left: 4px solid var(--rust);
}

.pro-tips-title {
    display: block;
    font-size: 0.96rem;
    color: var(--rust);
    margin-bottom: 0.6rem;
}

.pro-tips ul {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.93rem;
    color: #4c3c37;
    line-height: 1.6;
    margin: 0;
}

.pro-tips li {
    margin-bottom: 0.4rem;
}


/* ============================================
   RESPONSIVE - AI EDUCATION
   ============================================ */

@media (max-width: 1024px) {
    .ai-education-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ai-education-left {
        position: relative;
        top: 0;
    }

    .ai-education-right {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .interactive-demos-section {
        padding: 2rem 0 3rem;
    }
    
    .demos-grid {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }
    
    .your-turn-section {
        padding: 2rem 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .step-content strong {
        font-size: 0.95rem;
    }
    
    .step-content p {
        font-size: 0.88rem;
    }
    
    .blue-section-wrapper {
        border-radius: 40px 40px 0 0;
        padding: 3rem 1.5rem 5rem;
    }
}

@media (max-width: 600px) {
    .ai-education-wrapper {
        padding: 0 1.4rem;
    }

    .ai-row {
        padding: 1.6rem 1.6rem;
    }

    .your-turn-section {
        border-radius: 20px;
        padding: 1.8rem 1.2rem;
    }

    .demo-card-content {
        padding: 1.5rem 1.4rem 1.7rem;
    }
    
    .demos-grid {
        padding-top: 40px;
    }
    
    .demo-card-image-wrapper {
        height: 120px;
    }
    
    .demo-card:hover .demo-card-image-wrapper {
        height: 160px;
        margin-top: -40px;
    }
    
    .your-turn-title {
        font-size: 1.5rem;
    }
    
    .your-turn-intro {
        font-size: 0.98rem;
    }
    
    .blue-section-wrapper {
        border-radius: 30px 30px 0 0;
        padding: 2.5rem 1rem 4rem;
    }
}
/* Remove gap between blue section and footer */
main {
    margin-bottom: 0;
    padding-bottom: 0;
}