/* assets/css/style.css - Exact matching styling for Institute Examination Portal */

:root {
    --maroon-top: #880000;
    --header-bg: #f8fafc;
    --sidebar-bg: #fff9d4;
    --sidebar-border: #e2dbab;
    --main-teal: #3aa899;
    --teal-dark: #23786c;
    --text-blue: #002b80;
    --link-blue: #003399;
    --table-header: #f1f5f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, "Times New Roman", sans-serif;
    color: #222;
    background-color: #e9ecef;
    min-height: 100vh;
}

.portal-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #ced4da;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Government / Academic Utility Bar */
.top-red-bar {
    background: linear-gradient(135deg, #7a0008 0%, #9e0c18 100%);
    border-bottom: 2px solid #e0a944;
    color: #fff;
    padding: 6px 20px;
    font-size: 12px;
    font-family: 'Inter', Arial, sans-serif;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-date-divider {
    color: #f1c40f;
    opacity: 0.6;
}

.top-date {
    color: #fce7f3;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f8fafc;
    font-size: 11.5px;
}

.top-admin-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    transition: all 0.2s;
}

.top-admin-badge:hover {
    background: #fff;
    color: #880000;
}

/* Header */
.portal-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    gap: 20px;
}

.portal-logo {
    flex-shrink: 0;
}

.portal-logo img {
    height: 90px;
    width: auto;
    max-width: 105px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 3px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.portal-logo img:hover {
    transform: scale(1.02);
}

.portal-header-titles {
    flex-grow: 1;
    text-align: center;
}

.portal-title-en {
    font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.portal-tagline {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    margin-top: 4px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.portal-title-regional {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #7a0008;
    margin-top: 4px;
}

.portal-header-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 8px;
}

.badge-seal {
    font-size: 26px;
    line-height: 1;
}

.badge-text strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #0f172a;
}

.badge-text span {
    display: block;
    font-size: 10.5px;
    color: #16a34a;
    font-weight: 600;
}

/* Notice Ticker Bar */
.notice-marquee-bar {
    display: flex;
    align-items: center;
    background-color: #fffbeb;
    border-top: 1px solid #fef3c7;
    border-bottom: 2px solid #fde68a;
    padding: 6px 16px;
    gap: 14px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
}

.marquee-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #7a0008;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #facc15;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-anim 28s linear infinite;
    color: #92400e;
    font-weight: 600;
}

.marquee-wrapper:hover .marquee-text {
    animation-play-state: paused;
}

.btn-complete-notice {
    flex-shrink: 0;
    border: 1px solid #d97706;
    background: #fff;
    color: #b45309;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-complete-notice:hover {
    background: #b45309;
    color: #fff;
}

/* Left Sidebar */
.portal-sidebar {
    width: 250px;
    background-color: #fdfbf7;
    border-right: 1px solid #e7e5d8;
    padding: 14px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.search-box-container {
    margin-bottom: 14px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.quick-search-input {
    width: 100%;
    padding: 9px 34px 9px 10px;
    font-size: 12.5px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.quick-search-input:focus {
    border-color: #7a0008;
    box-shadow: 0 0 0 3px rgba(122, 0, 8, 0.1);
}

.quick-search-btn {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    color: #6b7280;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu-item {
    border-bottom: none;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #7a0008;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Inter', Arial, sans-serif;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.18s;
}

.sidebar-menu-link .num {
    margin-right: 6px;
    color: #991b1b;
    font-weight: 800;
}

.sidebar-menu-link .link-label {
    flex-grow: 1;
}

.sidebar-menu-link .link-badge {
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s;
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
    background-color: #fff0f0;
    color: #880000;
    border-color: #fecaca;
    transform: translateX(2px);
}

.sidebar-menu-link:hover .link-badge {
    transform: translateX(3px);
    color: #880000;
}

.sidebar-support-card {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 11.5px;
}

.support-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.support-text {
    color: #64748b;
    line-height: 1.45;
}

.sidebar-admin-link {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 6px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sidebar-admin-link:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #38bdf8;
    transform: translateY(-1px);
}

/* Center Content Area */
.portal-content {
    flex-grow: 1;
    background: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
    background-size: 20px 20px;
    padding: 24px 28px;
    color: #1e293b;
    position: relative;
    overflow-y: auto;
}

/* Result Search Hero Card */
.result-hero-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    padding: 22px 24px;
    margin-bottom: 24px;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-title {
    font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #7a0008;
}

.hero-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.hero-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.3fr auto;
    gap: 14px;
    align-items: flex-end;
}

.hero-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.req-star {
    color: #dc2626;
}

.hero-select, .hero-input {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
}

.hero-select:focus, .hero-input:focus {
    border-color: #7a0008;
    box-shadow: 0 0 0 3px rgba(122, 0, 8, 0.1);
}

.hero-submit-btn {
    background: linear-gradient(135deg, #7a0008, #9e0c18);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(122, 0, 8, 0.25);
    white-space: nowrap;
}

.hero-submit-btn:hover {
    background: linear-gradient(135deg, #600006, #7a0008);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(122, 0, 8, 0.35);
}

/* 3 Quick Features Grid */
.portal-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.feature-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.feature-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.feature-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.feature-body p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 8px;
}

.feature-link {
    font-size: 12px;
    font-weight: 700;
    color: #7a0008;
    text-decoration: none;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Abbreviations Section */
.abbreviations-section-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}

.abbr-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.abbr-section-title {
    font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.abbr-section-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.abbr-filter-box {
    padding: 7px 12px;
    font-size: 12.5px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    width: 220px;
}

.abbr-filter-box:focus {
    border-color: #7a0008;
}

.abbreviation-table-container {
    width: 100%;
    overflow-x: auto;
}

.abbr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Inter', Arial, sans-serif;
}

.abbr-table th {
    background: #f1f5f9;
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.abbr-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
    line-height: 1.5;
}

.abbr-table tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge-code {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.3px;
}

.badge-pass {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-reappear {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-danger {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.badge-neutral {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Enhanced Footer */
.portal-site-footer {
    background: #0f172a;
    color: #94a3b8;
    font-family: 'Inter', Arial, sans-serif;
    border-top: 3px solid #e0a944;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 30px;
    padding: 30px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-heading {
    font-family: 'Cinzel', serif;
    color: #f8fafc;
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.footer-subtext {
    font-size: 12.5px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-address {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.footer-links-list a:hover {
    color: #facc15;
}

.footer-security-note {
    font-size: 11.5px;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 12px;
}

.footer-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-pill {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
}

.footer-bottom-bar {
    border-top: 1px solid #1e293b;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom-bar strong {
    color: #cbd5e1;
}

/* Result Search Form Box */
.search-card-box {
    max-width: 750px;
    margin: 0 auto 24px auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 22px 25px;
    border: 1px solid #bedbd5;
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-field-label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.form-select, .form-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13.5px;
    border: 1px solid #9aa0a6;
    border-radius: 3px;
    background: #fff;
    color: #222;
    outline: none;
}

.form-select:focus, .form-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0,86,179,0.2);
}

.btn-search-submit {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.btn-search-submit:hover {
    background: #6a0000;
}

.btn-search-reset {
    background: #555;
    color: #fff;
    border: none;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    margin-left: 8px;
}

.btn-search-reset:hover {
    background: #333;
}

/* Marksheet / Result Card (Official format) */
.result-card-container {
    max-width: 820px;
    margin: 20px auto;
    background: #ffffff;
    padding: 30px;
    border: 2px solid #23786c;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
    position: relative;
}

.result-card-header {
    text-align: center;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.marksheet-title {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 800;
    color: #8b0000;
    text-transform: uppercase;
}

.marksheet-sub {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 4px;
}

.marksheet-type-badge {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Student Information Table */
.student-info-table {
    width: 100%;
    margin-bottom: 18px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.student-info-table td {
    padding: 6px 8px;
    vertical-align: top;
}

.info-label {
    font-weight: bold;
    color: #444;
    width: 18%;
}

.info-val {
    font-weight: 600;
    color: #111;
    width: 32%;
}

/* Subject Marks Table */
.marks-statement-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}

.marks-statement-table th {
    background-color: #f1f5f9;
    color: #000;
    font-weight: bold;
    padding: 8px 6px;
    border: 1px solid #cbd5e1;
    text-align: center;
}

.marks-statement-table td {
    border: 1px solid #cbd5e1;
    padding: 7px 6px;
    color: #111;
}

.marks-statement-table td.text-center {
    text-align: center;
}

.marks-statement-table td.text-left {
    text-align: left;
}

.marks-statement-table td.text-right {
    text-align: right;
}

.marks-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.summary-item {
    text-align: center;
}

.summary-title {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: bold;
}

.summary-value {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 3px;
}

.status-badge-pass {
    color: #15803d;
}

.status-badge-reappear {
    color: #b91c1c;
}

.marksheet-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
}

.qr-verification-section {
    text-align: center;
    font-size: 11px;
    color: #475569;
}

.qr-box {
    width: 90px;
    height: 90px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px auto;
    padding: 4px;
}

.signature-block {
    text-align: center;
}

.signature-seal {
    height: 48px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.signature-title {
    font-size: 13px;
    font-weight: bold;
    color: #111;
}

.print-actions-bar {
    text-align: center;
    margin-top: 20px;
}

.btn-print {
    background: #0284c7;
    color: white;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-print:hover {
    background: #0369a1;
}

/* Modal Popup for Complete Notice */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content-box {
    background: #ffffff;
    max-width: 650px;
    width: 90%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: #8b0000;
    color: #fff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.modal-footer {
    background: #f1f5f9;
    padding: 10px 18px;
    text-align: right;
    border-top: 1px solid #e2e8f0;
}

/* Local Environment Subdomain Switcher Bar */
.local-preview-bar {
    background: #1e293b;
    color: #f8fafc;
    padding: 6px 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #0f172a;
}

.local-preview-bar select {
    background: #334155;
    color: #fff;
    border: 1px solid #475569;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.local-preview-bar a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.local-preview-bar a:hover {
    text-decoration: underline;
}

/* Verification Badge */
.verified-stamp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 800px) {
    .portal-main-wrapper {
        flex-direction: column;
    }
    .portal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #999;
    }
    .search-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background: #fff !important;
    }
    .top-red-bar, .notice-marquee-bar, .portal-sidebar, .local-preview-bar, .print-actions-bar, .course-select-prompt {
        display: none !important;
    }
    .portal-container {
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .portal-content {
        background: #fff !important;
        padding: 0 !important;
    }
    .result-card-container {
        border: 2px solid #000 !important;
        box-shadow: none !important;
        padding: 15px !important;
        max-width: 100% !important;
    }
}
