/* FAQ PAGE STYLES - matches IIMU theme */

/* Based on IITM layout with green and yellow color scheme */

:root {
    /* Primary Colors - Green & Yellow */
    --iimu-primary-green: #487235;
    --iimu-primary-yellow: #feec43;
    --iimu-dark-green: #212934;
    --iimu-light-green: #487235;
    --iimu-light-yellow: #feec43;
    --iimu-pale-green: #f2f2f2;
    --iimu-pale-yellow: #f2f2f2;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #020202;
    --text-dark: #212934;
    --text-gray: #4d4d4d;
    --text-light-gray: #cbcbcb;
    --border-light: #f2f2f2;
    
    /* Background Colors */
    --bg-light: #f2f2f2;
    --bg-medium: #cbcbcb;
    --bg-dark: #cbcbcb;    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.6);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: white;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Serif', serif;
    font-weight: 500;
}

h1 {
    color: var(--black);
}

h2 {
    color: var(--iimu-primary-green);
}

h3 {
    color: var(--iimu-primary-green);
}

h4 {
    color: var(--iimu-primary-green);
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.overall {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background-color: var(--bg-dark);
    margin: 0;
    border: none;
}

/* ========== Breadcrumb Section ========== */
.breadcrumb {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    margin-top: var(--header-total-height);
}

.breadcrumb div {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.breadcrumb p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: -10px;
}

.breadcrumb a {
    color: var(--iimu-primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--iimu-primary-yellow);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-gray);
}

/* Section Headings */
.faq-section {
    margin-bottom: 60px;
}

.faq-section-title {
    color: var(--iimu-primary-green);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--iimu-primary-yellow);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 15px;
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--text-light-gray);
}

.faq-question {
    width: 100%;
    background: white;
    color: var(--text-dark);
    padding: 15px;
    text-align: left;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.open i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: white;
    padding: 0 15px;
    line-height: 1.7;
    color: var(--text-gray);
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 500px;
    padding: 15px;
}

/* Remove unwanted underline in FAQ questions & answers */
.faq-question,
.faq-question *,
.faq-answer,
.faq-answer * {
    text-decoration: none !important;
}

/* ===============================================
   Navigation Section
   =============================================== */
.navigation-section {
    background: white;
    padding: 60px 5%;
}

.navigation-info {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navigation-info span {
    display: none;
}

.navigation-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--iimu-primary-green);
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.navigation-button:hover {
    background: var(--iimu-primary-yellow);
    color: var(--text-dark);
}

/* Mobile responsiveness */

@media (max-width: 1200px) {

    .breadcrumb {
        margin-top: var(--header-total-height);
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: var(--header-total-height);
    }

    .overall {
        padding: 30px 20px;
    }

    .faq-hero h1 {
        font-size: 28px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-question {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .faq-tabs {
        flex-direction: column;
    }

    .faq-tab {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 550px) {
    h1 {
        font-size: 1.6rem;
    }

    .faq-section-title {
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .breadcrumb {
        margin-top: var(--header-total-height);
        padding: 8px 0;
        font-size: 12px;
    }

    .faq-hero {
        padding: 40px 0;
    }

    .faq-hero h1 {
        font-size: 24px;
    }

    .faq-hero p {
        font-size: 14px;
    }

    .faq-tabs {
        gap: 10px;
    }

    .faq-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .faq-item {
        padding: 12px;
    }

    .faq-question {
        font-size: 14px;
    }

    .faq-answer {
        font-size: 13px;
        line-height: 1.5;
    }

    .navigation-section {
        padding: 30px 15px;
    }

    .navigation-info {
        padding: 15px;
    }

    .navigation-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}