/* TouchStone CPA Custom Styles with Modern Animations */

:root {
    --primary-color: #5B73E8;
    --secondary-color: #FFA500;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-dark: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* Global Animations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* room for the sticky navbar on anchor jumps */
}

/* A metric-matched stand-in for Inter. Until the web font arrives, text is
   set in Arial scaled to Inter's proportions, so the swap changes glyph
   shapes but not line lengths or heights - which is what was shifting the
   hero text by ~0.12 CLS on slow connections. Values from Inter's metrics. */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107.12%;
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
}

body {
    font-family: 'Inter', 'Inter Fallback', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }

    70% {
        transform: translate3d(0, -4px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Scroll Reveal Animation Classes
   The hidden starting state applies only while the reveal script is running
   (html.js-reveal is set by an inline script before first paint, so there is
   no flash), and never to the hero: the first screen is the LCP element and
   must paint the moment the CSS arrives, not after JavaScript has run. Only
   opacity and transform are transitioned - "transition: all" made every
   section a style-recalc hotspot. */
html.js-reveal .animate-on-scroll:not(.hero-section),
html.js-reveal section:not(.hero-section) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js-reveal .animate-on-scroll.animated,
html.js-reveal section.animated {
    opacity: 1;
    transform: none;
}

.slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-right {
    animation: slideInRight 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Logo Styles - Responsive */
.navbar-logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .navbar-logo {
        height: 45px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 40px;
        max-width: 180px;
    }
}

/* Logo hover effect */
.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Enhanced Navbar with Animations */
.navbar {
    padding: 0.8rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1030;
    /* Stays pinned to the top while the page scrolls. sticky rather than
       fixed: the nav keeps its place in the flow, so nothing has to reserve
       space for it and its height can change (.scrolled tightens the
       padding) without the content underneath jumping. The translucent
       background and blur above are what make content scrolling behind it
       read well. */
    position: sticky;
    top: 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 1.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* Enhanced Navigation Links */
.navbar-nav .nav-link {
    position: relative;
    transition: var(--transition);
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    margin: 0 0.1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    /* A label must never break onto a second line. If the row is too tight
       for every label, the navbar collapses to the toggler (expand-xl)
       rather than letting one item grow taller than the rest. */
    white-space: nowrap;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.1;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: rgba(91, 115, 232, 0.1);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Enhanced Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: var(--white);
    z-index: 1050 !important;
    min-width: 200px;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(91, 115, 232, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    transform: none;
}

/* Dropdown Toggle and Position Fixes */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Ensure dropdown shows properly */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    margin-top: 0.125rem;
    min-width: 200px;
}

/* Override Bootstrap default hidden state */
.dropdown-menu:not(.show) {
    display: none !important;
}

.dropdown-menu.show {
    display: block !important;
}

/* Mobile dropdown adjustments */
@media (max-width: 1199.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: var(--white);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu:not(.show) {
        display: none !important;
    }
}

/* Navbar Toggler Animation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Collapsed navbar (below the xl breakpoint the menu is behind the toggler) */
@media (max-width: 1199.98px) {
    .navbar-brand {
        margin-right: 1rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar-nav .nav-link.active::after {
        bottom: 5px;
        left: 0;
        transform: none;
        width: 100%;
        height: 2px;
    }
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.2) 0%, transparent 50%);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

.hero-section .display-4 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .lead {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-section img {
    animation: fadeInUp 1s ease-out 0.8s both;
    transition: var(--transition);
}

.hero-section img:hover {
    transform: scale(1.02) rotate(1deg);
}

/* Teacher Opportunity Highlight Strip */
.teacher-opportunity-banner {
    background: linear-gradient(120deg, #FFFBF6 0%, #FFF6EC 45%, #F4F6FF 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(91, 115, 232, 0.12);
    border-bottom: 1px solid rgba(91, 115, 232, 0.12);
}

.teacher-opportunity-banner::before {
    content: '\f51c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    bottom: -34px;
    font-size: 10rem;
    color: rgba(255, 140, 0, 0.07);
    pointer-events: none;
    line-height: 1;
}

.teacher-opportunity-banner .container {
    position: relative;
    z-index: 2;
}

.to-new-badge {
    background: linear-gradient(45deg, #FF8C00, var(--secondary-color));
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.9rem;
    border-radius: 50rem;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.to-title {
    color: var(--text-dark);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.to-title i {
    color: #FF8C00;
}

.to-subtitle {
    color: var(--text-light);
    font-size: 0.96rem;
    max-width: 640px;
}

.to-subtitle strong {
    color: var(--primary-color);
    font-weight: 700;
}

.to-cta-btn {
    background: linear-gradient(45deg, var(--primary-color), #4A5EE0);
    color: #fff !important;
    font-weight: 700;
    padding: 0.85rem 1.9rem;
    box-shadow: 0 6px 18px rgba(91, 115, 232, 0.3);
    white-space: nowrap;
}

.to-cta-btn:hover {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(91, 115, 232, 0.42);
}

@media (max-width: 991.98px) {
    .to-title {
        font-size: 1.25rem;
    }

    .teacher-opportunity-banner {
        text-align: center;
    }

    .teacher-opportunity-banner .d-flex {
        justify-content: center;
    }

    .teacher-opportunity-banner .to-cta-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* BPU Foundation Modern Mission Section */
.bpu-mission-section {
    background: linear-gradient(to bottom, #ffffff, #f0f4ff);
}

.bpu-mission-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
}

.bpu-mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

.bpu-logo-modern {
    max-height: 240px;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.bpu-mission-card:hover .bpu-logo-modern {
    transform: scale(1.05);
}

.feature-icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(91, 115, 232, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.bpu-mission-card:hover .feature-icon-circle {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.bg-primary-subtle {
    background-color: rgba(91, 115, 232, 0.1) !important;
}

.bpu-mission-quote {
    position: relative;
    font-size: 1.05rem;
}

.bpu-mission-quote::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.1;
}

@media (max-width: 991.98px) {
    .bpu-logo-reveal {
        border-right: none !important;
        border-bottom: 1px solid #eee;
    }

    .bpu-logo-modern {
        max-height: 180px;
    }

    .bpu-mission-content {
        text-align: center;
    }

    .bpu-mission-content .d-flex {
        justify-content: center;
        flex-direction: column;
    }

    .bpu-mission-content .mission-feature {
        justify-content: center;
    }

    .bpu-mission-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Stats Section */
.stats-section {
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23333" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

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

.stats-section .display-4 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Card Animations */
.card-hover {
    transition: var(--transition);
    border: none;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover .card-body {
    transition: var(--transition);
}

.card-hover:hover .card-body {
    transform: translateY(-5px);
}

.card-hover img {
    transition: var(--transition);
}

.card-hover:hover img {
    transform: scale(1.1) rotate(10deg);
}

/* Card stagger animation for groups */
.card-hover:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.card-hover:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.card-hover:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* =========================================================================
   Footer
   Dark slate, the same #1e293b the admin sidebar uses, so the public site
   and the admin area read as one product.
   ========================================================================= */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-main {
    padding: 4rem 0 3rem;
}

/* Brand column ------------------------------------------------------------ */
.site-footer-brand {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    line-height: 0;
    margin-bottom: 1.25rem;
}

.site-footer-brand img {
    height: 40px;
    width: auto;
    display: block;
}

.site-footer-about {
    color: #94a3b8;
    line-height: 1.7;
    max-width: 24rem;
    margin-bottom: 1.5rem;
}

.site-footer-social {
    display: flex;
    gap: 0.6rem;
}

.site-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.95rem;
}

.site-footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Link columns ------------------------------------------------------------- */
.site-footer-heading {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.site-footer-links,
.site-footer-contact,
.site-footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer-links li {
    margin-bottom: 0.65rem;
}

.site-footer-links a {
    color: #94a3b8;
    display: inline-block;
}

.site-footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Contact column ----------------------------------------------------------- */
.site-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    color: #94a3b8;
    line-height: 1.55;
}

.site-footer-contact i {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 115, 232, 0.16);
    color: #a5b4fc;
    font-size: 0.85rem;
    margin-top: -0.1rem;
}

.site-footer-contact a {
    color: #cbd5e1;
    word-break: break-word;
}

/* Bottom bar --------------------------------------------------------------- */
.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.site-footer-credit {
    display: inline-block;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer-credit a {
    color: #a5b4fc;
}

.site-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.site-footer-legal a {
    color: #94a3b8;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .site-footer-main {
        padding: 3rem 0 2rem;
    }

    .site-footer-bottom {
        text-align: center;
    }

    .site-footer-credit {
        display: block;
        margin: 0.35rem 0 0;
        padding: 0;
        border: 0;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #FFF;
    text-decoration: none;
    animation: bounce 1s infinite;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(91, 115, 232, 0.4);
    background: linear-gradient(45deg, #4A5EE0, var(--primary-color));
}

/* Enhanced Buttons */
.btn {
    transition: var(--transition);
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4A5EE0);
    box-shadow: 0 4px 15px rgba(91, 115, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 115, 232, 0.4);
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: #333 !important;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #333 !important;
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Enhanced Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(91, 115, 232, 0.25);
    background-color: var(--white);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Enhanced Form Animations */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 0.65;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Blockquote */
.blockquote {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(91, 115, 232, 0.05), rgba(255, 165, 0, 0.05));
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.blockquote-footer {
    color: var(--text-light);
    font-style: normal;
}

/* Section Animations: handled together with .animate-on-scroll above. */

/* Responsive Image Enhancements */
img {
    transition: var(--transition);
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Progress Bars (if needed) */
.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: progressFill 2s ease-in-out;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    border-left: 4px solid var(--info-color);
}

/* Homepage Specific Enhancements */
.hero-image-container {
    position: relative;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.floating-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, var(--secondary-color), var(--warning-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: bounce 2s infinite;
    z-index: 3;
}

.floating-badge i {
    margin-right: 0.5rem;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 115, 232, 0.4);
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title .highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

/* Image Containers */
.image-container {
    position: relative;
}

.floating-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Stats Section */
.stat-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.stat-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.counter {
    transition: var(--transition);
}

/* Quote Section Enhancement */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* CPA Overview Cards */
.row.g-4 .col-md-4:nth-child(1) .card-hover {
    animation-delay: 0.1s;
}

.row.g-4 .col-md-4:nth-child(2) .card-hover {
    animation-delay: 0.2s;
}

.row.g-4 .col-md-4:nth-child(3) .card-hover {
    animation-delay: 0.3s;
}

.row.mt-2 .col-md-4:nth-child(1) .card-hover {
    animation-delay: 0.4s;
}

.row.mt-2 .col-md-4:nth-child(2) .card-hover {
    animation-delay: 0.5s;
}

.row.mt-2 .col-md-4:nth-child(3) .card-hover {
    animation-delay: 0.6s;
}

/* Tools and Techniques Section */
.tools-section .tool-item {
    transition: var(--transition);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.tools-section .tool-item:hover {
    background: rgba(91, 115, 232, 0.05);
    transform: translateX(10px);
}

.tools-section .fas {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.tools-section h5:hover .fas {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-lg);
}

.tools-section h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.tools-section .text-muted {
    line-height: 1.6;
}

/* Newsletter Section Enhancement */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsletter-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23newsletter-pattern)"/></svg>');
}

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

.newsletter-content {
    animation: fadeInUp 1s ease-out;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.newsletter-form .form-control:focus {
    background: var(--white);
    box-shadow: none;
    border-color: transparent;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    font-weight: 600;
}

.newsletter-form .input-group {
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .floating-badge {
        position: static;
        display: inline-block;
        margin-top: 1rem;
    }

    .hero-buttons {
        text-align: center;
    }

    .stat-card {
        margin-bottom: 2rem;
    }

    .feature-item:hover {
        transform: translateX(5px);
    }
}

@media (max-width: 576px) {
    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Authentication Pages */
.auth-left-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.2) 0%, transparent 50%);
    animation: heroFloat 6s ease-in-out infinite;
}

.auth-left-panel>div {
    position: relative;
    z-index: 2;
}

.auth-logo {
    animation: fadeInUp 1s ease-out 0.2s both;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.auth-title {
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 700;
}

.auth-subtitle {
    animation: fadeInUp 1s ease-out 0.6s both;
    opacity: 0.9;
}

.auth-features {
    animation: fadeInUp 1s ease-out 0.8s both;
    margin-top: 2rem;
}

.feature-point {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: var(--transition);
}

.feature-point:hover {
    opacity: 1;
    transform: translateX(10px);
}

.feature-point i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.auth-right-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.auth-form-container {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.auth-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.auth-form-title {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.auth-card .form-floating {
    margin-bottom: 1.5rem;
}

.auth-card .form-floating .form-control {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid #e9ecef;
    padding: 1rem;
    height: auto;
}

.auth-card .form-floating .form-control:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(91, 115, 232, 0.25);
    transform: translateY(-2px);
}

.auth-card .form-floating label {
    color: var(--text-light);
    font-weight: 500;
}

.auth-card .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4A5EE0);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-card .btn-primary:hover::before {
    left: 100%;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 115, 232, 0.4);
}

/* Auth form animations */
.auth-card .form-floating:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.auth-card .form-floating:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auth-card .btn {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.auth-card .text-center a {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Remember me checkbox */
.auth-card .form-check {
    margin: 1.5rem 0;
}

.auth-card .form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 4px;
}

.auth-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-card .form-check-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Auth links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Mobile responsive auth */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
    }

    .auth-card .card-body {
        padding: 2rem 1.5rem !important;
    }

    .feature-point:hover {
        transform: translateX(5px);
    }
}

.pricing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    color: white;
    margin-bottom: 60px;
}

.pricing-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
}

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-type-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-body {
    padding: 40px 30px;
}

.price-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-period {
    display: block;
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 10px;
}

.student-range {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.plan-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 25px;
    text-align: center;
    min-height: 45px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.features-list li {
    padding: 12px 0;
    color: #495057;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.features-list li i {
    color: #28a745;
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 2px;
}

.cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #2d3436;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 50px;
}

.plan-section {
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
        margin-bottom: 30px;
    }

    .pricing-card.featured:hover {
        transform: translateY(-15px);
    }

    .price {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}


/* Global Style Ends Here */

/* =========================================
   JAPANESE PHILOSOPHY — HOME PAGE SECTION
   ========================================= */

.jp-philosophy-section {
    overflow: hidden;
}

.jp-philosophy-section>.row {
    min-height: 520px;
}

.jp-philosophy-section>.row>[class*="col-"] {
    display: flex;
}

/* Dark Left Panel */
.jp-dark-panel {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 3.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.jp-top-kanji {
    text-align: center;
    margin-bottom: 2rem;
}

.jp-kanji-frame {
    font-family: 'Noto Sans JP', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #c4a24e;
    display: inline-block;
    border: 2px solid rgba(196, 162, 78, 0.3);
    padding: 0.2rem 0.6rem;
    line-height: 1;
}

.jp-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: #c4a24e;
    margin-bottom: 1rem;
    font-weight: 500;
}

.jp-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #f5f0e8;
}

.jp-title em {
    font-style: italic;
    color: #c4a24e;
}

.jp-title-line {
    width: 40px;
    height: 3px;
    background: #4a6fa5;
    margin-bottom: 1.5rem;
}

.jp-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #a0a0a0;
    margin-bottom: 2rem;
    max-width: 380px;
}

.jp-cta-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    padding: 0.75rem 1.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.jp-cta-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

/* Light Right Panel */
.jp-light-panel {
    background: #f5f0e8;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.jp-bg-kanji {
    position: absolute;
    font-family: 'Noto Sans JP', serif;
    font-size: 12rem;
    color: rgba(0, 0, 0, 0.03);
    font-weight: 300;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

/* Ikigai Venn Diagram */
.jp-ikigai-diagram {
    position: relative;
    width: 380px;
    height: 380px;
    z-index: 1;
}

.jp-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    transition: transform 0.4s ease;
}

.jp-circle:hover {
    transform: scale(1.05);
}

.jp-circle span {
    position: relative;
    z-index: 2;
}

.jp-circle-love {
    top: 10px;
    left: 40px;
    background: rgba(218, 165, 150, 0.45);
    color: #8b4a3a;
}

.jp-circle-need {
    top: 10px;
    right: 40px;
    background: rgba(200, 180, 180, 0.4);
    color: #6b5050;
}

.jp-circle-good {
    bottom: 10px;
    left: 40px;
    background: rgba(180, 200, 180, 0.4);
    color: #4a6b4a;
}

.jp-circle-paid {
    bottom: 10px;
    right: 40px;
    background: rgba(200, 195, 185, 0.4);
    color: #6b6050;
}

.jp-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.jp-center-kanji {
    font-family: 'Noto Sans JP', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #3a3a3a;
    line-height: 1;
}

.jp-center-text {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #555;
}

/* Responsive */
@media (max-width: 991px) {
    .jp-dark-panel {
        padding: 3rem 2rem;
        min-height: auto;
        text-align: center;
        align-items: center;
    }

    .jp-description {
        max-width: 100%;
    }

    .jp-light-panel {
        min-height: 400px;
        padding: 2rem;
    }

    .jp-ikigai-diagram {
        width: 320px;
        height: 320px;
    }

    .jp-circle {
        width: 170px;
        height: 170px;
    }

    .jp-title {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .jp-ikigai-diagram {
        width: 280px;
        height: 280px;
    }

    .jp-circle {
        width: 150px;
        height: 150px;
        font-size: 0.55rem;
    }

    .jp-circle-love {
        top: 5px;
        left: 20px;
    }

    .jp-circle-need {
        top: 5px;
        right: 20px;
    }

    .jp-circle-good {
        bottom: 5px;
        left: 20px;
    }

    .jp-circle-paid {
        bottom: 5px;
        right: 20px;
    }

    .jp-title {
        font-size: 1.75rem;
    }

    .jp-bg-kanji {
        font-size: 7rem;
    }
}

/* =========================================
   WHITE PAPER / JAPANESE PHILOSOPHY PAGE
   ========================================= */

/* Hero Section */
.wp-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.wp-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(91, 115, 232, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(232, 91, 115, 0.08) 0%, transparent 50%);
    animation: heroFloat 8s ease-in-out infinite;
}

.wp-kanji-symbol {
    font-family: 'Noto Sans JP', serif;
    font-size: 5rem;
    font-weight: 300;
    opacity: 0.4;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-hero-label {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1rem;
    font-weight: 600;
}

.wp-hero-meta {
    margin-top: 2rem;
}

.wp-kanji-footer {
    font-family: 'Noto Sans JP', serif;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    opacity: 0.5;
}

/* Table of Contents */
.wp-toc-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.wp-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-toc-list li {
    margin-bottom: 0.6rem;
}

.wp-toc-list li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding-left: 0;
    display: inline-block;
}

.wp-toc-list li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* Section Headers */
.wp-section-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.wp-section-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    display: block;
    margin-bottom: -0.5rem;
}

.wp-section-title {
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.wp-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Section Dividers */
.wp-section-divider {
    text-align: center;
    padding: 1rem 0;
    background: linear-gradient(90deg, transparent, rgba(91, 115, 232, 0.08), transparent);
}

.wp-section-divider span {
    font-family: 'Noto Sans JP', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    opacity: 0.25;
    display: inline-block;
    animation: pulse 3s infinite;
}

/* Callout Card */
.wp-callout-card {
    background: linear-gradient(135deg, rgba(91, 115, 232, 0.08), rgba(255, 165, 0, 0.06));
    border: 1px solid rgba(91, 115, 232, 0.15);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.wp-callout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.wp-callout-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Stat Cards */
.wp-stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
}

.wp-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.wp-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.wp-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.wp-stat-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0 0.25rem;
}

/* Insight Box */
.wp-insight-box {
    background: linear-gradient(135deg, rgba(91, 115, 232, 0.06), rgba(91, 115, 232, 0.02));
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.wp-insight-box-purple {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.06), rgba(111, 66, 193, 0.02));
    border-left-color: #6f42c1;
}

.wp-insight-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-insight-box-purple .wp-insight-label {
    color: #6f42c1;
}

/* Tables */
.wp-table {
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.wp-table thead th {
    background: linear-gradient(135deg, var(--primary-color), #4A5EE0);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wp-table tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--text-light);
}

.wp-table tbody tr:hover {
    background-color: rgba(91, 115, 232, 0.03);
}

.wp-table tbody tr:last-child td {
    border-bottom: none;
}

/* Kaizen Items */
.wp-kaizen-item {
    background: white;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

/* Module Cards */
.wp-module-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.wp-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.wp-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.wp-module-card:hover::before {
    transform: scaleX(1);
}

.wp-module-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.wp-module-kanji {
    font-family: 'Noto Sans JP', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.wp-module-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Journey Table */
.wp-grade-badge {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Hansei Cards */
.wp-hansei-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.wp-hansei-card:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-4px);
}

.wp-hansei-num {
    width: 36px;
    height: 36px;
    background: rgba(91, 115, 232, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Report Cards */
.wp-report-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.wp-report-includes {
    border-top: 3px solid var(--success-color);
}

.wp-report-excludes {
    border-top: 3px solid var(--danger-color);
}

.wp-report-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-report-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1rem;
}

.wp-report-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.wp-report-list-muted li::before {
    content: '✕';
    color: var(--danger-color);
}

.wp-report-list li:last-child {
    border-bottom: none;
}

/* Testimonial Mini */
.wp-testimonial-mini {
    background: linear-gradient(135deg, rgba(91, 115, 232, 0.04), rgba(255, 165, 0, 0.04));
    border-radius: 12px;
    padding: 1.5rem;
}

/* Resonance Cards */
.wp-resonance-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.wp-resonance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.wp-resonance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(91, 115, 232, 0.1), rgba(255, 165, 0, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 1.25rem;
    transition: all 0.4s ease;
}

.wp-resonance-card:hover .wp-resonance-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotate(360deg);
}

/* Pricing Cards */
.wp-pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wp-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.wp-pricing-featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(91, 115, 232, 0.15);
}

.wp-pricing-featured::before {
    content: '★ POPULAR';
    position: absolute;
    top: 16px;
    right: -28px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
}

.wp-pricing-badge {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.wp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.wp-pricing-features li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.wp-pricing-features li:last-child {
    border-bottom: none;
}

.wp-pricing-grade {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(91, 115, 232, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* Outcome Items */
.wp-outcome-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.wp-outcome-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Testimonial Card */
.wp-testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.wp-testimonial-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

/* Ikigai Closing */
.wp-ikigai-closing {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.wp-ikigai-closing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(91, 115, 232, 0.15) 0%, transparent 60%);
    animation: heroFloat 6s ease-in-out infinite;
}

.wp-closing-kanji {
    font-family: 'Noto Sans JP', serif;
    font-size: 4rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-closing-label {
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin-bottom: 0.25rem;
}

.wp-closing-meaning {
    font-size: 0.95rem;
    opacity: 0.7;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Glossary Table */
.wp-glossary-kanji {
    font-family: 'Noto Sans JP', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* CTA Section */
.wp-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 50%, #0f3460 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.wp-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 165, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Resonance Cards — Section 6 Horizontal Layout */
.wp-resonance-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wp-resonance-horizontal {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wp-resonance-horizontal:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.wp-resonance-sidebar {
    flex: 0 0 100px;
    background: linear-gradient(180deg, var(--primary-color) 0%, #4A5EE0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    min-height: 100%;
}

.wp-resonance-sidebar-teal {
    background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
}

.wp-resonance-sidebar-amber {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
}

.wp-resonance-sidebar-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
}

.wp-resonance-sidebar-kanji {
    font-family: 'Noto Sans JP', serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1;
}

.wp-resonance-body {
    flex: 1;
    padding: 2rem 2.5rem;
}

.wp-resonance-body h4 {
    color: var(--dark-color);
}

.wp-resonance-body p {
    font-size: 0.95rem;
    line-height: 1.75;
}

/* White Paper Responsive */
@media (max-width: 768px) {
    .wp-resonance-horizontal {
        flex-direction: column;
    }

    .wp-resonance-sidebar {
        flex: 0 0 auto;
        flex-direction: row;
        padding: 1rem 1.5rem;
        min-height: auto;
    }

    .wp-resonance-sidebar-kanji {
        font-size: 1.5rem;
    }

    .wp-resonance-body {
        padding: 1.5rem;
    }


    .wp-hero-section {
        padding: 50px 0 40px;
    }

    .wp-hero-section .display-3 {
        font-size: 2rem;
    }

    .wp-kanji-symbol {
        font-size: 3rem;
    }

    .wp-section-number {
        font-size: 2rem;
    }

    .wp-stat-value {
        font-size: 2rem;
    }

    .wp-module-kanji {
        font-size: 2rem;
    }

    .wp-pricing-featured::before {
        font-size: 0.55rem;
        padding: 0.2rem 2rem;
    }

    .wp-closing-kanji {
        font-size: 3rem;
    }

    .wp-cta-section {
        padding: 50px 0;
    }

    .wp-cta-section .display-5 {
        font-size: 1.5rem;
    }
}


/* =========================================================================
   Blog listing (/blogs)
   ========================================================================= */

/* Header ------------------------------------------------------------------ */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    color: #fff;
    padding: 2.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Soft highlight in the corner, same family as the homepage hero. */
.blog-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -40%;
    width: 45%;
    padding-top: 45%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-crumb .breadcrumb-item,
.blog-hero-crumb .breadcrumb-item a,
.blog-hero-crumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    text-decoration: none;
}

.blog-hero-crumb .breadcrumb-item a:hover { color: #fff; }
.blog-hero-crumb .breadcrumb-item.active  { color: #fff; }

.blog-hero-kicker {
    display: inline-block;
    margin: 1.25rem 0 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-hero-title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.blog-hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 44rem;
    margin-bottom: 0;
}

/* Shared pieces ------------------------------------------------------------ */
.blog-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(91, 115, 232, 0.10);
    color: var(--primary-color);
}

.blog-pill-accent {
    background: var(--secondary-color);
    color: #1f1f1f;
}

.blog-pill-muted {
    background: var(--light-bg);
    color: var(--text-light);
}

.blog-meta,
.blog-card-foot,
.blog-card-topline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.blog-card-topline {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.blog-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.blog-meta-author { color: var(--text-dark); font-weight: 500; }
.blog-meta-views  { margin-left: auto; white-space: nowrap; }
.blog-meta-views i { margin-right: 0.25rem; }

.blog-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #4A5EE0);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.blog-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

/* Used when a post has no image: a branded tile with the title's initial
   instead of a grey box with a broken-image icon. */
.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9edff 0%, #f6f7ff 100%);
    color: var(--primary-color);
}

.blog-placeholder span {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.35;
    line-height: 1;
}

/* Spotlight ---------------------------------------------------------------- */
.blog-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-spotlight:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

/* The image fills whatever height the text column needs, rather than the
   row stretching to the image's own height - a portrait photo would
   otherwise make the card three screens tall. */
.blog-spotlight-media {
    position: relative;
    display: block;
    min-height: 340px;
    text-decoration: none;
    background: var(--light-bg);
}

.blog-spotlight-media img,
.blog-spotlight-media .blog-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.blog-spotlight-media img {
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-spotlight:hover .blog-spotlight-media img { transform: scale(1.03); }

.blog-spotlight-body {
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-spotlight-title {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}

.blog-spotlight-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-spotlight:hover .blog-spotlight-title a { color: var(--primary-color); }

.blog-spotlight-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Section head ------------------------------------------------------------- */
.blog-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Cards -------------------------------------------------------------------- */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.75rem rgba(31, 41, 55, 0.12);
}

.blog-card-media {
    position: relative;
    display: block;
    text-decoration: none;
    aspect-ratio: 16 / 9;
    background: var(--light-bg);
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img { transform: scale(1.04); }

.blog-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem 1.35rem 1.35rem;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    /* Two lines, then an ellipsis, so every card's title takes the same
       height and the excerpts line up across the row. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-card:hover .blog-card-title a { color: var(--primary-color); }

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.925rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-foot {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Empty state -------------------------------------------------------------- */
.blog-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 115, 232, 0.10);
    color: var(--primary-color);
    font-size: 1.75rem;
}

/* Pagination --------------------------------------------------------------- */
.blog-pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.15rem;
    min-width: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.1);
}

.blog-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.blog-pagination .page-link:hover {
    background: rgba(91, 115, 232, 0.08);
    color: var(--primary-color);
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .blog-spotlight {
        grid-template-columns: 1fr;
    }

    .blog-spotlight-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .blog-spotlight-media img,
    .blog-spotlight-media .blog-placeholder {
        position: static;
    }

    .blog-spotlight-body {
        padding: 1.5rem 1.5rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .blog-hero {
        padding: 1.75rem 0 2.5rem;
    }

    .blog-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
