/* Document Support & Compliance Page Styles */
:root {
    --primary: #00325F;
    --secondary: #FDB103;
    --text: #333333;
    --text-light: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border: #e9ecef;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Page Banner with Overlay */
.page-banner {
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .page-banner {
        height: 100px;
        margin-bottom: 0.4rem;
    }
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 50, 95, 0.7);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    text-align: center;
}

.banner-content h1 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 767px) {
    .banner-content h1 {
        font-size: 1.7rem;
        margin-bottom: 0.4rem;
    }
}

.banner-content .page-subtitle {
    color: #fff;
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0.95;
}

@media (max-width: 767px) {
    .banner-content .page-subtitle {
        font-size: 0.95rem;
        padding: 0 0.75rem;
    }
}

/* Page Header */
.page-header {
    background-color: var(--light-bg);
    padding: 3rem 0 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styling */
.section { padding: 0.5rem 0; }

.section-intro {
    max-width: 800px;
    margin: 0 auto 0.5rem;
    text-align: center;
}

.section-intro .lead-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.4rem;
    align-items: stretch;
    grid-auto-rows: 1fr; /* equal heights across rows */
}

@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

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

/* Page-scoped: force documentation layout (no grid/cards) */
.doc-support .services-grid {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    margin-top: 1rem !important;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0.75rem;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doc-support .service-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    height: auto !important;
    transition: none !important;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.doc-support .service-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.service-icon {
    width: 36px;
    height: 36px;
    background: transparent; /* remove grey overlay */
    border-radius: 0; /* no circle background */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--primary); /* navy icon */
    font-size: 1rem;
    transition: var(--transition);
}

.doc-support .service-icon { display: none !important; }

.service-card:hover .service-icon {
    background: transparent; /* keep no overlay */
    color: var(--primary); /* remain navy */
    transform: none;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.35rem;
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.doc-support .service-content h3 {
    position: static !important;
    padding-bottom: 0 !important;
}

.service-content h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.doc-support .service-content h3:after { display: none !important; }

.service-content p {
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.service-content ul {
    padding-left: 0.9rem;
    margin-bottom: 0.75rem;
    list-style: none;
}

.doc-support .service-content ul {
    list-style: disc !important;
    padding-left: 1.25rem !important;
}

.service-content ul li {
    margin-bottom: 0.25rem;
    color: var(--text);
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.875rem;
}

.doc-support .service-content ul li {
    position: static !important;
    padding-left: 0 !important;
}

.service-content ul li:before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.doc-support .service-content ul li:before { content: none !important; }

.service-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #001f3f 100%);
    color: white;
    padding: 3.5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: #ffc107;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 177, 3, 0.3);
}

/* Responsive Styles */
/* Lock 3 columns on large screens */
@media (min-width: 1201px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 768px) {
    .page-header { padding: 1.25rem 0 1rem; }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .services-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    
    .service-card { padding: 0.75rem 0.75rem; }
    
    .section { padding: 0.75rem 0; }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 0.75rem 0;
    }
    
    .service-card {
        padding: 0.5rem 0.5rem;
    }
    
    .service-content h3 {
        font-size: 1.05rem;
    }
    
    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.doc-support .service-card {
    animation: none !important;
    opacity: 1 !important;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
