.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body or set explicitly if needed */
}

/* Header offset for desktop */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Section styling */
.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability on dark background */
}

.page-about__link {
    color: #26A9E0;
    text-decoration: none;
}

.page-about__link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), #1a1a1a; /* Dark overlay for text readability */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Dim the image for text contrast, not color change */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f8f8f8;
}

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
}

.page-about__btn-link:hover {
    color: #1a8cc4;
}

/* Sections Backgrounds */
.page-about__dark-bg {
    background-color: #1a1a1a; /* Darker than body to provide visual separation */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #222222; /* Slightly lighter dark for contrast */
    color: #ffffff;
}

/* Grid Layouts */
.page-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-about__grid--two-columns {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.page-about__grid-item {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for items */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__grid-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__grid-image,
.page-about__tech-image,
.page-about__achievement-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block; /* Ensures images behave correctly with max-width */
}

.page-about__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-about__list li {
    margin-bottom: 10px;
}

.page-about__list-highlight {
    color: #26A9E0;
}

/* Cards */
.page-about__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly more prominent background for cards */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a grid have equal height */
}

.page-about__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.page-about__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allows text to fill space */
    margin-bottom: 15px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #f0f0f0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Remove default details marker */
.page-about__faq-item > summary {
    list-style: none;
}
.page-about__faq-item > summary::-webkit-details-marker {
    display: none;
}

/* Contact Info */
.page-about__contact-info {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.page-about__contact-info p {
    margin-bottom: 10px;
}

/* 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__grid--two-columns {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-about__container {
        padding: 20px 15px;
    }

    /* Hero section */
    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-about__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow button text to wrap */
        word-wrap: break-word !important;
        padding: 12px 15px;
        text-align: center;
    }
    
    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Containers for images and buttons to prevent overflow */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-buttons,
    .page-about__grid-item,
    .page-about__image-container,
    .page-about__text-content,
    .page-about__contact-info,
    .page-about__faq-item {
        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 */
    }

    /* Specific overrides for padding if elements already have it */
    .page-about__card,
    .page-about__grid-item,
    .page-about__faq-item {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }

    .page-about__card-image {
        height: auto; /* Allow card images to scale */
    }

    .page-about__grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }
    
    .page-about__tech-section .page-about__grid--two-columns,
    .page-about__achievements-section .page-about__grid--two-columns {
        grid-template-columns: 1fr;
    }
    
    .page-about__text-block,
    .page-about__list {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
}