/*
 * FinEduData - Base de Datos de Educación Financiera
 * Custom CSS Stylesheet
 * Version: 1.0
 */

/* ==============================
 * Table of Contents:
 * 1. Base & Typography
 * 2. Layout & Grid
 * 3. Navbar & Navigation
 * 4. Buttons & Controls
 * 5. Cards & Containers
 * 6. Hero & Banner Sections
 * 7. Feature Sections
 * 8. Form Elements
 * 9. Footer
 * 10. Animations & Effects
 * 11. Cookie Consent
 * 12. Media Queries
 * ============================== */

/* ==============================
 * 1. Base & Typography
 * ============================== */
:root {
    --primary-color: #1976D2;
    --secondary-color: #FF9800;
    --accent-color: #03A9F4;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background-light: #F5F7FA;
    --background-dark: #263238;
    --highlight-color: #81C784;
    --alert-color: #EF5350;
    --neutral-color: #ECEFF1;
    --overlay-color: rgba(38, 50, 56, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4CAF50;
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Red Hat Display', sans-serif;
    color: var(--text-primary);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.center-align .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
}

.center-align .section-description {
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==============================
 * 2. Layout & Grid
 * ============================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.resource-card-wrapper {
    padding: 15px;
}

/* ==============================
 * 3. Navbar & Navigation
 * ============================== */
.custom-navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.brand-logo {
    display: flex;
    align-items: center;
    height: 64px;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.main-nav li a {
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.main-nav li a:hover, 
.main-nav li.active a {
    color: var(--primary-color);
    background-color: transparent;
}

.sidenav {
    padding-top: 0;
}

.sidenav .user-view {
    padding: 32px 16px 16px;
    margin-bottom: 0;
}

.sidenav-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.8;
}

.sidenav .name {
    margin-top: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidenav .email {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.sidenav li > a {
    font-weight: 500;
    color: var(--text-primary);
}

.sidenav li > a i {
    color: var(--primary-color);
}

.sidenav li.active > a {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
}

/* ==============================
 * 4. Buttons & Controls
 * ============================== */
.btn, 
.btn-large {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-md);
    text-transform: none;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.btn:hover, 
.btn-large:hover {
    background-color: #1565C0;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-flat {
    color: var(--primary-color);
    font-weight: 500;
}

.btn-flat:hover {
    background-color: rgba(25, 118, 210, 0.1);
}

.pulse::before {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* ==============================
 * 5. Cards & Containers
 * ============================== */
.card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card .card-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.card .card-content {
    padding: 24px;
}

.card .card-action {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

.resource-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

.resource-format {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

.resource-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

[data-level="basico"] .resource-badge {
    background-color: var(--accent-color);
}

[data-level="intermedio"] .resource-badge {
    background-color: var(--secondary-color);
}

[data-level="avanzado"] .resource-badge {
    background-color: var(--primary-color);
}

.resource-details {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-item i {
    margin-right: 5px;
    color: var(--primary-color);
}

.resource-description-toggle {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.resource-description-toggle::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform var(--transition-fast);
}

.resource-expanded-info {
    display: none;
    background-color: #f9f9f9;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.resource-expanded-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.resource-content-list {
    list-style-type: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.resource-content-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.resource-content-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* ==============================
 * 6. Hero & Banner Sections
 * ============================== */
.hero-section {
    position: relative;
    height: 600px;
    background-image: url('../images/education-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F5F7FA' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}

.page-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/education-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.about-banner {
    background-image: url('../images/financial-education-workshop.jpg');
}

.contact-banner {
    background-image: url('../images/financial-education-materials.jpg');
}

.legal-banner {
    background-image: url('../images/financial-library.jpg');
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.banner-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.banner-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F5F7FA' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}

/* ==============================
 * 7. Feature Sections
 * ============================== */
.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.feature-item i {
    color: var(--highlight-color);
    font-size: 1.2rem;
    margin-right: var(--spacing-md);
}

.about-content, .approach-content, .standards-content {
    padding: var(--spacing-lg) 0;
}

.about-image-container, .approach-image-container, .standards-image-container {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.about-image, .approach-image, .standards-image {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-shape, .approach-shape, .standards-shape {
    position: absolute;
    top: 30px;
    right: -20px;
    width: 60%;
    height: 80%;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-md);
    z-index: 1;
}

.approach-shape {
    top: auto;
    right: auto;
    bottom: 30px;
    left: -20px;
    background-color: var(--accent-color);
}

.standards-shape {
    top: -20px;
    right: -20px;
    background-color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-xl);
}

.category-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    transition: width var(--transition-medium);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color var(--transition-medium);
}

.category-item:hover .category-icon {
    background-color: rgba(25, 118, 210, 0.2);
}

.category-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: color var(--transition-medium);
}

.category-item:hover .category-title {
    color: var(--primary-color);
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.category-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.category-link i {
    margin-left: 5px;
    transition: transform var(--transition-fast);
}

.category-item:hover .category-link i {
    transform: translateX(5px);
}

.approach-principles {
    margin-top: var(--spacing-xl);
}

.principle-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
}

.principle-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(25, 118, 210, 0.2);
    margin-right: var(--spacing-lg);
    line-height: 1;
}

.principle-content h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-xl);
}

.value-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.approach-tabs {
    margin-top: var(--spacing-lg);
}

.approach-tabs .tabs {
    background-color: transparent;
    margin-bottom: 30px;
}

.approach-tabs .tabs .tab a {
    color: var(--text-secondary);
    font-weight: 500;
}

.approach-tabs .tabs .tab a:hover,
.approach-tabs .tabs .tab a.active {
    color: var(--primary-color);
}

.approach-tabs .tabs .indicator {
    background-color: var(--primary-color);
}

.approach-tabs .tab-content {
    display: none;
    animation: fadeIn var(--transition-medium);
}

.approach-tabs .tab-content:first-child {
    display: block;
}

.approach-list {
    list-style-type: none;
    margin: 20px 0;
    padding: 0;
}

.approach-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.approach-list li i {
    color: var(--highlight-color);
    margin-right: 10px;
    font-size: 1.1rem;
    margin-top: 4px;
}

.impact-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: var(--spacing-xl) 0;
}

.impact-stat-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
    margin-bottom: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.impact-areas {
    margin-top: var(--spacing-xl);
}

.impact-area-card {
    height: 100%;
}

.impact-area-card .card-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.impact-area-card .card-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.standards-list {
    margin-top: var(--spacing-lg);
}

.standard-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
}

.standard-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.standard-icon i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.standard-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mission-vision {
    margin-top: var(--spacing-xl);
}

.mission-box, .vision-box {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.mission-box h3, .vision-box h3 {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mission-box h3 i, .vision-box h3 i {
    margin-right: 10px;
}

.faq-list {
    margin-top: var(--spacing-lg);
}

.collapsible {
    border: none;
    box-shadow: none;
    margin: 0;
}

.collapsible-header {
    background-color: white;
    border: none;
    border-radius: var(--border-radius-md);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    padding: 15px 20px;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.collapsible-header:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.collapsible-header i {
    margin-right: 15px;
    color: var(--primary-color);
}

.collapsible-body {
    border: none;
    padding: 20px;
    background-color: white;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    margin-bottom: 20px;
    margin-top: -10px;
    box-shadow: var(--shadow-sm);
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: var(--spacing-xxl) 0;
    margin-top: var(--spacing-xxl);
}

.cta-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 0 30px;
}

.cta-section .btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.swiper-container {
    overflow: hidden;
    position: relative;
    padding: 20px 10px 60px;
}

.swiper-slide {
    height: auto;
}

.resource-slide-card {
    height: 100%;
}

.swiper-pagination {
    bottom: 0;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
}

.resource-navigation {
    margin-bottom: 0;
    padding-bottom: 0;
}

.resource-tabs {
    margin-bottom: var(--spacing-lg);
}

.resource-tabs .tabs {
    background-color: transparent;
    overflow-x: auto;
    display: flex;
}

.resource-tabs .tabs .tab {
    flex: 1;
    min-width: auto;
}

.resource-tabs .tabs .tab a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0 20px;
}

.resource-tabs .tabs .tab a:hover,
.resource-tabs .tabs .tab a.active {
    color: var(--primary-color);
}

.resource-tabs .tabs .indicator {
    background-color: var(--primary-color);
}

.resource-filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.filter-item {
    margin-right: 20px;
    margin-bottom: 10px;
    min-width: 200px;
}

.filter-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.filter-item select {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    font-family: 'Red Hat Display', sans-serif;
}

.search-box {
    flex-grow: 1;
    min-width: 250px;
}

.search-input {
    position: relative;
    margin: 0;
}

.search-input input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 10px 40px 10px 15px;
    font-family: 'Red Hat Display', sans-serif;
    height: auto;
    box-sizing: border-box;
}

.search-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-xl);
}

.resource-item {
    height: 100%;
}

.resource-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card .card-content {
    flex-grow: 1;
}

.additional-resources {
    background-color: var(--background-light);
    margin-top: var(--spacing-xxl);
}

.additional-resource-card {
    text-align: center;
    height: 100%;
}

.additional-resource-card .card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.additional-resource-card .card-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.tab-content-section {
    display: none;
}

.contact-cards {
    margin-top: var(--spacing-xl);
}

.contact-info-card {
    text-align: center;
    height: 100%;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.contact-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-text {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form-section {
    background-color: var(--background-light);
}

.contact-form-container {
    margin-bottom: var(--spacing-lg);
}

.contact-form-card {
    overflow: visible;
}

.contact-form-card .card-title {
    margin-bottom: 30px;
}

.contact-info {
    padding-top: var(--spacing-md);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
}

.contact-additional-info {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.contact-additional-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.schedule-info {
    margin: 15px 0 20px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
}

.contact-details {
    margin-top: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: var(--spacing-md);
    margin-top: 5px;
}

.contact-item p {
    margin: 0;
}

.thank-you-section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.thank-you-icon i {
    font-size: 50px;
    color: var(--success-color);
}

.thank-you-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.thank-you-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.suggested-resources {
    background-color: var(--background-light);
}

.suggested-resource-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.suggested-resource-card .card-content {
    flex-grow: 1;
}

.legal-content {
    padding: var(--spacing-xxl) 0;
}

.legal-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.legal-toc {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-toc ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    columns: 2;
}

.legal-toc ul li {
    margin-bottom: 10px;
}

.legal-section {
    margin-bottom: var(--spacing-xl);
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-section h3 {
    font-size: 1.3rem;
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    color: var(--text-primary);
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: var(--spacing-md);
}

.legal-section ul li {
    margin-bottom: 5px;
}

.contact-info-list {
    list-style-type: none;
    margin: 20px 0;
    padding: 0;
}

.contact-info-list li {
    margin-bottom: 10px;
}

.cookie-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.cookie-table th, .cookie-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-table th {
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(25, 118, 210, 0.05);
}

/* ==============================
 * 8. Form Elements
 * ============================== */
.input-field {
    margin-bottom: 25px;
}

.input-field label {
    color: var(--text-secondary);
}

.input-field input:focus + label,
.input-field textarea:focus + label {
    color: var(--primary-color);
}

.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 1px 0 0 var(--primary-color);
}

.input-field .prefix {
    color: var(--text-secondary);
}

.input-field .prefix.active {
    color: var(--primary-color);
}

.input-field .select-wrapper input.select-dropdown {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.input-field .select-wrapper input.select-dropdown:focus {
    border-bottom: 1px solid var(--primary-color);
}

.input-field.tel-field {
    position: relative;
}

.iti {
    width: 100%;
    margin-top: 25px;
}

.iti__flag-container {
    z-index: 10;
}

.form-disclaimer {
    margin: 25px 0;
    padding: 15px;
    background-color: rgba(25, 118, 210, 0.05);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==============================
 * 9. Footer
 * ============================== */
.page-footer {
    background-color: var(--background-dark);
    color: white;
    padding-top: var(--spacing-xxl);
    margin-top: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand h5 {
    color: white;
    margin: 0;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-xxl);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright a:hover {
    color: var(--secondary-color);
}

/* ==============================
 * 10. Animations & Effects
 * ============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

[data-delay="0.2s"] {
    animation-delay: 0.2s;
}

[data-delay="0.4s"] {
    animation-delay: 0.4s;
}

[data-delay="0.6s"] {
    animation-delay: 0.6s;
}

[data-delay="0.8s"] {
    animation-delay: 0.8s;
}

[data-delay="1s"] {
    animation-delay: 1s;
}

/* ==============================
 * 11. Cookie Consent
 * ============================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cookie-content p {
    margin-bottom: 20px;
}

.cookie-options {
    margin: 20px 0;
}

.cookie-option {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-option label {
    font-weight: 500;
    color: var(--text-primary);
    margin-right: 10px;
}

.cookie-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0 0 30px;
    flex-basis: 100%;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookie-policy-link {
    margin-top: 15px;
    font-size: 0.9rem;
}

.cookie-settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 998;
    display: none;
    font-family: 'Red Hat Display', sans-serif;
    transition: background-color var(--transition-fast);
}

.cookie-settings-button:hover {
    background-color: #1565C0;
}

.cookie-settings-button i {
    margin-right: 5px;
}

/* ==============================
 * 12. Media Queries
 * ============================== */
@media (max-width: 992px) {
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .about-shape, .approach-shape, .standards-shape {
        width: 50%;
    }
    
    .principle-number {
        font-size: 1.5rem;
    }
    
    .legal-toc ul {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-banner {
        height: 200px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .values-grid, .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .impact-stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions button {
        width: 100%;
    }
    
    .resource-filters {
        flex-direction: column;
    }
    
    .filter-item {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .thank-you-icon {
        width: 80px;
        height: 80px;
    }
    
    .thank-you-icon i {
        font-size: 40px;
    }
    
    .thank-you-title {
        font-size: 1.8rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions a {
        width: 100%;
    }
}