@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Etna';
    src: url('assets/Etna-Sans-serif.otf') format('Etna');
    font-style: normal;
}

/* 2. ENSURE BOX-SIZING IS APPLIED GLOBALLY */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden; /* Safety lock for horizontal scroll */
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f3f3;
    padding-top: 120px;
}

.main-content {
    flex: 1; /* Pushes footer down */
    width: 100%;
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; /* Higher than navbar */
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); 
    align-items: center; 
    justify-content: center; 
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.shake {
    animation: shake 0.5s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Wrapper to control overall spacing */
.index-wrapper, .index-wrapper-2 {
    display: flex;
    padding: 60px 10%;
    width: 100%;
}

.container-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Typography */
.content { 
    flex: 1; 
    max-width: 50%; 
}
.right-content { text-align: right; }

.tag, .about-tag, .course-tag {
    background-color: #AB6886;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #f3f3f3;
    display: inline-block;
    margin-bottom: 15px;
}

.tag{
    margin-top: 20px;
    margin-bottom: 0px;
}

.bigtag {
    background-color: #AB6886;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 24px;
    font-family: Etna;
    color: #f3f3f3;
    display: inline-block;
    margin-bottom: 10px;
}

h1 {
    font-size: 3rem;
    margin: 20px 0;
    color: #333;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 20px 0;
    font-weight: 600;
}

.highlight { color: #AB6886; }

p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Image Containers */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

.image-container-bottom {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container-bottom img {
    width: 100%;
    max-width: 600px;
    margin-right: 40px;
    height: auto;
    border-radius: 25px;
    object-fit: cover;
}

img {
    max-width: 100%;
    height: auto;
}

/* About Section */
.about-section {
    background: #f3f3f3;
    padding: 80px 10%;
    text-align: center;
}

.about-container {
    max-width: 1200px;
    margin: auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.stat h3 {
    font-size: 3rem;
    color: #000;
    margin: 0;
}

.stat p {
    margin: 0;
    text-align: left;
    max-width: 150px;
}

/* Core Objectives Section */
.course-section {
    padding: 60px 10%;
    max-width: 1400px;
    margin: auto;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0;
}

.course-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover { transform: translateY(-5px); }

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-content { padding: 25px;}
.course-content h3 { font-size: 1.4rem; color: #333; margin-bottom: 10px;}

/* FAQ Section */
.faq-section {
    padding: 80px 10%;
    max-width: 1400px;
    margin: auto;
}

.faq-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.faq-text { flex: 1; }
.faq-list { flex: 1.5; }

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    color: #333;
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
}

/* --- RESPONSIVE DESIGN FOR MOBILE & TABLETS --- */

/* --- RESPONSIVE FIXES --- */
@media (max-width: 960px) {
    .container-container {
        flex-direction: column; 
        text-align: center;
    }

    .index-wrapper, .index-wrapper-2 {
        padding: 40px 5%; /* Reduced padding prevents squishing */
    }

    .content {
        max-width: 100%;
    }

    .image-container img {
        max-width: 100%;
        margin-top: 30px;
    }

    .image-container-bottom img {
        max-width: 100%;
        margin-top: 30px;
        margin-left: 40px;
        border-radius: 25px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .faq-container {
        flex-direction: column;
    }
}