:root {
    --bg-main: #121316;
    --bg-surface: #1A1C20;
    --bg-surface-raised: #22252B;
    --bg-surface-inset: #16181C;
    --bg-accent-tint: #2A2621;
    --text-primary: #F5F3EF;
    --text-secondary: #BDB8AE;
    --text-muted: #827F78;
    --accent-gold: #C89D5C;
    --accent-gold-hover: #DEB372;
    --accent-gold-dark: #8C6A35;
    --border-subtle: rgba(244, 239, 230, 0.08);
    --border-medium: rgba(244, 239, 230, 0.16);
    --border-accent: rgba(200, 157, 92, 0.4);
    --shadow-elevation: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 10px 24px -3px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    font-family: 'Andada Pro', serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

.text-muted {
    color: #827F78 !important;
}

.app-card-elevated {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-elevation);
    border-radius: 0.75rem;
}

.app-btn-primary {
    background-color: var(--accent-gold);
    color: #121316;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.app-btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: #121316;
}

.app-btn-secondary {
    background-color: var(--bg-surface-raised);
    color: var(--text-primary);
    border: 1px solid rgba(244, 239, 230, 0.12);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.app-btn-secondary:hover {
    background-color: #2E323A;
    color: #FFFFFF;
    border-color: rgba(244, 239, 230, 0.24);
}

.app-bracket-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.75rem;
    height: 0.75rem;
    border-left: 2px solid rgba(200, 157, 92, 0.4);
    border-top: 2px solid rgba(200, 157, 92, 0.4);
}

/* ===== header ===== */
.site-header-nav {
    font-family: 'Andada Pro', serif;
    background-color: #121316;
}

.site-header-nav .site-header-nav-mobile {
    background-color: #1A1C20;
}

.site-header-nav a {
    text-decoration: none;
}

/* ===== hero ===== */
.medias-hero {
    font-family: 'Andada Pro', Georgia, serif;
}

.medias-hero h1,
.medias-hero p,
.medias-hero span,
.medias-hero a {
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* ===== about-author ===== */
.author-profile-block {
    font-family: 'Andada Pro', serif;
}

.author-profile-block .author-material-item {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.author-profile-block h2,
.author-profile-block h3,
.author-profile-block h4 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (max-width: 767px) {
    .author-profile-block .author-profile-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* ===== courses-grid ===== */
.courses-grid-section {
    font-family: 'Andada Pro', serif;
    box-sizing: border-box;
}

.courses-grid-section .course-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 10px 24px -3px rgba(0, 0, 0, 0.6);
    min-width: 0;
    overflow-wrap: anywhere;
}

.courses-grid-section h2,
.courses-grid-section h3 {
    hyphens: auto;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .courses-grid-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== editors-choice ===== */
.editors-choice-block h2,
.editors-choice-block h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.editors-choice-block .editors-choice-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 10px 24px -3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
    .editors-choice-block .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== updated-articles ===== */
.updated-articles-section {
    font-family: 'Andada Pro', serif;
}

.updated-articles-section .updated-articles-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 10px 24px -3px rgba(0, 0, 0, 0.6);
}

.updated-articles-section h2,
.updated-articles-section h3,
.updated-articles-section h4 {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .updated-articles-section .updated-articles-card {
        width: 100%;
    }
}

/* ===== newsletter ===== */
.medias-newsletter-section .medias-newsletter-input::placeholder {
    color: #827F78;
    opacity: 1;
}

.medias-newsletter-section .medias-newsletter-input:focus {
    box-shadow: 0 0 0 1px #C89D5C;
}

.medias-newsletter-section .medias-newsletter-checkbox {
    accent-color: #C89D5C;
    cursor: pointer;
}

.medias-newsletter-section .medias-newsletter-btn:hover {
    background-color: #DEB372;
    color: #121316;
}

/* ===== reviews-grid ===== */
.reviews-grid-section {
    font-family: 'Andada Pro', serif;
}

.reviews-grid-section .reviews-grid-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 10px 24px -3px rgba(0, 0, 0, 0.6);
    overflow-wrap: anywhere;
}

.reviews-grid-section .reviews-card-link {
    text-decoration: none;
}

@media (max-width: 767px) {
    .reviews-grid-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== footer ===== */
.medias-site-footer {
    font-family: 'Andada Pro', serif;
}

.medias-site-footer .medias-footer-link {
    overflow-wrap: anywhere;
}

.medias-site-footer .medias-footer-brand img {
    max-width: 48px;
    max-height: 48px;
}

@media (max-width: 767px) {
    .medias-site-footer .medias-footer-wa-btn {
        width: 100%;
        justify-content: center;
    }
}

body {
    font-family: 'Andada Pro', serif;
    background-color: #121316;
    color: #F5F3EF;
}

.site-header-nav {
    font-family: 'Andada Pro', serif;
    background-color: #121316;
}

.site-header-nav .site-header-nav-mobile {
    background-color: #1A1C20;
}

.site-header-nav a {
    text-decoration: none;
}

.medias-category-hero h1,
.medias-category-hero p,
.medias-listing-section h2,
.medias-listing-section h3,
.medias-listing-section p,
.medias-highlights-section h3,
.medias-highlights-section p,
.medias-faq-section h2,
.medias-faq-section h3,
.medias-faq-section p,
.medias-cta-banner h2,
.medias-cta-banner p {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.medias-listing-section input::placeholder {
    color: #827F78;
    opacity: 1;
}

.medias-site-footer {
    font-family: 'Andada Pro', serif;
}

.medias-site-footer .medias-footer-link {
    overflow-wrap: anywhere;
}

.medias-site-footer .medias-footer-brand img {
    max-width: 48px;
    max-height: 48px;
}

@media (max-width: 767px) {
    .medias-site-footer .medias-footer-wa-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===== PAGE: about ===== */
.about-section {
  font-family: 'Andada Pro', serif;
  overflow-wrap: anywhere;
}

.about-section h2, 
.about-section h3 {
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .about-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ===== PAGE: contact ===== */
.contact-section input::placeholder, .contact-section textarea::placeholder { color: #827F78; opacity: 1; }
.contact-section select { color: #F5F3EF; background-color: #16181C; }
.contact-section h2, .contact-section h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 767px) { .contact-section .grid { grid-template-columns: 1fr; } }

/* ===== PAGE: privacy ===== */
.privacy-section {
  font-family: 'Andada Pro', serif;
  overflow-wrap: anywhere;
}
.privacy-section .privacy-nav-list a.is-active {
  background-color: #22252B;
  color: #C89D5C;
  font-weight: 600;
  border-left: 2px solid #C89D5C;
}
.privacy-section .privacy-block {
  scroll-margin-top: 2rem;
}
@media (max-width: 767px) {
  .privacy-section .privacy-block {
    padding: 1.25rem;
  }
}

/* ===== PAGE: terms ===== */
.terms-content-section {
  font-family: 'Andada Pro', serif;
  overflow-wrap: anywhere;
}
.terms-content-section a {
  text-decoration: none;
}
.terms-content-section .js-nav-item.active {
  background-color: #22252B;
  color: #DEB372;
  border-left: 2px solid #C89D5C;
}
.terms-content-section input::placeholder {
  color: #827F78;
  opacity: 1;
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-page {
  font-family: 'Andada Pro', Georgia, serif;
}
.disclaimer-page article p {
  overflow-wrap: anywhere;
}
.disclaimer-page a {
  transition: color 0.15s ease;
}
@media (max-width: 767px) {
  .disclaimer-page h2 {
    font-size: 16px;
    line-height: 1.3;
  }
  .disclaimer-page h3 {
    font-size: 14px;
    line-height: 1.3;
  }
}

/* ===== PAGE: cookies ===== */
.cookies-policy-section table td,
.cookies-policy-section table th {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .cookies-policy-section table thead {
    display: none;
  }
  .cookies-policy-section table,
  .cookies-policy-section table tbody,
  .cookies-policy-section table tr,
  .cookies-policy-section table td {
    display: block;
    width: 100%;
  }
  .cookies-policy-section table tr {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  }
  .cookies-policy-section table td {
    padding: 0.375rem 0.5rem;
  }
  .cookies-policy-section table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #C89D5C;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
  }
}

.media-comment-card {
    background-color: #1A1C20;
    border: 1px solid rgba(244, 239, 230, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 10px 24px -3px rgba(0, 0, 0, 0.6);
}

.media-comment-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
    background-color: #16181C;
}

[data-comment-author] {
    color: #F5F3EF;
    letter-spacing: -0.01em;
}

[data-comment-like]:hover {
    border-color: rgba(200, 157, 92, 0.4);
    background-color: #2E323A;
}

[data-comment-reply]:hover {
    background-color: #383129;
}

.media-reply-card {
    background-color: #22252B;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
}

.media-reply-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
    background-color: #16181C;
}

[data-comment-author] {
    color: #F5F3EF;
    letter-spacing: -0.01em;
}

[data-comment-like]:hover {
    border-color: rgba(200, 157, 92, 0.3);
    background-color: #2A2621;
}


/* ===== PAGE TEMPLATE: courses ===== */
.site-header-nav {
    font-family: 'Andada Pro', serif;
    background-color: #121316;
}

.site-header-nav .site-header-nav-mobile {
    background-color: #1A1C20;
}

.site-header-nav a {
    text-decoration: none;
}

.medias-hero {
    font-family: 'Andada Pro', Georgia, serif;
}

.medias-hero h1,
.medias-hero p,
.medias-hero span,
.medias-hero a {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.medias-site-footer {
    font-family: 'Andada Pro', serif;
}

.medias-site-footer .medias-footer-link {
    overflow-wrap: anywhere;
}

.medias-site-footer .medias-footer-brand img {
    max-width: 48px;
    max-height: 48px;
}

@media (max-width: 767px) {
    .medias-site-footer .medias-footer-wa-btn {
        width: 100%;
        justify-content: center;
    }
}

.media-comment-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.media-reply-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* ===== PAGE TEMPLATE: blog ===== */
.site-header-nav {
    font-family: 'Andada Pro', serif;
    background-color: #121316;
}

.site-header-nav .site-header-nav-mobile {
    background-color: #1A1C20;
}

.site-header-nav a {
    text-decoration: none;
}

.medias-hero {
    font-family: 'Andada Pro', Georgia, serif;
}

.medias-hero h1,
.medias-hero p,
.medias-hero span,
.medias-hero a {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.medias-site-footer {
    font-family: 'Andada Pro', serif;
}

.medias-site-footer .medias-footer-link {
    overflow-wrap: anywhere;
}

.medias-site-footer .medias-footer-brand img {
    max-width: 48px;
    max-height: 48px;
}

@media (max-width: 767px) {
    .medias-site-footer .medias-footer-wa-btn {
        width: 100%;
        justify-content: center;
    }
}

.media-comment-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.media-reply-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* ===== PAGE TEMPLATE: reviews ===== */
.site-header-nav {
    font-family: 'Andada Pro', serif;
    background-color: #121316;
}

.site-header-nav .site-header-nav-mobile {
    background-color: #1A1C20;
}

.site-header-nav a {
    text-decoration: none;
}

.medias-hero {
    font-family: 'Andada Pro', Georgia, serif;
}

.medias-hero h1,
.medias-hero p,
.medias-hero span,
.medias-hero a {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.medias-site-footer {
    font-family: 'Andada Pro', serif;
}

.medias-site-footer .medias-footer-link {
    overflow-wrap: anywhere;
}

.medias-site-footer .medias-footer-brand img {
    max-width: 48px;
    max-height: 48px;
}

@media (max-width: 767px) {
    .medias-site-footer .medias-footer-wa-btn {
        width: 100%;
        justify-content: center;
    }
}

.media-comment-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.media-reply-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}
