/**
 * Service & About Pages Stylesheet
 * Fixes for white text on white backgrounds and hero sizing
 * Version: 1.7
 */

/* ============================================
   PAGE TITLE - COMPACT HEADER FOR SIMPLE PAGES
   ============================================ */
.page-title {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(44, 82, 130, 0.9) 50%, rgba(61, 90, 128, 0.85) 100%);
    padding: 6rem 0 3rem;
    text-align: center;
    margin-top: 0;
}

.page-title h1 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    color: #ffffff;
    margin: 0 0 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-title p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* Blog Post Header - More Spacious with Breathing Room */
.page-title.blog-post-header {
    padding: 8.5rem 0 4.5rem;
    text-align: center;
}

.page-title.blog-post-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #ffffff;
    margin: 0 0 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-title.blog-post-header p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.blog-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-post-meta .meta-item i {
    opacity: 0.7;
    font-size: 1.1rem;
}

.blog-post-meta .category-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   HERO SECTIONS - KEEP ORIGINAL SIZE
   ============================================ */
.hero-about,
.hero-services,
.hero-service-detail,
.hero-contact,
.hero-gallery {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    overflow: hidden;
}

.hero-about .hero-content,
.hero-services .hero-content,
.hero-service-detail .hero-content,
.hero-contact .hero-content,
.hero-gallery .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero-about .hero-title,
.hero-services .hero-title,
.hero-service-detail .hero-title,
.hero-contact .hero-title,
.hero-gallery .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-about .hero-subtitle,
.hero-services .hero-subtitle,
.hero-service-detail .hero-subtitle,
.hero-contact .hero-subtitle,
.hero-gallery .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ============================================
   SECTION BACKGROUNDS - FIX WHITE TEXT
   ============================================ */
.section-light {
    background-color: #F0F7FF;
}

.section-white {
    background-color: #ffffff;
}

.section-dark {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: #ffffff;
}

.section-primary {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: #ffffff;
}

/* Text color fixes for light sections */
.section-light h2,
.section-light h3,
.section-light h4,
.section-white h2,
.section-white h3,
.section-white h4 {
    color: #1A202C;
}

.section-light p,
.section-white p,
.section-light li,
.section-white li {
    color: #4A5568;
}

/* Text color for dark sections */
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-primary h2,
.section-primary h3,
.section-primary h4 {
    color: #ffffff;
}

.section-dark p,
.section-dark li,
.section-primary p,
.section-primary li {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   VALUE CARDS
   ============================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #E2E8F0;
}

.value-card h3 {
    color: #2c5282;
    font-size: 24px;
    margin-bottom: 16px;
}

.value-card p {
    color: #4A5568;
    line-height: 1.7;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.check-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #4A5568;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 18px;
}

/* ============================================
   UNIVERSAL CHECKMARK LIST STYLING
   Fix for any ul/li with ✓ characters
   ============================================ */
ul li {
    position: relative;
}

/* Remove the checkmark from text and add as ::before */
ul li:has-text("✓")::first-line,
ul li[data-checkmark]::before,
.service-features li::before,
.trust-features li::before,
.benefit-list li::before,
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.service-features,
.trust-features,
.benefit-list,
.feature-list {
    list-style: none;
    padding: 0;
}

.service-features li,
.trust-features li,
.benefit-list li,
.feature-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 8px;
}

/* ============================================
   DIFFERENTIATOR GRID
   ============================================ */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.diff-item {
    text-align: center;
    padding: 24px;
}

.diff-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.diff-item h4 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.diff-item p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ============================================
   COMMITMENT BOX
   ============================================ */
.commitment-box {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #E2E8F0;
}

.commitment-box h2 {
    color: #2c5282;
    text-align: center;
    margin-bottom: 24px;
    font-size: 32px;
}

.commitment-box p {
    font-size: 18px;
    line-height: 1.8;
    color: #4A5568;
    margin-bottom: 20px;
}

/* ============================================
   ABOUT INTRO
   ============================================ */
.about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro h2 {
    color: #2c5282;
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
}

.about-intro .lead {
    font-size: 20px;
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

.about-intro p {
    font-size: 18px;
    color: #4A5568;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION - GRADIENT BACKGROUND
   ============================================ */
.cta-final {
    background: linear-gradient(135deg, #5B7C99 0%, #445A72 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-final h2 {
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final .btn {
    margin: 0 8px;
}

.cta-final .btn-primary {
    background: #ffffff;
    color: #2c5282;
    border-color: #ffffff;
}

.cta-final .btn-primary:hover {
    background: #F7FAFC;
    color: #1e3a5f;
}

.cta-final .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

.cta-final .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-list-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.service-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.service-list-card .service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-list-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-list-card:hover .service-image img {
    transform: scale(1.05);
}

.service-list-card .service-content {
    padding: 28px;
}

.service-list-card h3 {
    color: #1A202C;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-list-card p {
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list-card .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   SOCIAL SHARE SECTION
   ============================================ */
.social-share-section {
    margin-top: 4rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.share-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.share-btn i {
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn span {
    display: none;
}

.share-facebook {
    background: #3b5998;
    color: white;
}

.share-facebook:hover {
    background: #2d4373;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3);
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-linkedin {
    background: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.share-copy {
    background: #4a5568;
    color: white;
}

.share-copy:hover {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3);
}

.share-btn:active {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-about,
    .hero-services,
    .hero-service-detail {
        min-height: 30vh;
    }
    
    .hero-about .hero-content,
    .hero-services .hero-content,
    .hero-service-detail .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .values-grid,
    .diff-grid,
    .services-list-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .commitment-box {
        padding: 30px 20px;
    }
    
    .about-intro h2,
    .cta-final h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-about .hero-title,
    .hero-services .hero-title,
    .hero-service-detail .hero-title {
        font-size: 1.75rem;
    }
    
    .diff-icon {
        font-size: 48px;
    }
}
