/* Insights Page Styles */
.regulation-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.regulation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.regulation-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.regulation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.regulation-card:hover .regulation-image img {
    transform: scale(1.05);
}

.regulation-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.regulation-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.regulation-table {
    flex-grow: 1;
}

.table-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.table-label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-value {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .regulation-card {
        margin-bottom: 30px;
    }

    .regulation-image {
        height: 150px;
    }

    .regulation-content {
        padding: 20px;
    }

    .regulation-title {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .table-row {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .table-label {
        font-size: 0.8rem;
    }

    .table-value {
        font-size: 0.9rem;
    }
}

/* Section Title Enhancement */
.section-title {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Hover Effects for Cards */
.regulation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    /* Ensure overlay doesn't block button clicks */
}

.regulation-card:hover::before {
    opacity: 1;
}

.regulation-content {
    position: relative;
    z-index: 2;
}

.regulation-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
    font-style: italic;
}

/* Section Title Styling */
.section-title {
    text-align: center !important;
}

/* Navigation Tabs Styling */
.insights-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
}

.nav-btn i {
    font-size: 1.1rem;
}

/* Sector Content Styling */
.sector-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.sector-content.active {
    display: block;
}

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

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

/* Responsive Navigation */
@media (max-width: 768px) {
    .insights-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 150px;
    }
}

/* Carousel Styling */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    margin: 0 1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    transform: translateX(0%);
}

.carousel-slide {
    flex: 0 0 33.333%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    min-width: 0;
    width: 33.333%;
}

.carousel-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.4);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn i {
    font-size: 1.2rem;
}

.prev-btn {
    margin-right: 1rem;
}

.next-btn {
    margin-left: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--primary-color);
    opacity: 0.7;
}

/* Responsive Carousel */
@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        margin: 1rem 0;
    }

    .carousel-wrapper {
        margin: 0 0.5rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .prev-btn {
        margin-right: 0.5rem;
    }

    .next-btn {
        margin-left: 0.5rem;
    }
}