body {
    background-color: #f9fbfd;
    font-family: 'Quicksand', sans-serif;
    color: #5a5a5a;
}

/* Standardized Section Styling */
.details-section {
    padding: 80px 0 20px;
    background-color: #f9fbfd;
}

.section-header {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1965c0;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header::before {
    content: "••";
    font-size: 20px;
    opacity: 0.3;
}

/* Info Card - Themed */
.info-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #eef2f6;
    height: auto;
    position: relative;
}

.info-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1965c0;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-size: 16px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 15px 110px 1fr;
    gap: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 0;
}

.info-value {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.info-list li::before {
    content: "\f0c8"; /* Font Awesome square */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 8px;
    color: #1965c0;
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.info-label {
    font-weight: 700;
    color: #333;
    display: inline-block;
}

/* Timeline - Themed */
.milestone-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.milestone-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 45px;
    width: 2px;
    height: calc(100% + 10px);
    background: #e1e8ef;
}

.milestone-item:last-child::before {
    display: none;
}

.milestone-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: #1965c0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(25, 101, 192, 0.2);
}

.milestone-date {
    font-weight: 800;
    color: #1965c0;
    margin-right: 12px;
    font-size: 17px;
}

.milestone-content {
    font-size: 18px;
    color: #444;
    padding-top: 8px;
}

/* Mission Section - Themed */
.mission-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
    border: 1px solid #eef2f6;
    min-height: auto;
}

.mission-text {
    flex: 1.2;
    padding: 50px;
}

.mission-text h5 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1965c0;
    margin-bottom: 25px;
}

.mission-text ul {
    list-style: none; /* Removed bullets */
    padding-left: 0;
}

.mission-text ul li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.mission-text ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #1965c0; /* Match theme blue */
}


.mission-img {
    flex: 0.8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px; /* Base height for image side */
}


/* Photo Gallery - Themed */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    background: #ffffff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.responsive-portrait {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.responsive-portrait img {
    width: 100%;
    height: 380px; /* Reduced height for better balance */
    object-fit: cover;
    border-radius: 16px;
}

/* Contact Section - Themed */
.contact-us-section {
    background-color: #ffffff;
    padding: 60px 0 80px;
    margin-top: 0;
}


.map-frame {
    background: #f9fbfd;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    height: 300px;
    border: 1px solid #eef2f6;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 300px;
    justify-content: center;
}

.btn-contact {
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    color: #333;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f4f8;
    transition: all 0.3s ease;
}

.btn-contact span {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 2px;
    font-weight: 600;
}

.contact-value {
    font-size: 17px;
    font-weight: 700;
}

.btn-contact i {
    width: 44px;
    height: 44px;
    background: #f0f4f8;
    color: #1965c0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-contact.primary i {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-call i {
    background: rgba(157, 80, 50, 0.1);
    color: #9d5032;
}

.btn-contact:hover i {
    transform: scale(1.1);
    background: #1965c0;
    color: #fff;
}

.btn-contact.primary:hover i {
    background: #fff;
    color: #1965c0;
}

.btn-call:hover i {
    background: #9d5032;
    color: #fff;
}

.btn-contact:hover {
    border-color: #1965c0;
    color: #1965c0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.btn-contact.primary {
    background: #1965c0;
    color: #ffffff;
    border-color: #1965c0;
}

.btn-call {
    background: #fdf5e6;
    color: #9d5032;
    border-color: #9d5032;
}

/* Responsive Details Page */
@media (max-width: 1199.98px) {
    .section-header {
        font-size: 32px;
    }
    .responsive-portrait img {
        height: 350px;
    }
}

@media (max-width: 991.98px) {
    .details-section {
        padding: 40px 0;
    }

    .section-header {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .info-card {
        padding: 30px;
        margin-bottom: 40px;
    }

    .responsive-portrait img {
        height: 400px; /* Slightly taller for standalone stacked view */
    }

    .mission-card {
        flex-direction: column;
        min-height: auto;
    }

    .mission-img {
        height: 300px;
        min-height: auto;
        order: -1;
    }

    .mission-text {
        padding: 35px;
    }

    .map-frame {
        height: 320px;
        margin-bottom: 20px;
    }

    .contact-buttons {
        height: auto;
        gap: 15px;
    }
}

@media (max-width: 767.98px) {
    .section-header {
        font-size: 24px;
        gap: 10px;
    }

    .section-header::before {
        font-size: 16px;
    }

    .info-list li {
        font-size: 15px;
        grid-template-columns: 15px 90px 1fr;
        gap: 10px;
    }

    .milestone-item {
        padding-left: 45px;
        margin-bottom: 35px;
    }

    .milestone-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .milestone-content {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .btn-contact {
        padding: 15px 20px;
    }

    .contact-value {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .details-section {
        padding: 30px 0;
    }

    .info-card {
        padding: 20px;
        border-radius: 20px;
    }

    .info-card h4 {
        font-size: 20px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .info-list li {
        font-size: 14px;
        grid-template-columns: 12px 85px 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }

    .info-label {
        font-size: 13px;
    }

    .responsive-portrait img {
        height: 300px;
    }

    .milestone-item {
        padding-left: 40px;
    }

    .milestone-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .milestone-item::before {
        left: 15px;
    }

    .mission-text {
        padding: 25px;
    }

    .mission-text h5 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .mission-text ul li {
        font-size: 15px;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-value {
        font-size: 15px;
    }

    .btn-contact i {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .info-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .info-list li::before {
        display: none;
    }
    
    .info-label {
        font-size: 12px;
        color: #1965c0;
    }
}
