/* ============================================
   TELEMACOS - Repository Digitale
   Design System & Modern Styles
   ============================================ */

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

:root {
    /* Primary Colors */
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
    
    /* Secondary Colors */
    --secondary: #6366f1;
    --secondary-light: #818cf8;
    --accent: #8b5cf6;
    
    /* Institutional Blue */
    --institutional-blue: #003366;
    --institutional-blue-dark: #002244;
    --institutional-blue-light: #004488;
    
    /* Text Colors */
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Background Colors */
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card: #ffffff;
    
    /* Border & Shadow */
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Transition */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   INSTITUTIONAL BANNER
   ============================================ */

.institutional-banner {
    background: linear-gradient(135deg, var(--institutional-blue-dark) 0%, var(--institutional-blue) 50%, var(--institutional-blue-light) 100%);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.institutional-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.institutional-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.institutional-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.institutional-banner img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Bottom Institutional Banner */
.institutional-banner-bottom {
    background: linear-gradient(135deg, var(--institutional-blue-dark) 0%, var(--institutional-blue) 50%, var(--institutional-blue-light) 100%);
    margin-top: 50px;
    margin-bottom: 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.institutional-banner-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Sezione Loghi (1) */
.banner-logos-section {
    padding: 25px 30px;
    position: relative;
    z-index: 1;
}

.banner-logos-section img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Sezione Disclaimer (2) - stesso sfondo del (1) */
.banner-disclaimer-section {
    padding: 25px 30px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.08);
}

.banner-disclaimer-section p {
    font-size: 0.92em;
    margin: 0 auto;
    line-height: 1.75;
    color: rgba(255,255,255,0.92);
    max-width: 950px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--institutional-blue-dark) 0%, var(--institutional-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo i {
    font-size: 28px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 40%, #6366f1 70%, #8b5cf6 100%);
    color: #ffffff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.95;
    color: #c7d2fe;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* ============================================
   SEARCH SECTION
   ============================================ */

.search-section {
    margin-top: -40px;
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
}

.search-container {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
}

.search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.search-icon {
    position: absolute;
    top: 38px;
    left: 40px;
    color: var(--primary);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    font-size: 1rem;
    outline: none;
    background: var(--bg);
    transition: all var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-tag {
    border: 2px solid var(--border);
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text);
}

.filter-tag:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
}

.filter-tag.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    padding: 50px 0 80px;
}

.section {
    margin-bottom: 70px;
}

.section-header {
    margin-bottom: 35px;
    text-align: center;
}

.section-icon {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   RESOURCE CARDS
   ============================================ */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.resource-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.resource-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all var(--transition-normal);
}

.resource-card:hover .resource-icon {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: scale(1.05);
}

.resource-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-toolkit {
    background: linear-gradient(135deg, #1e40af 0%, #6366f1 100%);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

.badge-whitepaper {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.badge-documento {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
}

.resource-description {
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.7;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.resource-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(30, 64, 175, 0.08);
    color: var(--primary);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.btn-secondary:hover {
    background: rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
    border-color: rgba(30, 64, 175, 0.3);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

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

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 70px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer-links li {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: #64748b;
}

.newsletter-input:focus {
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.1);
}

.newsletter-btn {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom-links span {
    color: #475569;
}

/* ============================================
   NOTIFICATION
   ============================================ */

.notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #ffffff;
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    pointer-events: none;
    border-left: 4px solid var(--success);
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification i {
    color: var(--success);
    font-size: 1.2rem;
}

/* ============================================
   GIS CARD SPECIAL STYLES
   ============================================ */

.resource-features {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-item {
    padding: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.feature-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.feature-item p {
    font-size: 0.9em;
    margin: 0;
    color: var(--text-muted);
}

.info-box {
    margin-top: 24px;
    padding: 18px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid #3b82f6;
}

.info-box p {
    margin: 0;
    color: #1e40af;
    font-size: 0.95em;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.6rem;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }
    
    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 70px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .search-section {
        margin-top: -30px;
    }
    
    .search-container {
        padding: 22px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-section {
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .search-container {
        padding: 18px;
    }
    
    .search-icon {
        top: 28px;
        left: 30px;
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .filter-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .resource-card {
        padding: 22px;
    }
    
    .resource-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .institutional-banner-bottom {
        padding: 25px 20px;
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.resource-card {
    animation: fadeInUp 0.5s ease forwards;
}

.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }
.resource-card:nth-child(4) { animation-delay: 0.4s; }
.resource-card:nth-child(5) { animation-delay: 0.5s; }

/* Smooth scrolling highlight for sections */
.section:target {
    animation: pulse 0.5s ease;
}
