/* style/about.css */

/* Variables for consistent theming */
:root {
    --primary-color: #0A244A; /* Midnight Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f7f6;
    --bg-dark: #0A244A;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page-about .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about .section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #555;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about .subsection-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Hero Section */
.page-about .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0A244A 70%, #1A3C6E 100%);
    color: var(--text-light);
    overflow: hidden;
}

.page-about .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-about .hero-image-main {
    width: 100%;
    max-width: 1000px; /* Adjust as needed */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    object-fit: cover;
    display: block;
}

.page-about .hero-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-about .hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Gold for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-about .hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about .cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark text on gold */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-about .cta-button:hover {
    background: #FFC107; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about .small-cta {
    padding: 12px 25px;
    font-size: 1em;
}

.page-about .secondary-cta {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-about .secondary-cta:hover {
    background-color: #1A3C6E;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-about section {
    padding: 80px 0;
    margin-bottom: 0; /* No extra margin between sections */
}

.page-about .section-intro {
    background-color: var(--bg-light);
}

.page-about .section-why-choose {
    background-color: #ffffff;
}

.page-about .section-journey {
    background-color: var(--bg-light);
}

.page-about .section-future-vision {
    background-color: #ffffff;
}

.page-about .section-team {
    background-color: var(--bg-light);
}

.page-about .section-faq {
    background-color: #ffffff;
}

.page-about .section-contact {
    background-color: var(--bg-dark); /* Dark background for contact */
    color: var(--text-light);
}

.page-about .section-contact .section-title {
    color: var(--secondary-color);
}

.page-about .section-contact .section-subtitle {
    color: var(--text-light);
}


/* Content Wrapper for text + image layouts */
.page-about .content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-about .content-wrapper.reverse {
    flex-direction: row-reverse;
}

.page-about .content-wrapper .text-content {
    flex: 1;
}

.page-about .content-wrapper .text-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-about .content-wrapper.reverse .text-content p {
    color: var(--text-dark); /* Ensure text color is dark on light background */
}

.page-about .content-wrapper .image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about .content-wrapper .content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-about .value-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-about .value-list li {
    background-color: #eaf0f4;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-about .value-list li strong {
    color: var(--primary-color);
}

/* Features Grid */
.page-about .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-about .feature-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about .feature-icon {
    width: 120px; /* Display size, generated image will be larger */
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Added for consistency with other images */
}

.page-about .feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about .feature-item p {
    font-size: 1em;
    color: #666;
}

/* Vision Grid */
.page-about .vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about .vision-item {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about .vision-icon {
    width: 150px; /* Display size, generated image will be larger */
    height: 150px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
}

.page-about .vision-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about .section-description-bottom {
    font-size: 1.1em;
    text-align: center;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

/* Team Section */
.page-about .team-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about .team-image {
    flex: 1;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-about .team-text {
    flex: 1.5;
}

.page-about .team-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* FAQ Section */
.page-about .faq-list {
    margin-top: 40px;
}

.page-about .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.page-about .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-about .faq-question:hover {
    background: #f5f5f5;
}

.page-about .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
}

.page-about .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-about .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.page-about .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: #555;
}

.page-about .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.page-about .faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

/* Contact Section */
.page-about .section-contact {
    padding-bottom: 100px; /* Added padding for footer */
}

.page-about .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about .contact-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about .contact-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about .contact-item p {
    font-size: 1em;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.page-about .contact-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-about .contact-button:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.page-about .social-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-about .social-button:hover {
    background-color: #1A3C6E;
    color: #FFD700;
}

.page-about .contact-note {
    font-size: 0.95em;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about .hero-title {
        font-size: 3em;
    }
    .page-about .hero-description {
        font-size: 1.2em;
    }
    .page-about .section-title {
        font-size: 2em;
    }
    .page-about .subsection-title {
        font-size: 1.6em;
    }
    .page-about .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about .content-wrapper.reverse {
        flex-direction: column;
    }
    .page-about .content-wrapper .text-content,
    .page-about .content-wrapper .image-content {
        flex: none;
        width: 100%;
    }
    .page-about .team-intro {
        flex-direction: column;
        text-align: center;
    }
    .page-about .team-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about .hero-section {
        padding: 60px 15px;
    }
    .page-about .hero-title {
        font-size: 2.5em;
    }
    .page-about .hero-description {
        font-size: 1.1em;
    }
    .page-about .cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-about .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .page-about .subsection-title {
        font-size: 1.4em;
    }
    .page-about .section-intro,
    .page-about .section-why-choose,
    .page-about .section-journey,
    .page-about .section-future-vision,
    .page-about .section-team,
    .page-about .section-faq,
    .page-about .section-contact {
        padding: 50px 0;
    }
    .page-about .features-grid,
    .page-about .vision-grid,
    .page-about .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about .feature-icon,
    .page-about .vision-icon {
        width: 100px;
        height: 100px;
    }
    .page-about .faq-question {
        padding: 15px 20px;
    }
    .page-about .faq-question h3 {
        font-size: 1.1em;
    }
    .page-about .faq-answer {
        padding: 0 20px;
    }
    .page-about .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-about .hero-title {
        font-size: 2em;
    }
    .page-about .hero-description {
        font-size: 0.95em;
    }
    .page-about .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about .section-title {
        font-size: 1.6em;
    }
    .page-about .section-subtitle {
        font-size: 0.9em;
    }
    .page-about .feature-item,
    .page-about .vision-item,
    .page-about .contact-item {
        padding: 25px;
    }
}