/* =====================================================
   HOMEPAGE SPECIFIC STYLES - The Software Showroom
   ===================================================== */

/* Hero Area Wrapper - Contains shapes and content */
#content-wrapper,
main {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Hero Section - Clean G2 Style */
.hero-section {
    max-width: 100%;
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-top: 0 !important;
    padding: 30px 20px 40px 80px;
    text-align: left;
    position: relative;
    background: url("../images/bgproper.8b944a704dd7.png?v=1") no-repeat center;
    background-size: cover;                                         
    background-attachment: scroll;
    background-position: center center;
    z-index: 1;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    z-index: -1;
    pointer-events: none;
}

.hero-content-shell {
    position: relative;
    z-index: 12;
    max-width: 760px;
}

.hero-title {
    font-size: 54px;
    font-weight: 700;
    color: #1e0a3c;
    text-shadow: none;
    margin-bottom: 30px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 11;
    text-align: left;
    max-width: 700px;
    padding-left: 40px;
}
                                
.hero-description {
    font-size: 18px;
    color: #64748B;
    max-width: 600px;
    margin: 0 0 50px 0;
    line-height: 1.8;
    font-weight: 400;
    position: relative;
    z-index: 11;
    text-align: left;
    padding-left: 40px;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 11;
}

/* Search Section */
.search-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 11;
}

.search-wrapper {
    background: transparent;
    padding: 0;
    position: relative;
    overflow: visible;
    margin-top: 0;
    z-index: 10;
}

.search-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.search-title {
    display: none;
}

.search-box-wrapper {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background-color: white;
    padding: 0;
    border-radius: 50px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    width: 100%;
    height: 56px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(0, 212, 212, 0);
}

.search-box-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 212, 212, 0) 20%,
        rgba(0, 212, 212, 0.95) 50%,
        rgba(0, 212, 212, 0) 80%,
        transparent 100%
    );
    animation: searchBorderSweepRTL 2.5s linear infinite;
    pointer-events: none;
    will-change: transform;
    clip-path: inset(0 0 50% 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.search-box-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 212, 212, 0) 20%,
        rgba(0, 212, 212, 0.95) 50%,
        rgba(0, 212, 212, 0) 80%,
        transparent 100%
    );
    animation: searchBorderSweepLTR 2.5s linear infinite;
    pointer-events: none;
    will-change: transform;
    clip-path: inset(50% 0 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.search-box-wrapper:hover,
.search-box-wrapper:focus-within {
    border-color: #00D4D4;
    box-shadow: 0 0 0 3px rgba(0, 212, 212, 0.14), 0 0 24px rgba(0, 212, 212, 0.22);
}

.search-box-wrapper:hover::before,
.search-box-wrapper:focus-within::before,
.search-box-wrapper:hover::after,
.search-box-wrapper:focus-within::after {
    animation-duration: 1.6s;
}

@keyframes searchBorderSweepRTL {
    from { transform: translateX(200%); }
    to   { transform: translateX(-200%); }
}

@keyframes searchBorderSweepLTR {
    from { transform: translateX(-200%); }
    to   { transform: translateX(200%); }
}

@media (prefers-reduced-motion: reduce) {
    .search-box-wrapper::before,
    .search-box-wrapper::after {
        animation: none;
        opacity: 0.5;
    }
}

.search-icon {
    display: none;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 24px;
    font-size: 16px;
    background-color: transparent;
    color: #0F172A;
    height: 100%;
}

.search-input::placeholder {
    color: #94A3B8;
}

.search-input:hover,
.search-input:focus {
    background-color: transparent;
    outline: none;
}

.search-btn {
    padding: 0 20px;
    background: transparent;
    color: #64748B;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-btn i {
    margin: 0;
}

.search-btn:hover {
    color: #00D4D4;
}

.search-btn:active {
    transform: scale(0.95);
}

/* Category Tags */
.categories-wrapper {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    margin-bottom: 10px;
}

.category-links {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.category-quick-link {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 25px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.category-quick-link i {
    color: #00D4D4;
    transition: all 0.3s ease;
}

.category-quick-link:hover {
    background: white;
    border-color: #00D4D4;
    color: #00D4D4;
    transform: translateY(-2px);
}

.category-quick-link:hover i {
    transform: scale(1.2);
    color: #6366F1;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 10px 18px;
    border: 2px solid #5B8CFF;
    border-radius: 25px;
    color: #5B8CFF;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    font-weight: 500;
    letter-spacing: normal;
}

.category-tag:hover {
    background-color: rgba(0, 217, 255, 0.1);
    border-color: #00D4D4;
    transform: translateY(-2px);
}

.category-tag:active {
    background-color: #e6f2f1;
    transform: translateY(0);
}

/* Search Results Dropdown */
#search-results {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 8px;
}

.search-results-dropdown {
    background: white;
    border-radius: 15px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    width: 100%;
}

.search-results-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-dropdown li {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-results-dropdown li:last-child {
    border-bottom: none;
}

.search-results-dropdown li:hover {
    background-color: rgba(0, 217, 255, 0.05);
    border-radius: 8px;
}

.search-results-dropdown a {
    color: #0F172A;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.search-results-dropdown a:hover {
    color: #00D4D4;
}

.search-results-dropdown p {
    text-align: center;
    color: #666;
    margin: 10px 0;
}

/* Discovery Gap Section */
.discovery-gap-section {
    max-width: 1200px;
    margin: 12px auto;
    padding: 24px 20px;
    text-align: center;
}

.discovery-gap-title {
    font-size: 44px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.discovery-gap-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00D4D4, #6366F1);
    border-radius: 2px;
}

.discovery-gap-description {
    font-size: 16px;
    color: #6B7280;
    max-width: 800px;
    margin: 0 auto 36px;
    line-height: 1.8;
    font-weight: 400;
}

.gap-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.gap-card {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #00E5FF;
    position: relative;
    overflow: hidden;
}

.gap-card::before {
    content: ''; 
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: 20px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.gap-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gap-card:hover {
    transform: translateY(-8px);
    border-color: #00D4D4;
    border-width: 3px;
    box-shadow: 0 12px 30px rgba(24, 232, 217, 0.2);
}

.gap-card:hover::after {
    opacity: 1;
}

.gap-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B8CFF;
    transition: all 0.3s ease;
    position: relative;
}

.gap-card:hover .gap-card-icon {
    color: #00D4D4;
    transform: scale(1.15);
}

.gap-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gap-card:hover .gap-card-title {
    color: #00D4D4;
    transform: translateY(-2px);
}

.gap-card-description {
    font-size: 14px;
    color: #0F172A;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gap-card:hover .gap-card-description {
    color: #333;
    transform: translateY(-1px);
}

.gap-card-content {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.gap-card:hover .gap-card-content {
    transform: translateY(-3px);
}

/* Approach Section */
.approach-section {
    max-width: 1200px;
    margin: 36px auto;
    padding: 44px 20px;
    text-align: center;
}

.approach-title {
    font-size: 44px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.approach-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00D4D4, #5B8CFF);
    border-radius: 2px;
}

.approach-description {
    font-size: 16px;
    color: #0F172A;
    max-width: 800px;
    margin: 0 auto 38px;
    line-height: 1.8;
    font-weight: 400;
}

.approach-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.approach-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 25px;
    background: linear-gradient(135deg, #00D4D4 0%, #5B8CFF 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.approach-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #5B8CFF 0%, #00D4D4 100%);
    box-shadow: 0 12px 35px rgba(91, 140, 255, 0.3);
}

.approach-card:hover::before {
    top: -25%;
    right: -25%;
    transform: scale(1.2);
}

.approach-card:hover::after {
    opacity: 1;
    transform: scale(2);
}

.approach-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.approach-card:hover .approach-card-icon {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.approach-card-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.approach-card:hover .approach-card-title {
    transform: translateY(-2px);
}

.approach-card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.approach-card:hover .approach-card-description {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* Discovery Comparison Section */
.discovery-comparison-section {
    max-width: 1200px;
    margin: 36px auto;
    padding: 44px 20px;
    text-align: center;
    background-color: #ffffff;
}

.discovery-comparison-title {
    font-size: 44px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.discovery-comparison-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00D4D4, #5B8CFF);
    border-radius: 2px;
}

.discovery-comparison-description {
    font-size: 16px;
    color: #0F172A;
    max-width: 900px;
    margin: 0 auto 38px;
    line-height: 1.8;
    font-weight: 400;
}

.comparison-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.comparison-card {
    padding: 30px;
    border-radius: 15px;
    background-color: #f8f9fa;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* Shared base for both pseudo-elements on both cards */
.comparison-card::before,
.comparison-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 212, 212, 0) 20%,
        rgba(0, 212, 212, 0.95) 50%,
        rgba(0, 212, 212, 0) 80%,
        transparent 100%
    );
    pointer-events: none;
    will-change: transform;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Card 1: top RTL, bottom LTR */
.comparison-card:nth-child(1)::before {
    clip-path: inset(0 0 50% 0);
    animation: searchBorderSweepRTL 3s linear infinite;
}
.comparison-card:nth-child(1)::after {
    clip-path: inset(50% 0 0 0);
    animation: searchBorderSweepLTR 3s linear infinite;
}

/* Card 2: top LTR, bottom RTL — opposite of card 1 */
.comparison-card:nth-child(2)::before {
    clip-path: inset(0 0 50% 0);
    animation: searchBorderSweepLTR 3s linear infinite;
}
.comparison-card:nth-child(2)::after {
    clip-path: inset(50% 0 0 0);
    animation: searchBorderSweepRTL 3s linear infinite;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card-label {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.comparison-card-content {
    font-size: 15px;
    color: #0F172A;
    font-style: italic;
    line-height: 1.8;
}

.discovery-cta-button {
    padding: 16px 40px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00D4D4 0%, #5B8CFF 50%, #6366F1 100%);
    color: white;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3);
}

.discovery-cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.3);
    transition: left 0.4s ease;
}

.discovery-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.4);
}

.discovery-cta-button:hover::after {
    left: 100%;
}

.discovery-cta-button:active {
    transform: scale(0.98);
}

/* New Resources Section - As per Image */
.resources-section-new {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.resources-header-new {
    text-align: center;
    margin-bottom: 50px;
}

.resources-header-new h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.resources-header-new p {
    font-size: 18px;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.resources-container-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-column-new {
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.resource-column-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.resource-title-new {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resource-title-new h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.resource-title-new i {
    font-size: 20px;
    color: #4299e1;
}

.resource-nav-arrow-new {
    width: 30px;
    height: 30px;
    background-color: #4299e1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.resource-nav-arrow-new:hover {
    background-color: #2b6cb0;
}

.resource-column-content-new {
    flex-grow: 1;
}

.content-card-new {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.content-card-new:last-child {
    margin-bottom: 0;
}

.content-card-new:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-meta-new {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 10px;
}

.card-title-new {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.card-desc-new {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.card-link-new {
    font-size: 14px;
    font-weight: 600;
    color: #4299e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link-new i {
    transition: transform 0.3s ease;
}

.card-link-new:hover i {
    transform: translateX(3px);
}

/* Scrollable Content for Case Studies */
.scrollable-content {
    display: flex;
    overflow-x: auto;
    padding-bottom: 15px; /* For scrollbar visibility */
    gap: 15px;
}

.scrollable-content .content-card-new {
    flex: 0 0 90%; /* Each card takes 90% of the column width */
    margin-bottom: 0;
}

/* Custom Scrollbar */
.scrollable-content::-webkit-scrollbar {
    height: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

@media (max-width: 992px) {
    .resources-container-new {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Category Browser (Homepage) */
.cat-browser {
    display: flex;
    background: linear-gradient(145deg, #ecfeff 0%, #f0f9ff 45%, #ffffff 100%);
    border: 1px solid #a5f3fc;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(8, 145, 178, 0.12);
}

.cat-sidebar {
    width: 270px;
    flex-shrink: 0;
    border-right: 1px solid #bae6fd;
    overflow-y: auto;
    max-height: 520px;
    padding: 16px 10px;
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.95) 0%, rgba(224, 242, 254, 0.8) 100%);
}

.cat-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background .14s, border-color .14s, transform .14s;
    user-select: none;
}

.cat-sidebar-item:hover {
    background: #cffafe;
    border-color: #67e8f9;
    transform: translateX(2px);
}

.cat-sidebar-item.active {
    background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 100%);
    border-color: #0d9488;
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.3);
}

.cat-sidebar-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
    min-width: 0;
}

.cat-sidebar-item.active .cat-sidebar-label {
    color: #ffffff;
}

.cat-sidebar-count {
    font-size: 11px;
    color: #0e7490;
    flex-shrink: 0;
    background: rgba(14, 116, 144, 0.12);
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 700;
}

.cat-sidebar-item.active .cat-sidebar-count {
    color: #115e59;
    background: rgba(255, 255, 255, 0.75);
}

.cat-panels {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #ffffff 100%);
}

.cat-panel {
    display: none;
    padding: 20px 22px;
}

.cat-panel.active {
    display: block;
}

.cat-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.cat-panel-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.cat-panel-see-all {
    font-size: 13px;
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.cat-panel-see-all:hover {
    color: #0e7490;
    text-decoration: underline;
}

.sw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.sw-card {
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow .16s, border-color .16s, transform .16s;
    background: #ffffff;
}

.sw-card:hover {
    box-shadow: 0 10px 22px rgba(14, 116, 144, 0.18);
    border-color: #22d3ee;
    transform: translateY(-2px);
}

.sw-avatar {
    width: 100%;
    height: 78px;
    background: #ffffff;
    border-bottom: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #0e7490;
    overflow: hidden;
    flex-shrink: 0;
}

.sw-avatar img {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
}

.sw-info {
    padding: 8px 10px 10px;
    width: 100%;
}

.sw-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
}

@media (max-width: 700px) {
    .cat-browser {
        flex-direction: column;
        border-radius: 16px;
    }

    .cat-sidebar {
        width: 100%;
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid #bae6fd;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px;
        gap: 8px;
    }

    .cat-sidebar-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        margin-bottom: 0;
        border-radius: 12px;
        min-width: 168px;
        border: 1px solid #bae6fd;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .cat-sidebar-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 124px;
    }

    .cat-panel {
        padding: 16px;
    }

    .cat-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .resources-container-new {
        grid-template-columns: 1fr;
    }
}



/* Categories Section */
.categories-section {
    max-width: 1200px;
    margin: 18px auto 28px;
    padding: 34px 20px;
    text-align: center;
}

.categories-title {
    font-size: 44px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.categories-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00D4D4, #5B8CFF);
    border-radius: 2px;
}

.categories-description {
    font-size: 16px;
    color: #0F172A;
    max-width: 800px;
    margin: 0 auto 28px;
    line-height: 1.8;
    font-weight: 400;
}

.featured-category-container {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.featured-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #00D4D4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.featured-category-title i {
    color: #00D4D4;
}

.featured-category-description {
    font-size: 16px;
    color: #0F172A;
    margin-bottom: 40px;
    line-height: 1.8;
}

.featured-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.featured-products-container .product-card {
    border-top: 3px solid #00D4D4;
}

.featured-products-container .product-card::before {
    background: linear-gradient(90deg, #00D4D4, #5B8CFF, #00D4D4);
}

.product-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00D4D4, #5B8CFF, #00D4D4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00D4D4;
    border-left: 5px solid #00D4D4;
    border-right: 5px solid #00D4D4;
}

.product-card:hover::before {
    opacity: 1;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00D4D4 0%, #5B8CFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 5px;
}

.product-tags {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 5px;
    letter-spacing: normal;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 6px 12px;
    background-color: #f0f8f7;
    color: #00D4D4;
    border: 1px solid #00D4D4;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00D4D4 0%, #5B8CFF 50%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
opacity: 0;
    transition: opacity 0.3s ease;
}

.product-btn:hover {
    transform: scale(1.05);
}

.product-btn:hover::before {
    opacity: 1;
}

.live-profile-link {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.live-profile-link:hover {
    color: #00D4D4;
}

.view-all-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #00D4D4 0%, #5B8CFF 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
opacity: 0;
    transition: opacity 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
}

.view-all-btn:hover::before {
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    max-width: 1200px;
    margin: 28px auto;
    padding: 40px 20px;
    text-align: center;
}

.faq-title {
    font-size: 44px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00D4D4, #5B8CFF);
    border-radius: 2px;
}

.faq-description {
    font-size: 16px;
    color: #0F172A;
    margin-bottom: 32px;
    font-weight: 400;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    text-align: left;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4D4, #5B8CFF, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.faq-item:hover {
    transform: translateY(-3px);
    border-color: #00D4D4;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-toggle {
    font-size: 20px;
    color: #00D4D4;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 14px;
    color: #0F172A;
    margin-top: 15px;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    /* Hero Section for Tablets */
    .hero-section {
        padding: 40px 20px !important;
        min-height: 56vh !important;
        height: auto !important;
        background-color: transparent !important;
        background-image: url("../images/bgproper.8b944a704dd7.png?v=1") !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
        width: 100% !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        z-index: 1 !important;
        position: relative !important;
    }

    /* Keep light overlay for readability without blurring image edges */
    .hero-section::before {
        display: block !important;
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(255, 255, 255, 0.2) !important;
        z-index: 0 !important;
        pointer-events: none !important;
    }
    
    .hero-section::after {
        display: none !important;
        content: '' !important;
    }

    /* Scale down shapes for tablets */
    .hero-shapes-container .shape {
        transform: scale(0.7);
    }
    
    .shape-bubble-blob {
        top: -20px;
        left: -40px;
    }
    
    .shape-cloud-puff {
        top: 2%;
        right: 2%;
    }
    
    .shape-wavy-petal {
        bottom: -40px;
        right: -60px;
    }

    .hero-title {
        font-size: 34px;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 0;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 14px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .button-group {
        gap: 10px;
        justify-content: flex-start;
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 25px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .search-section {
        padding: 0 15px;
        margin: 0 0 20px 0;
        max-width: 100%;
    }

    .search-box-wrapper {
        max-width: 100%;
        flex-direction: row;
        height: 48px;
    }

    .search-input {
        font-size: 14px;
        padding: 0 16px;
    }

    .search-btn {
        padding: 0 16px;
        width: auto;
    }

    .categories-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        margin-top: 15px;
    }

    .category-links {
        gap: 10px;
        flex-wrap: wrap;
    }

    .category-quick-link {
        padding: 6px 14px;
        font-size: 12px;
    }

    .discovery-gap-title,
    .approach-title,
    .discovery-comparison-title,
    .categories-title,
    .faq-title {
        font-size: 32px;
    }

    .gap-cards-container,
    .approach-cards-container,
    .comparison-cards-container,
    .featured-products-container,
    .faq-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .approach-card {
        padding: 30px 20px;
        min-height: 280px;
    }

    .approach-card-icon {
        font-size: 40px;
    }

    .approach-card-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Hero Section for Mobile Phones - Enhanced Spacing */
    .hero-section {
        padding: 26px 16px 22px 16px;
        min-height: 52vh;
        height: auto;
        width: 100%;
        margin-left: 0;
        margin: 0;
        margin-top: 0 !important;
        background: url("../images/bgproper.8b944a704dd7.png?v=1") no-repeat center;
        background-position: center center;
        background-size: cover;
        background-attachment: scroll;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 1;
    }

    /* Keep overlay minimal on mobile - but behind navigation */
    .hero-section::before {
        display: block;
        background: rgba(255, 255, 255, 0.16);
        z-index: -1;
    }

    .hero-content-shell {
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.78) 70%, rgba(248, 250, 252, 0.45) 100%);
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 18px;
        padding: 14px 12px 12px;
        backdrop-filter: blur(1.5px);
        -webkit-backdrop-filter: blur(1.5px);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
        max-width: 100%;
    }

    /* Further scale down shapes for mobile */
    .hero-shapes-container .shape {
        transform: scale(0.35);
    }
    
    .shape-bubble-blob {
        top: 5px;
        left: -30px;
    }
    
    .shape-cloud-puff {
        top: 8%;
        right: -8%;
    }
    
    .shape-wavy-petal {
        bottom: -25px;
        right: -95px;
    }
    
    .shape-bubble-arc {
        width: 180px;
        height: 110px;
    }

    .hero-title {
        font-size: 40px;
        max-width: 100%;
        padding-left: 4px;
        padding-right: 0;
        margin-top: 0;
        margin-bottom: 18px;
        line-height: 1.15;
        letter-spacing: -0.2px;
        font-weight: 800;
    }

    .hero-description {
        font-size: 13px;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        margin-bottom: 28px;
        line-height: 1.5;
        color: #555;
    }

    .button-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-left: 0;
        margin-bottom: 32px;
    }

    .btn {
        padding: 11px 16px;
        font-size: 13px;
        width: 100%;
        text-align: center;
        justify-content: center;
        border-radius: 40px;
    }

    .btn i {
        font-size: 13px;
    }

    .search-section {
        padding: 0;
        margin: 0;
        margin-top: 0;
    }

    .search-wrapper {
        margin-top: 0;
    }

    .search-box-wrapper {
        max-width: 100%;
        height: 50px;
        flex-direction: row;
        margin-bottom: 18px;
        border-radius: 40px;
    }

    .search-input {
        font-size: 16px;
        padding: 0 14px;
    }

    .search-btn {
        padding: 0 12px;
        width: auto;
        font-size: 15px;
    }

    .categories-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .category-links {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .category-quick-link {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
        justify-content: center;
        border-radius: 20px;
    }

    .discovery-gap-title,
    .approach-title,
    .discovery-comparison-title,
    .categories-title,
    .faq-title {
        font-size: 24px;
        padding: 0 14px;
    }

    .discovery-gap-description,
    .approach-description,
    .discovery-comparison-description {
        padding: 0 14px;
    }

    .approach-card {
        padding: 18px 14px;
        min-height: auto;
        margin: 0 14px;
    }

    .approach-card-title {
        font-size: 15px;
    }

    .approach-card-description {
        font-size: 12px;
    }

    .featured-category-container {
        padding: 18px 14px;
        margin: 0 14px;
    }

    .gap-cards-container,
    .approach-cards-container,
    .comparison-cards-container,
    .featured-products-container,
    .faq-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 14px;
    }

    /* Improve overall mobile spacing */
    section {
        padding: 24px 0;
    }
}
