/* style/about.css */

/* Core layout and typography for the page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Default light text on dark background */
    background-color: var(--background-color-primary, #08160F); /* Deep Green background */
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Container for main content */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sections styling */
.page-about__hero-section,
.page-about__intro-section,
.page-about__history-section,
.page-about__mission-section,
.page-about__values-section,
.page-about__security-section,
.page-about__csr-section,
.page-about__team-section,
.page-about__achievements-section,
.page-about__outro-section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-about__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Titles */
.page-about__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 600;
    color: var(--gold-color, #F2C14E); /* Using gold for section titles for emphasis */
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-about__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    font-weight: 600;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 15px;
}

.page-about__card-title {
    font-size: clamp(1.2em, 2vw, 1.5em);
    font-weight: 600;
    color: var(--glow-color, #57E38D); /* Using glow color for card titles */
    margin-bottom: 10px;
}

/* Text blocks */
.page-about__text-block {
    font-size: 1.1em;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 15px;
    text-align: justify;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 30px;
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--glow-color, #57E38D);
    border: 2px solid var(--glow-color, #57E38D);
}

.page-about__btn-secondary:hover {
    background: var(--glow-color, #57E38D);
    color: var(--background-color-primary, #08160F); /* Dark text on glow hover */
    transform: translateY(-2px);
}

/* Grid layout for sections with image and text */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left; /* Align text left in grid items */
}

.page-about__grid-layout--reverse .page-about__text-content {
    order: 2; /* Text on right */
}

.page-about__grid-layout--reverse .page-about__image-wrapper {
    order: 1; /* Image on left */
}

.page-about__image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

/* Mission/Values/CSR cards */
.page-about__mission-content,
.page-about__values-grid,
.page-about__csr-initiatives,
.page-about__achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.page-about__card-bg {
    background-color: var(--card-bg-color, #11271B); /* Card background color */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color, #2E7A4E);
    height: 100%; /* Ensure cards have same height */
    display: flex;
    flex-direction: column;
}

.page-about__card-bg p {
    color: var(--text-secondary-color, #A7D9B8);
}

/* Lists */
.page-about__security-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-about__security-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-about__security-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--glow-color, #57E38D);
}

.page-about__achievements-note {
    margin-top: 40px;
    font-style: italic;
    color: var(--text-secondary-color, #A7D9B8);
}

/* Links within text */
.page-about__outro-section a {
    color: var(--glow-color, #57E38D);
    text-decoration: underline;
}

.page-about__outro-section a:hover {
    color: var(--gold-color, #F2C14E);
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-about__grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-about__grid-layout--reverse .page-about__text-content,
    .page-about__grid-layout--reverse .page-about__image-wrapper {
        order: unset; /* Reset order for smaller screens */
    }

    .page-about__hero-section,
    .page-about__intro-section,
    .page-about__history-section,
    .page-about__mission-section,
    .page-about__values-section,
    .page-about__security-section,
    .page-about__csr-section,
    .page-about__team-section,
    .page-about__achievements-section,
    .page-about__outro-section {
        padding: 40px 0;
    }

    .page-about__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-about__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__hero-section,
    .page-about__intro-section,
    .page-about__history-section,
    .page-about__mission-section,
    .page-about__values-section,
    .page-about__security-section,
    .page-about__csr-section,
    .page-about__team-section,
    .page-about__achievements-section,
    .page-about__outro-section {
        padding: 30px 0;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-about__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }

    /* Mobile image and video responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .page-about__hero-section,
    .page-about__intro-section,
    .page-about__history-section,
    .page-about__mission-section,
    .page-about__values-section,
    .page-about__security-section,
    .page-about__csr-section,
    .page-about__team-section,
    .page-about__achievements-section,
    .page-about__outro-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-about__hero-section {
        padding-top: 10px !important;
    }

    /* Mobile button responsiveness */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-about__mission-content,
    .page-about__values-grid,
    .page-about__csr-initiatives,
    .page-about__achievements-grid {
        grid-template-columns: 1fr;
    }

    .page-about__text-block,
    .page-about__hero-description {
        text-align: left; /* Adjust text alignment for mobile */
    }
}

/* Ensure no filter on images */
.page-about img {
    filter: none !important;
}

/* Color contrast enforcement */
.page-about__dark-bg {
  color: var(--text-main-color, #F2FFF6); /* Deep Green background, light text */
}

.page-about__card-bg {
  background-color: var(--card-bg-color, #11271B); /* Card BG is dark, light text */
  color: var(--text-secondary-color, #A7D9B8);
}
.page-about__card-bg .page-about__card-title {
  color: var(--glow-color, #57E38D); /* Card title with glow color */
}

/* Specific text color for links */
.page-about__outro-section a {
  color: var(--glow-color, #57E38D);
}
.page-about__btn-primary {
  color: #ffffff;
}
.page-about__btn-secondary {
  color: var(--glow-color, #57E38D);
}
.page-about__btn-secondary:hover {
  color: var(--background-color-primary, #08160F); /* Dark text on glow hover */
}