.is-family-page { background: #f6f9f8; }
.is-family-page .navigation { float: none; }
.aq-family-page { clear: both; padding: 36px 0 60px; }
.aq-family-page a:focus-visible { outline: 2px solid #009d87; outline-offset: 4px; }
.aq-family-panel { padding: 42px; border: 1px solid #e9efec; border-radius: 16px; background: #fff; box-shadow: 0 8px 36px #173f3210; }
.aq-family-heading { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid #edf1ef; }
.aq-family-logo { display: block; max-width: 100%; width: 280px; height: 120px; object-fit: contain; }
.aq-family-heading h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.3; color: #173f38; font-weight: 600; text-align: center; }
.aq-family-copy p { font-size: 15px; line-height: 1.9; color: #52636a; margin-bottom: 24px; overflow-wrap: anywhere; }
.aq-family-copy > p:last-child { margin-bottom: 0; }
.aq-family-copy strong, .aq-family-copy .aq-family-lead { color: #344d47; font-weight: 600; }
.aq-family-website { padding-top: 20px; border-top: 1px solid #edf1ef; }
.aq-family-website a { display: inline-flex; align-items: center; gap: 8px; color: #008779; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.aq-family-details,
.note-editable .aq-family-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 30px 0; }
.aq-family-detail,
.aq-family-card,
.note-editable .aq-family-detail,
.note-editable .aq-family-card { display: block; padding: 22px 24px; border: 1px solid #e4efe9; border-left: 4px solid #009d87; border-radius: 10px; background: #f8faf9; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); transition: transform .2s ease, box-shadow .2s ease; }
.aq-family-detail:hover,
.aq-family-card:hover { box-shadow: 0 6px 20px rgba(0, 157, 135, 0.1); transform: translateY(-2px); }
.aq-family-detail > div,
.aq-family-card > div,
.note-editable .aq-family-detail > div { min-width: 0; }
.aq-family-icon,
.note-editable .aq-family-icon { display: none !important; }
.aq-family-copy h2 { font-size: 20px; line-height: 1.4; font-weight: 600; color: #008779; margin-bottom: 10px; }
.aq-family-detail h2,
.aq-family-detail h3,
.aq-family-card h2,
.aq-family-card h3,
.note-editable .aq-family-detail h2,
.note-editable .aq-family-detail h3,
.note-editable .aq-family-card h2,
.note-editable .aq-family-card h3 { font-size: 16px; line-height: 1.4; font-weight: 700; color: #008779; margin-top: 0 !important; margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.aq-family-detail p,
.aq-family-card p,
.note-editable .aq-family-detail p,
.note-editable .aq-family-card p { font-size: 15px; line-height: 1.7; color: #52636a; margin-bottom: 0; }
.aq-family-video-section { margin-top: 32px; }
.aq-family-video { margin-top: 18px; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #edf3ef; }
.aq-family-video iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 991px) { .is-family-page { padding-top: 68px; } .aq-family-panel { padding: 30px; } .aq-family-detail, .aq-family-card { padding: 18px 20px; } }
@media (max-width: 767px) { .aq-family-page { padding: 24px 0 36px; } .aq-family-panel { padding: 24px 20px; border-radius: 12px; } .aq-family-details, .note-editable .aq-family-details { grid-template-columns: minmax(0, 1fr); gap: 16px; } .aq-family-logo { width: 240px; height: 100px; } .aq-family-copy h2 { font-size: 18px; } }
@media (max-width: 374px) { .aq-family-panel { padding: 22px 16px; } .aq-family-detail, .aq-family-card { padding: 16px 18px; } }

/* Aqua Paints company page */
.is-aqua-family-page .aq-family-panel { padding: 12px 0; }
.is-aqua-family-page .aq-family-heading { flex-direction: row; justify-content: flex-start; gap: 32px; padding-bottom: 28px; margin-bottom: 30px; position: relative; }
.is-aqua-family-page .aq-family-heading::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 96px; height: 3px; background: linear-gradient(to right, #43b6a0 25%, #7562ab 25% 50%, #e98059 50% 75%, #c5c859 75%); }
.is-aqua-family-page .aq-family-logo { width: 170px; height: 76px; }
.is-aqua-family-page .aq-family-heading h1 { text-align: left; font-size: clamp(28px, 4vw, 38px); }
.is-aqua-family-page .aq-family-lead { font-size: 19px; line-height: 1.8; font-weight: 500; color: #214d44; padding: 6px 0 6px 24px; border-left: 3px solid #009d87; margin-bottom: 36px; max-width: 950px; }
.is-aqua-family-page .aq-aqua-section-title { margin-top: 28px; margin-bottom: 12px; font-size: 21px; color: #173f38; }
.is-aqua-family-page .aq-family-copy > p:not(.aq-family-lead) { max-width: 950px; font-size: 15px; line-height: 1.9; }
.aq-aqua-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 38px 0 0; padding: 28px 0; border-top: 1px solid #dfe9e3; border-bottom: 1px solid #dfe9e3; }
.aq-aqua-facts > div { display: flex; flex-direction: column-reverse; gap: 8px; padding-left: 24px; border-left: 2px solid #009d8733; }
.aq-aqua-facts dt { color: #72847d; font-size: 14px; font-weight: 400; }
.aq-aqua-facts dd { color: #008779; font-size: 34px; font-weight: 600; line-height: 1.2; margin: 0; }
@media (max-width: 767px) {
    .is-aqua-family-page .aq-family-heading { gap: 20px; }
    .is-aqua-family-page .aq-family-logo { width: 110px; height: 56px; }
    .is-aqua-family-page .aq-family-heading h1 { font-size: 26px; }
    .is-aqua-family-page .aq-family-lead { padding-left: 16px; font-size: 17px; }
    .aq-aqua-facts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .aq-aqua-facts > div { padding-left: 16px; }
    .aq-aqua-facts dd { font-size: 30px; }
}

/* Consistent company identity and typography across Our Family (excluding Aqua Paints dedicated layout). */
.is-family-page:not(.is-aqua-family-page) .aq-family-panel { padding: 12px 0; }
.is-family-page:not(.is-aqua-family-page) .aq-family-heading { flex-direction: column; justify-content: center; gap: 0; padding-bottom: 28px; margin-bottom: 30px; position: relative; }
.is-family-page:not(.is-aqua-family-page) .aq-family-logo { width: 170px; height: 76px; }
.is-family-page:not(.is-aqua-family-page) .aq-family-heading h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-family-page:not(.is-aqua-family-page) .aq-family-heading::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 96px; height: 3px; background: linear-gradient(to right, #43b6a0 25%, #7562ab 25% 50%, #e98059 50% 75%, #c5c859 75%); }
.is-family-page:not(.is-aqua-family-page) .aq-family-copy > p:first-child { font-size: 19px; line-height: 1.8; font-weight: 500; color: #214d44; padding: 6px 0 6px 24px; border-left: 3px solid #009d87; margin-bottom: 36px; max-width: 950px; }
.is-family-page:not(.is-aqua-family-page) .aq-family-copy > p { max-width: 950px; line-height: 1.9; }
@media (max-width: 767px) { .is-family-page:not(.is-aqua-family-page) .aq-family-logo { width: 140px; height: 64px; } .is-family-page:not(.is-aqua-family-page) .aq-family-copy > p:first-child { padding-left: 16px; font-size: 17px; } }

/* Summernote Dynamic Content & External Pasted Safeguards */
.aq-summernote-content,
.aq-family-content {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.aq-summernote-content img,
.aq-family-content img,
.aq-summernote-content video,
.aq-family-content video,
.aq-summernote-content iframe,
.aq-family-content iframe {
    max-width: 100% !important;
    height: auto !important;
}
.aq-summernote-content table,
.aq-family-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}
.aq-summernote-content table th,
.aq-summernote-content table td,
.aq-family-content table th,
.aq-family-content table td {
    word-break: normal;
}
.aq-summernote-content h1,
.aq-summernote-content h2,
.aq-summernote-content h3 {
    color: #173f38;
    margin-top: 20px;
    margin-bottom: 12px;
}
.aq-summernote-content p {
    font-size: 15px;
    line-height: 1.9;
    color: #52636a;
}
