.aboutus-section {
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 27, 61, 0.05);
    text-align: center;
}

.aboutus-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;         /* Justify the about us text */
    position: relative;
}

.aboutus-content::after {
    content: "";
    clear: both;
    display: table;
}

.aboutus-content img.md-portrait {
    width: 220px;
    height: 120px;
    border-radius: 6%;
    object-fit: contain;
    float: right;
    margin-left: 2rem;           /* Add gap between text and photo */
    margin-bottom: 0.5rem;
    border: 1px solid var(--gold-accent);
    margin-right: 0;             /* Remove extra right margin if present */
}

.aboutus-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--luxury-dark);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--luxury-dark);
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--luxury-dark);
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.md-message-section {
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    background-color: var(--premium-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 27, 61, 0.05);
    text-align: center;
}

.md-message-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    position: relative;
}

.md-message-content img.md-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 1.5rem;   /* Gap between photo and text */
    margin-bottom: 0.5rem;
    border: 3px solid var(--gold-accent);
    margin-left: 0;         /* Ensure no left margin */
}

.md-message-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--luxury-dark);
    margin-bottom: 1rem;
}

.content {
    margin-left: 280px;
    width: 80%;
    padding: 3rem;
    padding-top: 7rem;
}

.md-message-content p:last-of-type {
    margin-bottom: 0;
}

.md-message-content::after {
    content: "";
    clear: both;
    display: table;
}

.md-signature {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--royal-blue);
    margin-top: 1.5rem;
    text-align: right;
}

.review-container {
    margin-top: 40px;
    /* Add spacing between sections */
}

.review-wrapper {
    background-color: #e6f0fa;
    /* Changed to light blue to match the image */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-wrapper .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    padding: 10px 0;
    border-bottom: 3px solid var(--gold-accent);
}

.review-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    gap: 20px;
    scrollbar-width: none;
    justify-content: center;
}

.review-grid::-webkit-scrollbar {
    display: none;
}

.review-card {
    text-align: justify;
    background-color: #fff3e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 304px;
    max-height: 39dvh;
    text-overflow: ellipsis;
    align-items: center;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-icon {
    width: 40px;
    height: 40px;
    background-color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-weight: bold;
    margin: 0;
}

.rating {
    color: #f5c518;
    margin: 5px 0;
}

.verified {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

.timestamp {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.testimonials-wrapper {
    background-color: #fff; /* Change from #e6f0fa to #fff */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonials-wrapper .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    padding: 10px 0;
    border-bottom: 3px solid var(--luxury-dark);
}

.testimonials-grid {
    display: flex;
    flex-direction: row;
    gap: 40px; /* Increased gap between testimonial cards */
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    white-space: nowrap;
    scrollbar-width: none;
    justify-content: flex-start;
}

.testimonial-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    /* More intense shadow */
    box-shadow: 0 8px 40px 0 rgba(44, 62, 80, 0.25), 0 1.5px 8px 0 rgba(44, 62, 80, 0.10);
    margin: 2rem 0;
    max-width: 388px;
    min-width: 320px;
    min-height: 220px;
    gap: 1.2rem;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
}

.testimonial-image {
    flex: 0 0 120px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    background: #e0e0e0;
}

.testimonial-image img,
.testimonial-dummy {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
    border-radius: 0; /* No border radius, handled by card */
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    background: #e0e0e0;
    color: #3b3b3b;
    letter-spacing: 2px;
    overflow: hidden;
}

.testimonial-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 1.2rem 1rem 1.2rem 0.5rem;
    overflow: hidden;
}

.testimonial-name,
.testimonial-role,
.testimonial-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.testimonial-name {
    font-size: 1.2rem;
    color: #283593;
    font-weight: bold;
    margin: 0 0 0.2rem 0;
    font-family: 'Cinzel', serif;
    line-height: 1.1;
}

.testimonial-role {
    font-size: 0.90rem;
    color: #5c6bc0e8;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.7rem;
    line-height: 1.4;
    max-height: 4.2em; /* Limit to ~3 lines */
    overflow: hidden;
}

.testimonial-socials {
    margin-top: 0.2rem;
}

.testimonial-socials a {
    color: #283593;
    font-size: 1.3rem;
    margin-right: 0.7rem;
    transition: color 0.2s;
    display: inline-block;
}

.testimonial-socials a:hover {
    color: #FFD700;
}

/* Section title underline color alternates by section */
.aboutus-section .section-title,
.testimonials-section .section-title {
    border-bottom: 3px solid var(--luxury-dark);
}

.md-message-section .section-title {
    border-bottom: 3px solid var(--gold-accent);
}

.review-wrapper .section-title {
    border-bottom: 3px solid var(--gold-accent);
}

/* Center all section titles and wrappers */
.section-title,
.aboutus-section,
.md-message-section,
.testimonials-section,
.testimonials-wrapper,
.review-container,
.review-wrapper {
    text-align: center;
    justify-content: center;
    align-items: center;
}

/* Center testimonial and review cards horizontally */
.testimonials-grid,
.review-grid {
    justify-content: center;
}

/* Center content inside testimonial and review cards */
.testimonial-card,
.review-card {
    align-items: center;
    text-align: center;
}

/* Only center the section title, not the grid */
.section-title {
    text-align: center;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* Only center the section title, not the grid */
.review-wrapper .section-title {
    text-align: center;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* Align customer review cards to the left */
.review-grid {
    justify-content: flex-start;
}

/* Align testimonial cards to the left */
.testimonials-grid {
    justify-content: flex-start;
}
.review-user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    background: #eee;
    display: inline-block;
    vertical-align: middle;
}
