/* Service Pages Specific Styles */

/* Ensure CSS variables are defined */
:root {
    --primary-blue: #1e3a8a;
    --secondary-orange: #ff4500;
    --text-gray: #6b7280;
    --light-gray: #f3f4f6;
}

/* Navbar override for service pages */
.navbar {
    background: #1a2332;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Service Hero Section */
.service-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    padding: 160px 0 60px;
    color: white;
}

.service-hero-content {
    max-width: 800px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.service-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-hero .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    opacity: 1;
}

/* Service Detail Section */
.service-detail {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

.service-main h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-main h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.service-main h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

.service-main p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--secondary-orange);
    font-size: 0.9rem;
}

/* Two Column Feature List Layout */
.feature-list-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.feature-list-columns .feature-list {
    margin: 0;
}

/* Responsive - single column on smaller screens */
@media (max-width: 768px) {
    .feature-list-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.process-step {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--secondary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.process-step h4 {
    margin: 0 0 10px;
    color: var(--primary-blue);
}

.process-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Property Types */
.property-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.property-type {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

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

.property-type i {
    font-size: 3rem;
    color: var(--secondary-orange);
    margin-bottom: 20px;
    display: block;
}

.property-type h4 {
    margin: 15px 0;
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
}

.property-type p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.benefit-list li {
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    border-left: 4px solid var(--secondary-orange);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.benefit-list li strong {
    color: var(--primary-blue);
    display: inline-block;
    margin-right: 8px;
    font-size: 1.05rem;
}

/* Service Categories */
.service-category {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.service-category h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-category h4 i {
    color: var(--secondary-orange);
}

/* Focus Areas */
.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.focus-area {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.focus-area:hover {
    transform: translateY(-5px);
}

.focus-area i {
    font-size: 2rem;
    color: var(--secondary-orange);
    margin-bottom: 15px;
}

/* Who Needs Section */
.who-needs {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.need-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-orange);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.need-item h4 {
    margin: 0 0 10px;
    color: var(--primary-blue);
}

.need-item p {
    margin: 0;
    color: #666;
}

/* Issues Grid */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.issue-item {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
}

.issue-item h4 {
    color: #856404;
    margin: 0 0 15px;
}

.issue-item ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.issue-item ul li {
    margin: 8px 0;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.package-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.package-card.featured {
    border-color: var(--secondary-orange);
    position: relative;
}

.package-card.featured::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-orange);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.package-card h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.package-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.package-card ul {
    list-style: none;
    padding: 0;
}

.package-card ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.package-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-orange);
    font-weight: bold;
}

/* Timeline */
.requirements-timeline {
    position: relative;
    padding: 20px 0;
    margin: 40px 0;
}

.requirements-timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-orange);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--secondary-orange);
    border-radius: 50%;
}

.timeline-date {
    color: var(--secondary-orange);
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-item h4 {
    margin: 5px 0 10px;
    color: var(--primary-blue);
}

.timeline-item p {
    margin: 0;
    color: #666;
}

/* Training Programs */
.training-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.program {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.program:hover {
    transform: translateY(-5px);
}

.program i {
    font-size: 2rem;
    color: var(--secondary-orange);
    margin-bottom: 15px;
}

.program h4 {
    margin: 10px 0;
    color: var(--primary-blue);
}

.program p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card:not(.cta-card) {
    background: white !important;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s;
}

.sidebar-card:not(.cta-card) p {
    color: #555 !important;
    line-height: 1.6;
}

.sidebar-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}

.sidebar-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.sidebar-card:not(.cta-card) h3 {
    color: var(--primary-blue) !important;
    font-size: 1.3rem;
    margin: 0 0 20px;
    padding: 0 0 15px;
    border: none;
    border-bottom: 2px solid var(--secondary-orange);
    font-weight: 600;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    padding: 0 0 15px;
    border-bottom: 2px solid var(--secondary-orange);
    font-weight: 600;
}

.quick-facts {
    list-style: none;
    padding: 0;
}

.quick-facts li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555 !important;
}

.quick-facts li:last-child {
    border-bottom: none;
}

.quick-facts li i {
    color: var(--secondary-orange);
    width: 20px;
}

.legislation-list {
    list-style: none;
    padding: 0;
}

.legislation-list li {
    padding: 8px 0;
    color: #555 !important;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}

.legislation-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-orange);
}

/* CTA Card - Force blue gradient background */
div.sidebar-card.cta-card,
.sidebar-card.cta-card,
.cta-card {
    background: #1e3a8a !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #ff4500 100%) !important;
    color: white !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

/* Extra specificity to override any conflicts */
.service-sidebar .sidebar-card.cta-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #ff4500 100%) !important;
}

.sidebar-card.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #ff4500 100%);
    z-index: -1;
}

.cta-card * {
    color: white !important;
    position: relative;
    z-index: 1;
}

.cta-card h3 {
    color: white !important;
    border-bottom-color: rgba(255,255,255,0.3) !important;
}

.cta-card p {
    color: white !important;
    margin-bottom: 20px;
    opacity: 1 !important;
}

.cta-card .cta-button {
    background: white !important;
    color: var(--primary-blue) !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 20px;
    border: 2px solid white;
}

.cta-card .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.9) !important;
}

.cta-card .contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.cta-card .contact-info p {
    margin: 10px 0 !important;
    font-size: 0.95rem !important;
    color: white !important;
    opacity: 1 !important;
}

.sidebar-card:not(.cta-card) .contact-info p,
.contact-info p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #555 !important;
}

.cta-card .contact-info i {
    margin-right: 10px !important;
    width: 20px !important;
    display: inline-block !important;
    color: white !important;
}

.sidebar-card:not(.cta-card) .contact-info i,
.contact-info i {
    margin-right: 10px;
    width: 20px;
    display: inline-block;
    color: var(--secondary-orange) !important;
}

/* Related Services */
.related-services {
    list-style: none;
    padding: 0;
}

.related-services li {
    margin: 10px 0;
}

.related-services a {
    color: #555 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.related-services a:hover {
    color: var(--secondary-orange);
}

.related-services i {
    color: var(--secondary-orange);
    font-size: 0.9rem;
}

/* Warning Card */
.warning-card {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.warning-card h3 {
    color: #856404;
}

.warning-card p {
    color: #856404;
    margin: 0;
}

.warning-card i {
    color: #ffc107;
}

/* Info Card */
.info-card {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}

.info-card h3 {
    color: #0c5460;
}

.info-card p {
    color: #0c5460;
    margin-bottom: 15px;
}

.info-card .learn-more {
    color: #0c5460;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.info-card .learn-more:hover {
    gap: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-orange);
}

.faq-item h3 {
    color: var(--primary-blue);
    margin: 0 0 15px;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Statistics Section */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    color: white;
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}


/* Other Services Section */
.other-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    border-top: 3px solid var(--secondary-orange);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 60px;
    min-height: 500px;
    position: relative;
}

.other-services-section h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.other-services-section .section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.other-services-section .services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    visibility: visible !important;
    opacity: 1 !important;
}

.other-services-section .service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.other-services-section .service-card:hover:not(.current-service) {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--secondary-orange);
}

.other-services-section .service-card.current-service {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.other-services-section .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.other-services-section .current-service .service-icon {
    background: white;
}

.other-services-section .service-icon i {
    font-size: 2rem;
    color: white;
}

.other-services-section .current-service .service-icon i {
    color: var(--primary-blue);
}

.other-services-section .service-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.other-services-section .current-service h3 {
    color: white;
}

.other-services-section .service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.other-services-section .current-service p {
    color: rgba(255, 255, 255, 0.9);
}

.other-services-section .service-link {
    display: inline-block;
    color: var(--secondary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 10px 25px;
    border: 2px solid var(--secondary-orange);
    border-radius: 25px;
}

.other-services-section .service-link:hover {
    background: var(--secondary-orange);
    color: white;
    transform: translateX(5px);
}

.other-services-section .service-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.other-services-section .service-link:hover i {
    transform: translateX(5px);
}

.other-services-section .current-badge {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero .lead {
        font-size: 1.1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 100px 0 40px;
    }
    
    .service-detail {
        padding: 40px 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}