/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a365d;
    --primary-dark: #0d2438;
    --primary-light: #2d4a7a;
    --secondary: #059669;
    --secondary-dark: #047857;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --justice: #9f1239;
    --governance: #1e40af;
    --development: #0f766e;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #f8fafc;
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gray-medium: #e5e7eb;
    --gray-dark: #9ca3af;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--justice), var(--development));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-top {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.header-title {
    text-align: center;
    flex: 1;
}

.header-title h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 0.3rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    color: var(--justice);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Register Button in Header */
.header-cta {
    flex: 0 0 auto;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--development), var(--justice));
}

.header-bottom {
    background: var(--gray-light);
    border-bottom: 1px solid var(--gray-medium);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    position: relative;
    white-space: nowrap;
    font-size: 0.85rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--justice), var(--development));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--justice);
}

.search-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-medium);
    transition: var(--transition);
    min-width: 200px;
    width: 200px;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    width: 250px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-btn, .mobile-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: var(--border-radius);
    opacity: 0.7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover, .mobile-search-btn:hover {
    color: var(--primary);
    background: var(--gray-light);
    opacity: 1;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: var(--border-radius);
    opacity: 0.7;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-close.visible {
    display: flex;
}

.search-close:hover {
    color: var(--primary);
    background: var(--gray-light);
    opacity: 1;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: block;
    opacity: 1;
}

.search-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--primary);
    color: var(--white);
}

.search-modal-header h3 {
    margin: 0;
    color: var(--white);
}

.search-modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-medium);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--gray-light);
    transform: translateX(5px);
}

.search-result-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.search-result-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.search-result-item .highlight {
    background: var(--accent-light);
    color: var(--text-dark);
    padding: 0 2px;
    border-radius: 2px;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    display: none;
}

.no-results.active {
    display: block;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.mobile-search-bar {
    flex: 1;
    max-width: 250px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
}

.mobile-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    background: transparent;
}

.mobile-search-bar input:focus {
    border-color: var(--primary);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    flex-shrink: 0;
    order: 2;
}

.hamburger:hover {
    background: var(--gray-light);
}

.bar {
    width: 18px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-medium);
    background: var(--white);
}

.mobile-logo img {
    height: 50px;
    width: auto;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-close:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.mobile-nav-links {
    list-style: none;
    padding: 1.5rem;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 1.1rem;
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary);
    color: var(--white);
    border-left-color: var(--secondary);
    padding-left: 2rem;
}

/* Register button in mobile menu */
.mobile-register-btn {
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white) !important;
    margin-top: 1rem;
}

.mobile-register-btn:hover {
    background: linear-gradient(135deg, var(--development), var(--justice)) !important;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--development), var(--justice));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.section-footer .btn {
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white);
    border: 2px solid transparent;
    font-weight: 600;
    padding: 0.875rem 2rem;
}

.section-footer .btn:hover {
    background: linear-gradient(135deg, var(--development), var(--justice));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white);
    padding: 6rem 0 4rem;
    margin-top: 110px;
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.page-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Introduction Section */
.intro-section {
    background: var(--white);
    padding: 4rem 0;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.newsletter-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.newsletter-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.feature i {
    color: var(--accent-light);
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background: var(--primary-dark);
    color: var(--white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Resources Filter Section */
.resources-filter {
    background: var(--background);
    padding: 3rem 0;
}

.filter-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    outline: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--justice);
    box-shadow: 0 0 0 3px rgba(159, 18, 57, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    outline: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.filter-options select:focus {
    border-color: var(--justice);
}

/* Resources Grid Section */
.resources-grid {
    background: var(--white);
}

.resources-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.resource-category {
    background: var(--background);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--justice);
    font-size: 1.5rem;
}

.category-title i {
    font-size: 1.8rem;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.resource-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--justice);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--justice), var(--development));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.resource-year {
    background: var(--justice);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.resource-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.resource-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.download-btn, .preview-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.preview-btn {
    background: transparent;
    color: var(--justice);
    border: 2px solid var(--justice);
}

.preview-btn:hover {
    background: var(--justice);
    color: var(--white);
}

/* Resource Not Available Styling */
.resource-not-available {
    background: var(--gray-light);
    border-left-color: var(--gray-dark) !important;
    opacity: 0.7;
}

.resource-not-available .resource-icon {
    background: var(--gray-dark);
}

.resource-not-available .resource-info h4 {
    color: var(--text-light);
}

.resource-not-available .resource-description {
    color: var(--gray-dark);
}

.resource-not-available .not-available-badge {
    background: var(--gray-dark);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    display: none;
}

.no-results i {
    font-size: 4rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

/* Data Section */
.data-section {
    background: var(--background);
}

.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.data-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--justice);
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.data-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--justice), var(--development));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.data-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.data-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Resource Contact Section */
.resource-contact {
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white);
}

.contact-content {
    text-align: center;
}

.contact-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Newsletter Success Modal */
.newsletter-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    max-width: 350px;
    border-left: 4px solid var(--secondary-dark);
}

/* Footer - Updated for Consistency */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--justice);
    transform: translateY(-3px);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.newsletter-subscribe-btn {
    background: var(--secondary);
}

.newsletter-subscribe-btn:hover {
    background: var(--secondary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--gray-medium);
}

.developer-credit {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    color: var(--gray-medium);
}

.developer-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.developer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--justice), var(--development));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Header Mobile */
    .header-top {
        padding: 0.75rem 0;
    }
    
    .logo-container {
        flex-direction: row;
        text-align: center;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo img {
        height: 50px;
    }
    
    .header-title h1 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .header-subtitle {
        font-size: 0.65rem;
    }
    
    .btn-register {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    
    .btn-register i {
        font-size: 0.7rem;
    }
    
    .nav-center {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    /* Page Header Mobile */
    .page-header {
        padding: 5rem 0 3rem;
        margin-top: 100px;
    }
    
    /* Newsletter Content Mobile */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-features {
        grid-template-columns: 1fr;
    }
    
    /* Filter Container Mobile */
    .filter-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-options select {
        flex: 1;
        min-width: 120px;
    }
    
    /* Resource Items Mobile */
    .resource-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .resource-actions {
        width: 100%;
        justify-content: center;
    }
    
    .resource-category {
        padding: 1.5rem;
    }
    
    /* Data Cards Mobile */
    .data-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .data-card {
        padding: 2rem 1.5rem;
    }
    
    /* Contact Actions Mobile */
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-actions .btn {
        width: 200px;
        justify-content: center;
    }
    
    /* Typography Mobile */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    /* Search Modal Mobile */
    .search-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .search-results {
        max-height: 65vh;
    }
    
    /* Footer adjustments for mobile */
    .footer-bottom {
        font-size: 0.8rem;
    }
    
    .footer-disclaimer {
        font-size: 0.7rem;
    }
    
    .developer-credit {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .resource-item {
        padding: 1rem;
    }
    
    .resource-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .data-card {
        padding: 1.5rem 1rem;
    }
    
    .data-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Adjust logo sizes for very small screens */
    .logo img {
        height: 40px;
    }
    
    .header-title h1 {
        font-size: 0.8rem;
    }
    
    .header-subtitle {
        font-size: 0.6rem;
    }
    
    .mobile-search-bar {
        max-width: 150px;
    }
    
    .mobile-search-bar input {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}