/**
 * Custom Sections CSS
 * Smart Vision UAE - Home Sections
 * Colors: Primary #19868b, Secondary #e1273d, Dark #172e38
 */

/* ========================================
   SEARCH HEADER - Button Active State
   ======================================== */

.btn-active-secondary.active {
    background-color: #e1273d !important;
}

/* Advanced Search Icon - White Color */
.icon-white:before,
.icon-white:after {
    color: #fff !important;
}

/* ========================================
   ABOUT SECTION - Solutions Built for Business
   ======================================== */

.svg-about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.svg-about-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(225, 39, 61, 0.1);
    color: #e1273d;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.svg-about-section .section-badge i {
    font-size: 14px;
}

.svg-about-section .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #172e38;
    line-height: 1.2;
    margin-bottom: 25px;
}

.svg-about-section .section-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #172e38;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.svg-about-section .section-btn:hover {
    background-color: #19868b;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 134, 139, 0.25);
}

.svg-about-section .section-btn .btn-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.svg-about-section .section-btn:hover .btn-icon {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

/* About Cards Grid */
.svg-about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

/* Icon Card Styling */
.svg-icon-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.svg-icon-card:not(.svg-card-featured):hover {
    background-color: #19868b;
    box-shadow: 0 15px 40px rgba(25, 134, 139, 0.3);
    transform: translateY(-5px);
}

.svg-icon-card .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    position: relative;
}

.svg-icon-card .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* Icon filter for hover state - changes icon to white */
.svg-icon-card:not(.svg-card-featured):hover .card-icon img {
    filter: brightness(0) invert(1);
}

.svg-icon-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #172e38;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.svg-icon-card:not(.svg-card-featured):hover .card-title {
    color: #fff;
}

.svg-icon-card .card-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 0;
    transition: color 0.4s ease;
}

.svg-icon-card:not(.svg-card-featured):hover .card-text {
    color: rgba(255, 255, 255, 0.85);
}

/* First Card - Featured/Highlighted with Secondary Color */
.svg-icon-card.svg-card-featured {
    background-color: #e1273d;
}

.svg-icon-card.svg-card-featured .card-icon img {
    filter: brightness(0) invert(1);
}

.svg-icon-card.svg-card-featured .card-title {
    color: #fff;
}

.svg-icon-card.svg-card-featured .card-text {
    color: rgba(255, 255, 255, 0.85);
}

.svg-icon-card.svg-card-featured:hover {
    background-color: #19868b;
    box-shadow: 0 15px 40px rgba(25, 134, 139, 0.3);
    transform: translateY(-5px);
}

/* Background Card Styling */
.svg-bg-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 100%;
    background-size: cover;
    background-position: center;
}

.svg-bg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23, 46, 56, 0.85) 0%, rgba(23, 46, 56, 0.7) 100%);
    z-index: 1;
}

.svg-bg-card .card-icon-overlay {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #e1273d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(225, 39, 61, 0.35);
}

.svg-bg-card .card-icon-overlay img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Center Column - Title Area */
.svg-about-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

/* Grid Layout for specific card positions */
.svg-about-cards .svg-card-1 { grid-column: 1; grid-row: 1; }
.svg-about-cards .svg-card-2 { grid-column: 3; grid-row: 1; }
.svg-about-cards .svg-card-3 { grid-column: 1; grid-row: 2; }
.svg-about-cards .svg-card-4 { grid-column: 2; grid-row: 2; }
.svg-about-cards .svg-card-5 { grid-column: 3; grid-row: 2; }
.svg-about-cards .svg-center-content { grid-column: 2; grid-row: 1; }

/* Responsive Styles */
@media (max-width: 1199px) {
    .svg-about-section .section-title {
        font-size: 36px;
    }
    
    .svg-icon-card {
        padding: 25px 20px;
    }
    
    .svg-icon-card .card-title {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .svg-about-section {
        padding: 60px 0;
    }
    
    .svg-about-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .svg-about-cards .svg-center-content {
        grid-column: 1 / -1;
        grid-row: 1;
        order: -1;
        margin-bottom: 20px;
    }
    
    .svg-about-cards .svg-card-1 { grid-column: 1; grid-row: 2; }
    .svg-about-cards .svg-card-2 { grid-column: 2; grid-row: 2; }
    .svg-about-cards .svg-card-3 { grid-column: 1; grid-row: 3; }
    .svg-about-cards .svg-card-4 { grid-column: 2; grid-row: 3; }
    .svg-about-cards .svg-card-5 { 
        grid-column: 1 / -1; 
        grid-row: 4;
        min-height: 280px;
    }
    
    .svg-about-section .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .svg-about-section {
        padding: 50px 0;
    }
    
    .svg-about-cards {
        grid-template-columns: 1fr;
    }
    
    .svg-about-cards .svg-center-content {
        grid-column: 1;
        padding: 20px 0;
    }
    
    .svg-about-cards .svg-card-1,
    .svg-about-cards .svg-card-2,
    .svg-about-cards .svg-card-3,
    .svg-about-cards .svg-card-4 {
        grid-column: 1;
    }
    
    .svg-about-cards .svg-card-1 { grid-row: 2; }
    .svg-about-cards .svg-card-2 { grid-row: 3; }
    .svg-about-cards .svg-card-3 { grid-row: 4; }
    .svg-about-cards .svg-card-4 { grid-row: 5; }
    .svg-about-cards .svg-card-5 { 
        grid-column: 1;
        grid-row: 6;
        min-height: 250px;
    }
    
    .svg-about-section .section-title {
        font-size: 28px;
    }
    
    .svg-icon-card {
        padding: 25px;
    }
    
    .svg-icon-card .card-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575px) {
    .svg-about-section .section-title {
        font-size: 24px;
    }
    
    .svg-about-section .section-btn {
        padding: 12px 22px;
        font-size: 14px;
    }
    
    .svg-about-section .section-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* RTL Support */
[dir="rtl"] .svg-about-section .section-btn .btn-icon {
    transform: rotate(180deg);
}

[dir="rtl"] .svg-about-section .section-btn:hover .btn-icon {
    transform: rotate(180deg) translateX(-3px);
}

[dir="rtl"] .svg-bg-card .card-icon-overlay {
    left: auto;
    right: 25px;
}

