/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00295f;
    --accent-red: #a70707;
    --text-dark: #333333;
    --text-gray: #666666;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --medium-gray: #e0e0e0;
    --border-gray: #d0d0d0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header */
.header {
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary-blue);
}

.logo-text p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0;
    color: var(--text-gray);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

.nav-item.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.nav-item.admin-login {
    background-color: var(--accent-red);
    color: var(--white);
    font-weight: 600;
    gap: .5rem;
}

.nav-item.admin-login:hover {
    background-color: #8f0606;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    display: flex;
    gap: 4px;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-top: none;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-gray);
    display: block;
    white-space: nowrap;
    font-size: 0.9rem;
}

.mobile-menu .nav-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* Hero Section */
.hero {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.search-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box {
    max-width: 500px;
    flex: 1;
    min-width: 300px;
}

.search-input-group {
    display: flex;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-gray);
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.btn-search {
    background: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background: #8f0606;
}

.btn-advanced {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
    padding: 0.65rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-advanced:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Advanced Search */
.advanced-search {
    background: var(--light-gray);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.advanced-search-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 3px;
    font-size: 0.9rem;
    background: var(--white);
    transition: border-color 0.3s ease;
}

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

.btn-reset {
    background: var(--text-gray);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-reset:hover {
    background: var(--text-dark);
}

/* Stats */
.stats {
    background: var(--white);
    padding: 1.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Documents Section */
.documents {
    background: var(--white);
    padding: 2rem 0 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.section-header h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* View options removed - only list view available */

/* Document Cards */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.document-card:hover {
    background: var(--light-gray);
    border-color: var(--primary-blue);
}

.document-list-item {
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.document-type-badge {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.document-info {
    flex: 1;
}

.document-title-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 0.25rem;
}

.document-title-link:hover {
    text-decoration: underline;
    color: var(--accent-red);
}

.document-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.document-number {
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 0.9rem;
    white-space: nowrap;
}

.document-status {
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.document-status.berlaku {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #c3e6c3;
}

.document-status.tidak-berlaku {
    background: #fde8e8;
    color: #8b2635;
    border: 1px solid #f5c6cb;
}

/* Detail Page Styles */
.breadcrumb {
    background: var(--light-gray);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

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

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-gray);
}

.breadcrumb-current {
    color: var(--text-gray);
}

.document-detail-page {
    padding: 2rem 0;
}

.document-detail-header {
    margin-bottom: 2rem;
}

.document-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.document-title-section h1 {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    min-width: 300px;
}

.document-detail-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 3px;
    overflow: hidden;
    font-size: 0.9rem;
    border: 1px solid var(--border-gray);
}

.document-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-gray);
    vertical-align: top;
}

.document-table td:first-child {
    font-weight: 500;
    color: var(--text-gray);
    width: 160px;
    background: var(--light-gray);
}

.document-table td:last-child {
    color: var(--text-dark);
}

.document-table tr:last-child td {
    border-bottom: none;
}

.document-sidebar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 3px;
    border: 1px solid var(--border-gray);
    height: fit-content;
}

.document-sidebar h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.revocation-info {
    margin-bottom: 1.5rem;
}

.revocation-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.revocation-link {
    display: block;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 3px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.revocation-link:hover {
    background: rgba(0, 41, 95, 0.1);
    border-color: var(--primary-blue);
    text-decoration: underline;
}

.document-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.error-message {
    text-align: center;
    padding: 3rem 1rem;
}

.error-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.error-message h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* About Page Styles */
.about-content {
    padding: 2rem 0;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.about-section h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.document-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.doc-type {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.doc-type h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.doc-type ul {
    margin-left: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.feature i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Contact Page Styles */
.contact-content {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3,
.contact-form-section h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin: 0;
    line-height: 1.5;
}

.contact-details a {
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.additional-contacts {
    margin-bottom: 3rem;
}

.additional-contacts h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.unit-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
    text-align: center;
}

.unit-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.unit-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.unit-card a {
    color: var(--primary-blue);
    text-decoration: none;
}

.unit-card a:hover {
    text-decoration: underline;
}

.operating-hours {
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.operating-hours h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hours-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hours-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
}

.hours-item h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hours-item p {
    margin: 0;
    font-weight: 500;
}

.hours-note {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.hours-note i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* Homepage Styles */
.homepage-info {
    padding: 3rem 0;
    background: var(--white);
}

.info-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.welcome-text h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.welcome-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.stats-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Document Types Grid */
.document-types {
    padding: 3rem 0;
    background: var(--light-gray);
}

.document-types h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.type-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.type-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.type-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.type-card .type-description {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    opacity: 0.9;
}

.type-card .type-count {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: auto;
}

.type-card .type-count strong {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Page Header */
.page-header {
    background: var(--white);
    color: var(--primary-blue);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.search-mini {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 4px;
    border: 1px solid var(--border-gray);
    overflow: hidden;
}

.search-mini input {
    padding: 0.6rem;
    border: none;
    outline: none;
    background: transparent;
    min-width: 200px;
}

.search-mini button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-mini button:hover {
    background: #001f4a;
}

/* Types/Years List */
.types-list,
.years-list {
    padding: 2rem 0;
}

.types-content,
.years-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.type-item,
.year-item {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-item:hover,
.year-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-blue);
}

.type-item h4,
.year-item h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.type-item .count,
.year-item .count {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.type-item .count strong,
.year-item .count strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Documents Header */
.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-blue);
}

.documents-header h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.btn-back {
    background: var(--text-gray);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: var(--text-dark);
}

.btn-primary,
.btn-secondary {
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #8f0606;
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: #001f4a;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--medium-gray);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary-blue);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 10px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-content.pdf-modal {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    background: var(--light-gray);
}

.modal-header h3 {
    color: var(--primary-blue);
    font-weight: 700;
}

.pdf-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-gray);
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-close:hover {
    background: var(--medium-gray);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body.pdf-body {
    padding: 0;
    max-height: none;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--medium-gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ccc;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
        position: relative;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .search-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-summary {
        flex-direction: row;
        gap: 1rem;
    }
    
    .types-grid,
    .types-content,
    .years-content {
        grid-template-columns: 1fr;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-mini input {
        min-width: 150px;
    }
    
    .documents-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .document-body {
        grid-template-columns: 1fr;
    }
    
    .document-sidebar {
        border-left: none;
        border-top: 1px solid var(--border-gray);
    }
    
    .document-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .modal-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .document-types {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-info {
        grid-template-columns: 1fr;
    }
}