:root {
    --primary-dark: #263143;
    --primary-accent: #FAA200;
    --primary-light: #f8f9fa;
    --text-dark: #343a40;
    --text-light: #6c757d;
}

@font-face {
    font-family: 'Montserrat-Light';
    src: url('../app/Comuns/font/montserrat/Montserrat-Light.otf');
}
@font-face {
    font-family: 'Montserrat-Medium';
    src: url('../app/Comuns/font/montserrat/Montserrat-Medium.otf');
}
@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../app/Comuns/font/montserrat/Montserrat-Bold.otf');
}

body {
    background-color: #f8f9fa;
    color: var(--text-dark);
    font-family: 'Montserrat-Light';
}

/* Navbar customization */
.navbar-custom {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.85);
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-accent);
}

.btn-custom {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom:hover {
    background-color: #e09300;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero section */
.hero-section {
    background: 
                url('../img/obra-background.jpg');
    background-size: cover;
    background-position: bottom;
    padding: 120px 0 80px;
    color: white;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Main content */
.post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-img {
    height: 220px;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.post-title {
    color: var(--primary-dark);
    font-weight: 700;
    transition: color 0.3s;
}

.post-title:hover {
    color: var(--primary-accent);
    text-decoration: none;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 5px;
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.7;
}

.post-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: var(--text-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.post-tag:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    text-decoration: none;
}

/* Sidebar */
.sidebar-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sidebar-card .card-header {
    background-color: var(--primary-dark);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
}

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
}

.sidebar-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.sidebar-list a:hover {
    color: var(--primary-accent);
}

/* Newsletter */
.newsletter-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-accent);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-accent);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .post-img {
        height: 200px;
    }
}
