/* index.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --bg-color: #e6f3f3;
    --text-color: #333;
    --primary-color: #16a085;
    --secondary-color: #1abc9c;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('background-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

[data-theme="dark"] {
    --bg-color: #1a2b2b;
    --text-color: #e6f3f3;
    --primary-color: #1abc9c;
    --secondary-color: #16a085;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .top-bar {
    background: linear-gradient(90deg, #0d47a1, #1a73e8);
}

[data-theme="dark"] .action-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .action-btn:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .action-btn.primary {
    background: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .action-btn.primary:hover {
    background: var(--secondary-color);
}

[data-theme="dark"] .vision-text h2, [data-theme="dark"] .mission-text h2 {
    color: var(--text-color);
}

[data-theme="dark"] .vision-text h2::after, [data-theme="dark"] .mission-text h2::after {
    background: var(--text-color);
}

[data-theme="dark"] .vision-text p, [data-theme="dark"] .mission-text p {
    color: #ccc;
}

[data-theme="dark"] .hidden-content {
    color: #ccc;
}

[data-theme="dark"] .toggle-btn {
    background: var(--primary-color);
}

[data-theme="dark"] .toggle-btn:hover {
    background: var(--secondary-color);
}

[data-theme="dark"] .programs, [data-theme="dark"] .news {
    background: #2e3b3b;
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .news-item {
    background: #3a4a4a;
}

[data-theme="dark"] .chatbot {
    background: #2e3b3b;
}

[data-theme="dark"] .chatbot-header {
    background: var(--primary-color);
}

[data-theme="dark"] .chatbot input {
    border-color: var(--primary-color);
    color: var(--text-color);
    background: #3a4a4a;
}

.top-bar {
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin: 0 auto 60px;
    max-width: 1300px;
}

.vision, .mission {
    background: none;
    box-shadow: none;
    padding: 0;
    border-left: none;
}

.vision-content, .mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.vision-text, .mission-text {
    padding: 30px;
    animation: slideInLeft 1s ease-out;
}

.vision-text h2, .mission-text h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.vision-text h2::after, .mission-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #333;
}

.vision-text p, .mission-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.toggle-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}

.toggle-btn:hover {
    background: #222;
    transform: translateY(-2px);
}

.hidden-content {
    display: none;
    margin-top: 20px;
    font-size: 16px;
    color: #555;
}

.hidden-content p {
    animation: none;
    opacity: 1;
}

.vision-image, .mission-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vision-image img, .mission-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vision-image:hover img, .mission-image:hover img {
    transform: scale(1.1);
}

.programs {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #16a085;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.program-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.program-item:hover {
    transform: scale(1.05);
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    transition: background 0.3s ease;
}

.program-item:hover .program-overlay {
    background: rgba(0,0,0,0.5);
}

.program-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    color: white;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.program-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(10px);
    transition: transform 0.3s ease, color 0.3s ease;
}

.program-item:hover .program-content h3 {
    transform: translateY(0);
    color: #1a73e8;
}

.program-content p {
    font-size: 16px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 15px;
}

.program-item:hover .program-content p {
    opacity: 1;
    transform: scale(1);
}

.program-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.program-item:hover .program-btn {
    opacity: 1;
    transform: translateY(0);
}

.news {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #0d47a1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.news-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item a {
    display: inline-block;
    margin-top: 10px;
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot {
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

.chatbot.hidden {
    display: none;
}

.chatbot-header {
    background: #16a085;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.chatbot-messages {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.chatbot input {
    width: 70%;
    padding: 10px;
    border: 2px solid #16a085;
    border-radius: 10px;
    margin: 10px;
}

#chatbot-send {
    width: 20%;
    margin: 0 10px 10px;
}

@media (max-width: 768px) {
    .vision-content, .mission-content {
        grid-template-columns: 1fr;
    }
    
    .vision-image, .mission-image {
        order: -1;
    }
    
    .vision-text, .mission-text {
        padding: 20px 0;
    }
    
    .vision-image img, .mission-image img {
        height: 300px;
    }
    
    .program-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    
    .program-item {
        height: 250px;
    }
}