/* ===========================
   SERVICES PAGE HERO
=========================== */
.services-page-hero {
    height: 45vh;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 30px;
    background: linear-gradient(135deg, #0f3a40 0%, #1a5963 100%);
    position: relative;
    overflow: hidden;
}

.services-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/services.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.services-page-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.services-page-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.services-page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================
   SERVICES SECTION
=========================== */
.services-section {
    padding: 60px 30px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   SERVICE CATEGORY
=========================== */
.service-category {
    margin-bottom: 70px;
}

.service-category:last-child {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f3a40 0%, #1a5963 100%);
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.category-header h2 {
    font-size: 2rem;
    color: #0f3a40;
    margin: 0;
    font-weight: 700;
    border: none;
    padding: 0;
}

.category-description {
    font-size: 1.05rem;
    color: #626c73;
    margin-bottom: 32px;
    padding-left: 64px;
    line-height: 1.6;
    max-width: 850px;
}

/* ===========================
   SERVICES GRID
=========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
}

/* ===========================
   SERVICE CARD
=========================== */
.service-card {
    background: #ffffff;
    border: 1px solid rgba(94, 82, 64, 0.12);
    border-radius: 14px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, #0f3a40 0%, #1a5963 100%);
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 58, 64, 0.18);
    border-color: rgba(15, 58, 64, 0.25);
}

.service-card:hover::before {
    height: 100%;
}

/* Card Header */
.service-card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.service-card-header h3 {
    color: #0f3a40;
    font-size: 1.35rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.service-badge {
    background: rgba(15, 58, 64, 0.08);
    color: #0f3a40;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Service description */
.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #626c73;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

/* Service arrow */
.service-arrow {
    display: inline-flex;
    align-items: center;
    color: #1a5963;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================
   INDIVIDUAL SERVICE PAGE HEROES
=========================== */
.service-hero {
    height: 40vh;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 30px;
    background: linear-gradient(rgba(15, 58, 64, 0.85), rgba(15, 58, 64, 0.85));
    color: var(--text-light);
}

.service-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.service-hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: auto;
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    line-height: 1.6;
}

/* Specific service hero backgrounds */

.service-hero.dti {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/dti-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.sec {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/sec-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.mayor {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/mayor-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.bir {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/bir-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.closure {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/closure-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.renewal {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/renewal-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.amendment {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/amendment-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.bir-open-cases {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/bir-open-cases-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.bookkeeping {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/bookkeeping-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.retainership {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/retainership-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.bir-tax-filing {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/tax-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.annual-income-tax {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/annual-income-tax-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.business-consultation {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/business-consultation-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.tax-advice {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/tax-advice-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.payroll-management {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/payroll-management-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.inquire {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/inquire-banner.jpg');
    background-size: cover;
    background-position: center center;
}

.service-hero.process-inquiry {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/process-inquiry-banner.jpg');
    background-size: cover;
    background-position: center center;
}


/* Add more hero backgrounds for other services as needed */
.service-hero.closure,
.service-hero.renewal,
.service-hero.amendment,
.service-hero.bir-open-cases,
.service-hero.bookkeeping,
.service-hero.retainership,
.service-hero.bir-tax-filing,
.service-hero.annual-income-tax,
.service-hero.business-consultation,
.service-hero.tax-advice,
.service-hero.payroll-management {
    background-image: linear-gradient(rgba(15,58,64,0.75), rgba(15,58,64,0.75)),
                      url('../img/services-img/default-service.jpg');
    background-size: cover;
    background-position: center center;
}

/* ===========================
   SERVICE DETAILS SECTION
=========================== */
.service-details {
    padding: 60px 30px;
    background: #f8f9fa;
}

.service-details .container {
    max-width: 1000px;
    margin: auto;
}

.service-details h2 {
    font-size: 1.85rem;
    color: #0f3a40;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    border-bottom: 3px solid #0f3a40;
    padding-bottom: 10px;
}

.service-details h2:first-of-type {
    margin-top: 0;
}

.service-details p {
    font-size: 1rem;
    color: #1f2121;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-details ul,
.service-details ol {
    font-size: 1rem;
    color: #1f2121;
    line-height: 1.7;
    margin-bottom: 28px;
    padding-left: 28px;
}

.service-details ul li,
.service-details ol li {
    margin-bottom: 12px;
    color: #1f2121;
}

.service-details ul li strong,
.service-details ol li strong {
    color: #0f3a40;
}



/* ===========================
   BUTTONS
=========================== */
.back-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 24px;
    background: #0f3a40;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #1a5963;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 58, 64, 0.3);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .services-page-hero {
        padding: 0 20px;
        height: 40vh;
        min-height: 300px;
    }
    
    .services-page-hero h1 {
        font-size: 2rem;
    }
    
    .services-page-hero p {
        font-size: 1.05rem;
    }
    
    .services-section {
        padding: 40px 20px;
    }
    
    .service-category {
        margin-bottom: 50px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .category-icon {
        width: 44px;
        height: 44px;
    }
    
    .category-header h2 {
        font-size: 1.75rem;
    }
    
    .category-description {
        padding-left: 0;
        margin-bottom: 24px;
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 24px;
        min-height: 200px;
    }
    
    .service-card-header {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .service-card-header h3 {
        font-size: 1.25rem;
    }
    
    .service-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    
    .service-hero {
        padding: 0 20px;
        height: 35vh;
        min-height: 280px;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero p {
        font-size: 1rem;
    }
    
    .service-details {
        padding: 40px 20px;
    }
    
    .service-details h2 {
        font-size: 1.65rem;
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .services-page-hero h1 {
        font-size: 1.75rem;
    }
    
    .services-page-hero p {
        font-size: 0.95rem;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card-header h3 {
        font-size: 1.15rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}