/* ========================================
   Madarsa Anjuman Islamia Madhubani Ghat
   Government Style CSS
   ======================================== */

:root {
    --primary: #003580;
    --primary-dark: #002060;
    --primary-light: #1a5276;
    --secondary: #b7860b;
    --accent: #c0392b;
    --success: #117a65;
    --bg-light: #f0f0f0;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --gold: #d4a017;
    --green-gov: #1b5e20;
}

/* ---- Base ---- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
}

.urdu-text {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.2;
}

/* ---- Top Notice Bar ---- */
.top-notice-bar {
    background: linear-gradient(135deg, #002060, #003580);
    color: #e8e8e8;
    font-size: 0.78rem;
    padding: 4px 0;
    border-bottom: 2px solid var(--gold);
}

.top-notice-bar .fs-sm {
    font-size: 0.78rem;
}

/* ---- Main Header ---- */
.main-header {
    background: linear-gradient(135deg, #002060 0%, #003580 40%, #1a5276 100%);
    color: white;
    border-bottom: 4px solid var(--gold);
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.header-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border: 3px solid var(--gold);
    border-radius: 50%;
    padding: 3px;
    background: white;
}

.header-urdu-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 2px;
    direction: rtl;
    font-weight: 700;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.header-subtitle {
    font-size: 0.9rem;
    color: #b8d4f8;
    margin-top: 2px;
}

.header-estd {
    font-size: 0.75rem;
    color: var(--gold);
    margin-top: 3px;
    font-style: italic;
}

.emblem-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Marquee Bar ---- */
.marquee-bar {
    background: linear-gradient(135deg, #c0392b, #922b21);
    color: white;
    height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #7b241c;
    overflow: hidden;
}

.ticker-label {
    background: rgba(0, 0, 0, 0.25);
    padding: 0 15px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    font-size: 0.82rem;
    overflow: hidden;
}

/* ---- Navigation ---- */
.main-nav {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-bottom: 3px solid var(--gold);
    padding: 0;
}

.main-nav .nav-link {
    color: #e8f5e9 !important;
    padding: 12px 16px !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.3px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--gold);
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
    background: #e8eaf6;
    border-bottom: 1px solid #c5cae9;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 32, 96, 0.5), rgba(0, 53, 128, 0.7));
}

.hero-overlay h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
}

.hero-overlay .urdu-text {
    font-size: 1.6rem;
    color: var(--gold);
}

/* ---- Section Heading ---- */
.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading h2 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.section-heading p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---- Content Sections ---- */
.content-section {
    padding: 40px 0;
}

.content-section:nth-child(even) {
    background: #ffffff;
}

/* ---- Cards ---- */
.gov-card {
    border: 1px solid #c5cae9;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 53, 128, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.gov-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 53, 128, 0.15);
}

.gov-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 3px solid var(--gold);
}

.gov-card-body {
    padding: 20px;
}

/* ---- Management Team Cards ---- */
.team-card {
    text-align: center;
    border: 2px solid #e3e8ff;
    border-top: 4px solid var(--primary);
    border-radius: 4px;
    padding: 25px 15px;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 53, 128, 0.2);
    border-color: var(--gold);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    margin-bottom: 15px;
    background: #f0f0f0;
}

.team-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-designation {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #f0f4ff;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* ---- Forms ---- */
.gov-form-section {
    background: white;
    border: 1px solid #c5cae9;
    border-top: 4px solid var(--primary);
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 53, 128, 0.08);
}

.gov-form-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e7ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.form-control,
.form-select {
    border: 1px solid #bdc3c7;
    border-radius: 3px;
    font-size: 0.9rem;
    padding: 8px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 53, 128, 0.15);
    outline: none;
}

.required-star {
    color: #c0392b;
    margin-left: 2px;
}

/* ---- Buttons ---- */
.btn-gov-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 10px 28px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    font-size: 0.92rem;
}

.btn-gov-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

.btn-gov-success {
    background: linear-gradient(135deg, var(--success), #0e6655);
    color: white;
    border: none;
    padding: 10px 28px;
    font-weight: 700;
    border-radius: 3px;
    transition: all 0.2s;
}

.btn-gov-success:hover {
    background: linear-gradient(135deg, #0e6655, #0a5144);
    color: white;
}

.btn-gov-danger {
    background: linear-gradient(135deg, var(--accent), #922b21);
    color: white;
    border: none;
    padding: 6px 14px;
    font-weight: 600;
    border-radius: 3px;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.btn-gov-danger:hover {
    background: linear-gradient(135deg, #922b21, #7b241c);
    color: white;
}

/* ---- Tables ---- */
.gov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: white;
}

.gov-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.gov-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.gov-table tbody tr:hover {
    background: #e8f0fe;
}

.gov-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* ---- Status Badges ---- */
.status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-verified {
    background: #d4edda;
    color: #155724;
}

.status-not-verified {
    background: #fff3cd;
    color: #856404;
}

/* ---- Admit Card Download Form ---- */
.admit-card-form {
    background: linear-gradient(135deg, #002060, #003580);
    color: white;
    padding: 30px;
    border-radius: 4px;
    border: 2px solid var(--gold);
}

.admit-card-form .form-label {
    color: #b8d4f8;
}

.admit-card-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.admit-card-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.admit-card-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.25);
}

/* ---- Dashboard ---- */
.dashboard-stat-card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 53, 128, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    color: var(--primary);
}

/* ---- Admin Sidebar Layout ---- */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 200px);
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, #002060, #003580);
    color: white;
    flex-shrink: 0;
}

.admin-sidebar-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-bottom: 2px solid var(--gold);
    text-align: center;
}

.admin-sidebar .nav-link {
    color: #b8d4f8;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-left: 4px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--gold);
}

.admin-sidebar .nav-link i {
    font-size: 1.1rem;
}

.admin-content {
    flex: 1;
    padding: 25px;
    background: var(--bg-light);
    overflow: auto;
}

.admin-page-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gold);
    margin-bottom: 25px;
}

/* ---- Photo Preview ---- */
.photo-preview {
    width: 120px;
    height: 150px;
    border: 2px dashed #bdc3c7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Login Cards ---- */
.login-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4ff, #e8ecf8);
    padding: 40px 0;
}

.login-card {
    max-width: 430px;
    margin: 0 auto;
    border: 1px solid #c5cae9;
    border-top: 5px solid var(--primary);
    border-radius: 4px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 53, 128, 0.12);
    padding: 35px;
}

.login-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-card-header .login-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-card-header h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
}

/* ---- Student Dashboard ---- */
.student-profile-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    border: 2px solid var(--gold);
}

.student-profile-photo {
    width: 110px;
    height: 130px;
    object-fit: cover;
    border: 4px solid var(--gold);
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ---- Namaz Status ---- */
.namaz-verified {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 5px solid #28a745;
    font-weight: 700;
    font-size: 1.05rem;
}

.namaz-not-verified {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 5px solid #ffc107;
    font-weight: 700;
    font-size: 1.05rem;
}

/* ---- Surah List ---- */
.surah-badge {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 3px;
    display: inline-block;
}

/* ---- Footer ---- */
.main-footer {
    background: linear-gradient(135deg, #002060, #003580);
    color: #b8d4f8;
    margin-top: 0;
}

.footer-heading {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Noto Nastaliq Urdu', serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b8d4f8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-text {
    font-size: 0.88rem;
    line-height: 1.8;
}

/* ---- Carousel Override ---- */
.carousel-item img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 32, 96, 0.65);
    border-radius: 4px;
    padding: 10px 20px;
    bottom: 30px;
}

/* ---- Alerts ---- */
.alert {
    border-radius: 0;
    font-weight: 600;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--primary);
    border-color: #c5cae9;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}


/* ==================================================
   HEADER — New Responsive Layout
   ================================================== */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.header-logo-box {
    flex-shrink: 0;
}

.logo-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
}

.logo-text-fallback div:first-child {
    font-size: 1.8rem;
}

.header-title-box {
    min-width: 0;
}

.header-flag-box {
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    font-size: 2.5rem;
    line-height: 1;
}

.flag-label {
    font-size: 0.62rem;
    color: #fff;
    font-weight: 700;
    margin-top: 3px;
}

/* ==================================================
   HERO — New
   ================================================== */
.hero-section {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.hero-section>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 380px;
    color: white;
}

.hero-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 8px;
    direction: rtl;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin: 0 0 8px;
}

.hero-sub {
    font-size: 0.9rem;
    color: #b8d4f8;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 80px;
}

.hero-stat span {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-stat small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ==================================================
   FEATURE BOXES
   ================================================== */
.feature-box {
    background: white;
    border: 1px solid #e0e7ff;
    border-top: 3px solid var(--primary);
    border-radius: 6px;
    padding: 20px 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 53, 128, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.feature-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.feature-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Noto Nastaliq Urdu', serif;
}

/* ==================================================
   TEAM CARDS — New
   ================================================== */
.team-card {
    text-align: center;
    border: 1px solid #e3e8ff;
    border-top: 4px solid var(--primary);
    border-radius: 6px;
    padding: 20px 12px;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 53, 128, 0.18);
}

.team-photo-placeholder {
    font-size: 3rem;
    margin-bottom: 10px;
    background: #e8f0fe;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 3px solid var(--gold);
}

.team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-designation {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #f0f4ff;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* ==================================================
   CAROUSEL
   ================================================== */
.carousel-img {
    height: 320px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 32, 96, 0.65);
    border-radius: 4px;
    padding: 6px 16px;
    bottom: 20px;
}

@media (max-width: 576px) {
    .carousel-img {
        height: 200px;
    }
}

/* ==================================================
   COMPLAINT SECTION
   ================================================== */
.complaint-section {
    background: linear-gradient(135deg, #f8f9ff, #eef1ff);
}

.complaint-card {
    border: 1px solid #c5cae9;
    border-top: 4px solid var(--primary);
    border-radius: 6px;
    background: white;
    box-shadow: 0 3px 12px rgba(0, 53, 128, 0.1);
    overflow: hidden;
}

.complaint-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 3px solid var(--gold);
}

.complaint-card-body {
    padding: 20px;
}

.complaint-info-box {
    background: white;
    border: 1px solid #c5cae9;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: 18px;
    height: 100%;
}

.complaint-info-box h6 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.complaint-info-box ul {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.87rem;
}

.complaint-info-box ul li {
    margin-bottom: 6px;
}

.complaint-contact-box {
    margin-top: 14px;
    background: #f0f4ff;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.88rem;
}


/* ==================================================
   RESPONSIVE — Mobile First Improvements
   ================================================== */
@media (max-width: 991px) {
    .header-inner {
        gap: 8px;
        padding: 10px 0;
    }

    .logo-circle {
        width: 68px;
        height: 68px;
    }

    .header-title {
        font-size: 1.05rem;
    }

    .header-urdu-title {
        font-size: 1.15rem;
    }

    .header-subtitle {
        font-size: 0.78rem;
    }

    .header-estd {
        font-size: 0.68rem;
    }
}

@media (max-width: 576px) {
    .header-inner {
        flex-direction: column;
        gap: 6px;
        padding: 10px 0;
    }

    .logo-circle {
        width: 65px;
        height: 65px;
    }

    .header-title {
        font-size: 0.98rem;
    }

    .header-urdu-title {
        font-size: 1.05rem;
    }

    .header-estd {
        display: none;
    }

    .hero-section {
        min-height: 300px;
    }

    .hero-overlay {
        min-height: 300px;
        padding: 24px 14px;
    }

    .hero-urdu {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-sub {
        font-size: 0.82rem;
    }

    .hero-stat span {
        font-size: 1.3rem;
    }

    .hero-stat {
        padding: 8px 10px;
        min-width: 65px;
    }

    .main-nav .nav-link {
        padding: 9px 14px !important;
        font-size: 0.85rem;
    }

    .section-heading h2 {
        font-size: 1.25rem;
    }

    .team-photo-placeholder {
        width: 65px;
        height: 65px;
        font-size: 2.2rem;
    }

    .team-name {
        font-size: 0.85rem;
    }

    .gov-table {
        font-size: 0.8rem;
    }

    .gov-table thead th {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .gov-table tbody td {
        padding: 8px 10px;
    }

    .admin-page-title {
        font-size: 1.1rem;
    }

    .gov-form-section {
        padding: 15px;
    }

    .login-card {
        padding: 22px 16px;
    }

    .dashboard-stat-card {
        padding: 14px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ---- Scrollable tables on mobile ---- */
.table-responsive-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================================================
   PRINT
   ================================================== */
@media print {

    .main-nav,
    .marquee-bar,
    .top-notice-bar,
    footer,
    .no-print,
    .admin-topbar,
    .admin-sidebar {
        display: none !important;
    }

    body {
        background: white;
        font-size: 12pt;
    }
}

/* misc utility */
.fs-xs {
    font-size: 0.78rem;
}

/* ==================================================
   NEW HEADER — Mobile Responsive Layout
   ================================================== */
.header-inner-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.hdr-logo {
    flex-shrink: 0;
}

.hdr-title {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.hdr-urdu-img {
    width: 320px;
    height: 52px;
    margin: 0 auto 2px;
    background-image: url("https://i.ibb.co/KzfsvgKP/mararsaurduname.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hdr-eng-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.hdr-sub {
    font-size: 0.82rem;
    color: #b8d4f8;
    margin-top: 2px;
}

.hdr-estd {
    font-size: 0.7rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 1px;
}

.hdr-flag {
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
}

/* TABLET 768px */
@media (max-width: 991px) {
    .hdr-urdu-img {
        width: 260px;
        height: 44px;
    }

    .hdr-eng-title {
        font-size: 1rem;
    }

    .logo-circle {
        width: 68px;
        height: 68px;
    }
}

/* MOBILE 576px */
@media (max-width: 576px) {
    .main-header {
        padding: 0;
    }

    .header-inner-mobile {
        flex-direction: row;
        gap: 8px;
        padding: 8px 4px;
    }

    .logo-circle {
        width: 58px;
        height: 58px;
    }

    .hdr-urdu-img {
        width: 190px;
        height: 34px;
    }

    .hdr-eng-title {
        font-size: 0.82rem;
        letter-spacing: 0;
    }

    /* HERO Mobile */
    .hero-section {
        min-height: auto;
    }

    .hero-overlay {
        padding: 20px 12px 28px !important;
    }

    .hero-title {
        font-size: 1.1rem !important;
    }

    .hero-sub {
        font-size: 0.78rem !important;
    }

    .hero-urduislam {
        width: 220px !important;
        height: 38px !important;
    }

    .hero-badges {
        gap: 5px;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 3px 10px;
    }

    .btn-hero-primary {
        font-size: 0.85rem;
        padding: 9px 18px;
    }

    .btn-hero-outline {
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    /* Features strip */
    .feat-strip .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .feat-item {
        padding: 12px 8px;
        font-size: 0.78rem;
        gap: 6px;
    }

    .feat-ico {
        font-size: 1.2rem;
    }

    .feat-ur {
        font-size: 0.68rem;
    }

    /* Stats bar */
    .stats-inner {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .stat-item .snum {
        font-size: 1.4rem;
    }

    .stat-item .slbl {
        font-size: 0.7rem;
    }

    /* Quick links */
    .ql-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ql-card {
        padding: 14px 8px;
    }

    .ql-icon {
        font-size: 1.6rem;
    }

    .ql-label {
        font-size: 0.75rem;
    }

    /* Admit card */
    .ac-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .ac-left,
    .ac-right {
        width: 100%;
        max-width: 100%;
    }

    .ac-form-body {
        padding: 14px;
    }

    .ac-info-card {
        padding: 18px;
    }

    /* Notice board */
    .notice-list li {
        padding: 10px 12px;
        font-size: 0.82rem;
        gap: 7px;
    }

    .notice-board-header {
        font-size: 0.88rem;
        padding: 10px 14px;
    }

    /* Gallery */
    .carousel-main-img {
        height: 180px !important;
    }

    .carousel-caption {
        display: none !important;
    }

    /* Management */
    .mgmt-card {
        padding: 20px 10px;
    }

    .mgmt-photo {
        width: 90px;
        height: 90px;
    }

    .mgmt-name {
        font-size: 0.92rem;
    }

    /* About strip */
    .about-strip {
        padding: 32px 0;
    }

    .about-ayah {
        font-size: 1.1rem;
    }

    .about-stat-box strong {
        font-size: 1.3rem;
    }

    .about-quote-box {
        padding: 18px;
    }

    /* Complaint */
    .complaint-section {
        padding: 32px 0;
    }

    .complaint-card-body {
        padding: 14px;
    }

    .complaint-info-box {
        padding: 14px;
    }

    /* Section headings */
    .sec-head h2 {
        font-size: 1.15rem;
    }

    .sec-head p {
        font-size: 0.82rem;
    }

    .section-heading h2 {
        font-size: 1.15rem;
    }

    /* Admin */
    .admin-page-title {
        font-size: 1.1rem;
    }

    .gov-form-section {
        padding: 14px;
    }

    .login-card {
        padding: 20px 14px;
    }

    .dashboard-stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .gov-table {
        font-size: 0.78rem;
    }

    .gov-table thead th {
        padding: 7px 8px;
        font-size: 0.72rem;
    }

    .gov-table tbody td {
        padding: 7px 8px;
    }
}

/* SMALL MOBILE 400px */
@media (max-width: 400px) {
    .hdr-urdu-img {
        width: 160px;
        height: 30px;
    }

    .hdr-eng-title {
        font-size: 0.75rem;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
    }

    .hero-title {
        font-size: 1rem !important;
    }

    .ql-card {
        padding: 10px 6px;
    }

    .ql-icon {
        font-size: 1.4rem;
    }
}

/* NAV — Mobile Improvements */
@media (max-width: 991px) {
    .main-nav .navbar-collapse {
        background: #1b5e20;
        border-top: 2px solid var(--gold);
        padding: 4px 0;
    }

    .main-nav .nav-link {
        padding: 10px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-bottom-width: 3px !important;
        border-bottom-color: transparent !important;
    }

    .result-check-btn {
        margin: 6px 12px !important;
        text-align: center;
    }
}