:root {
    --primary-color: #da2527; /* Red accent color */
    --secondary-color: #6c757d; /* Grey for secondary text */
    --text-color: #212529; /* Dark text color */
    --light-bg: #f8f9fa; /* Light grey background for contrast */
    --white-color: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; color: #333; /* Slightly darker for subheads */}


a {
    color: var(--primary-color);
    text-decoration: none;
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
 .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
 }
 .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
 }

section {
    padding: 60px 0;
}

.section-bg-light {
    background-color: var(--light-bg);
}

.navbar {
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
     background-color: var(--white-color);
}
 .navbar-brand img {
    max-height: 40px;
 }
 .navbar .nav-link {
     color: var(--text-color);
     font-weight: 500;
 }
 .navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--primary-color);
 }


/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-right: 30px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
}

.hero-features {
    margin-bottom: 2rem;
}

.hero-feature-item {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.hero-feature-item i {
    color: #4caf50;
    margin-right: 10px;
    font-size: 1.2rem;
}

.hero-cta {
    margin-bottom: 2.5rem;
}

.hero-cta .btn-primary {
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(218, 37, 39, 0.3);
}

.hero-cta .btn-outline-light {
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.hero-scroll-down {
    margin-top: 30px;
    text-align: center;
}

.scroll-down-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.scroll-down-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
}

.scroll-down-link span {
    margin-right: 10px;
}

.scroll-down-link i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.hero-stat-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: rotate(10deg);
}

/* MBTI Personality Cards Carousel */
.personality-ticker-container {
    margin-top: 40px;
    overflow: hidden;
    padding: 20px 0;
}

/* Legacy styles for backward compatibility */
.personality-ticker .mbti-card {
    display: flex !important;
    background: #e8f5f0;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    height: 180px;
    border: none;
    transition: all 0.3s ease;
}

/* Using the common card hover effect defined in the Enhanced Card & Button Animations section */

.personality-ticker .mbti-card-image {
    width: 40%;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

.personality-ticker .mbti-card-image img {
    max-width: 100%;
    max-height: 100px;
    position: relative;
    z-index: 2;
}

.personality-ticker .mbti-card-image::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.personality-ticker .mbti-card-content {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.personality-ticker .mbti-card-title {
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.personality-ticker .mbti-card-text {
    font-size: 0.9rem;
    color: #546e7a;
    line-height: 1.4;
}

/* New MBTI Personality Cards Carousel */
.mbti-header__personalities--track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    animation: scroll 60s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200%); }
}

.mbti-header__personality {
    flex: 0 0 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* Using the common card hover effect with additional styles */
.mbti-header__personality:hover {
    text-decoration: none;
    color: inherit;
}

.mbti-header__personality--image {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.mbti-header__personality--image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.mbti-header__personality--content {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    min-height: 130px;
}

.mbti-header__personality--content-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.mbti-header__personality--content-short-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Slick Carousel Arrow Customization */
.slick-prev, .slick-next {
    z-index: 1;
}

.slick-prev:before, .slick-next:before {
    color: var(--primary-color); /* Make arrows red */
    font-size: 25px;
}


/* --- Milestones --- */
.milestones-section {
    text-align: center;
}
.milestones-section img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* --- What is MBTI --- */
.what-is-mbti-section {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.section-header {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    display: inline-block;
    background-color: rgba(218, 37, 39, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.section-divider span {
    display: inline-block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    border-radius: 2px;
}

.what-is-mbti-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.what-is-mbti-image img {
    max-width: 100%;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

/* Simple scale effect on hover */
.what-is-mbti-image:hover img {
    transform: scale(1.03);
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.image-badge i {
    font-size: 1rem;
}

.image-dots {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #ddd 2px, transparent 3px);
    background-size: 15px 15px;
    z-index: -1;
}

.what-is-mbti-content {
    padding-left: 20px;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.mbti-key-points {
    margin-top: 30px;
}

.key-point {
    display: flex;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Using the common card hover effect defined in the Enhanced Card & Button Animations section */

.key-point-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.key-point-icon i {
    color: white;
    font-size: 1.2rem;
}

.key-point-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.key-point-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- How MBTI Classifies --- */
.mbti-personality-classification {
    padding: 50px 0;
    background-color: var(--white-color);
}

.mbti-personality-classification__header {
    text-align: center;
    margin-bottom: 40px;
}

.mbti-personality-classification__header--title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.mbti-personality-classification__header--desc {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* Sử dụng class của Bootstrap */
.mbti-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

/* Using the common card hover effect defined in the Enhanced Card & Button Animations section */

.mbti-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.mbti-card .card-body {
    padding: 20px;
}

.mbti-card .card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mbti-card .card-title {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
    font-weight: 500;
}

.mbti-personality-classification__text-footer {
    text-align: center;
    font-size: 1rem;
    color: var(--secondary-color);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animation classes */
.mbti-delay-fade {
    opacity: 0;
}

.mbti-animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Using the unified fadeInUp animation defined later in the file */
.fadeInUp {
    animation-name: fadeInUp;
}

/* --- 16 Types Grid --- */
.mbti-types-grid {
    background-color: #fff; /* White background */
}
/* Styling for the container div that Slick will use */
.types-carousel .type-card-wrapper {
    padding: 0 10px; /* Add spacing between grid items */
}
.mbti-types-grid .type-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px; /* Keep margin if using grid layout fallback */
    background-color: #fefefe;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%; /* Make cards in a row same height */
}
/* Using the common card hover effect defined in the Enhanced Card & Button Animations section */
.mbti-types-grid .type-card img {
    max-height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}
.mbti-types-grid .type-code {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}
.mbti-types-grid .type-name {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

/* --- How to Test --- */
.how-to-test .tip-item {
    text-align: center;
}
 .how-to-test .tip-item img {
    max-height: 100px;
    margin-bottom: 15px;
 }
 .how-to-test .tip-item h4 {
     color: var(--text-color);
     font-size: 1.2rem;
 }

/* --- Why Test --- */
.benefits-carousel .benefit-card-wrapper {
     padding: 0 10px;
}
.why-test .benefit-card {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    /* margin-bottom: 20px; */ /* Removed, handled by slick padding */
    border: 1px solid #eee;
    height: 100%;
}
.why-test .benefit-card img {
     max-width: 100px; /* Adjust size */
     margin: 0 auto 15px auto;
     display: block;
}
 .why-test .benefit-card h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
 }

/* --- FAQs --- */
.faq-section .accordion-button {
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--white-color); /* White button */
    border-bottom: 1px solid #eee;
}
.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #fff; /* Keep white when open */
    box-shadow: none;
}
.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(218, 37, 39, 0.25); /* Red focus ring */
    border-color: rgba(218, 37, 39, 0.5);
}
 .faq-section .accordion-body {
    background-color: var(--white-color);
 }

/* --- Quote Section --- */
.quote-section {
     background-color: var(--primary-color);
     color: var(--white-color);
     text-align: center;
     position: relative; /* For quote icons */
     overflow: hidden; /* If using absolute positioned quote marks */
}
 /* Optional: Add quote mark graphics */
 .quote-section::before {
     content: '\f10d'; /* Font Awesome quote-left */
     font-family: 'Font Awesome 6 Free';
     font-weight: 900;
     position: absolute;
     top: 20px;
     left: 30px;
     font-size: 3rem;
     color: rgba(255, 255, 255, 0.2);
 }
  .quote-section::after {
     content: '\f10e'; /* Font Awesome quote-right */
     font-family: 'Font Awesome 6 Free';
     font-weight: 900;
     position: absolute;
     bottom: 20px;
     right: 30px;
     font-size: 3rem;
     color: rgba(255, 255, 255, 0.2);
 }
 .quote-section h2, .quote-section p {
    color: var(--white-color);
    position: relative; /* Keep text above quote marks */
    z-index: 1;
 }
 .quote-section .btn-light { /* Button on dark background */
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
 }
  .quote-section .btn-light:hover {
    background-color: #eee;
    border-color: #eee;
    color: var(--primary-color);
  }

/* --- Articles Section --- */
 .articles-carousel .article-card-wrapper {
    padding: 0 10px;
 }
.articles-section .card {
    /* margin-bottom: 20px; */ /* Removed */
    border: 1px solid #eee;
    height: 100%;
}
.articles-section .card-title {
     font-size: 1.1rem;
     color: var(--text-color);
     font-weight: 700;
     margin-top: 0.5rem;
}
 .articles-section .card-title a {
    color: var(--text-color);
 }
 .articles-section .card-title a:hover {
    color: var(--primary-color);
 }
 .articles-section .card-text {
    font-size: 0.9rem;
 }
 .articles-section .card-img-top {
     height: 180px; /* Fixed height for consistency */
     object-fit: cover;
 }


/* --- Final CTA --- */
.final-cta {
    background-color: #ffebee; /* Light reddish */
    text-align: center;
}

/* --- Footer --- */
footer {
    background-color: #f1f1f1; /* Light grey footer */
    color: var(--secondary-color);
    padding-top: 40px;
    font-size: 0.9rem;
}
 footer .footer-keywords {
     background-color: #e9e9e9;
     padding: 15px 0;
     margin-bottom: 30px;
     text-align: center;
 }
 footer .footer-keywords a {
     color: var(--secondary-color);
     margin: 0 8px;
     font-size: 0.8rem;
     white-space: nowrap;
     display: inline-block; /* Prevent excessive wrapping */
     line-height: 1.5;
 }
 footer h5 {
    color: var(--text-color); /* Darker footer headings */
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
 }
 footer a {
    color: var(--secondary-color);
 }
 footer a:hover {
    color: var(--primary-color);
 }
 footer .list-unstyled li {
    margin-bottom: 0.5rem;
 }
 footer .social-icons a {
     font-size: 1.5rem;
     margin-right: 15px;
     color: var(--secondary-color);
 }
 footer .social-icons a:hover {
     color: var(--primary-color);
 }
footer .footer-bottom {
    background-color: #e0e0e0;
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}
 footer .footer-info {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
 }
footer .footer-info h4 { color: var(--text-color); font-size: 1rem; }
footer .footer-info strong { color: var(--text-color); }

/* --- Smooth Scroll & Modern UI Enhancements --- */
html {
    scroll-behavior: smooth;
}
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    transform: translateY(100px);
}
.back-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    background: #c01f21;
    transform: translateY(-3px);
}

/* Responsive Design Enhancements */
@media (max-width: 1199.98px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    .hero-section { padding: 80px 0 60px; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .personality-ticker .card { width: 200px; }
    .mbti-header__personality { flex: 0 0 260px; }
    .mbti-header__personalities--track { animation: scroll 55s linear infinite; }
}

@media (max-width: 991.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 0.5rem;
    }
    .navbar-nav .nav-item { margin: 0.5rem 0; }
    .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    .d-flex .btn {
        width: 100%;
        margin: 0.25rem 0 !important;
    }
    section { padding: 40px 0; }
    .hero-section { padding: 70px 0 50px; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-content { padding-right: 0; margin-bottom: 30px; }
    .hero-stats { justify-content: center; }
    .personality-ticker .card { width: 180px; }
    .mbti-types-grid .type-card img { max-height: 70px; }
    .mbti-header__personality { flex: 0 0 240px; }
    .mbti-header__personalities--track { animation: scroll 50s linear infinite; }
    .mbti-header__personality--content { min-height: 140px; }

    /* What is MBTI section */
    .section-title { font-size: 2.2rem; }
    .content-title { font-size: 1.6rem; }
    .what-is-mbti-content { padding-left: 0; margin-top: 20px; }
    .key-point { padding: 15px; }
}

@media (max-width: 767.98px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .hero-section { padding: 60px 0 40px; }
    .hero-title { font-size: 2rem; text-align: center; }
    .hero-subtitle { font-size: 1.1rem; text-align: center; margin-left: auto; margin-right: auto; }
    .hero-features { max-width: 400px; margin-left: auto; margin-right: auto; }
    .hero-cta { text-align: center; }
    .hero-stats { justify-content: center; }
    .personality-ticker .card { width: 160px; }
    .mbti-classify .classify-item img { height: 100px; }
    .quote-section::before, .quote-section::after { font-size: 2rem; }
    .mbti-header__personalities--track {
        animation: scroll 40s linear infinite;
        gap: 15px;
    }
    .mbti-header__personality {
        flex: 0 0 220px;
    }
    .mbti-header__personality--image {
        height: 100px;
    }
    .mbti-header__personality--content-title {
        font-size: 1rem;
    }
    .mbti-header__personality--content-short-description {
        font-size: 0.85rem;
    }

    /* What is MBTI section */
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 0.8rem; }
    .content-title { font-size: 1.5rem; text-align: center; }
    .what-is-mbti-content .lead { text-align: center; }
    .key-point-icon { width: 40px; height: 40px; }
    .key-point-icon i { font-size: 1rem; }
    .key-point-content h4 { font-size: 1.1rem; }
    .key-point-content p { font-size: 0.9rem; }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    .hero-section { padding: 50px 0 30px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-feature-item { font-size: 0.95rem; }
    .hero-cta .btn-primary { font-size: 1rem; padding: 10px 20px; }
    .hero-stats { gap: 15px; }
    .hero-stat-number { font-size: 1.6rem; }
    .hero-stat-text { font-size: 0.8rem; }
    .personality-ticker .card { width: 140px; }
    .mbti-types-grid .type-card { padding: 10px; }
    .mbti-types-grid .type-code { font-size: 1.2rem; }
    .mbti-types-grid .type-name { font-size: 0.85rem; }
    .how-to-test .tip-item img { max-height: 80px; }
    .why-test .benefit-card img { max-width: 80px; }
    .quote-section::before, .quote-section::after { display: none; }
    .mbti-header__personalities--track {
        animation: scroll 30s linear infinite;
        gap: 10px;
    }
    .mbti-header__personality {
        flex: 0 0 85%;
        max-width: 260px;
    }
    .mbti-header__personality--image {
        height: 90px;
    }
    .mbti-header__personality--content {
        padding: 12px;
        min-height: 120px;
    }
    .mbti-header__personality--content-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .mbti-header__personality--content-short-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    /* What is MBTI section */
    .section-title { font-size: 1.8rem; }
    .section-divider span { width: 60px; }
    .content-title { font-size: 1.4rem; }
    .what-is-mbti-content .lead { font-size: 1rem; }
    .key-point { flex-direction: column; align-items: center; text-align: center; }
    .key-point-icon { margin-right: 0; margin-bottom: 15px; }
    .key-point-content h4 { margin-top: 5px; }
}

/* Enhanced Card & Button Animations */
.card, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(1px);
}

/* Pulse animation for CTA buttons */
.pulse-btn {
    position: relative;
    overflow: visible;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(218, 37, 39, 0.3);
    transition: all 0.3s ease;
}

.pulse-btn:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: inherit;
    border-radius: inherit;
    transition: opacity 0.3s, transform 0.3s;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: -1;
}

.pulse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(218, 37, 39, 0.4);
}

/* Fade-in animation for sections */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    transform: translateX(0) translateY(0);
}

/* Improved Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Enhanced Typography & Interactions */
h1, h2, h3 {
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    animation: slideDown 0.8s ease;
}
.sub-headline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    animation: slideUp 0.8s ease;
}

/* This section was removed as it duplicated the pulse animation defined earlier */

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Personality Types Section --- */
.personality-types-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.mbti-types-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mbti-types-category {
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.category-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mbti-type-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Using the common card hover effect defined in the Enhanced Card & Button Animations section */

.mbti-type-image {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.mbti-type-image img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.mbti-type-content {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mbti-type-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.mbti-type-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
}

/* Responsive styles for personality types section */
@media (max-width: 1199.98px) {
    .category-types {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {
    .category-types {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .personality-types-section {
        padding: 60px 0;
    }
    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .category-types {
        grid-template-columns: 1fr;
    }
    .category-title {
        font-size: 1.4rem;
    }
    .mbti-type-image {
        height: 100px;
    }
}
