/* ========================================
   SOFTWARE PAGES ENHANCED STYLING
   Professional, Neat, Color-Matched Design
   ======================================== */

:root {
    /* Brand Colors - Matching Website */
    --navy-primary: #0b004b;
    --navy-secondary: #1a0a5a;
    --navy-light: #2d1a7a;
    --navy-dark: #08022a;
    --red-primary: #da1f15;
    --red-hover: #b01811;
    --red-light: #ff4136;
    --white: #ffffff;
    --light-white: #f0f0f0;
}

/* ========================================
   FAQ SECTION - PROFESSIONAL DESIGN
   ======================================== */

/* Legacy FAQ Support - Override old styles */
.faq-accordion,
.faq-accordion .panel-group,
.faq-accordion .panel,
.faq-accordion .panel-default {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.faq-accordion .panel-heading {
    background: linear-gradient(135deg, rgba(26, 13, 92, 0.6) 0%, rgba(11, 0, 75, 0.8) 100%) !important;
    border: 2px solid rgba(218, 31, 21, 0.3) !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
}

.faq-accordion .panel-heading:hover {
    border-color: rgba(218, 31, 21, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.faq-accordion .panel-title {
    margin: 0 !important;
}

.faq-accordion .panel-title a {
    color: var(--white) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 24px 28px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-decoration: none !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease !important;
}

.faq-accordion .panel-title a:hover {
    color: var(--white) !important;
    background: rgba(218, 31, 21, 0.1) !important;
}

.faq-accordion .panel-title a i {
    color: var(--white) !important;
    transition: transform 0.3s ease !important;
    font-size: 20px !important;
}

.faq-accordion .panel-title a[aria-expanded="true"] i {
    transform: rotate(180deg) !important;
}

.faq-accordion .panel-collapse {
    background: rgba(11, 0, 75, 0.4) !important;
    border: none !important;
}

.faq-accordion .panel-body {
    padding: 24px 28px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.faq-accordion .panel-body p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 16px !important;
}

.faq-accordion .panel-body p:last-child {
    margin-bottom: 0 !important;
}

.faq-accordion .panel-body a {
    color: var(--red-light) !important;
    text-decoration: underline !important;
}

.faq-accordion .panel-body a:hover {
    color: var(--white) !important;
    text-shadow: 0 0 10px rgba(255, 77, 67, 0.7) !important;
}

/* Section Title for FAQ */
.section-title-item .section-title.faqh2title {
    color: var(--white) !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-shadow:
        0 0 20px rgba(218, 31, 21, 0.6),
        3px 3px 10px rgba(0, 0, 0, 0.9) !important;
    margin-bottom: 20px !important;
    display: block !important;
}

/* New Modern FAQ Styles */
.faq-section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.faq-main-heading {
    color: var(--white) !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-shadow:
        0 0 20px rgba(218, 31, 21, 0.6),
        3px 3px 10px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: 0.5px !important;
}

.faq-header-divider {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(218, 31, 21, 0.8);
}

.faq-accordion-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item-modern {
    background: linear-gradient(135deg, rgba(26, 13, 92, 0.6) 0%, rgba(11, 0, 75, 0.8) 100%);
    border: 2px solid rgba(218, 31, 21, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.faq-item-modern:hover {
    border-color: rgba(218, 31, 21, 0.5);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(218, 31, 21, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.faq-question-header {
    position: relative;
}

.faq-question-button {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    color: var(--white);
}

.faq-question-button:hover {
    background: rgba(218, 31, 21, 0.1);
}

.faq-question-button[aria-expanded="true"] {
    background: rgba(218, 31, 21, 0.15);
    border-bottom: 2px solid rgba(218, 31, 21, 0.3);
}

.faq-question-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--white) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    flex: 1;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 31, 21, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--white);
}

.faq-question-button[aria-expanded="true"] .faq-toggle-icon {
    background: var(--red-primary);
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(218, 31, 21, 0.5);
}

.faq-answer-collapse {
    background: rgba(11, 0, 75, 0.4);
}

.faq-answer-content {
    padding: 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.faq-answer-text p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95) !important;
}

.faq-answer-text p:last-child {
    margin-bottom: 0;
}

.faq-answer-text a {
    color: var(--red-light) !important;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.faq-answer-text a:hover {
    color: var(--white) !important;
    text-shadow: 0 0 10px rgba(255, 77, 67, 0.7);
}

.faq-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.faq-empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--white);
}

.faq-empty-state p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Additional FAQ styling for better appearance */
.faq-accordion .panel-title a .faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-accordion .panel-title a .faq-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-accordion .panel-title a[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Ensure FAQ section has proper spacing */
.row:has(.faq-accordion) {
    margin-top: 60px;
    margin-bottom: 60px;
}

/* ========================================
   SOFTWARE LISTING PAGE ENHANCEMENTS
   ======================================== */

.software-content-heading {
    color: var(--white) !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    text-shadow:
        0 0 20px rgba(218, 31, 21, 0.6),
        3px 3px 10px rgba(0, 0, 0, 0.9) !important;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--red-primary);
    position: relative;
}

.software-content-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.intro-text {
    text-align: center;
    color: var(--white) !important;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.intro-text p {
    color: var(--white) !important;
    margin: 0;
}

.no-software-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.no-software-message p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   SOFTWARE PROVIDER PAGE ENHANCEMENTS
   ======================================== */

.software-intro-card {
    background: linear-gradient(135deg, rgba(26, 13, 92, 0.6) 0%, rgba(11, 0, 75, 0.8) 100%) !important;
    border: 2px solid rgba(218, 31, 21, 0.3) !important;
    border-radius: 20px !important;
    padding: 50px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(218, 31, 21, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 40px !important;
}

.software-intro-card h2 {
    color: var(--white) !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    text-shadow:
        0 0 20px rgba(218, 31, 21, 0.6),
        3px 3px 10px rgba(0, 0, 0, 0.9) !important;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--red-primary);
    position: relative;
}

.software-intro-card h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(218, 31, 21, 0.8);
}

/* ========================================
   SEARCH BAR ENHANCEMENTS
   ======================================== */

.softwaresearch .search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.softwaresearch .search-bar input[type="text"] {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: rgba(11, 0, 75, 0.8);
    border: 2px solid rgba(218, 31, 21, 0.3);
    border-radius: 12px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.softwaresearch .search-bar input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.softwaresearch .search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(218, 31, 21, 0.5);
    background: rgba(11, 0, 75, 0.95);
}

.softwaresearch .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* ========================================
   SOFTWARE CARDS ENHANCEMENTS
   ======================================== */

.software-row .content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%) !important;
    border: 2px solid rgba(218, 31, 21, 0.1) !important;
    border-radius: 20px !important;
    padding: 35px 25px !important;
    height: 240px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    cursor: pointer !important;
    position: relative !important;
}

.software-row .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--red-primary) 50%, transparent 100%);
    border-radius: 0 0 4px 4px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.software-row .content:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.software-row .content:hover {
    transform: translateY(-12px) scale(1.02) !important;
    border-color: rgba(218, 31, 21, 0.3) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(218, 31, 21, 0.2) !important;
}

.software-row .content-image {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) brightness(1) !important;
}

.software-row .content:hover .content-image {
    transform: scale(1.1) !important;
    filter:
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15))
        brightness(1.05) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .faq-main-heading {
        font-size: 32px !important;
    }
    
    .faq-question-text {
        font-size: 16px !important;
    }
    
    .faq-answer-text {
        font-size: 15px !important;
    }
    
    .software-content-heading {
        font-size: 28px !important;
    }
    
    .software-intro-card {
        padding: 30px 20px !important;
    }
    
    .software-intro-card h2 {
        font-size: 32px !important;
    }
    
    .software-row .content {
        height: 200px !important;
        padding: 25px 15px !important;
    }
    
    .software-row .content-image {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 576px) {
    .faq-accordion-modern {
        gap: 12px;
    }
    
    .faq-question-button {
        padding: 20px;
    }
    
    .faq-answer-content {
        padding: 20px;
    }
    
    .software-row .content {
        height: 180px !important;
        padding: 20px 12px !important;
    }
    
    .software-row .content-image {
        width: 100px !important;
        height: 100px !important;
    }
}
