/* ========================================
   TYPOGRAPHY SYSTEM
======================================== */

body {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

h1, h2, h3, h4, h5, h6,
.pbmit-title,
.pbmit-element-title,
.pbminfotech-box-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
    color: #181a17;
}

h1 { font-size: 56px; font-weight: 700; }
h2 { font-size: 42px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Buttons */
button, .pbmit-btn, a.pbmit-btn {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
    background: linear-gradient(135deg, #e5c466 0%, #f5f5dc 100%) !important;
    color: #000 !important;
    border: none !important;
}

button:hover, .pbmit-btn:hover, a.pbmit-btn:hover {
    background: linear-gradient(135deg, #e5c466 0%, #f5f5dc 100%) !important;
    color: #000 !important;
}

/* ========================================
   SECTION SPACING & CONSISTENCY
======================================== */

section {
    padding: 80px 0;
    background-color: #284B71 !important;
}

section + section {
    margin-top: 0;
}

/* Override all section backgrounds to dark blue */
.page-content,
.pbmit-bg-color-light,
.pbmit-bg-color-global,
section[style*="background"],
.marquee-section_three,
.testimonial-three_bg,
.youtube-section {
    background-color: #284B71 !important;
}

/* Testimonial section specific styling */
#testimonial {
    background-color: #284B71 !important;
}

#testimonial .pbmit-title,
#testimonial .pbmit-subtitle {
    color: #ffffff !important;
}

/* Make all testimonial cards same height */
#testimonial .pbmit-testimonial-style-3 .pbmit-box-content-wrap {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#testimonial .swiper-slide {
    height: auto;
}

/* Force testimonial text to be fully opaque and dark */
#testimonial .pbminfotech-testimonial-text,
#testimonial .pbminfotech-testimonial-text p {
    color: #000000 !important;
    opacity: 1 !important;
}

#testimonial .pbminfotech-box-title {
    color: #000000 !important;
    opacity: 1 !important;
}

#testimonial .pbminfotech-testimonial-detail {
    color: #333333 !important;
    opacity: 1 !important;
}

/* Adjust text colors for dark background */
section h1, section h2, section h3, section h4, section h5, section h6,
section .pbmit-title,
section .pbmit-heading-subheading .pbmit-title,
section .pbmit-element-title {
    color: #fff!important;
}

section p,
section .pbmit-heading-desc,
section .pbmit-short-description {
    color: #e8e8e8 !important;
}

/* Ensure cards remain with light backgrounds */
.service-square-card,
.pbmit-testimonial-style-3 .pbmit-box-content-wrap,
.youtube-card {
    background-color: #ffffff !important;
}

.service-square-card h3,
.service-square-card p {
    color: #181a17 !important;
}

/* Contact Section Styling */
#contact {
    background-color: #0a1628 !important;
}

#contact .pbmit-subtitle,
#contact .pbmit-title,
#contact h3,
#contact h4 {
    color: #ffffff !important;
}

#contact .contact-form_main {
    background-color: transparent;
}

#contact .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 15px 20px;
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#contact .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #e5c466;
    color: #ffffff;
}

#contact .pbmit-btn-global {
    background: linear-gradient(135deg, #e5c466 0%, #d4b454 100%) !important;
    color: #000 !important;
    border: none !important;
}

#contact .pbmit-btn-global:hover {
    background: linear-gradient(135deg, #d4b454 0%, #c4a344 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 196, 102, 0.4);
}

.container {
    max-width: 1200px;
}

/* ========================================
   SERVICE CARDS - CLEAN RECTANGULAR DESIGN
======================================== */

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.service-square-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.service-square-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(229, 196, 102, 0.25);
}

.service-square-card.active {
    background: linear-gradient(135deg, #e5c466 0%, #f5f5dc 100%);
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(229, 196, 102, 0.4);
}

.service-square-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.service-square-card.active h3 {
    color: #fff;
}

.service-square-card .card-icon {
    width: 70px;
    height: 70px;
    background: #0a1628;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-square-card.active .card-icon {
    background: #fff;
}

.service-square-card .card-icon svg {
    color: #fff;
    width: 35px;
    height: 35px;
}

.service-square-card.active .card-icon svg {
    color: #e5c466;
}

@media (max-width: 768px) {
    .service-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }
    
    .service-square-card {
        min-height: 200px;
        padding: 35px 25px;
    }
    
    .service-square-card h3 {
        font-size: 20px;
    }
    
    .service-square-card .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-square-card .card-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 575px) {
    .service-square-card {
        min-height: 180px;
        padding: 30px 20px;
    }
    
    .service-square-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* ========================================
   TESTIMONIAL SECTION ENHANCEMENTS
======================================== */

.testimonial-three_bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.swiper-slider {
    padding: 20px 0;
}

/* ========================================
   SMOOTH SCROLL & NATURAL BEHAVIOR
======================================== */

html {
    scroll-behavior: smooth;
}

/* Remove any scroll-jacking effects */
body {
    overflow-x: hidden;
    overflow-y: auto !important;
}

/* ========================================
   RESPONSIVE REFINEMENTS
======================================== */

@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    h1 { font-size: 42px; }
    h2 { font-size: 36px; }
    h3 { font-size: 28px; }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }
    
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    
    p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 575px) {
    section {
        padding: 40px 0;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    h5 { font-size: 16px; }
    
    p {
        font-size: 14px;
    }
}

/* ========================================
   MOBILE SPECIFIC FIXES
======================================== */

@media (max-width: 767px) {
    /* Fix header/navbar */
    .site-header {
        padding: 10px 0;
    }
    
    /* Fix About section images */
    .pbmit-ihbox-style-7 .pbmit-ihbox-img img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix video grid */
    #youtube-gallery .youtube-col {
        flex: 1 1 100%;
        max-inline-size: 100%;
    }
    
    /* Fix testimonial cards */
    .pbmit-testimonial-style-3 .pbminfotech-post-item .pbmit-box-content-wrap {
        padding: 30px 20px;
    }
    
    .pbmit-testimonial-style-3 .pbmit-featured-wrapper img {
        width: 50px;
        height: 50px;
    }
    
    .pbmit-testimonial-style-3 .pbminfotech-testimonial-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Fix contact form */
    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    /* Fix footer */
    .pbmit-footer-widget-area {
        padding: 30px 15px;
    }
}

@media (max-width: 575px) {
    /* Extra small devices */
    .pbmit-testimonial-style-3 .pbminfotech-post-item .pbmit-box-content-wrap {
        padding: 25px 15px;
    }
    
    .pbmit-testimonial-style-3 .pbminfotech-box-title {
        font-size: 16px;
    }
    
    .pbmit-testimonial-style-3 .pbminfotech-testimonial-detail {
        font-size: 12px;
    }
}
