/* Estilos personalizados para Proyecto Hombre Castilla-La Mancha */

:root {
    --ph-orange: #e67f17;
    --ph-blue: #1f7987;
    --ph-green: #78BE20;
    --ph-dark: #333333;
    --ph-blue-rgb: 31, 121, 135;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ph-dark);
}

.text-ph-orange {
    color: var(--ph-orange);
}

.bg-ph-orange {
    background-color: var(--ph-orange);
}

.text-ph-blue {
    color: var(--ph-blue);
}

.bg-ph-blue {
    background-color: var(--ph-blue);
}

.btn-ph-orange {
    background-color: var(--ph-orange);
    color: white;
    border: none;
}

.btn-ph-orange:hover {
    background-color: #d68100;
    color: white;
}

.navbar-brand {
    font-weight: bold;
    color: var(--ph-blue);
}

.nav-link {
    color: var(--ph-dark);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ph-orange);
}

footer {
    background-color: #f8f9fa;
    padding-top: 3rem;
    border-top: 5px solid var(--ph-orange);
}

footer h5 {
    color: var(--ph-blue);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

footer a {
    text-decoration: none;
    color: #666;
}

footer a:hover {
    color: var(--ph-orange);
}


/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Hover effects */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Grayscale logos */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.grayscale:hover,
.hover-color:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Sticky navbar shadow on scroll */
.navbar.sticky-top {
    transition: box-shadow 0.3s ease;
}

/* Border utilities */
.border-ph-orange {
    border-color: var(--ph-orange) !important;
}

.border-ph-blue {
    border-color: var(--ph-blue) !important;
}

.border-ph-green {
    border-color: var(--ph-green) !important;
}

/* Last item no border */
.last-no-border>*:last-child {
    border-bottom: none !important;
}

/* Content styling for news articles */
.content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content h2 {
    color: var(--ph-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    color: var(--ph-orange);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content p {
    margin-bottom: 1.25rem;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Floating help button (mobile) */
@media (max-width: 768px) {
    .btn-floating-help {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Accordion custom styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(243, 146, 0, 0.1);
    color: var(--ph-orange);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(243, 146, 0, 0.25);
}

/* Card link stretched */
.card .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}