/* Company Data Styles */

/* Company Card */
.company-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-logo {
    flex-shrink: 0;
}

.company-logo img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

.company-details h3 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.company-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.company-details a {
    color: #007bff;
    text-decoration: none;
}

.company-details a:hover {
    text-decoration: underline;
}

/* Company List */
.company-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-list li:last-child {
    border-bottom: none;
}

.company-list strong {
    color: #333;
    font-weight: 600;
}

/* Company Minimal */
.company-minimal {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.company-minimal h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.company-minimal p {
    color: #666;
    margin: 0;
}

/* Company Header */
.company-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.company-header .company-logo {
    margin-bottom: 1rem;
}

.company-header .company-logo img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 10px;
}

.company-header .company-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.company-header .company-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Company Footer */
.company-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
}

.company-footer h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.company-footer p {
    color: #666;
    margin-bottom: 0.5rem;
}

.company-footer a {
    color: #007bff;
    text-decoration: none;
}

.company-footer a:hover {
    text-decoration: underline;
}

.company-footer .text-center {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Company Info Card */
.company-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.company-info-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.company-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.company-info-card li:last-child {
    border-bottom: none;
}

.company-info-card strong {
    color: #333;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Contact Page Styles */
.contact-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.contact-icon {
    color: #007bff;
}

.contact-info-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* GDPR Notice Styles */
.alert-info .fas {
    color: #0c5460;
}

.alert-info strong {
    color: #0c5460;
}

.alert-info p {
    color: #0c5460;
    line-height: 1.6;
}

/* Professional Accounting Firm Styles */

/* Navbar Styles */
.navbar {
    background-color: #c8c8c8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    color: white;
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    padding: 0.5rem 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #1e3c72;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%), url('../photo/webpage/accounting.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    max-height: 50vh;
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section-index {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%), url('../photo/webpage/accounting.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 15;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 15;
}

.hero-buttons {
    margin-top: 2rem;
    position: relative;
    z-index: 15;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.hero-buttons .btn-primary {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.hero-buttons .btn-primary:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.hero-buttons .btn-outline-primary {
    border-color: white;
    color: white;
}

.hero-buttons .btn-outline-primary:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #e74c3c);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: white;
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #495057;
}

.feature-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.about-image {
    text-align: center;
}

.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.image-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* Services Section */
.services-section {
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #e74c3c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #c82333;
    text-decoration: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.cta-buttons .btn-primary:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.cta-buttons .btn-outline-primary {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline-primary:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
}

/* Search Styles */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.search-results {
    margin-top: 2rem;
}

.search-result-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #007bff;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-result-title {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-result-title:hover {
    color: #0056b3;
}

.search-result-snippet {
    color: #666;
    line-height: 1.6;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.search-stats {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.search-suggestions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.search-suggestions ul {
    margin-bottom: 0;
}

.search-suggestions li {
    margin-bottom: 0.5rem;
}

/* Search Enhancement Styles */
.search-form.focused {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-form .input-group {
    position: relative;
}

.search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: #007bff;
}

.search-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Keyboard shortcut hint */
.search-form::after {
    content: "Ctrl+K";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        max-height: 60vh;
        background-attachment: scroll;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .brand-text {
        display: none;
    }
    
    .company-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .company-header .company-title h1 {
        font-size: 2rem;
    }
    
    .company-header .company-subtitle {
        font-size: 1rem;
    }
    
    .company-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .company-footer .row > div {
        margin-bottom: 2rem;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .search-result-card {
        margin-bottom: 1rem;
    }
    
    .search-form::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        max-height: 70vh;
        padding: 1.5rem 0;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

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

.company-slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

/* Utility Classes */
.company-text-primary {
    color: #007bff !important;
}

.company-bg-primary {
    background-color: #007bff !important;
}

.company-border-primary {
    border-color: #007bff !important;
}

.company-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.company-shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Search Styles */
.search-container.focused {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.search-container .input-group {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.search-container .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: #fff;
}

.search-container .form-control:focus {
    box-shadow: none;
    background: #fff;
}

.search-container .form-control.searching {
    background: linear-gradient(90deg, #fff 0%, #f8f9fa 50%, #fff 100%);
    background-size: 200% 100%;
    animation: searching 1.5s infinite;
}

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

.search-container .input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1.1rem;
}

/* FAQ Search Results */
.accordion-item.highlighted {
    border: 2px solid #667eea !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.accordion-item.highlighted .accordion-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.accordion-item.highlighted .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: none;
}

.accordion-item.highlighted .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.search-highlight {
    background: #ffeb3b;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.faq-section.no-results {
    opacity: 0.5;
    pointer-events: none;
}

.accordion-item.no-match {
    display: none;
}

/* Search Results Summary */
#search-results-summary {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.3s ease;
}

#search-results-summary.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

#search-results-summary.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

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

/* FAQ Section Enhancements */
.faq-section {
    transition: all 0.3s ease;
}

.faq-section h3 {
    position: relative;
    padding-left: 1rem;
}

.faq-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.accordion-item {
    transition: all 0.3s ease;
    border-radius: 10px !important;
    margin-bottom: 1rem;
}

.accordion-button {
    border-radius: 10px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-body {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
    line-height: 1.6;
} 

/* Image Optimization and Lazy Loading Styles */

/* Lazy loading image styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Image placeholder styles */
.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Service icon optimization */
.service-icon img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Membership logo optimization */
.membership-logo {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.membership-logo:hover {
    transform: scale(1.05);
}

/* Responsive image optimization */
@media (max-width: 768px) {
    .service-icon img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .membership-logo {
        max-width: 60px;
        max-height: 60px;
    }
    
    .image-placeholder {
        padding: 2rem;
    }
    
    .image-placeholder i {
        font-size: 2rem;
    }
    
    .image-placeholder p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .service-icon img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .membership-logo {
        max-width: 50px;
        max-height: 50px;
    }
    
    .image-placeholder {
        padding: 1.5rem;
    }
    
    .image-placeholder i {
        font-size: 1.5rem;
    }
    
    .image-placeholder p {
        font-size: 0.9rem;
    }
}

/* Loading animation for images */
@keyframes imageLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lazy-image.loaded {
    animation: imageLoad 0.3s ease-out;
}

/* Progressive image loading */
.progressive-image {
    position: relative;
    overflow: hidden;
}

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

/* Image error fallback */
.image-error {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    min-height: 100px;
}

/* WebP support detection */
.webp .service-icon img,
.webp .membership-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon img,
    .membership-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Enhanced FAQ Search Styles */
#faqSearch {
    border-radius: 25px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

#faqSearch:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
}

#faqSearch::placeholder {
    color: #6c757d;
    font-style: italic;
}

.search-container .input-group-text {
    border-radius: 25px 0 0 25px;
    border: 2px solid #e9ecef;
    border-right: none;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-size: 18px;
    padding: 15px 20px;
}

.search-container .form-control {
    border-left: none;
    border-radius: 0 25px 25px 0;
}

.search-container .form-control:focus {
    border-left: none;
    box-shadow: none;
}

/* FAQ Search Results Animation */
.accordion-item.search-match {
    background-color: #f8f9ff;
    border-left: 4px solid #007bff;
    transform: translateX(5px);
}

.accordion-item.search-match .accordion-button {
    background-color: #e7f3ff;
    color: #0056b3;
}

.accordion-item.search-match .accordion-button:not(.collapsed) {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* No Results Message */
#noResultsMessage {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

#noResultsMessage a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
}

#noResultsMessage a:hover {
    text-decoration: underline;
}

/* Search Highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* FAQ Section Visibility */
.faq-section.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Search Loading State */
.search-container.searching #faqSearch {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
} 