/* Modern Red & White Design System for PT. Gifanya Adhiyaksa Jaya */
:root {
    --primary-red: #D32F2F;
    --accent-red: #E31B23;
    --dark-red: #7F0E12;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-gray: #EAEAEA;
    --text-dark: #1A1A1A;
    --text-muted: #5F6670;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(211, 47, 47, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(227, 27, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 27, 35, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    transition: var(--transition);
    padding: 18px 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand span {
    font-size: 0.9rem;
    display: block;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: right;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: var(--accent-red) !important;
}

.btn-nav-contact {
    background: var(--accent-red);
    color: var(--white) !important;
    border-radius: 6px;
    padding: 8px 20px !important;
    font-weight: 600;
    border: 1px solid var(--accent-red);
}

.btn-nav-contact::after {
    display: none;
}

.btn-nav-contact:hover {
    background: transparent;
    color: var(--accent-red) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 50%, var(--accent-red) 100%);
    color: var(--white);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-watermark {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideUp 1s ease-out;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    border-left: 4px solid var(--white);
    padding-left: 15px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 650px;
}

.btn-hero {
    background: var(--white);
    color: var(--accent-red);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    border: 2px solid var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.btn-hero:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Marquee Bar */
.marquee-container {
    background: var(--text-dark);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 4px solid var(--accent-red);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 50px;
}

/* Section Common Styles */
.section-padding {
    padding: 100px 0;
}

.section-title-wrapper {
    margin-bottom: 60px;
    position: relative;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-top: 15px;
}

/* About Us Section */
.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    height: 380px;
}

.nib-card {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    border-radius: 12px;
    padding: 24px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.nib-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.nib-qr-img {
    width: 100px;
    height: 100px;
    background: var(--white);
    padding: 6px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.nib-title {
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
}

.nib-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vision-mission-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-left: 5px solid var(--accent-red);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 20px;
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.vision-mission-card h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.list-mission {
    list-style: none;
    padding-left: 0;
}

.list-mission li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.list-mission li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-red);
    font-size: 0.95rem;
}

/* Scope of Business Section */
.bg-light-section {
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.scope-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    transition: var(--transition);
    height: 100%;
}

.scope-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 27, 35, 0.2);
}

.scope-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(227, 27, 35, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-red);
    font-size: 1.8rem;
    transition: var(--transition);
}

.scope-card:hover .scope-icon-wrapper {
    background: var(--accent-red);
    color: var(--white);
    transform: scale(1.1);
}

.scope-title {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.scope-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    text-align: justify;
}

.scope-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scope-services-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.scope-services-list li:last-child {
    border-bottom: none;
}

.scope-services-list li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-red);
    font-size: 1rem;
    transition: var(--transition);
}

.scope-card:hover .scope-services-list li::before {
    transform: translateX(3px);
}

/* Client Section */
.client-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.client-card.badge-style {
    border-top: 4px solid var(--accent-red);
}

.client-card.border-style {
    border: 1px solid var(--accent-red);
    background: rgba(227, 27, 35, 0.01);
}

.client-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(227, 27, 35, 0.1);
    line-height: 1;
}

.client-name-badge {
    background: var(--accent-red);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.2);
}

.client-card.border-style .client-name-badge {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    box-shadow: none;
}

.client-name-text {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    min-height: 48px;
}

.client-projects {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-projects li {
    position: relative;
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.client-projects li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: 900;
    font-size: 1.2rem;
    top: -2px;
}

.client-card.badge-style .client-projects li::before {
    color: var(--text-dark);
}

/* Organization Chart Section */
.org-section {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    color: var(--white);
}

.org-section .section-title {
    color: var(--white);
}

.org-section .section-title::after {
    background: var(--white);
}

.org-section .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.org-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    position: relative;
}

.org-card {
    background: var(--white);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 280px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-gray);
    transition: var(--transition);
}

.org-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.org-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-red);
    border-radius: 0 0 12px 12px;
}

.org-role {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.org-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.org-divider {
    height: 1px;
    background-color: var(--border-gray);
    margin: 8px 0;
    position: relative;
}

.org-sig-point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-red);
    position: absolute;
    right: 0;
    top: -4px;
}

/* Tree connection line mock */
.org-line-vertical {
    width: 2px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
}

.org-row-split {
    display: flex;
    justify-content: center;
    gap: 80px;
    width: 100%;
    position: relative;
}

/* Responsive connections on desktop */
@media (min-width: 992px) {
    .org-row-split::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 25%;
        right: 25%;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.3);
    }
}

.org-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Contact & Footer Section */
.footer-split {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-gray);
}

.footer-left {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    color: var(--white);
    padding: 80px 60px;
    flex: 1 1 50%;
    min-width: 250px;
}

.footer-right {
    background: var(--white);
    color: var(--text-dark);
    padding: 80px 60px;
    flex: 1 1 50%;
    min-width: 250px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text-box h6 {
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.contact-text-box p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.brand-footer h4 {
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.brand-footer span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent-red);
    display: block;
    margin-bottom: 25px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.footer-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.copyright-bar {
    border-top: 1px solid var(--border-gray);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
        margin-top: 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-section {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .hero-subtitle {
        border-left: none;
        padding-left: 0;
        margin-bottom: 15px;
    }
    
    .about-image-wrapper {
        margin-top: 50px;
    }
    
    .org-row-split {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .org-line-vertical {
        height: 40px;
    }
    
    .footer-left, .footer-right {
        padding: 60px 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .nib-card {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Bottom Navigation */
body {
    padding-bottom: 70px;
}
@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 15px 15px;
    z-index: 1050;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.mobile-bottom-nav .nav-item-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    gap: 4px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--accent-red);
}

.mobile-bottom-nav .nav-item-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
}

.mobile-bottom-nav .btn-courses {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-top: -30px;
    box-shadow: 0 8px 20px rgba(227, 27, 35, 0.4);
    transition: var(--transition);
    text-decoration: none;
    border: 4px solid var(--white);
}

.mobile-bottom-nav .btn-courses:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(227, 27, 35, 0.5);
    color: var(--white);
}

.mobile-bottom-nav .center-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-top: 6px;
}

/* Custom Hero Carousel for Landing Page */
.hero-carousel {
    height: 75vh;
    min-height: 550px;
    width: 100%;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-caption-custom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: var(--white);
    max-width: 800px;
    z-index: 10;
    padding: 0 15px;
}

.carousel-tag {
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 2px;
    color: var(--accent-red);
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.carousel-title {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    max-width: 680px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Add custom animations to captions */
.carousel-item.active .carousel-title {
    animation: fadeInUp 0.8s ease-out both;
}

.carousel-item.active .carousel-desc {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.carousel-item.active .d-flex {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* Adjustments on responsive */
@media (max-width: 991.98px) {
    .hero-carousel {
        height: 65vh;
        min-height: 480px;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-desc {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-title {
        font-size: 1.85rem;
    }
    
    .carousel-desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
}

/* Premium Rich Text (Markdown & Summernote) Styling */
.rich-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568; /* Slate 600 */
}

.rich-content h1, 
.rich-content h2, 
.rich-content h3, 
.rich-content h4, 
.rich-content h5, 
.rich-content h6 {
    font-family: 'Outfit', sans-serif;
    color: #1e293b; /* Slate 800 */
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.rich-content h1 { font-size: 1.75rem; }
.rich-content h2 { font-size: 1.45rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; margin-top: 1.85rem; }
.rich-content h3 { font-size: 1.2rem; }
.rich-content h4 { font-size: 1.05rem; }

.rich-content p {
    margin-bottom: 1.25rem;
    color: #4a5568;
}

.rich-content ul, 
.rich-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Styled Table System */
.rich-content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rich-content table th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.rich-content table th:last-child {
    border-right: none;
}

.rich-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.95rem;
    background-color: #ffffff;
}

.rich-content table td:last-child {
    border-right: none;
}

.rich-content table tr:last-child td {
    border-bottom: none;
}

.rich-content table tr:nth-child(even) td {
    background-color: #f8fafc;
}

.rich-content table tr:hover td {
    background-color: #f1f5f9;
}

/* Code Blocks System */
.rich-content code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: #f1f5f9;
    color: #e11d48; /* Premium Rose-600 */
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.rich-content pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rich-content pre code {
    font-size: 0.9rem;
    line-height: 1.6;
    background: none;
    color: inherit;
    padding: 0;
}

.rich-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding-left: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: #64748b;
    font-style: italic;
    background-color: #f8fafc;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 0 8px 8px 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* WhatsApp Green */
    color: #FFF !important;
    border-radius: 4px; /* Square/slightly rounded corners as per image */
    text-align: center;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* Premium drop shadow matching image */
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #20ba5a;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: #FFF !important;
}

.whatsapp-float i {
    animation: wa-bounce 2s infinite;
}

@keyframes wa-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Adjust position on mobile for mobile bottom nav compatibility */
@media (max-width: 991.98px) {
    .whatsapp-float {
        bottom: 95px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}
