/* ============================================================
   TRAI REGULATIONS PAGE — STYLES
============================================================ */

/* === SECTION HEADERS === */
.tr-section {
    scroll-margin-top: 100px;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.tr-section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.tr-section-badge {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.4rem);
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: 100px;
    font-size: clamp(0.65rem, 1.5vw, 0.72rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.tr-badge-company {
    background: rgba(22, 16, 106, 0.1);
    color: var(--primary);
}

.tr-badge-statutory {
    background: rgba(188, 6, 16, 0.1);
    color: #bc0610;
}

.tr-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.tr-section-sub {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === FILTER BUTTONS === */
.tr-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tr-filter-btn {
    padding: clamp(0.5rem, 1.5vw, 0.7rem) clamp(1.2rem, 3vw, 1.8rem);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    border-radius: 100px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tr-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.tr-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 18px -4px rgba(22, 16, 106, 0.25);
}

/* === CARDS === */
.tr-card {
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 1.5rem;
}

.tr-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 16, 106, 0.15);
    box-shadow: 0 24px 48px -10px rgba(22, 16, 106, 0.12);
}

.tr-card-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: #f8faff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.tr-card.statutory .tr-card-icon {
    background: #fff5f5;
    color: #bc0610;
}

.tr-card-title {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.tr-card-desc {
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tr-card-meta {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.tr-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tr-card-meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.tr-card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tr-btn-view {
    padding: clamp(0.5rem, 1vw, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
    background: rgba(22, 16, 106, 0.06);
    border: 1.5px solid rgba(22, 16, 106, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tr-btn-view:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tr-download-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.tr-download-icon:hover {
    background: var(--primary);
    color: #fff;
}

/* === PREMIUM MODAL STYLES === */
.tr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tr-modal {
    background: #fcfcfd;
    border-radius: 28px;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: scale(0.92) translateY(40px) perspective(1000px) rotateX(8deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tr-modal-overlay.active .tr-modal {
    transform: scale(1) translateY(0) perspective(1000px) rotateX(0);
    opacity: 1;
}

.tr-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}

.tr-modal-close:hover {
    background: #bc0610;
    color: #fff;
    border-color: #bc0610;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(188, 6, 16, 0.4);
}

.tr-modal-header {
    padding: clamp(1.5rem, 3vw, 1rem) clamp(1.5rem, 3vw, 1.5rem) clamp(1.2rem, 2vw, 1.5rem);
    background: linear-gradient(135deg, var(--primary) 0%, #0a083b 100%);
    position: relative;
    overflow: hidden;
}

.tr-modal-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.tr-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

.tr-modal-badge {
    display: inline-block;
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.8rem, 2vw, 1.2rem);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 100px;
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    line-height: normal;
}

.tr-modal-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    padding-right: 40px;
}

.tr-modal-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    overflow-y: auto;
    flex: 1;
    background: #fcfcfd;
}

.tr-modal-overlay.active .tr-modal-details-grid {
    animation: fadeUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.tr-modal-overlay.active .tr-modal-desc {
    animation: fadeUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
}

.tr-modal-overlay.active .tr-modal-section {
    animation: fadeUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.4s;
}

.tr-modal-details-grid,
.tr-modal-desc,
.tr-modal-section {
    opacity: 0;
    transform: translateY(20px);
}

.tr-modal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
}

.tr-detail-item {
    background: #fff;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 18px;
    border: 1px solid rgba(22, 16, 106, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tr-detail-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary);
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tr-detail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(22, 16, 106, 0.08);
    border-color: rgba(22, 16, 106, 0.15);
}

.tr-detail-item:hover::after {
    width: 100%;
}

.tr-detail-label {
    display: block;
    font-size: clamp(0.65rem, 1.5vw, 0.72rem);
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.tr-detail-value {
    display: block;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 900;
    color: var(--dark);
}

.tr-modal-desc {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.tr-modal-section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tr-modal-section-title i {
    color: var(--primary);
    font-size: 1.2em;
    background: rgba(22, 16, 106, 0.08);
    padding: 0.4rem;
    border-radius: 10px;
}

.tr-modal-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tr-modal-points li {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    color: #334155;
    line-height: 1.7;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tr-modal-points li:hover {
    transform: translateX(5px);
    color: var(--dark);
}

.tr-modal-points li::before {
    content: '\eb7b';
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: #16a34a;
    font-size: 1.2rem;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr-modal-footer {
    padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.5rem, 4vw, 2.5rem);
    border-top: 1px solid rgba(22, 16, 106, 0.06);
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
}

.tr-modal-btn-close {
    padding: clamp(0.7rem, 1.5vw, 0.8rem) clamp(1.2rem, 3vw, 2rem);
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 14px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tr-modal-btn-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
}

.tr-modal-btn-download {
    padding: clamp(0.7rem, 1.5vw, 0.8rem) clamp(1.2rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.3);
}

.tr-modal-btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(22, 16, 106, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .tr-modal-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tr-modal-header,
    .tr-modal-body,
    .tr-modal-footer {
        padding: 1.5rem;
    }
}