/* =============================================
   AIIM - Association of Indian Independent Music
   Government Portal / Old Membership Portal Style
   Theme: Black + Red
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #1a1a1a;
    --primary-red: #c8102e;
    --dark-red: #a50d22;
    --light-red: #e8354a;
    --bg-cream: #f5f1eb;
    --bg-white: #ffffff;
    --bg-light-gray: #f0ede8;
    --bg-gray: #e8e4dd;
    --border-color: #c9c3b8;
    --border-dark: #999;
    --text-dark: #222;
    --text-medium: #444;
    --text-light: #666;
    --text-muted: #888;
    --link-color: #0b4f9a;
    --link-hover: #c8102e;
    --shadow: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.15);
    --font-main: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-hindi: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Top Red Strip --- */
.top-strip {
    background: var(--primary-red);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 0;
    border-bottom: 2px solid var(--dark-red);
}

.top-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.top-strip-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-strip-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-strip a {
    color: #fff;
    text-decoration: none;
    padding: 1px 4px;
    border-radius: 2px;
    transition: background 0.2s;
}

.top-strip a:hover,
.top-strip a.active-lang {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.top-strip .separator {
    opacity: 0.5;
}

.last-updated {
    opacity: 0.85;
    font-size: 0.7rem;
}

/* --- Header --- */
.main-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary-black);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 80px;
    width: auto;
}

.header-center {
    flex: 1;
}

.org-name-en {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-black);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.org-name-hi {
    font-family: var(--font-hindi);
    font-size: 1.1rem;
    color: var(--primary-red);
    margin-top: 1px;
    font-weight: 400;
}

.org-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-style: italic;
}

.org-ministry {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 1px;
}

/* India Icon in Top Strip */
.india-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
    opacity: 0.95;
    vertical-align: middle;
}

.india-icon svg {
    display: block;
}

.header-logo-right {
    height: 60px;
    width: auto;
}


/* --- Navigation --- */
.main-nav {
    background: var(--primary-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: var(--font-main);
    font-weight: 600;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-list > li {
    position: relative;
}

.nav-link {
    display: block;
    color: #e0e0e0;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-right: 1px solid #333;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
}

/* Dropdown */
.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    z-index: 1001;
}

.dropdown li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-dark);
    font-size: 0.8rem;
    border-bottom: 1px solid #eee;
    transition: all 0.15s;
}

.dropdown li a:hover {
    background: var(--bg-light-gray);
    color: var(--primary-red);
    text-decoration: none;
}

/* --- Ticker --- */
.ticker-bar {
    background: #fff8e1;
    border-bottom: 2px solid #e6c619;
    padding: 6px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-label {
    background: var(--primary-red);
    color: #fff;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 2px;
    animation: pulse-label 2s ease-in-out infinite;
}

@keyframes pulse-label {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: flex;
    gap: 60px;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* --- Hero Section --- */
.hero-section {
    padding: 20px 0;
    background: var(--bg-cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

/* Welcome Box */
.welcome-box {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.welcome-header {
    background: linear-gradient(to right, var(--primary-black), #333);
    padding: 10px 16px;
    border-bottom: 3px solid var(--primary-red);
}

.welcome-header h2 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.welcome-body {
    padding: 16px;
}

.welcome-body p {
    font-size: 0.88rem;
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.65;
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.quick-link-card:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.quick-link-card:hover .ql-text {
    color: #fff;
}

.ql-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-black);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid var(--border-color);
}

.ql-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sidebar Boxes */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-box {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.sidebar-header {
    background: linear-gradient(to right, var(--primary-black), #333);
    padding: 8px 14px;
    border-bottom: 3px solid var(--primary-red);
}

.sidebar-header h3 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.sidebar-body {
    padding: 14px;
}

/* Login Form */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.82rem;
    font-family: var(--font-main);
    background: #fcfcfa;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.form-group small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.captcha-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.captcha-display {
    flex: 1;
    background: #2a2a2a;
    color: #7cfc00;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 10px;
    letter-spacing: 6px;
    border: 2px solid #555;
    border-radius: 3px;
    user-select: none;
    text-decoration: line-through;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
}

.captcha-refresh {
    background: var(--primary-black);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.captcha-refresh:hover {
    background: var(--primary-red);
}

.btn-login {
    width: 100%;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.btn-login:hover {
    background: var(--dark-red);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.login-links a {
    font-size: 0.72rem;
    color: var(--link-color);
}

/* Important Links */
.important-links {
    list-style: none;
}

.important-links li {
    border-bottom: 1px dashed var(--border-color);
    padding: 5px 0;
}

.important-links li:last-child {
    border-bottom: none;
}

.important-links a {
    font-size: 0.78rem;
    color: var(--link-color);
    display: block;
    transition: padding-left 0.2s;
}

.important-links a:hover {
    padding-left: 6px;
    color: var(--primary-red);
}

/* --- Section Common --- */
.section {
    padding: 30px 0;
    border-top: 4px solid var(--primary-black);
}

.section:nth-child(even) {
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
}

.header-line {
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 8px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: -8px auto 24px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.about-content p {
    font-size: 0.88rem;
    color: var(--text-medium);
    margin-bottom: 14px;
    line-height: 1.7;
}

.about-content h3 {
    font-size: 1rem;
    color: var(--primary-black);
    margin: 20px 0 10px;
    border-left: 4px solid var(--primary-red);
    padding-left: 10px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.stat-box {
    text-align: center;
    padding: 14px 8px;
    background: var(--primary-black);
    border-radius: 4px;
    border-bottom: 3px solid var(--primary-red);
}

.stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 0.65rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.objectives-list {
    margin-left: 20px;
}

.objectives-list li {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 6px;
    padding-left: 4px;
}

.objectives-list li::marker {
    color: var(--primary-red);
}

/* Gov Notice Box */
.gov-notice-box {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.notice-header {
    background: linear-gradient(to right, var(--primary-black), #333);
    color: #fff;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-red);
}

.notice-body {
    padding: 14px;
    font-size: 0.82rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.notice-body hr {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 10px 0;
}

.notice-body p {
    margin-bottom: 6px;
}

.notice-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-list {
    list-style: none;
}

.download-list li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.download-list li:last-child {
    border-bottom: none;
}

.download-list a {
    font-size: 0.8rem;
    color: var(--link-color);
}

/* --- Membership Section --- */
.membership-section {
    background: var(--bg-light-gray) !important;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.membership-card {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.membership-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.membership-card.featured {
    border: 2px solid var(--primary-red);
    position: relative;
}

.membership-card.featured::before {
    content: '★ POPULAR';
    position: absolute;
    top: -1px;
    right: 16px;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    letter-spacing: 1px;
    z-index: 1;
}

.mem-card-header {
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.mem-card-header.type-a,
.mem-card-header.type-b,
.mem-card-header.type-c,
.mem-card-header.type-d,
.mem-card-header.type-e {
    background: var(--primary-black);
    color: #fff;
    border-bottom: 3px solid var(--primary-red);
}

/* --- Document Matrix Table --- */
.doc-matrix-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    margin-bottom: 30px;
    background: #fff;
    border: 2px solid #000;
}

.doc-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: #000;
}

.doc-matrix-table th,
.doc-matrix-table td {
    padding: 10px 12px;
    border: 1px solid #000;
    text-align: center;
    vertical-align: middle;
}

.doc-matrix-table th {
    background-color: #f0f0f0;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
}

.doc-matrix-table td:nth-child(2) {
    text-align: left;
    font-weight: 500;
}

.doc-matrix-table .blod-text {
    font-weight: bold;
}

.icon-check {
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
}

.icon-cross {
    color: #999;
    font-size: 1.1rem;
}

/* --- Membership Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 4px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.comparison-table th {
    background-color: var(--bg-light-gray);
    font-weight: 700;
    color: var(--primary-black);
    text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: var(--bg-light-gray);
    min-width: 200px;
}

.comparison-table tr:nth-child(even) td:not(:first-child) {
    background-color: #fafafa;
}

.comparison-table td {
    color: #555;
}

.comparison-table td.check {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1rem;
}

.mem-card-header.type-c {
    background: #444;
    color: #fff;
    border-bottom: 3px solid var(--primary-red);
}

.mem-card-body {
    padding: 16px;
}

.mem-card-body h3 {
    font-size: 1rem;
    color: var(--primary-black);
    margin-bottom: 6px;
}

.mem-fee {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 14px;
}

.mem-fee span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.mem-card-body ul {
    list-style: none;
    margin-bottom: 16px;
}

.mem-card-body ul li {
    font-size: 0.78rem;
    color: var(--text-medium);
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.btn-apply {
    display: block;
    text-align: center;
    background: var(--primary-black);
    color: #fff;
    padding: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-apply:hover {
    background: var(--primary-red);
    text-decoration: none;
    color: #fff;
}

/* Membership Docs */
.membership-docs {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.docs-header {
    background: linear-gradient(to right, var(--primary-black), #333);
    color: #fff;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-red);
}

.docs-body {
    padding: 16px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.doc-item {
    padding: 10px;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.doc-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-black);
    margin-bottom: 4px;
}

.doc-item p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* --- Circulars Section --- */
.circulars-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.circulars-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.circulars-table thead {
    background: var(--primary-black);
    color: #fff;
}

.circulars-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #333;
}

.circulars-table th:last-child {
    border-right: none;
}

.circulars-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #eee;
    color: var(--text-medium);
}

.circulars-table tbody tr:nth-child(even) {
    background: var(--bg-light-gray);
}

.circulars-table tbody tr:hover {
    background: #fef0f0;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.badge-policy {
    background: #1a1a1a;
    color: #fff;
}

.badge-notice {
    background: var(--primary-red);
    color: #fff;
}

.badge-advisory {
    background: #e6a800;
    color: #222;
}

.badge-event {
    background: #0b7a3e;
    color: #fff;
}

.download-link {
    font-size: 0.78rem;
    color: var(--link-color);
    font-weight: 600;
    white-space: nowrap;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.btn-view-all {
    background: var(--primary-black);
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.btn-view-all:hover {
    background: var(--primary-red);
}

.table-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Grievance Section --- */
.grievance-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
}

.grievance-form-box {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-box-header {
    background: linear-gradient(to right, var(--primary-black), #333);
    color: #fff;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-red);
}

.form-box-body {
    padding: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.btn-submit {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--dark-red);
}

.btn-reset {
    background: #eee;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 3px;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.btn-reset:hover {
    background: #ddd;
}

/* Grievance Sidebar */
.grievance-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-track {
    width: 100%;
    background: var(--primary-black);
    color: #fff;
    border: none;
    padding: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 3px;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.btn-track:hover {
    background: var(--primary-red);
}

.track-result {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.track-info p {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-medium);
}

.status-badge {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    background: #e6a800;
    color: #222;
}

/* Timeline */
.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tl-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}

.timeline-item strong {
    font-size: 0.8rem;
    color: var(--primary-black);
}

.timeline-item p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Resources Section --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.resource-card {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: transform 0.2s;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.res-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.resource-card h3 {
    font-size: 0.9rem;
    color: var(--primary-black);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-red);
}

.resource-card ul {
    list-style: none;
}

.resource-card ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.resource-card ul li:last-child {
    border-bottom: none;
}

.resource-card ul li a {
    font-size: 0.78rem;
    color: var(--link-color);
}

/* --- RTI Section --- */
.rti-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.rti-content p {
    font-size: 0.88rem;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.65;
}

.rti-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
}

.rti-table th,
.rti-table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    text-align: left;
}

.rti-table th {
    background: var(--primary-black);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.rti-table td {
    color: var(--text-medium);
}

.rti-table tr:nth-child(even) {
    background: var(--bg-light-gray);
}

.rti-downloads {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-block;
    background: var(--primary-black);
    color: #fff;
    padding: 9px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-download:hover {
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
}

.proactive-disclosure {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 18px;
}

.proactive-disclosure h3 {
    font-size: 0.9rem;
    color: var(--primary-black);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-red);
}

.proactive-disclosure ul {
    list-style: none;
}

.proactive-disclosure ul li {
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-color);
}

.proactive-disclosure ul li:last-child {
    border-bottom: none;
}

.proactive-disclosure ul li a {
    font-size: 0.8rem;
    color: var(--link-color);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 18px;
}

.contact-card h3 {
    font-size: 0.9rem;
    color: var(--primary-black);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-red);
}

.contact-info {
    font-size: 0.82rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 6px;
}

.contact-info hr {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 10px 0;
}

.helpline-card {
    background: var(--primary-black);
    border-color: var(--primary-black);
}

.helpline-card h3 {
    color: #fff;
    border-bottom-color: var(--primary-red);
}

.helpline-card .contact-info {
    color: #ccc;
}

.helpline-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 2px;
}

.helpline-sub {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.helpline-card .contact-info p {
    color: #aaa;
}

.helpline-card .contact-info strong {
    color: #ddd;
}

/* --- Footer --- */
.main-footer {
    background: var(--primary-black);
    color: #ccc;
    padding: 30px 0 0;
    border-top: 4px solid var(--primary-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #333;
}

.footer-logo {
    height: 40px;
    margin-bottom: 12px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 4px;
}

.footer-desc {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    font-size: 0.78rem;
    color: #999;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 4px;
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.social-link {
    display: inline-block;
    padding: 6px 12px;
    background: #2a2a2a;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
}

.visitor-counter {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.counter-digits {
    display: flex;
    gap: 2px;
}

.digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 26px;
    background: #0a0a0a;
    color: #7cfc00;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #333;
    border-radius: 2px;
}

.footer-reg-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-top: 0;
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 0.3px;
}

.footer-reg-numbers .separator {
    opacity: 0.4;
}

.footer-bottom {
    padding: 14px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: #777;
    margin-bottom: 2px;
}

.footer-last-updated {
    font-size: 0.68rem !important;
    color: #555 !important;
    margin-top: 4px;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    font-family: var(--font-main);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-black);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .grievance-grid,
    .rti-grid {
        grid-template-columns: 1fr;
    }
    
    .membership-grid,
    .resources-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .top-strip-inner {
        justify-content: center;
        text-align: center;
    }
    
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo {
        height: 55px;
    }
    
    .org-name-en {
        font-size: 1.15rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
    }
    
    .nav-list.open {
        display: flex;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: #f5f5f5;
    }
    
    .has-dropdown:hover .dropdown {
        display: block;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .membership-grid,
    .resources-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .rti-downloads {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-strip-left {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(to right, var(--primary-black), #2a2a2a);
    padding: 20px 0;
    border-bottom: 4px solid var(--primary-red);
}

.page-banner-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #999;
}

.breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--light-red);
}

.breadcrumb span {
    margin: 0 4px;
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: 3px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.82rem;
    font-family: var(--font-main);
    background: #fcfcfa;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    font-family: var(--font-main);
}

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

.page-btn.active-page {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.res-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-black);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 12px;
    border-bottom: 3px solid var(--primary-red);
}

/* --- Disclaimer Page --- */
.disclaimer-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.disclaimer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal-document-box {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.legal-doc-header {
    background: linear-gradient(to right, var(--primary-black), #333);
    color: #fff;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-doc-icon {
    font-size: 1.1rem;
}

.legal-doc-body {
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.75;
}

.legal-doc-body p {
    margin-bottom: 12px;
}

.legal-doc-body h4 {
    font-size: 0.95rem;
    color: var(--primary-black);
    margin: 18px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-red);
}

.legal-list {
    margin: 12px 0 12px 20px;
}

.legal-list > li {
    margin-bottom: 12px;
    padding-left: 4px;
    line-height: 1.7;
}

.legal-list > li::marker {
    color: var(--primary-red);
    font-weight: 700;
}

.legal-list ul {
    margin: 8px 0 8px 20px;
    list-style: disc;
}

.legal-list ul li {
    margin-bottom: 4px;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Logo Showcase in Disclaimer */
.logo-showcase {
    text-align: center;
    padding: 24px;
    margin-bottom: 18px;
    background: var(--bg-light-gray);
    border: 2px dashed var(--border-color);
    border-radius: 4px;
}

.disclaimer-logo-preview {
    max-height: 80px;
    width: auto;
}

.legal-contact-note {
    margin-top: 18px;
    padding: 14px;
    background: #fef7e0;
    border: 1px solid #e6c619;
    border-left: 4px solid #e6a800;
    border-radius: 3px;
    font-size: 0.82rem;
    line-height: 1.7;
}

/* Certificate Styles */
.certificate-banner {
    text-align: center;
    padding: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fafaf5 0%, #f0ede8 100%);
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.cert-issuer {
    font-size: 0.82rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px !important;
}

.cert-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-pursuant {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

.cert-details-grid {
    margin: 18px 0;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.cert-detail-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.84rem;
}

.cert-detail-row:last-child {
    border-bottom: none;
}

.cert-label {
    flex: 1;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    border-right: 1px solid var(--border-color);
}

.cert-value {
    flex: 1;
    padding: 10px 14px;
    color: var(--primary-red);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.cert-given {
    margin-top: 14px;
    font-style: italic;
}

.cert-signatory {
    margin: 18px 0;
    padding: 14px;
    text-align: center;
    background: #fafaf5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.signatory-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 2px !important;
}

.signatory-title {
    font-size: 0.78rem;
    color: var(--text-medium);
    margin-bottom: 2px !important;
}

.signatory-behalf {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2px !important;
}

.signatory-office {
    font-size: 0.78rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0 !important;
}

.cert-disclaimer-box {
    margin: 18px 0;
    padding: 14px;
    background: #fff5f5;
    border: 1px solid #e8354a;
    border-left: 4px solid var(--primary-red);
    border-radius: 3px;
    font-size: 0.82rem;
}

.cert-disclaimer-box p {
    margin-bottom: 0 !important;
}

.cert-address {
    margin: 14px 0;
    padding: 12px 14px;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.82rem;
    line-height: 1.7;
}

.cert-footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
}

/* License Conditions */
.license-conditions {
    margin-top: 18px;
    padding: 18px;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.license-conditions h4 {
    font-size: 0.95rem;
    color: var(--primary-black);
    margin: 0 0 14px 0;
    padding-left: 10px;
    border-left: 4px solid var(--primary-red);
}

.conditions-list > li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.conditions-list > li:last-child {
    border-bottom: none;
}

.condition-note {
    color: var(--text-muted) !important;
    font-size: 0.82rem;
}

.sub-conditions {
    margin: 8px 0 0 20px;
}

.sub-conditions li {
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Key Detail Items in Sidebar */
.key-detail-item {
    padding: 4px 0;
}

.key-detail-item strong {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.key-detail-item p {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Responsive for Disclaimer */
@media (max-width: 1024px) {
    .disclaimer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cert-detail-row {
        flex-direction: column;
    }

    .cert-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .legal-doc-body {
        padding: 14px;
    }
}

/* --- Print Styles --- */
@media print {
    .main-nav,
    .ticker-bar,
    .back-to-top,
    .top-strip,
    .login-box,
    .page-banner {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .section {
        border-top: 2px solid #000;
    }
}

/* --- Mobile Display Adjustments --- */
@media (max-width: 768px) {
    .header-logo-right, #header-logo-right {
        display: none !important;
    }
}
