/* ========================================
   SINGLE SERVICE PAGE STYLES
   ======================================== */

/* ========================================
   SERVICE HERO SECTION
   ======================================== */
.service-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 69, 141, 0.8), rgba(43, 119, 203, 0.6));
    z-index: 2;
}

.service-hero-content,
.main-services-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
}

.service-hero-content .container,
.main-services-hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-logo {
    margin-bottom: 30px;
}

.service-logo .logo-image {
    height: 60px;
    width: auto;
}

.service-title,
.main-services-title {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SERVICE CONTENT SECTION
   ======================================== */
.service-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-section {
    padding: 60px 50px;
    border-bottom: 1px solid #e2e8f0;
}

.content-section:last-of-type {
    border-bottom: none;
}

/* Main content styling for WordPress editor content */
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 {
    color: #3182ce;
    font-weight: bold;
    margin: 30px 0 20px 0;
    line-height: 1.3;
}

.section-content h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-content h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-content h3 {
    font-size: 1.5rem;
}

.section-content h4 {
    font-size: 1.3rem;
}

.section-content h5 {
    font-size: 1.1rem;
}

.section-content h6 {
    font-size: 1rem;
}

/* Add decorative line under main headings */
.section-content h1::after,
.section-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #2b77cb);
    margin: 10px 0 20px 0;
}

/* Lists styling */
.section-content ul,
.section-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Blockquotes */
.section-content blockquote {
    border-left: 4px solid #3182ce;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f7fafc;
    font-style: italic;
    color: #4a5568;
}

/* Links */
.section-content a {
    color: #3182ce;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.section-content a:hover {
    color: #2b77cb;
}

/* Tables */
.section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-content th,
.section-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.section-content th {
    background: #3182ce;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-content tr:hover {
    background: #f7fafc;
}

/* Images in content */
.section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* WordPress alignment classes */
.section-content .alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.section-content .alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.section-content .aligncenter {
    display: block;
    margin: 20px auto;
}

/* WordPress caption */
.section-content .wp-caption {
    max-width: 100%;
    background: #f7fafc;
    padding: 10px;
    border-radius: 8px;
    margin: 20px 0;
}

.section-content .wp-caption-text {
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 40px;
}

.section-content p {
    margin-bottom: 35px;
    text-align: justify;
    line-height: 2.0;
    font-size: 1.15rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   CTA BUTTON
   ======================================== */
.service-cta {
    margin-top: 60px;
    text-align: center;
    padding: 40px 0;
    border-top: 3px solid #3182ce;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a365d;
    padding: 22px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffb700, #ff9500);
    color: #1a365d;
    text-decoration: none;
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 15px;
}

/* ========================================
   SERVICE GALLERY
   ======================================== */
.service-gallery {
    padding: 50px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3182ce;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 30px 0;
    text-align: center;
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #2b77cb);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item a {
    display: block;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(49, 130, 206, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   RELATED SERVICES SECTION
   ======================================== */
.related-services {
    padding: 80px 0;
    background: white;
}

.related-services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.related-services-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: relative;
}

.related-services-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #2b77cb);
}

.view-all-services {
    color: #3182ce;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    padding: 12px 25px;
    border: 2px solid #3182ce;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-all-services:hover {
    background: #3182ce;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-service-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #3182ce;
}

.related-service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-service-image {
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.related-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-service-item:hover .related-service-image img {
    transform: scale(1.05);
}

.service-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3182ce, #2b77cb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 3rem;
    color: white;
}

.related-service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-service-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a365d;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.related-service-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.related-service-cta {
    color: #3182ce;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.related-service-item:hover .related-service-cta {
    color: #2b77cb;
}

/* ========================================
   SERVICE NAVIGATION
   ======================================== */
.service-navigation {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.service-navigation .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nav-item {
    text-align: center;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-link {
    display: inline-block;
    text-decoration: none;
    color: #4a5568;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3182ce;
    text-decoration: none;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    color: #1a365d;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .service-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .content-section {
        padding: 40px 30px;
    }

    .section-content p {
        margin-bottom: 32px;
        font-size: 1.1rem;
    }

    .service-gallery {
        padding: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .related-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .cta-button {
        padding: 20px 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        height: 300px;
    }

    .service-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .service-logo .logo-image {
        height: 50px;
    }

    .content-section {
        padding: 30px 20px;
    }

    .section-content {
        font-size: 1rem;
    }

    .section-content p {
        margin-bottom: 28px;
    }

    .service-gallery {
        padding: 20px;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 150px;
    }

    .related-services {
        padding: 60px 0;
    }

    .related-services-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }

    .related-services-title {
        font-size: 1.8rem;
    }

    .related-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-service-image {
        height: 160px;
    }

    .related-service-content {
        padding: 20px;
    }

    .service-nav-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-prev,
    .nav-next {
        text-align: center;
    }

    /* Lightbox tablet adjustments */
    .lightbox-prev {
        left: -55px;
    }

    .lightbox-next {
        right: -55px;
    }
}

@media (max-width: 480px) {
    .service-title {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 20px 15px;
    }

    .section-content p {
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .gallery-title {
        font-size: 1.3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-services {
        padding: 40px 0;
    }

    .related-services-title {
        font-size: 1.5rem;
    }

    .view-all-services {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .related-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-service-content {
        padding: 15px;
    }

    .related-service-title {
        font-size: 1.1rem;
    }

    /* Lightbox responsive */
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-close {
        top: -30px;
        font-size: 1.5rem;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }

    .lightbox-counter {
        bottom: -30px;
        font-size: 0.8rem;
    }
}

/* ========================================
   SERVICES ARCHIVE PAGE
   ======================================== */
.archive-hero {
    background: linear-gradient(135deg, #3182ce, #2b77cb);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.archive-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-title {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
}

.archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.archive-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-archive-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-archive-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-archive-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-archive-image {
    height: 250px;
    overflow: hidden;
}

.service-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-archive-item:hover .service-archive-image img {
    transform: scale(1.05);
}

.service-archive-content {
    padding: 30px;
}

.service-archive-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a365d;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-archive-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.service-archive-cta {
    color: #3182ce;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.service-archive-item:hover .service-archive-cta {
    color: #2b77cb;
}

/* Archive Pagination */
.archive-pagination {
    text-align: center;
    margin-top: 40px;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    color: #4a5568;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* No Services Message */
.no-services {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-services h2 {
    font-size: 2rem;
    color: #1a365d;
    margin: 0 0 20px 0;
}

.no-services p {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0 0 30px 0;
}

.back-home-btn {
    display: inline-block;
    background: #3182ce;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: #2b77cb;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Archive Responsive */
@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }

    .archive-description {
        font-size: 1rem;
    }

    .services-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-archive-image {
        height: 200px;
    }

    .service-archive-content {
        padding: 20px;
    }

    .service-archive-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   MAIN SERVICES PAGE SPECIFIC STYLES
   ======================================== */
/* Main Services Hero Section - Similar to Single Service */
.main-services-hero {
    position: relative;
    height: 445px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-services-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 69, 116, 0.8) 0%, rgba(20, 69, 141, 0.6) 100%);
    z-index: 2;
}

.main-services-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
}

.main-services-hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-services-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-services-description {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Main Services Content Section */
.main-services-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.main-services-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-services-section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #004574;
}

.main-services-section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Services Grid - Similar to Related Services */
.main-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.main-service-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.main-service-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.main-service-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.main-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-service-item:hover .main-service-image img {
    transform: scale(1.05);
}

.service-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #004574 0%, #14458d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 3em;
    opacity: 0.8;
    color: #fff;
}

.main-service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.main-service-title {
    font-size: 1.4em;
    margin: 0 0 auto 0;
    color: #004574;
    line-height: 1.3;
    font-weight: 600;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.main-service-cta {
    color: #004574;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.main-service-item:hover .main-service-cta {
    color: #14458d;
}

@media (max-width: 768px) {
    .main-services-hero {
        height: 350px;
    }

    .main-services-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .main-services-description {
        font-size: 1.1rem;
    }

    .main-services-content {
        padding: 60px 0;
    }

    .main-services-section-title {
        font-size: 2rem;
    }

    .main-services-section-description {
        font-size: 1.1rem;
    }

    .main-services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-service-image {
        height: 200px;
    }

    .main-service-content {
        padding: 20px;
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .main-services-hero {
        height: 300px;
    }

    .main-services-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin: 15px 0;
    }

    .main-services-description {
        font-size: 1rem;
    }

    .main-services-content {
        padding: 40px 0;
    }

    .main-services-header {
        margin-bottom: 40px;
    }

    .main-services-section-title {
        font-size: 1.8rem;
    }

    .main-services-section-description {
        font-size: 1rem;
    }

    .main-services-grid {
        gap: 20px;
    }

    .main-service-image {
        height: 180px;
    }

    .main-service-content {
        padding: 18px;
        min-height: 80px;
    }

    .main-service-title {
        font-size: 1.2em;
    }
}