/* Custom CSS for the About Us page */

/* Import core styles from the main site for consistency */
@import url('style.css');

/* Hero Section specific to About Us */
.about-hero-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)),
        url('https://i.postimg.cc/KzcMSBGT/image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8vh 5% 0;
}

.about-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: var(--gold);
    line-height: 1.2;
    font-weight: 700;
}

.about-hero-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--text);
    opacity: 0.9;
}

/* Commitments Section - The core content of the page */
.commitments-section {
    padding: 5rem 0;
    background-color: var(--primary);
}

.commitment-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 3fr);
    /* Adjusted for better content balance */
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(200, 169, 126, 0.2);
}

.commitment-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.commitment-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.commitment-title {
    color: var(--gold);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.commitment-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
}

.commitment-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-top: 1rem;
    opacity: 0.7;
}

.commitment-text {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    line-height: 1.8;
    text-align: justify;
    /* Text alignment justified */
}

.commitment-text p {
    margin-bottom: 1.5rem;
}

/* Layout for reverse order cards */
.commitment-card.reverse {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr);
    /* Reversed column order */
}

.commitment-card.reverse .commitment-card-header {
    order: 2;
    /* Move header/icon block to the right */
    align-items: flex-end;
    /* Align header content to the right */
    text-align: right;
    /* Ensure all content within header is right-aligned */
}

.commitment-card.reverse .commitment-title::after {
    left: auto;
    right: 0;
}

.commitment-card.reverse .commitment-text {
    order: 1;
    /* Move text block to the left */
}

/* Animations for cards */
.commitment-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.commitment-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for Commitments */
@media (max-width: 992px) {

    .commitment-card,
    .commitment-card.reverse {
        grid-template-columns: 1fr;
        /* Stack columns vertically on smaller screens */
        gap: 1.5rem;
        padding: 2.5rem 0;
    }

    .commitment-card-header,
    .commitment-card.reverse .commitment-card-header {
        order: 1;
        align-items: center;
        /* Center header content */
        text-align: center;
    }

    .commitment-title::after,
    .commitment-card.reverse .commitment-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        /* Center the underline */
    }

    .commitment-icon {
        margin-top: 0;
    }

    .commitment-text,
    .commitment-card.reverse .commitment-text {
        order: 2;
        text-align: left;
        /* Revert to left-align on mobile for better readability */
    }
}