body {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* HEADER */
.header-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}

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

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-section .logo-link {
    transition: transform 0.3s ease;
    text-decoration: none;
}

.header-section .logo-link:hover {
    transform: scale(1.05);
}

.header-section .logo-text {
    color: #1e293b !important;
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

.header-subtitle {
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

/* Logo */
.animated-dots {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    margin-right: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-1 { background-color: #4B49AC; }
.dot-2 { background-color: #7DA0FA; }
.dot-3 { background-color: #98BDFF; }

/* Layout principal */
.main-container {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

/* FOOTER */
.footer-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1.75rem 0 1.25rem 0;
    margin-top: 2.5rem;
}

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

.footer-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #4B49AC;
}

.contact-item i {
    color: #4B49AC;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.footer-bottom {
    color: #94a3b8;
    font-size: 0.8rem;
}


        /* Formulari de filtratge */
        .filter-section {
            background: #f8fafc;
            border: none;
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .filter-section label {
            color: #1e293b !important;
            font-weight: 600;
        }

        .form-select {
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 1rem;
        }

        .form-select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
        }

        /* Taula moderna */
        .table-container {
            background: #ffffff;
            border-radius: 0.5rem;
            overflow: hidden;
            border: 1px solid #f1f5f9;
        }

        .table-ofertes {
            margin-bottom: 0 !important;
        }

        /* Header de taula simplificat */
        .table-ofertes thead th {
            background: #f8fafc;
            color: #1e293b;
            font-weight: 600;
            padding: 1rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .table-ofertes tbody tr {
            border-bottom: 1px solid #e2e8f0;
            transition: background-color 0.2s ease;
        }

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

        .table-ofertes tbody td {
            padding: 1rem;
            vertical-align: middle;
        }

        /* Enllaços de la taula */
        .table-ofertes a {
            color: #1d4ed8;
            font-weight: 600;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .table-ofertes a:hover {
            color: #1e40af;
        }

        /* Badges i etiquetes */
        .estudis-badge {
            color: #334155;
            margin-bottom: 0.5rem;
            display: block;
            font-size: 0.9rem;
        }

        .dias-restantes {
            font-size: 0.85em;
            font-weight: 600;
            display: inline-block;
            margin-top: 0.3rem;
        }

        .dias-restantes.text-danger {
            color: #dc2626;
        }

        .dias-restantes.text-warning {
            color: #d97706;
        }

        .dias-restantes.text-success {
            color: #16a34a;
        }

        /* Paginació: estil unificat a static/css/buttons.css */

        /* Alert */
        .alert-info {
            background-color: #f0f9ff;
            border: 1px solid #e0f2fe;
            border-radius: 0.5rem;
            color: #0369a1;
            padding: 1.5rem;
        }



        /* Títol principal */
        h2 {
            color: #1e293b !important;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2rem !important;
        }

        /* Targetes modernes compactes */
        .modern-card {
            background: #ffffff;
            border: 1px solid #f1f5f9;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }

        .modern-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .modern-card .card-body {
            padding: 1.5rem;
        }

        /* Targeta principal compacta */
        .hero-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .hero-card .card-body {
            padding: 2rem;
        }

        /* Estadístiques compactes */
        .stats-row {
            background: #f8fafc;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-top: 1rem;
        }

        .stat-item {
            text-align: center;
            padding: 0.5rem;
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .stat-label {
            font-size: 0.85rem;
            color: #64748b;
        }

        /* Badges moderns */
        .modern-badge {
            background: #f0f9ff;
            color: #0369a1;
            border-radius: 0.25rem;
            padding: 0.4rem 0.8rem;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .modern-badge.success {
            background: #dcfce7;
            color: #16a34a;
        }

        .modern-badge.warning {
            background: #fef3c7;
            color: #d97706;
        }

        /* Seccions compactes */
        .section-title {
            color: #1d4ed8;
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
        }

        .section-title i {
            margin-right: 0.5rem;
        }

        /* Info ràpida compacta */
        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 0.5rem 0;
            border-bottom: 1px solid #f1f5f9;
        }

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

        .info-label {
            color: #64748b;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
        }

        .info-label i {
            margin-right: 0.5rem;
            width: 16px;
        }

        .info-value {
            font-weight: 600;
            font-size: 0.9rem;
            /* Alineem el text a la dreta, especialment útil si ocupa més d'una línia */
            text-align: right; 
            
            /* Permet que paraules molt llargues es trenquin per evitar el desbordament */
            overflow-wrap: break-word;
            word-wrap: break-word; /* Compatibilitat amb navegadors antics */

            /* Afegeix un espai mínim a l'esquerra per evitar que toqui l'etiqueta */
            margin-left: 1rem; 
            
            /* Aquesta propietat és clau en un contenidor flex per permetre que l'element s'encongeixi i el text es parteixi */
            min-width: 0;
        }

        /* Layout compacte */
        .compact-section {
            margin-bottom: 1rem;
        }

        .compact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .compact-item {
            background: #f8fafc;
            border: 1px solid #f1f5f9;
            border-radius: 0.25rem;
            padding: 0.75rem;
            display: flex;
            align-items: center;
        }

        .compact-item i {
            margin-right: 0.5rem;
            color: #3b82f6;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-card .card-body {
                padding: 1.5rem;
            }
            
            .modern-card .card-body {
                padding: 1rem;
            }
            
            .stats-row {
                padding: 0.75rem;
            }
            
            .stat-number {
                font-size: 1.25rem;
            }
        }
         

/* Responsive */
@media (max-width: 768px) {
    .main-container { padding: 2rem 0; }
    .header-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .header-section { padding: 1.5rem 0; }
    .header-subtitle { font-size: 0.9rem; }
    .contact-info { flex-direction: column; gap: 1rem; align-items: center; }
    .footer-section { padding: 1.5rem 0 1rem 0; }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .contact-info { gap: 1.5rem; }
}
