/* Additional custom styles */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 20px 0;
}

.doctor-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.doctor-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #f0f0f0;
}

.doctor-card h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #000000;
}

.doctor-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* WordPress block cover styling */
.wp-block-cover {
    position: relative;
    min-height: 400px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.wp-block-cover__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero section with button - center everything */
.wp-block-cover.is-light .wp-block-cover__inner-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: inherit;
    text-align: center !important;
}

/* Fees page - left align text in gradient background */
.wp-block-cover.is-light .wp-block-group__inner-container {
    text-align: left !important;
}

.wp-block-cover.is-light .wp-block-table {
    margin: 20px 0 !important;
    text-align: left !important;
}

/* We Care section - keep left alignment */
.wp-block-cover:not(.is-light) .wp-block-cover__inner-container {
    text-align: left !important;
}

.wp-block-cover:not(.is-light) .wp-block-cover__inner-container h2.has-text-align-center {
    text-align: center !important;
}

.wp-block-spacer {
    clear: both;
}

.wp-block-buttons {
    display: flex !important;
    gap: 10px;
    width: auto !important;
    margin: 0 auto !important;
}

.wp-block-buttons.is-content-justification-center {
    justify-content: center !important;
}

.wp-block-buttons.is-layout-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wp-block-button {
    flex-shrink: 0;
}

.wp-block-button__link {
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 600;
}

.has-background-dim-0 {
    opacity: 0;
}

.has-background-dim-100 {
    opacity: 1;
}

/* Gradient background for light sections */
.has-nv-light-bg-background-color {
    background: linear-gradient(135deg, rgb(2,3,129) 0%, rgb(97,91,207) 18%, rgb(39,195,207) 68%, rgb(40,116,252) 100%) !important;
}

.wp-block-cover__background.has-nv-light-bg-background-color {
    background: linear-gradient(135deg, rgb(2,3,129) 0%, rgb(97,91,207) 18%, rgb(39,195,207) 68%, rgb(40,116,252) 100%) !important;
}

/* Ensure gradient background shows through - only for specific pages */
.neve-main,
.container,
.single-page-container,
.nv-single-page-wrap {
    background: transparent !important;
}

/* Default: keep content wrap transparent unless overridden */
.nv-content-wrap {
    background: transparent !important;
}

/* Fees page styling with exact published site fonts and colors */
.wp-block-cover.is-light p {
    color: #f6f0dc !important;
    font-family: Lora, serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.7em;
    margin-bottom: 1em;
    margin-top: 0;
}

.wp-block-cover.is-light p em {
    font-style: italic;
}

.wp-block-cover.is-light p strong,
.wp-block-cover.is-light p em strong {
    font-weight: 700;
}

.wp-block-cover.is-light .has-medium-font-size {
    font-size: 25px !important;
}

/* Table styling - white background with dark text */
.wp-block-table.is-style-stripes {
    margin: 20px 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.wp-block-table td {
    padding: 15px 20px;
    border: 1px solid #ddd;
    font-size: 25px;
    font-weight: 700;
    color: #000;
    text-align: left;
    background: white;
    font-family: Lora, serif;
}

/* Contact page styling */
.wp-block-cover.is-light .has-large-font-size {
    font-size: 36px !important;
    line-height: 1.2em;
    font-family: Lora, serif;
    font-weight: 400;
    color: #000;
}

/* Three icon columns - horizontal layout */
.wp-block-cover.is-light .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
    margin-top: 0;
}

.wp-block-cover.is-light .wp-block-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.wp-block-cover.is-light .wp-block-image {
    margin-bottom: 1rem;
}

.wp-block-cover.is-light .wp-block-image img {
    width: 42px;
    height: 42px;
}

.wp-block-cover.is-light h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3em;
    margin-bottom: 1rem;
    margin-top: 0;
    font-family: Nunito, sans-serif;
    color: #000;
}

.wp-block-cover.is-light .wp-block-column p {
    font-size: 20px;
    line-height: 1.7em;
    font-family: Lora, serif;
    font-weight: 400;
    color: #000;
    margin: 0;
}

/* Map section - text left, map right */
.wp-block-cover.is-light h2 {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.3em;
    font-family: Nunito, sans-serif;
    margin-bottom: 1rem;
    text-align: left;
}

.wp-block-cover.is-light .has-white-color {
    color: #ffffff !important;
    font-size: 25px;
    font-family: Lora, serif;
    line-height: 1.7em;
    text-align: left;
}

/* Ensure map columns stay side by side */
.wp-block-cover.is-light .wp-block-group .wp-block-columns {
    align-items: center;
}

.wp-block-cover.is-light .is-vertically-aligned-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive font sizes for smaller screens */
@media (max-width: 959px) {
    .wp-block-cover.is-light .has-large-font-size {
        font-size: 28px !important;
    }
    
    .wp-block-cover.is-light h2 {
        font-size: 34px;
    }
    
    .wp-block-cover.is-light h3 {
        font-size: 20px;
    }
    
    .wp-block-cover.is-light .wp-block-column p,
    .wp-block-cover.is-light .has-white-color {
        font-size: 16px;
    }
}

/* About page styling */
.wp-block-cover.is-light h2.has-neve-text-color-color {
    color: #f6f0dc !important;
}

.wp-block-cover.is-light .wp-block-columns p {
    color: #f6f0dc !important;
}

/* FAQ page styling - match About page layout */
.wp-block-group.has-nv-light-bg-background-color {
    background: linear-gradient(135deg, rgb(2,3,129) 0%, rgb(97,91,207) 18%, rgb(39,195,207) 68%, rgb(40,116,252) 100%) !important;
    padding: 60px 20px;
}

/* Center FAQ heading */
.wp-block-group.has-nv-light-bg-background-color .has-text-align-center {
    text-align: center !important;
}

.wp-block-group.has-nv-light-bg-background-color .has-large-font-size {
    font-size: 46px !important;
    color: #f6f0dc !important;
    font-family: Nunito, sans-serif;
    font-weight: 600;
    line-height: 1.3em;
    margin-bottom: 2rem;
}

.wp-block-group.has-nv-light-bg-background-color .wp-block-columns {
    max-width: 1170px;
    margin: 0 auto;
}

/* FAQ content styling to match About page */
.wp-block-group.has-nv-light-bg-background-color p,
.wp-block-group.has-nv-light-bg-background-color details,
.wp-block-group.has-nv-light-bg-background-color li {
    color: #f6f0dc !important;
    font-family: Lora, serif;
    font-size: 25px;
    line-height: 1.7em;
    font-weight: 400;
}

.wp-block-group.has-nv-light-bg-background-color details summary {
    font-weight: 700;
    font-size: 25px;
    color: #f6f0dc !important;
    cursor: pointer;
}

.wp-block-group.has-nv-light-bg-background-color details p {
    font-weight: 400;
    margin-top: 1em;
}

.wp-block-group.has-nv-light-bg-background-color h3,
.wp-block-group.has-nv-light-bg-background-color h4 {
    color: #f6f0dc !important;
    font-family: Nunito, sans-serif;
}

.wp-block-group.has-nv-light-bg-background-color strong {
    font-weight: 700;
}

/* Team page (portofolio type) - match About page gradient background */
body.portofolio {
    background: linear-gradient(135deg, rgb(2,3,129) 0%, rgb(97,91,207) 18%, rgb(39,195,207) 68%, rgb(40,116,252) 100%) !important;
    min-height: 100vh;
}

body.portofolio .wp-block-cover.alignfull {
    min-height: 100vh !important;
    background: transparent !important;
}

body.portofolio .wp-block-cover.alignfull .wp-block-cover__background {
    background: transparent !important;
    opacity: 0 !important;
}

/* Team page text styling */
body.portofolio .wp-block-cover.alignfull .has-nv-light-bg-color {
    color: #f6f0dc !important;
    font-family: Lora, serif;
    font-size: 36px;
    line-height: 1.2em;
    font-weight: 400;
}

body.portofolio .wp-block-cover.alignfull .has-nv-text-dark-bg-color,
body.portofolio .wp-block-cover.alignfull p:not(.has-nv-light-bg-color) {
    color: #f6f0dc !important;
    font-family: Lora, serif;
    font-size: 25px;
    line-height: 1.7em;
    font-weight: 400;
}

body.portofolio .wp-block-cover.alignfull h3 {
    color: #f6f0dc !important;
    font-family: Nunito, sans-serif;
    font-size: 24px;
    font-weight: 600;
}

body.portofolio .wp-block-cover.alignfull .has-large-font-size {
    font-size: 36px !important;
    line-height: 1.2em;
}

/* Team page intro text styling - better contrast */
.team-intro {
    color: #f6f0dc !important;
    font-family: Lora, serif;
    font-size: 36px;
    line-height: 1.2em;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
}

.team-intro p {
    color: #f6f0dc !important;
    font-family: Lora, serif;
    font-size: 36px;
    line-height: 1.2em;
    font-weight: 400;
    margin: 0;
}

.team-intro strong {
    font-weight: 700;
}

/* Services page - add gradient background (target by URL path) */
body:has(main[id="content"]) .nv-content-wrap:has(+ *):not(:has(.wp-block-cover)):not(:has(.wp-block-group.has-nv-light-bg-background-color)) p.has-nv-c-1-color:first-of-type {
    margin-top: -60px;
    padding-top: 60px;
}

/* Services page background - apply to body for full-screen coverage */
body.page:not(:has(.wp-block-cover)):not(:has(.wp-block-group.has-nv-light-bg-background-color)) {
    background: linear-gradient(135deg, rgb(2,3,129) 0%, rgb(97,91,207) 18%, rgb(39,195,207) 68%, rgb(40,116,252) 100%) !important;
    min-height: 100vh;
}

body.page:not(:has(.wp-block-cover)):not(:has(.wp-block-group.has-nv-light-bg-background-color)) .nv-content-wrap {
    background: transparent !important;
    padding: 60px 20px;
}

/* Exclude About, Contact, Fees, FAQ pages which have wp-block-cover or special groups */
body.page:has(.wp-block-cover),
body.page:has(.wp-block-group.has-nv-light-bg-background-color) {
    background: transparent !important;
}

/* Services page text styling */
body.page .nv-content-wrap .has-nv-c-1-color {
    color: #77b978 !important;
    font-family: Lora, serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.7em;
}

body.page .nv-content-wrap .has-nv-light-bg-color {
    color: #f6f0dc !important;
    font-family: Lora, serif;
    font-size: 25px;
    line-height: 1.7em;
    font-weight: 400;
}
