/* ==========================================================================
   Theme Mihaesti - Main Stylesheet
   Faithful to the original Oxygen design
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #1a3a6b;
    --color-primary-dark: #0e2448;
    --color-accent: #e30613;
    --color-bg: #e8ecf1;
    --color-bg-light: #f5f7fa;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #dde2e8;

    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top Announcement Bar ---------- */
.top-bar {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.top-bar p {
    margin: 0;
    text-align: center;
}

.top-bar a {
    color: var(--color-white);
    text-decoration: underline;
    font-weight: 700;
}

.top-bar-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 22px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------- Header ---------- */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-line-top {
    height: 3px;
    background: var(--color-accent);
}

.header-line-bottom {
    height: 3px;
    background: var(--color-accent);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img,
.site-logo .custom-logo {
    height: 65px;
    width: auto;
}

.logo-img {
    height: 65px;
    width: auto;
}

/* ---------- Primary Navigation ---------- */
.primary-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu > .menu-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    letter-spacing: 0.3px;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-menu > .menu-item > a:hover,
.nav-menu > .menu-item.current-menu-item > a,
.nav-menu > .menu-item.current-menu-parent > a {
    color: var(--color-accent);
}

/* Dropdown toggle indicator (+/−) */
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}

.dropdown-toggle::after {
    content: '+';
}

.menu-item.has-dropdown.open > a .dropdown-toggle::after {
    content: '−';
}

.menu-item.has-dropdown.open > a .dropdown-toggle {
    color: var(--color-accent);
}

/* Dropdown — opens on click via .open class */
.sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--color-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
    padding: 8px 0;
}

.menu-item.has-dropdown {
    position: relative;
}

.menu-item.has-dropdown.open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 400;
    transition: all var(--transition);
}

.sub-menu .menu-item.has-dropdown > a {
    font-weight: 600;
}

.sub-menu .menu-item a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-accent);
    padding-left: 25px;
}

/* Sub-sub-menu — inline, not flyout */
.sub-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: none;
    min-width: 0;
    padding: 0;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: block;
}

.sub-menu .menu-item.has-dropdown.open > .sub-menu {
    max-height: 1000px;
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-primary-dark);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-primary-dark);
    position: absolute;
    transition: all var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    max-height: 550px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 550px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    text-align: center;
    color: var(--color-white);
}

.slide-overlay h1 {
    font-size: 42px;
    font-weight: 700;
    font-style: italic;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.slide-overlay p {
    font-size: 20px;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--color-white);
    font-size: 30px;
    padding: 15px 18px;
    cursor: pointer;
    transition: background var(--transition);
    z-index: 10;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition);
}

.dot.active {
    background: var(--color-white);
}

/* ---------- Section Welcome (Mayor) ---------- */
.section-welcome {
    padding: 60px 0;
    background: var(--color-bg);
}

.welcome-card {
    background: var(--color-white);
    border-radius: 4px;
    display: flex;
    gap: 40px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    transition: box-shadow var(--transition);
}

.welcome-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.welcome-image {
    flex-shrink: 0;
}

.welcome-image img {
    width: 150px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.welcome-text h2 {
    font-size: 26px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.welcome-text p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 10px;
}

.welcome-signature {
    margin-top: 15px;
    color: var(--color-primary) !important;
    font-size: 15px !important;
}

/* ---------- Section News ---------- */
.section-news {
    padding: 60px 0;
    background: var(--color-bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.news-card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-content h3 {
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.news-card-content p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition);
    align-self: flex-start;
}

.news-card-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card:hover .read-more {
    background: var(--color-accent);
}

/* ---------- Section Info Cards ---------- */
.section-info {
    padding: 60px 0;
    background: var(--color-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.info-card-header {
    background: var(--color-primary);
    border-top: 4px solid var(--color-accent);
    padding: 15px 25px;
}

.info-card-header h3 {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.info-card-body {
    padding: 25px;
}

.info-card-body p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 5px;
}

/* ---------- Page Content ---------- */
.page-content {
    padding: 50px 0;
    background: var(--color-bg);
    min-height: 50vh;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary-dark);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-accent);
}

.post-meta {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-text-light);
    display: flex;
    gap: 20px;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.entry-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
    font-size: 16px;
}

.entry-content h2 {
    font-size: 24px;
    color: var(--color-primary);
    margin: 35px 0 15px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin: 25px 0 12px;
    font-weight: 700;
}

.entry-content h4 {
    font-size: 17px;
    color: var(--color-primary-dark);
    margin: 20px 0 10px;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content strong, .entry-content b {
    color: var(--color-primary-dark);
}

.entry-content ul, .entry-content ol {
    margin: 15px 0 15px 25px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 8px;
    padding: 2px 0;
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.entry-content a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* PDF/document links */
.entry-content a[href$=".pdf"]::before {
    content: '\1F4C4';
    margin-right: 6px;
    font-size: 14px;
}

.entry-content a[href$=".pdf"] {
    display: inline-block;
    padding: 4px 0;
}

/* Document date labels */
.doc-date {
    font-size: 13px;
    color: var(--color-text-light);
    font-style: italic;
    font-weight: 400;
}

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

.entry-content th,
.entry-content td {
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.entry-content tr:nth-child(even) {
    background: var(--color-bg-light);
}

/* Gutenberg blocks */
.entry-content .wp-block-file {
    margin: 10px 0;
    padding: 12px 20px;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entry-content .wp-block-file a:first-child {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.entry-content .wp-block-file .wp-block-file__button {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
}

/* ---------- Conducere (Leadership) ---------- */
.conducere-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.leader-card {
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.leader-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.leader-photo {
    flex-shrink: 0;
    width: 220px;
    overflow: hidden;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leader-role {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.leader-name {
    font-size: 24px;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.leader-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leader-contact li {
    font-size: 15px;
    color: var(--color-text-light);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.leader-contact li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ---------- SPCLEP Cards Grid ---------- */
.spclep-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.spclep-card {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--color-white);
    height: 320px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.spclep-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.spclep-card-image {
    width: 100%;
    height: 100%;
}

.spclep-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spclep-card:hover .spclep-card-image img {
    transform: scale(1.05);
}

.spclep-card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

.spclep-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-white);
    margin: 0;
}

/* ---------- News List (Archive) ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-list-item {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--transition);
}

.news-list-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.news-list-link {
    display: flex;
    color: inherit;
    text-decoration: none;
}

.news-list-image {
    flex-shrink: 0;
    width: 300px;
    min-height: 200px;
    overflow: hidden;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.05);
}

.news-list-content {
    padding: 25px 30px;
    flex: 1;
}

.news-list-content h2 {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: underline;
}

.news-list-item:hover .news-list-content h2 {
    color: var(--color-accent);
}

.news-list-content p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---------- Pagination ---------- */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ---------- 404 ---------- */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-white);
    border-top: 3px solid var(--color-accent);
    padding-top: 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 25px;
}

.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    width: 50px;
    height: auto;
}

.footer-contact p {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 3px;
}

.footer-contact a {
    color: var(--color-primary-dark);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-right a {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.footer-bottom {
    background: var(--color-accent);
    padding: 10px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.footer-bottom a {
    color: var(--color-white);
    text-decoration: underline;
}

/* ---------- Contact Page ---------- */
/* Form section - full width */
.contact-form-section {
    background: var(--color-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.contact-section-title {
    font-size: 28px;
    color: var(--color-primary-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-primary);
    transition: border-color var(--transition);
    background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 30px;
    font-size: 16px;
}

/* CF7 styling */
.wpcf7-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 15px;
}

.wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--color-accent);
}

/* DATE DE CONTACT section */
.contact-data-section {
    margin-bottom: 40px;
}

.contact-data-header {
    background: var(--color-primary);
    border-top: 4px solid var(--color-accent);
    padding: 15px 25px;
    text-align: center;
    margin-bottom: 30px;
}

.contact-data-header h2 {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.contact-cards-single {
    grid-template-columns: 1fr;
    max-width: 50%;
}

/* Google Maps */
.contact-map-section {
    margin-bottom: 0;
}

.contact-map-section iframe {
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- News "See All" Button ---------- */
.news-all-link {
    text-align: left;
    margin-top: 30px;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-accent:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Quick Access Cards ---------- */
.section-quick-access {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.quick-access-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.section-quick-access .container {
    position: relative;
    z-index: 2;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition);
}

.quick-access-orange { background: rgba(193, 124, 30, 0.9); }
.quick-access-yellow { background: rgba(204, 170, 50, 0.9); }
.quick-access-red { background: rgba(180, 40, 40, 0.9); }
.quick-access-blue { background: rgba(26, 58, 107, 0.9); }

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.quick-access-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.quick-access-card span {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Gallery Carousel ---------- */
.section-gallery {
    padding: 50px 0;
    background: var(--color-bg);
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 33.333%;
    padding: 0 5px;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 58, 107, 0.8);
    border: none;
    color: var(--color-white);
    font-size: 24px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background var(--transition);
    z-index: 10;
    border-radius: 4px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--color-accent);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* ---------- Festival Gallery ---------- */
.section-festival {
    padding: 50px 0;
    background: var(--color-bg-light);
}

.festival-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.festival-item {
    overflow: hidden;
    border-radius: 4px;
}

.festival-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.festival-item:hover img {
    transform: scale(1.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .nav-menu > .menu-item > a {
        padding: 10px 8px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-height: 65px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right var(--transition);
        overflow-y: auto;
        padding: 80px 20px 30px;
        z-index: 1001;
    }

    .primary-nav.open {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu > .menu-item > a {
        padding: 12px 15px;
        font-size: 15px;
        border-bottom: 1px solid var(--color-border);
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--color-accent);
        margin-left: 15px;
        display: none;
    }

    .menu-item.has-dropdown.open > .sub-menu {
        display: block;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-access-card {
        padding: 30px 15px;
    }

    .gallery-item {
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .spclep-grid {
        grid-template-columns: 1fr;
    }

    .spclep-card {
        height: 260px;
    }

    .slide-overlay h1 {
        font-size: 24px;
    }

    .slide-overlay p {
        font-size: 14px;
    }

    .hero-slider,
    .slider-track {
        height: 300px;
        max-height: 300px;
    }

    .welcome-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }

    .welcome-text p {
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .entry-content {
        padding: 25px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item {
        min-width: 100%;
    }

    .festival-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leader-card {
        flex-direction: column;
    }

    .leader-photo {
        width: 100%;
        height: 280px;
    }

    .news-list-link {
        flex-direction: column;
    }

    .news-list-image {
        width: 100%;
        height: 200px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards-single {
        max-width: 100%;
    }

    .contact-form-section {
        padding: 25px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .page-title {
        font-size: 22px;
    }

    .welcome-text h2 {
        font-size: 20px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .festival-grid {
        grid-template-columns: 1fr;
    }
}
