/* Family Hero Section */
.family-hero {
    position: relative;
    padding: 10rem 2rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
}

.family-hero-title {
    font-family: var(--font-headings);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    color: white;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Family Intro Section */
.family-intro-section {
    padding: 6rem 2rem 3rem 2rem;
    background-color: white;
}

.family-intro-desc {
    font-family: var(--font-body);
    font-size: 1.12rem;
    color: var(--color-text-muted);
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Family Quick Links Grid */
.family-quicklinks-section {
    padding: 3rem 2rem 6rem 2rem;
    background-color: white;
}

.quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quicklink-card {
    background: #0d233a; /* Dark blue background from pic 2 */
    color: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition-smooth);
}

.quicklink-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.quicklink-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.quicklink-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.quicklink-card:hover .quicklink-img img {
    transform: scale(1.04);
}

.quicklink-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.quicklink-info h3 {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.quicklink-info p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.btn-quicklink-more {
    display: inline-block;
    align-self: start;
    background-color: white;
    color: #0d233a !important;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    font-family: var(--font-headings);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-quicklink-more:hover {
    background-color: var(--color-primary);
    color: white !important;
}

/* Informative Alternating Blocks */
.family-info-blocks {
    padding: 6.5rem 2rem;
    background-color: var(--color-bg-light);
}

.info-block-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 6.5rem auto;
}

.info-block-row:last-child {
    margin-bottom: 0;
}

.info-block-row.reverse {
    direction: ltr;
}

.info-block-row.reverse .info-block-text {
    grid-column: 2;
}

.info-block-row.reverse .info-block-img {
    grid-column: 1;
    grid-row: 1;
}

.info-block-img {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.info-block-text {
    text-align: left;
}

.info-block-text h3 {
    font-family: var(--font-headings);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.info-block-text p {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.info-block-text p:last-child {
    margin-bottom: 0;
}

/* Experience Call Box Section */
.family-experience-box {
    padding: 7rem 2rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
}

.family-experience-box h2 {
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    color: white;
    margin-top: 0;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-family-gettouch {
    display: inline-block;
    background-color: transparent;
    color: white !important;
    padding: 0.85rem 2.25rem;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid white;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-family: var(--font-headings);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-family-gettouch:hover {
    background-color: white;
    color: var(--color-accent) !important;
    transform: translateY(-2px);
}

/* Responsiveness */
@media (max-width: 992px) {
    .quicklinks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-block-row,
    .info-block-row.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .info-block-row.reverse .info-block-text {
        grid-column: 1;
    }

    .info-block-row.reverse .info-block-img {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 576px) {
    .quicklinks-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
