/* Main Styles for AI Education Program Website */

/* Base Styles and Variables */
:root {
    --primary-color: #4a6bdf;
    --secondary-color: #6c63ff;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

header h2 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    background-color: #f0f4ff;
    padding: 5rem 0;
}

.hero-content {
    max-width: 600px;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Overview Section */
#overview {
    background-color: white;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-goals {
    background-color: #f0f4ff;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.program-goals h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.program-goals ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    list-style: disc;
    padding-left: 1.5rem;
}

/* Curriculum Section */
#curriculum {
    background-color: #f5f7fa;
}

.session-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.session-item {
    background-color: white;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.session-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: var(--transition);
}

.session-header:hover {
    background-color: #f0f4ff;
}

.session-header h3 {
    margin-bottom: 0;
}

.session-header .icon {
    transition: var(--transition);
}

.session-header.active .icon {
    transform: rotate(180deg);
}

.session-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.session-content-inner {
    padding: 0 1.5rem 1.5rem;
}

.session-content.active {
    max-height: 500px;
}

.session-objectives {
    margin-top: 1rem;
}

.session-objectives h4 {
    margin-bottom: 0.5rem;
}

/* Materials Section */
#materials {
    background-color: white;
}

.materials-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.tab-pane > p {
    text-align: center;
    margin-bottom: 2rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.material-card {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

.material-card-body {
    padding: 1.5rem;
}

.material-card-body p {
    margin-bottom: 1.5rem;
}

/* Interactive Activities Section */
#interactive {
    background-color: #f5f7fa;
}

.activities-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    color: var(--primary-color);
}

.category-card p {
    margin-bottom: 1.5rem;
}

/* Modal Styles */
.activity-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    width: 80%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Prompts Section */
#prompts {
    background-color: white;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.prompt-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.prompt-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.prompt-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.grade-tabs {
    display: flex;
    margin: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.grade-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
}

.grade-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.grade-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.grade-content {
    display: none;
    padding: 1rem 0;
}

.grade-content.active {
    display: block;
}

.building-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.block {
    background-color: white;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.block-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.before-after .example {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.before-after .example:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.download-prompt-guide {
    text-align: center;
}

/* Implementation Section */
#implementation {
    background-color: #f0f4ff;
}

.implementation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.implementation-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.implementation-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Download Section */
#download {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

#download .btn {
    background-color: white;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

#download .btn:hover {
    background-color: var(--light-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: white;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #hero .container {
        flex-direction: column-reverse;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

@media (max-width: 480px) {
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
