/* Updated Modal Styles */
#welcomePopup .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

@media (min-width: 768px) {
    #welcomePopup .modal-dialog {
        max-width: 700px;
        /* Reduced from modal-lg (800px) */
    }
}

#welcomePopup .modal-content {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: transparent;
}

#welcomePopup .modal-body {
    padding: 0;
    background-color: white;
    border-radius: 0.5rem;
}

#welcomePopup img.popup-image {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

#welcomePopup .modal-footer {
    background-color: white;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1rem;
}

#welcomePopup .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1050;
    background-color: white;
    opacity: 0.8;
    padding: 0.5rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s;
}

#welcomePopup .btn-close:hover {
    opacity: 1;
}

.spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-image {
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0 0 0.3rem 0.3rem;
}

.image-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    display: none;
}

.image-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.image-error p {
    margin: 0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.popup-image {
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0 0 0.3rem 0.3rem;
}

.service-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

.info-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.shake {
    animation: shake 0.4s ease-in-out;
}

.ppid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.title-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
    margin-top: 50px;
}

.category-title {
    color: #000080;
    display: inline-block;
    position: relative;
    margin-bottom: 0;
    font-size: 24px;
}

/* New precise lines styling */
.title-lines {
    margin-left: 790px;
    margin-bottom: 20px;
    position: relative;
    width: 15%;
    height: 6px;
    margin-top: 5px;
}

.line-thin {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #000080;
}

.line-thick {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #000080;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.search-inner {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    height: 55px;
    border-radius: 30px;
    padding: 10px 50px 10px 25px;
    border: 2px solid #000080;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 128, 0.15);
    border-color: #000080;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 45px;
    width: 45px;
    border: none;
    border-radius: 50%;
    background: #000080;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #000099;
    transform: scale(1.05);
}

.search-tip {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

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

.service-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card .card-body {
    padding: 2rem;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #0d6efd;
    color: white;
}

.service-icon i {
    font-size: 2rem;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.btn-service {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-service:hover {
    background: transparent;
    color: #0d6efd;
}

.statistics-section {
    padding: 80px 0;
    background: #ffffff;
}

.statistics-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.statistics-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.info-card {
    padding: 2rem;
    border-radius: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4ff;
    margin-bottom: 1.5rem;
}

.info-icon svg {
    width: 35px;
    height: 35px;
    color: #4361ee;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-request {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background: #4361ee;
    border: none;
    color: white;
}

.btn-primary-custom:hover {
    background: #2741d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.ppid-faq-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, #000080 0%, #000080 100%);
    overflow: hidden;
}

/* Glass morphism container */
.faq-glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.stats-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.stats-card {
    height: 100%;
}

.stats-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.stats-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

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

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

/* Modern FAQ title */
.faq-title {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.7rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 44%;
    width: 80px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

/* Modern FAQ items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.faq-question {
    padding: 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: rgba(255, 255, 255, 0.2);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Modern icon animation */
.faq-question .icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-question .icon::before,
.faq-question .icon::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.faq-question .icon::before {
    width: 24px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-question .icon::after {
    width: 2px;
    height: 24px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.faq-item.active .icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ppid-faq-section {
        padding: 60px 0;
    }

    .faq-glass-container {
        padding: 20px;
    }

    .faq-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .ppid-image-wrapper img {
        height: 300px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        padding: 0 10px;
    }

    .search-input {
        height: 50px;
        font-size: 14px;
    }

    .search-button {
        height: 40px;
        width: 40px;
    }

    .ppid-section {
        padding: 60px 0;
    }

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

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

    .statistics-section {
        padding: 60px 0;
    }

    .statistics-title {
        font-size: 1.75rem;
    }

    .info-card {
        margin-bottom: 30px;
    }

    .ppid-faq-section {
        padding: 60px 0;
    }

    .faq-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #welcomePopup .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    #welcomePopup img.popup-image {
        max-height: calc(100vh - 120px);
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .search-input {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }
}
