/* About Page Styles */
.about-page {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
}

/* Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    /* Include padding in width calculation */
}

/* Hero Section */
.hero-section {
    background-color: #f0f5ff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 110, 207, 0.05) 0%, rgba(44, 110, 207, 0.1) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: 'Merriweather', serif;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    /* Allow long titles to wrap */
    max-width: 100%;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2c6ecf;
}

.page-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    color: #444;
    padding: 0 15px;
    word-wrap: break-word;
}

/* About Section */
.about-section {
    padding: 60px 0;
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
    position: relative;
    word-wrap: break-word;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #2c6ecf;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
    color: #444;
    word-wrap: break-word;
}

.rounded-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Values Section */
.bg-light {
    background-color: #f8f9fa;
}

.values-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    width: 100%;
}

.text-center {
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.value-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 3px solid transparent;
    word-wrap: break-word;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #2c6ecf;
}

.value-icon {
    margin-bottom: 20px;
    color: #2c6ecf;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #1a1a1a;
    word-wrap: break-word;
}

.value-card p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    word-wrap: break-word;
}

/* Team Section */
.team-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff, #f0f5ff);
    width: 100%;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #555;
    line-height: 1.7;
    font-size: 16px;
    padding: 0 15px;
    word-wrap: break-word;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    transition: transform 0.3s ease;
}

.team-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a1a1a;
    word-wrap: break-word;
}

.team-role {
    color: #2c6ecf;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 15px;
    word-wrap: break-word;
}

.team-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    word-wrap: break-word;
}

/* Buttons */
.btn-primary {
    background-color: #2c6ecf;
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(44, 110, 207, 0.2);
}

.btn-primary:hover {
    background-color: #235cb3;
    box-shadow: 0 8px 20px rgba(44, 110, 207, 0.3);
    transform: translateY(-2px);
}

/* SVG Icons - Fix overflow */
svg {
    max-width: 100%;
    height: auto;
    overflow: visible;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        margin-top: 20px;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section {
        padding: 60px 0;
    }

    .page-title {
        font-size: 34px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .page-title {
        font-size: 30px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .team-photo {
        width: 140px;
        height: 140px;
    }

    .value-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-grid {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-title {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .about-grid,
    .values-grid {
        gap: 20px;
    }

    .about-content p {
        font-size: 15px;
    }
}

/* FAQ Styles - Minimal Design */
.faq-page {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.faq-hero {
    margin-bottom: 50px;
    text-align: center;
}

.faq-title {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.faq-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-container {
    padding: 0;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.faq-category {
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.faq-category:hover {
    background-color: #e5e5e5;
}

.faq-category.active {
    background-color: #2c6ecf;
    color: white;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: none;
    /* Hide all FAQs by default */
}

.faq-item.visible {
    display: block;
    /* Show only visible FAQs */
}

.faq-question {
    position: relative;
    padding: 0 30px 0 0;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    color: #333;
    margin-bottom: 10px;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 0;
    font-size: 20px;
    color: #2c6ecf;
}

.faq-item.active .faq-question:after {
    content: '−';
}

.faq-answer {
    display: none;
    padding: 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0 0 10px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-load-more {
    margin-top: 30px;
    text-align: center;
}

.load-more-btn {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background-color: #e5e5e5;
}

.faq-count {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

/* Responsive Adjustments for FAQ */
@media (max-width: 768px) {
    .faq-title {
        font-size: 28px;
    }

    .faq-subtitle {
        font-size: 15px;
    }

    .faq-question {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .faq-title {
        font-size: 24px;
    }

    .faq-page {
        padding: 30px 15px;
    }

    .faq-categories {
        gap: 8px;
    }

    .faq-category {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* Testing Note Style */
.testing-note {
    font-weight: bold;
    text-align: center;
    padding: 20px;
    margin: 30px auto;
    background-color: #f5f5f5;
    border-radius: 5px;
    max-width: 800px;
    border-left: 4px solid red;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testing-note p {
    font-style: italic;
    color: red !important;
    margin: 0;
    font-size: 16px;
}