/* Industry Practices Section - Row Style */
.industry-practices-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #faf5f1;
}

/* Section Title */
.industry-practices-title {
    font-size: 44px;
    color: #4293fb;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Description Styles */
.industry-practices-description {
    margin-bottom: 40px;
    text-align: center;
}

.industry-practices-description p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* List Container */
.industry-practices-list {
    width: 100%;
}

/* Grid Container */
.industry-practices-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Grid layout variations */
.industry-practices-grid.items-2 {
    grid-template-columns: repeat(2, 1fr);
}

.industry-practices-grid.items-3 {
    grid-template-columns: repeat(3, 1fr);
}

.industry-practices-grid.items-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Practice Item */
.industry-practice-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
}

.industry-practice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Featured item styling */
.industry-practice-item.featured {
    grid-column: span 2;
    height: 400px;
}

.industry-practice-item.featured .practice-content {
    padding: 40px;
}

.industry-practice-item.featured .practice-title {
    font-size: 28px;
}

.industry-practice-item.featured .practice-description {
    font-size: 16px;
}

/* Background Image */
.practice-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.industry-practice-item:hover .practice-background {
    opacity: 0.2;
}

/* Overlay */
.practice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(44, 90, 160, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    transition: background 0.3s ease;
}

.industry-practice-item:hover .practice-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(44, 90, 160, 0.9) 100%);
}

/* Content */
.practice-content {
    padding: 30px;
    color: white;
    width: 100%;
    position: relative;
    z-index: 2;
}

.practice-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.practice-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Read More Button */
.practice-read-more {
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.practice-read-more:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Practice Item Row */
.industry-practice-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    border-bottom: 2px solid #003365;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

/* First/Active Item */
.industry-practice-row:hover{
    background-color: #00275b;
}

/* Row Title */
.practice-row-title {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    color: #00275b;
    margin: 0;
    transition: color 0.2s ease;
    text-decoration: none;
}

/* Active Row Title */
.industry-practice-row:hover .practice-row-title {
    color: white;
}

/* Read More Button */
.practice-read-more {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    color: white;
    background-color: transparent;
    padding: 5px 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show Read More on Active Row */
.industry-practice-row:hover .practice-read-more {
    opacity: 1;
}

/* Read More Text */
.read-more-text {
    margin-right: 5px;
}

/* Arrow Icon */
.read-more-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.293 4.707L14.586 12 7.293 19.293 8.707 20.707 17.414 12 8.707 3.293 7.293 4.707z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

/* Loading animation */
.industry-practices-loading {
    text-align: center;
    padding: 40px;
}

.industry-practices-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #1e3a5f;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .industry-practices-grid.items-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .industry-practices-grid.items-3,
    .industry-practices-grid.items-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-practice-item.featured {
        grid-column: span 1;
        height: 300px;
    }
    
    .industry-practice-item.featured .practice-content {
        padding: 30px;
    }
    
    .industry-practice-item.featured .practice-title {
        font-size: 22px;
    }
    
    .industry-practice-item.featured .practice-description {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .industry-practices-section {
        padding: 30px 15px;
    }
    
    .industry-practices-title {
        font-size: 32px;
    }
    
    .industry-practices-description p {
        font-size: 16px;
    }
    
    .industry-practices-grid,
    .industry-practices-grid.items-2,
    .industry-practices-grid.items-3,
    .industry-practices-grid.items-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .industry-practice-item {
        height: 250px;
    }
    
    .practice-content {
        padding: 20px;
    }
    
    .practice-title {
        font-size: 18px;
    }
    
    .practice-description {
        font-size: 13px;
    }
    
    .industry-practice-row {
        padding: 15px 0;
    }
    
    .industry-practice-row.active {
        padding: 15px 15px;
        margin: 0 -15px;
    }
    
    .practice-row-title {
        font-size: 14px;
    }
    
    .practice-read-more {
        font-size: 12px;
    }
}

@media screen and (max-width: 576px) {
    .industry-practices-description p {
        font-size: 15px;
    }
    
    .practice-read-more {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* No results message */
.industry-practices-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.industry-practices-no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.industry-practices-no-results p {
    font-size: 16px;
    margin: 0;
}