:root {
    --primary: #5846E4;
    --secondary: #E91E63;
    --accent: #00B0FF;
    --dark: #2D3436;
    --light: #F5F6FA;
    --text: #636E72;
    --white: #FFFFFF;
    --shadow: 0 10px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure full width */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    margin-left: auto; /* Push nav to the right on desktop */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

main {
    padding: 3rem 0;
}

.hero {
    text-align: center;
    padding: 1rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.35;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text);
}

.calculator-container {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    overflow: hidden;
}

.calculator-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.calculator {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.calculator h2 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.8rem;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.4rem;
    text-align: center;
}

.age-input-container {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.age-input-container input {
    flex: 1;
    margin-bottom: 0;
}

.age-selector {
    display: flex;
    background: var(--light);
    border-radius: 10px;
    height: 100%;
    align-self: stretch;
     padding: 0.25rem
}

.age-selector button {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
}

.age-selector button.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 0px 10px var(--primary);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

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

#size-category-help {
    display: none;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.size-option {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

.size-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.size-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.size-option img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 10px;
}

.size-label {
    padding: 1rem;
    text-align: center;
    background: var(--white);
}

.size-label h3 {
    color: var(--dark);
    font-size: 1rem;
}

.size-label p {
    color: var(--text);
    font-size: 0.8rem;
}

.form-group #size-category-help {
    text-align: center;
    display: block;
    margin: 0 auto;
}

button.calculate-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

button.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.result {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(253, 121, 168, 0.1));
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    display: none;
    animation: fadeIn 0.5s ease-out;
    border-left: 4px solid var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.result p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.result .highlight {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
}

.info-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.faq-section {
    background: var(--white);
    padding: 3rem 0;
}

/* Remove main's bottom padding so the white faq-section meets the footer with no grey gap */
main:has(.faq-section:last-child) {
    padding-bottom: 0;
}

.faq-section .container {
    max-width: 800px;
}

.faq {
    margin-bottom: 3em;
}

.faq h2 {
    color: var(--dark);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-question {
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--light);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #eaebf5;
}

.faq-question.active {
    color: var(--primary);
}

.faq-question svg {
    transition: var(--transition);
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--light);
}

.faq-answer-content {
    padding: 1.5rem 0;
}

footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

.footer-links a {
    color: var(--white);
    margin: 0 1rem 1rem;
    text-decoration: none;
    transition: var(--transition);
}

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

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Lifestyle Options */
.lifestyle-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.lifestyle-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.lifestyle-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.lifestyle-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.lifestyle-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lifestyle-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

/* Weight Options */
.weight-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.weight-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.weight-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.weight-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.weight-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.weight-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-align: center;
}

/* Breed Options */
.breed-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.breed-option {
    padding: 1rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-align: center;
}

.breed-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.breed-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
    color: var(--primary);
}

.mobile-nav-container {
    display: none;
    padding: 1rem 0;
    background-color: var(--light);
}

.mobile-cat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.mobile-cat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
}

.mobile-cat-button:active {
    transform: translateY(0);
}

.cat-icon {
    font-size: 1.1rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .size-options {
        grid-template-columns: 1fr;
    }

    .size-option img {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .lifestyle-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .weight-options {
        grid-template-columns: 1fr;
    }

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

      /* Hide header completely on mobile */
    header {
        display: none;
    }

    /* Show mobile nav container */
    .mobile-nav-container {
        display: block;
        text-align: center;
        padding: 1.5rem 0 0.5rem;
    }

    .logo-wrapper {
        display: flex;
        align-items: center;
        flex-grow: 1; /* Allow logo to take available space */
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    main {
        padding: 1.5rem 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 99;
    }

    .nav-menu.active {
        display: block;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .calculator-container {
        padding: 2rem 1.5rem;
    }

    .size-options {
        grid-template-columns: 1fr 1fr;
    }

    .size-option img {
        height: 160px;
    }

    .size-label h3 {
        color: var(--dark);
        font-size: 0.9rem;
    }

    .size-label p {
        color: var(--text);
        font-size: 0.8rem;
    }
}

/* Social Sharing Styles */
.share-buttons {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(108, 92, 231, 0.3);
}

.share-buttons p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
}

.share-buttons-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--light);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn i {
  pointer-events: none;
}

.share-btn[data-platform="facebook"] { background-color: #0866FF; }
.share-btn[data-platform="whatsapp"] { background-color: #25d366; }
.share-btn[data-platform="linkedin"] { background-color: #0077b5; }
.share-btn[data-platform="reddit"] { background-color: #ff4500; }
.share-btn[data-platform="copy"] { background-color: var(--primary); }
.share-btn[data-platform="x"] {
  background-color: #000 !important;
  color: #fff !important;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.1em;
}

/* ── Science Section ───────────────────────────────────────────────────── */

.science-section {
  background: var(--white);
  padding: 4.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.science-header {
  text-align: center;
  margin-bottom: 3rem;
}

.science-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.science-header p {
  font-size: 1.05rem;
  color: var(--text);
}

.science-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.science-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.science-fact {
  background: var(--light);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(88,70,228,0.07);
  transition: var(--transition);
}

.science-fact:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(88,70,228,0.1);
}

.science-fact-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.science-fact h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.65rem;
}

.science-fact p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

.science-citation {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  max-width: 680px;
  margin: 0 auto;
  font-style: italic;
}

.science-citation a {
  color: var(--primary);
  text-decoration: none;
}

.science-citation a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .science-facts {
    grid-template-columns: 1fr;
  }
  .science-header h2 {
    font-size: 1.75rem;
  }
}

/* ── Articles Section (Homepage) ───────────────────────────────────────── */

.articles-section {
  background: var(--light);
  padding: 4.5rem 0;
}

.articles-header {
  text-align: center;
  margin-bottom: 3rem;
}

.articles-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
}

.articles-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.articles-header p {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 540px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text);
  font-size: 1rem;
  padding: 3rem;
}

.article-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid rgba(88,70,228,0.06);
  position: relative;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(88,70,228,0.13);
}

.article-card-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  flex-shrink: 0;
}

.article-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.article-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}

.article-read-time {
  font-size: 0.75rem;
  color: var(--text);
}

.article-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.article-card-summary {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.article-date {
  font-size: 0.77rem;
  color: #bbb;
}

.article-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.article-read-more::after {
  content: '';
  position: absolute;
  inset: 0;
}

.article-read-more:hover {
  color: var(--secondary);
  gap: 0.5rem;
}

/* ── Article Page ───────────────────────────────────────────────────────── */

main:has(.article-hero) {
  padding-top: 0;
}

.article-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
  color: var(--white);
}

.article-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
}

.article-read-time-badge {
  font-size: 0.85rem;
  opacity: 0.85;
  color: var(--white);
}

.article-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 1.25rem;
  -webkit-text-fill-color: var(--white);
}

.article-hero-date {
  font-size: 0.9rem;
  opacity: 0.75;
  display: block;
}

.article-page-container {
  max-width: 780px;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.article-back-link:hover {
  color: var(--secondary);
  gap: 0.6rem;
}

.article-content {
  line-height: 1.85;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(88,70,228,0.12);
}

.article-content p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
  margin: 0.75rem 0 1.3rem 1.75rem;
}

.article-content li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.article-content strong {
  color: var(--dark);
  font-weight: 700;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(88,70,228,0.07), rgba(0,176,255,0.07));
  border: 1px solid rgba(88,70,228,0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0 2rem;
}

.article-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.article-cta-box p {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(88,70,228,0.35);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.article-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(88,70,228,0.45);
  color: var(--white);
}

.article-cta-btn .cta-arrow {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.article-cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* ── Related articles ───────────────────────────────────────────────────── */

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(88,70,228,0.12);
}

.related-articles-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.related-article-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(88,70,228,0.1);
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.related-article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(88,70,228,0.12);
  transform: translateY(-2px);
}

.related-article-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.related-article-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Articles responsive ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .articles-header h2 {
    font-size: 1.75rem;
  }

  .article-hero {
    padding: 3rem 0 2.5rem;
  }
}

/* Copy message styles */
.copy-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background-color: var(--dark);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.copy-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* ── Articles page ───────────────────────────────────────────────────────────── */

/* Remove the global main padding so the hero flush-mounts under the nav */
.articles-page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 3rem 0 2.5rem;
    margin-top: -3rem;
    text-align: center;
    color: var(--white);
}
.articles-page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    margin-bottom: 0.5rem;
}
.articles-page-hero p {
    font-size: 1rem;
    opacity: 0.88;
}

.articles-page-section {
    background: var(--light);
    padding: 2.5rem 0 4rem;
}

/* ── Category filter tabs ───────────────────────────────────────────────────── */

.articles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.filter-btn {
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.articles-count {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* ── Hidden cards (filtered out) ────────────────────────────────────────────── */

.article-card.hidden {
    display: none;
}

/* ── "View all articles" button on homepage ─────────────────────────────────── */

.articles-view-all {
    text-align: center;
    margin-top: 2.5rem;
}
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 2.2rem;
    border-radius: 999px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}
.view-all-btn:hover {
    background: var(--primary);
    color: var(--white);
}
