/* Component-Specific Styles for UltraTechX */
/* Additional styling for specific UI components and animations */

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Button Variants */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--body-size);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    min-height: 44px;
    gap: var(--spacing-xs);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--pure-white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover:not(:disabled) {
    background: #357ABD;
    border-color: #357ABD;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--pure-white);
}

.btn-success {
    background: var(--success-green);
    color: var(--pure-white);
    border: 2px solid var(--success-green);
}

.btn-success:hover:not(:disabled) {
    background: #219A52;
    border-color: #219A52;
}

.btn-warning {
    background: var(--warning-orange);
    color: var(--pure-white);
    border: 2px solid var(--warning-orange);
}

.btn-warning:hover:not(:disabled) {
    background: #E67E22;
    border-color: #E67E22;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.125rem;
    min-height: 52px;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--small-size);
    min-height: 36px;
}

/* Card Components */
.card {
    background: var(--pure-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
    background: var(--light-blue);
}

.card-body {
    padding: var(--spacing-md);
}

.card-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
    background: var(--light-gray);
}

/* Badge Components */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: var(--small-size);
    font-weight: 500;
    line-height: 1;
}

.badge-primary {
    background: var(--primary-blue);
    color: var(--pure-white);
}

.badge-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.badge-success {
    background: var(--success-green);
    color: var(--pure-white);
}

.badge-warning {
    background: var(--warning-orange);
    color: var(--pure-white);
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* Alert Components */
.alert {
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-color: #C3E6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-color: #FFEAA7;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
}

.alert-info {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-color: #B8E6F7;
}

.alert-icon {
    font-size: 1.25rem;
    margin-top: -2px;
}

/* Modal Components */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--pure-white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--dark-gray);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.toast {
    background: var(--pure-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid var(--primary-blue);
    animation: toastSlideIn 0.3s ease;
    position: relative;
}

.toast.success {
    border-left-color: var(--success-green);
}

.toast.warning {
    border-left-color: var(--warning-orange);
}

.toast.error {
    border-left-color: var(--error-red);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.toast-title {
    font-weight: 600;
    color: var(--dark-gray);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
}

.toast-body {
    color: #5A6C7D;
    font-size: var(--small-size);
}

/* Tooltip Component */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    background: var(--dark-gray);
    color: var(--pure-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    font-size: var(--small-size);
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-gray) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
}

/* Progress Bar Component */
.progress {
    width: 100%;
    height: 8px;
    background: #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #357ABD);
    border-radius: 4px;
    transition: width var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.progress-bar.animated::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 50px 0; }
    to { background-position: 0 0; }
}

/* Accordion Component */
.accordion {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-item {
    border-bottom: 1px solid var(--light-gray);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: var(--pure-white);
    transition: var(--transition-fast);
}

.accordion-header:hover {
    background: var(--light-blue);
}

.accordion-button {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-gray);
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: transform var(--transition-fast);
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: var(--light-gray);
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-body {
    padding: var(--spacing-md);
    color: #5A6C7D;
}

/* Tabs Component */
.tabs {
    border-bottom: 1px solid var(--light-gray);
}

.tab-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-item {
    flex: 1;
}

.tab-button {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #5A6C7D;
    transition: var(--transition-fast);
}

.tab-button.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: var(--light-blue);
}

.tab-button:hover:not(.active) {
    color: var(--dark-gray);
    background: var(--light-gray);
}

.tab-content {
    display: none;
    padding: var(--spacing-md);
}

.tab-content.active {
    display: block;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--spacing-xs);
}

.skeleton-text.large {
    height: 1.5rem;
}

.skeleton-text.small {
    height: 0.875rem;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    margin-bottom: var(--spacing-sm);
}

/* Dropdown Component */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--pure-white);
    border: 2px solid var(--light-gray);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 150px;
    gap: var(--spacing-sm);
}

.dropdown-toggle:hover {
    border-color: var(--primary-blue);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pure-white);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.dropdown.open .dropdown-menu {
    display: block;
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.star.filled {
    color: #FFD700;
}

.star.half {
    background: linear-gradient(90deg, #FFD700 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Price Display */
.price {
    font-weight: 700;
    color: var(--primary-blue);
}

.price-large {
    font-size: 1.5rem;
}

.price-small {
    font-size: var(--small-size);
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    margin-right: var(--spacing-xs);
}

.price-discount {
    background: var(--error-red);
    color: var(--pure-white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--small-size);
    margin-left: var(--spacing-xs);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--pure-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-normal);
    z-index: 999;
}

.fab:hover {
    background: #357ABD;
    transform: scale(1.1);
}

/* Responsive Utilities */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
    .hide-mobile { display: block !important; }
    .show-mobile { display: none !important; }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-out {
    animation: fadeOut 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

.slide-down {
    animation: slideDown 0.5s ease;
}

.zoom-in {
    animation: zoomIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Make the dropdown link more visible */
.nav-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dropdown > .nav-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* Show dropdown arrow indicator */
.nav-dropdown > .nav-link::after {
    content: '▾';
    font-size: 0.8rem;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.nav-dropdown.active > .nav-link::after {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: none;
}

/* Show dropdown on hover OR when active class is present (for click) */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: dropdownSlideIn 0.3s ease forwards;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown .dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    padding-left: 28px;
}

/* Add subtle separator between dropdown items */
.nav-dropdown .dropdown-menu a:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--light-gray);
        margin-top: 0;
        border-radius: 0;
        animation: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.mobile-open .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        transform: none;
    }
}

/* Learn More Link on Service Cards */
.learn-more-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 8px 0;
    transition: color 0.2s;
}

.learn-more-link:hover {
    color: var(--dark-gray);
    text-decoration: underline;
}

/* ========================================
   SERVICE PAGES STYLING
   ======================================== */

/* Service Hero Section */
.service-hero {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.service-hero .hero-content-centered {
    position: relative;
    z-index: 2;
}

.service-hero h1 {
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-hero .subheading {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
}

.service-hero .trust-indicators {
    margin: 24px 0;
}

.service-hero .trust-indicators span {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light-gray);
    padding: 12px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--dark-gray);
}

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

.pricing-section h2 {
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 1000px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.pricing-table thead {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.pricing-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.pricing-table tbody tr:hover {
    background-color: var(--light-blue);
}

.pricing-table tbody tr.highlight-row {
    background: #FFF9E6;
    font-weight: 500;
}

.pricing-table tbody tr.highlight-row:hover {
    background: #FFF3CC;
}

.pricing-table td {
    padding: 14px 20px;
    color: var(--dark-gray);
}

.pricing-table td:first-child {
    font-weight: 500;
}

.pricing-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Services Detail Section */
.services-detail {
    padding: 60px 0;
    background: var(--light-gray);
}

.services-detail h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-gray);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-detail-card h3 {
    color: var(--dark-gray);
    margin-bottom: 16px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-detail-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-detail-card ul li {
    padding: 8px 0;
    color: #555;
    line-height: 1.5;
}

.service-detail-card .price-range {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--light-blue);
    font-size: 1.05rem;
    color: var(--primary-blue);
}

.service-detail-card .price-range strong {
    font-size: 1.2rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 60px 0;
    background: white;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--light-blue);
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Specialty Section (M1/M2/M3) */
.specialty-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

.specialty-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-gray);
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.specialty-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.specialty-card h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.specialty-card p {
    color: #555;
    line-height: 1.6;
}

.supported-models {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.supported-models h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    text-align: center;
}

.supported-models ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.supported-models ul li {
    padding: 8px 0;
    color: #555;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.95);
}

.location-info {
    margin-top: 24px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

/* Fix CTA button visibility in blue CTA sections */
.cta-section .secondary-cta {
    color: white !important;
    border-color: white !important;
}

.cta-section .secondary-cta:hover {
    background: white !important;
    color: var(--primary-blue) !important;
}

.cta-section .primary-cta {
    background: white !important;
    color: var(--primary-blue) !important;
    border-color: white !important;
}

.cta-section .primary-cta:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   BLOG PAGES STYLING
   ======================================== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.blog-hero h1 {
    color: white;
    margin-bottom: 16px;
}

.blog-hero .subheading {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
}

/* Blog Listing */
.blog-listing {
    padding: 60px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category.emergency {
    background: var(--error-red);
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content h2 a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-content h2 a:hover {
    color: var(--primary-blue);
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.blog-read-more {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.blog-read-more:hover {
    gap: 8px;
}

/* Blog Categories Section */
.blog-categories {
    padding: 60px 0;
    background: var(--light-gray);
}

.blog-categories h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 28px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-card h3 {
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.category-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Blog CTA */
.blog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    text-align: center;
}

.blog-cta h2 {
    color: white;
    margin-bottom: 16px;
}

.blog-cta p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.95);
}

/* Blog Article Page */
.blog-article {
    padding: 40px 0 80px;
    background: white;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-category {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.9rem;
    color: #999;
    flex-wrap: wrap;
}

.article-featured-image {
    max-width: 900px;
    margin: 0 auto 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content p.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 32px;
    font-weight: 400;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 24px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-content strong {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Article Highlight Boxes */
.pricing-highlight-box {
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F8FF 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 28px 32px;
    border-radius: 8px;
    margin: 32px 0;
}

.pricing-highlight-box h3 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.pricing-highlight-box ul {
    list-style: none;
    padding: 0;
}

.pricing-highlight-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.pricing-highlight-box ul li:last-child {
    border-bottom: none;
}

.pricing-highlight-box .note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.tip {
    display: block;
    background: #FFF9E6;
    border-left: 4px solid #F39C12;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.comparison-table-article {
    overflow-x: auto;
    margin: 32px 0;
}

.comparison-table-article table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table-article th {
    background: var(--primary-blue);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.comparison-table-article td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table-article tr:hover {
    background: var(--light-blue);
}

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

.checklist ul li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Article FAQs */
.faq-article {
    margin: 40px 0;
}

.faq-item-article {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item-article:last-child {
    border-bottom: none;
}

.faq-item-article h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.faq-item-article p {
    color: #555;
}

/* Article CTA */
.article-cta {
    background: var(--light-blue);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
}

.article-cta h3 {
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.article-cta p {
    margin-bottom: 24px;
    color: #555;
}

.location-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 50px auto 0;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
}

.article-updated {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 24px;
}

.article-share {
    text-align: center;
}

.article-share p {
    font-size: 1rem;
    color: #555;
}

/* Related Articles */
.related-articles {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 0;
    border-top: 2px solid var(--light-gray);
}

.related-articles h3 {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid var(--light-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.related-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.related-card h4 {
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

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

/* Responsive Design for Blog & Service Pages */
@media (max-width: 768px) {
    .service-hero {
        padding: 60px 0 40px;
    }

    .service-hero h1 {
        font-size: 1.8rem;
    }

    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

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

    .article-content p.lead {
        font-size: 1.1rem;
    }

    .pricing-highlight-box {
        padding: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   VISUAL SHOWCASE SECTIONS
   ======================================== */

/* Visual Showcase Section for Service Pages */
.visual-showcase-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.visual-showcase-section h2 {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 50px;
    font-size: 2rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.showcase-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

.showcase-caption {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1.05rem;
    background: white;
}

/* Service Hero with Background Image */
.service-hero[style*="background"] {
    min-height: 450px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.service-hero[style*="background"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 0;
}

.service-hero[style*="background"] .container {
    position: relative;
    z-index: 2;
}

/* Emergency Hero Styling (Water Damage Page) */
.emergency-hero {
    min-height: 500px;
}

.emergency-badge {
    display: inline-block;
    background: var(--error-red);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(231, 76, 60, 0);
    }
}

.urgent-text {
    font-size: 1.15rem !important;
    font-weight: 500;
}

.emergency-cta {
    background: var(--error-red) !important;
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(231, 76, 60, 0);
    }
}

/* Responsive Design for Visual Showcase */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .showcase-item img {
        height: 220px;
    }

    .visual-showcase-section h2 {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }

    .service-hero[style*="background"] {
        min-height: 400px;
    }

    .emergency-hero {
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .showcase-caption {
        font-size: 0.95rem;
        padding: 16px;
    }

    .showcase-item img {
        height: 200px;
    }
}