/* ─── Variables ─────────────────────────────────────────── */
:root {
    --resonac-blue:  #00A5C0;
    --resonac-navy:  #0066C0;
    --text-dark:     #333333;
    --text-muted:    #526366;
    --bg-light:      #F1F1F1;
    --bg-white:      #FFFFFF;
    --bg-tint:       #F2F8F9;
    --bg-comp:       #E4EFF1;
    --border-light:  #DDDDDD;
    --border-mid:    #d1d1d1;
}

/* ─── Reset ──────────────────────────────────────────────── */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 18px;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    align-items: center;
    padding: 15px 50px;
}

.logo-wrapper {
    border-right: 1px solid var(--border-mid);
    padding-right: 20px;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    display: block;
    height: auto;
    max-height: 50px;
}

.sub-brand {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-dark);
}

.header-nav {
    background-color: #f2f2f2;
    border-top: 1px solid #e5e5e5;
    border-bottom: 4px solid var(--resonac-blue);
    padding: 12px 50px;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    max-width: 1400px;
    margin: 0 auto;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    margin-left: 35px;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--resonac-blue);
}

/* ─── Main Content ───────────────────────────────────────── */
main {
    max-width: 1600px;
    margin: 40px auto;
    padding: 40px 15px;
    background-color: var(--bg-white);
    min-height: 500px;
}

h1 {
    color: var(--resonac-blue);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
    background-color: var(--resonac-blue);
    color: var(--bg-white);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* ─── Button ─────────────────────────────────────────────── */
.btn-universal {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
}

/* ─── Carousel ───────────────────────────────────────────── */
.carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--resonac-blue);
}

/* ─── Link Cards ─────────────────────────────────────────── */
.rpma-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.rpma-link-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    aspect-ratio: 454 / 400;
}

.rpma-link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.72);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.rpma-link-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.55);
}

.rpma-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: padding 0.3s ease;
}

.rpma-link-card:hover .rpma-card-label {
    padding-bottom: 1.5rem;
}

/* ─── Article ────────────────────────────────────────────── */
.resonac-article {
    font-family: 'Noto Sans', Arial, sans-serif;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.resonac-article h1 { color: var(--resonac-blue); font-size: 32px; margin-bottom: 24px; line-height: 1.3; }
.resonac-article h2 { color: var(--text-muted); font-size: 20px; font-weight: bold; margin-top: 40px; margin-bottom: 16px; border-bottom: 1px solid var(--border-light); padding-bottom: 8px; }
.resonac-article h3 { color: var(--text-dark); font-size: 18px; font-weight: bold; margin-top: 24px; margin-bottom: 8px; }
.resonac-article p  { margin-bottom: 20px; }

/* ─── Summary Box ────────────────────────────────────────── */
.resonac-summary-box {
    background-color: var(--bg-tint);
    border-left: 4px solid var(--resonac-navy);
    padding: 24px;
    margin-bottom: 40px;
}

.resonac-summary-box p:last-child { margin-bottom: 0; }

/* ─── Table ──────────────────────────────────────────────── */
.resonac-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    font-size: 18px;
    margin: 20px 0;
}

.resonac-table caption { color: var(--text-muted); font-size: 20px; font-weight: bold; text-align: left; margin-bottom: 12px; }
.resonac-table th, .resonac-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); text-align: left; }
.resonac-table th { background-color: var(--bg-comp); color: var(--resonac-navy); border-top: 3px solid var(--resonac-blue); font-weight: bold; }
.resonac-table tbody tr:hover { background-color: var(--bg-tint); }

/* ─── Cards & Grid ───────────────────────────────────────── */
.resonac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.resonac-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 20px;
}

.resonac-card img { max-width: 100%; height: auto; display: block; margin-bottom: 16px; border: 1px solid var(--bg-comp); }
.resonac-card strong { color: var(--text-dark); }

/* ─── Note ───────────────────────────────────────────────── */
.resonac-note {
    background-color: var(--bg-comp);
    padding: 16px;
    text-align: center;
    font-weight: bold;
    color: var(--text-muted);
    margin-top: 40px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .rpma-links-section { grid-template-columns: 1fr; }
    .rpma-link-card { aspect-ratio: 16 / 9; }
}