/* 
 * Adolbi Care BHC Website
 * Layout Balance Styles
 */

/* Fix HTML structure issues */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Fix duplicate font links */
head link[rel="stylesheet"] {
    display: block !important;
}

/* Layout Balance Adjustments */
.container {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Spacing */
section {
    padding: 3rem 0;
    margin-bottom: 0;
}

/* Reduce excessive white space */
.about-intro, 
.services-intro,
.team-intro,
.resources-intro,
.faq-intro,
.blog-intro,
.contact-info-section {
    padding-top: 2rem;
}

/* Content section spacing */
.content-section {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

/* Fix spacing between sections */
.content-section + .content-section {
    padding-top: 0;
}

/* Improve card layouts */
.card {
    margin-bottom: 1.5rem;
    height: 100%;
}

/* Grid layout improvements */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

/* Image display fixes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-image {
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

/* Video section balance */
.video-section {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix footer spacing */
footer {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Fix HTML structure in service pages */
.service-subpage-banner {
    position: relative;
}

/* Fix duplicate header closing tags */
header + section {
    margin-top: 0;
}

/* Fix breadcrumb navigation */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

/* Fix banner overlay */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}
