﻿/* Modern Bold Orange Theme */
@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap";

:root {
    /* Palette: Slate & Bold Orange */
    --bg-main: #1e293b;
    /* Slate 800 */
    --bg-surface: #334155;
    /* Slate 700 */
    --bg-dark: #0f172a;
    /* Slate 900 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 (Slightly darker for visibility) */

    --accent-orange: #f97316;
    /* Orange 500 */
    --primary: #f97316;
    --bs-primary: #f97316;

    --accent-hover: #ea580c;
    /* Orange 600 */
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    --accent-green: #4ade80;
    /* High contrast green */

    --border-color: #475569;
    /* Slate 600 */
    --border-radius: 8px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacer: 1rem;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

/* Typography */
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

.text-primary {
    color: var(--accent-orange) !important;
}

.text-accent-green {
    color: var(--accent-green) !important;
}

/* Specific Override for Navbar Links */
.navbar-nav .nav-link.text-accent-green {
    color: var(--accent-green) !important;
}


/* Navbar */
.navbar {
    background-color: rgba(15, 23, 42, 0.95) !important;
    /* Slate 900 */
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.navbar-brand strong {
    color: var(--text-main);
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange) !important;
}

.dropdown-menu {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--text-muted);
}

.dropdown-item:hover {
    background-color: var(--bg-main);
    color: var(--accent-orange);
}



/* Hero Section - RESPONSIVE FIX */
#hero,
#hero-slider {
    background-color: var(--bg-dark);
    overflow: hidden;
    position: relative;
    /* Ensure controls are positioned relative to this */
}

/* Custom Carousel Controls */
/* Custom Carousel Controls */
.carousel-control-prev-icon {
    /* Orange Arrow Left SVG */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f97316'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    filter: none;
    /* Remove filter */
}

.carousel-control-next-icon {
    /* Orange Arrow Right SVG */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f97316'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    filter: none;
    /* Remove filter */
}

.carousel-control-prev {
    width: 6%;
    justify-content: flex-start;
    /* Push icon to the very left edge */
    padding-left: 10px;
    z-index: 20;
}

.carousel-control-next {
    width: 6%;
    justify-content: flex-end;
    /* Push icon to the very right edge */
    padding-right: 10px;
    z-index: 20;
}

/* Carousel Indicators (Progress Bar) */
.carousel-indicators [data-bs-target] {
    background-color: var(--accent-orange) !important;
    opacity: 0.8;
    height: 3px;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--accent-orange) !important;
}

.carousel-item {
    min-height: auto;
    padding: 0;
}

/* Wrapper for Flexbox Layout */
.hero-flex-wrapper {
    padding: 4rem 1rem;
    text-align: center;
    min-height: 400px;
    /* Mobile Min-Height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-flex-wrapper img {
    width: 80%;
    max-width: 500px;
    height: 300px;
    /* Fixed height for mobile consistency */
    object-fit: contain;
    margin: 0 auto 1.5rem auto;
    display: block;
}

/* Desktop Layout */
@media (min-width: 992px) {
    .hero-flex-wrapper {
        display: flex;
        flex-direction: row-reverse;
        /* Image right, Text left */
        align-items: center;
        justify-content: center;
        padding: 4rem 6rem;
        min-height: 600px;
    }

    .hero-flex-wrapper img {
        width: 45%;
        height: 450px;
        /* Fixed height for desktop consistency */
        max-width: 600px;
        margin: 0 auto;
        /* Centre align images as requested */
        flex: 1;
        object-fit: contain;
    }

    .hero-flex-wrapper .vz-carousel-caption {
        width: 50%;
        flex: 1;
        text-align: left;
        padding-right: 3rem;
        margin: 0;
    }

    /* Static Hero Overlay */
    .hero-static-overlay {
        position: absolute;
        bottom: 12%;
        left: 6rem;
        right: 6rem;
        width: auto;
        padding: 0;
        text-align: left;
        background-color: transparent;
        pointer-events: none;

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero-static-overlay * {
        pointer-events: auto;
    }
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline-primary:hover {
    background: var(--accent-orange);
    color: #fff;
}

/* Cards */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-orange);
}

.card-title {
    color: var(--text-main);
}

.float-end {
    float: none !important;
}

/* Video Wrapper */
.vz-video-wrapper {
    height: 450px;
    /* Reduced height as requested */
    overflow: hidden;
    position: relative;
}

.vz-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure video covers the area without distortion */
}

/* Disable Bootstrap float for Flex approach */
/* Feature Banners & Gradients */
.vz-gradient-banner {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-orange);
    border-radius: var(--border-radius);
    padding: 2rem;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    /* Darkest slate for footer */
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    margin-top: 0;
}

footer h5 {
    color: var(--text-main);
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--accent-orange);
}

/* Divider */
.vz-horizontal-divider {
    border-top: 1px solid var(--border-color);
}

/* Helper Classes */
.d-md-block {
    display: block !important;
}

/* Ensure captions are visible */

/* AntiGravity Float */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.antigravity-float {
    animation: float 4s ease-in-out infinite;
}

.antigravity-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Appverse Page Specific Styles
   ========================================= */

/* Feature Grid & Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 90%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.feature-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    /* Ensure link underline doesn't show */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--accent-orange);
}

.feature-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 16px;
    color: var(--text-main);
    margin: 10px 0 0;
    font-weight: 600;
}

.feature-card .arrow {
    font-size: 18px;
    color: var(--accent-orange);
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.features-section {
    background-color: var(--bg-dark);
    /* Using theme variable */
    padding: 40px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-step {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.animated-list li {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: var(--delay);
}

.animated-list li:nth-child(1) {
    --delay: 0s;
}

.animated-list li:nth-child(2) {
    --delay: 0.3s;
}

.animated-list li:nth-child(3) {
    --delay: 0.6s;
}

.animated-list li:nth-child(4) {
    --delay: 0.9s;
}

.animated-list li:nth-child(5) {
    --delay: 1.2s;
}

.animated-list li:nth-child(6) {
    --delay: 1.5s;
}

/* Innovation Section */
.innovation-section {
    background-color: var(--bg-surface);
    padding: 40px 0;
}

.innovation-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.innovation-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-muted);
}

.innovation-list .icon {
    margin-right: 10px;
    color: var(--accent-orange);
    font-size: 1.2em;
}

/* Appverse Steps (Ordered List) */
.appverse-steps {
    list-style: none;
    padding: 0;
    counter-reset: appverse-step;
}

.appverse-steps li {
    position: relative;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 16px;
    color: var(--text-muted);
}

.appverse-steps li::before {
    content: counter(appverse-step);
    counter-increment: appverse-step;
    position: absolute;
    left: -2.5rem;
    top: 0.2rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

/* Carousel Captions specific to Appverse */
.appverse-carousel-item {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.left-aligned-caption {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 50%;
    background: rgba(15, 23, 42, 0.8);
    /* Added background for readability */
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-orange);
}

.left-aligned-caption h2 {
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.left-aligned-caption p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .left-aligned-caption {
        max-width: 90%;
        padding: 1rem;
    }

    .left-aligned-caption h2 {
        font-size: 1.8rem;
    }
}


/* CLEANED UP CORRUPTED BLOCK */
.appverse-hero-text {
    flex: 1;
    padding-right: 40px;
}

.appverse-hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

/* =========================================
   Appverse Sub-pages Layout (Standardized)
   ========================================= */

/* Hero Section */
.appverse-hero {
    display: flex;
    flex-direction: column;
    padding: 5rem 0;
    align-items: center;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .appverse-hero {
        flex-direction: row;
        text-align: left;
    }
}

.appverse-hero-content {
    flex: 1;
    padding-right: 2rem;
}

.appverse-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.appverse-hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.appverse-hero-image {
    flex: 1;
    text-align: center;
}

.appverse-hero-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* Container Layout */
.appverse-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 0;
}

@media (min-width: 992px) {
    .appverse-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar */
.appverse-sidebar {
    flex: 0 0 280px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color);
    max-height: 50vh;
    /* Default constraint for mobile */
    overflow-y: auto;
}

@media (min-width: 992px) {
    .appverse-sidebar {
        position: sticky;
        top: 100px;
        /* Below navbar */
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* Ensure Form Fields text visibility */
.appverse-section .list-group-item {
    color: var(--text-muted);
}

.appverse-sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.appverse-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color);
}

.appverse-sidebar-item.active {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

.appverse-sidebar-item img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.appverse-sidebar-item-content {
    display: flex;
    flex-direction: column;
}

.appverse-sidebar-header {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.appverse-sidebar-desc {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 2px;
    line-height: 1.2;
}

/* Main Content Wrapper */
.appverse-content-wrapper {
    flex: 1;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    min-height: 500px;
}

.appverse-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.appverse-section.active {
    display: block;
}

.appverse-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
    color: var(--text-main);
}

.appverse-section p,
.appverse-section p1 {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Feature Cards inside Content */
.appverse-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.appverse-feature-card {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.appverse-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.appverse-feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.appverse-feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.appverse-feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   Contact Page Styles
   ========================================= */
.contact .info-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact .info-item i {
    font-size: 32px;
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.contact .info-item address,
.contact .info-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact .info-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
}

.contact .php-email-form {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact .php-email-form .form-group {
    margin-bottom: 20px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
    padding: 12px 14px;
    border-radius: var(--border-radius);
    box-shadow: none;
    font-size: 15px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
    background-color: var(--bg-surface);
    border-color: var(--accent-orange);
    outline: none;
}

.contact .php-email-form button[type=submit] {
    background: var(--accent-orange);
    border: 0;
    padding: 12px 40px;
    color: #fff;
    transition: 0.4s;
    border-radius: 50px;
    font-weight: 600;
}


/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 250px;
    border: none;
    z-index: 9999;
}

/*--------------------------------------------------------------
# Tutorials Page
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Tutorials Page
--------------------------------------------------------------*/
.tutorials .portfolio-flters {
    padding: 0;
    margin: 0 auto 30px auto;
    list-style: none;
    text-align: center;
    /* Removed white background and shadow for breadcrumb/button integration */
}

.tutorials .portfolio-flters li {
    cursor: pointer;
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: #555;
    margin: 0 5px 10px 5px;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.tutorials .portfolio-flters li:hover,
.tutorials .portfolio-flters li.filter-active {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.25);
}

.tutorials .portfolio-flters li:last-child {
    margin-right: 5px;
}

.tutorial-item {
    margin-bottom: 30px;
}

.tutorial-item .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    overflow: hidden;
}

.tutorial-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tutorial-item .card-img-block {
    position: relative;
    overflow: hidden;
}

.tutorial-item .card-img-top {
    transition: 0.5s;
}

.tutorial-item .card:hover .card-img-top {
    transform: scale(1.05);
}

.tutorial-item .play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    width: 64px;
    height: 64px;
    background: rgba(0, 123, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    animation: pulse-blue 2s infinite;
}

.tutorial-item .play-btn-overlay i {
    font-size: 32px;
    margin-left: 4px;
    /* Optical centering for play icon */
}

.tutorial-item .play-btn-overlay:hover {
    background: #007bff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    animation: none;
}

@keyframes pulse-blue {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.tutorial-item .card-body {
    padding: 25px;
}

.tutorial-item .card-category {
    color: #2eca6a;
    /* Green accent */
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.tutorial-item .card-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 20px;
}

.tutorial-item .card-text {
    color: var(--text-muted);
    /* Use theme variable to respect global visibility rules */
    font-size: 15px;
}

/*--------------------------------------------------------------
# Global Components
--------------------------------------------------------------*/
.vz-horizontal-divider {
    border: 0;
}

.object-fit-cover {
    object-fit: cover !important;
}

.w-64px {
    width: 64px !important;
}

.w-120px {
    width: 120px !important;
}

.bg-gradient-custom {
    background: linear-gradient(90deg, #140B33, #2A55D4, #4CA1E2) !important;
}

/* Section Background for Alternating Sections */
.section-bg {
    background-color: var(--bg-dark) !important;
}

/* =========================================
   Dark Theme Accordion Overrides
   ========================================= */
.accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.accordion-button {
    background-color: transparent;
    color: var(--text-main);
    box-shadow: none !important;
    font-weight: 600;
    padding: 1.5rem 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-surface);
    color: var(--accent-orange);
    border-bottom: 1px solid var(--accent-orange);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.accordion-body {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    padding: 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Custom Arrows */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f8fafc'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f97316'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Utility for fixed height images */
.img-h200 {
    max-height: 200px;
    width: auto;
}

/* Modern Hero Carousel (From JoSAA) */
.hero-modern-carousel {
    max-height: 500px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-dark);
}

.hero-modern-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
    width: 100%;
    display: block;
}

.hero-modern-carousel .carousel-item>.row {
    margin: 0;
}

.hero-modern-carousel .carousel-item>.row>div {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-modern-carousel .carousel-item .col-md-6.text-start {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 500px;
}

.hero-modern-carousel .carousel-indicators {
    bottom: 15px !important;
}

.hero-modern-carousel h1 {
    color: var(--text-main);
}

.hero-modern-carousel p {
    color: var(--text-muted);
}

/* ==========================================================================
   Consolidated Styles (moved from inline/blocks)
   ========================================================================== */

/* WhatsApp Widget (from index.html) */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px !important;
    height: 50px !important;
    border: none;
    z-index: 9999;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* WhatsApp Button (from wa.html) - Internal Update */
#whatsapp-button {
    display: block;
    width: 100%;
    height: 100%;
}

#whatsapp-button img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

/* Marketplace Refinements */
.marketplace-card {
    border: 1px solid #ffffff;
    border-radius: var(--border-radius);
    background-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.marketplace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-orange);
}

.steps-section ol {
    counter-reset: steps-counter;
    list-style: none;
    padding-left: 0;
}

.steps-section li {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}


.steps-section li::before {
    counter-increment: steps-counter;
    content: counter(steps-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 2rem;
    height: 2rem;
    background: #4154f1;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: bold;
}

/* PHP Email Form Styles */
.php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
}

.php-email-form .loading:before {
    content: '';
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    animation: animate-loading 1s linear infinite;
}

.php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    font-weight: 600;
}

.php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------------------------
# GLOBAL VISIBILITY FIX FOR DARK THEME
-------------------------------------------------------------- */

/* 1. Force text-muted to be much lighter on dark backgrounds */
.bg-dark .text-muted,
.section-bg .text-muted,
.innovation-section .text-muted,
.card .text-muted,
footer .text-muted,
.appverse-hero-content p,
.appverse-section p,
.appverse-section p1 {
    color: rgba(255, 255, 255, 0.6) !important;
    /* High visibility (60% White) */
}

/* 2. EXCEPTION: If a card is specifically Light/White, keep text dark */
.card.bg-light .text-muted,
.card.bg-white .text-muted,
.about .text-muted {
    /* Added .about to this exception list */
    color: #6c757d !important;
    /* Standard Dark Gray */
}

/* 3. Ensure list items in dark sections are also visible */
.innovation-list li,
.appverse-steps li {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* --------------------------------------------------------------
# Feature Icon Box Hover Effects (for CBBO & others)
-------------------------------------------------------------- */
.icon-box {
    transition: all 0.3s ease-in-out;
}

.icon-box i,
.icon-box h4,
.icon-box h3 {
    transition: all 0.3s ease-in-out;
}

.icon-box:hover i {
    transform: scale(1.2);
    /* Significantly larger icon */
    color: var(--accent-orange);
    /* Optional: Highlight color */
}

.icon-box:hover h4,
.icon-box:hover h3 {
    transform: scale(1.05);
    /* Slightly larger text */
    color: var(--accent-orange);
    /* Highlight text color */
}

/* =========================================
   Multi-level Dropdown (Submenu) Support
   ========================================= */

/* Ensure the parent dropdown item is positioned relatively */
.dropdown-menu .dropdown-submenu {
    position: relative;
}

/* Position the submenu to the right of the parent */
.dropdown-menu .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -5px;
    margin-left: 0;
    border-radius: 4px;
    display: none;
    /* Main CSS uses opacity/visibility for dropdowns, so we must reset them here */
    opacity: 1;
    visibility: visible;
}

/* Show the submenu on hover */
.dropdown-menu .dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Rotate caret for submenu toggle */
.dropdown-menu .dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
    transition: transform 0.2s;
    margin-left: auto;
}

.dropdown-menu .dropdown-submenu:hover .dropdown-toggle::after {
    transform: rotate(-90deg) scale(1.1);
}

.dropdown-menu .dropdown-submenu .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* --------------------------------------------------------------
# BLOG POST STYLING
-------------------------------------------------------------- */

.blog-header {
    background-color: var(--bg-surface);
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-content {
    font-family: var(--font-body);
    color: #d1d5db;
    /* Lighter text for dark mode contrast */
}

.blog-content p {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 1.8rem;
    color: #e2e8f0;
    /* Slate 200 - High legibility */
}

.blog-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.blog-content h2.text-primary {
    color: var(--primary) !important;
}

.blog-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #cbd5e1;
    /* Slate 300 */
}

/* Custom "Step/Layer" Styling */
.section-header-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    opacity: 0.8;
}

.blog-meta {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.series-banner {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--primary);
    font-weight: 600;
    padding: 12px 0;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.series-nav-btn {
    transition: transform 0.2s;
}

.series-nav-btn:hover {
    transform: translateX(5px);
}

.series-nav-btn.prev:hover {
    transform: translateX(-5px);
}

/* Highlight Box Modification */
.gist-box {
    background-color: rgba(51, 65, 85, 0.5);
    /* Semi-transparent surface */
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.tech-term {
    color: var(--accent-green);
    font-weight: 600;
    background: rgba(74, 222, 128, 0.1);
    padding: 0 4px;
    border-radius: 4px;
}

/* Custom Utilities replacing inline styles */
.navbar-custom-bg {
    background-color: var(--bg-main) !important;
}

.footer-logo-custom {
    width: 120px;
}

.card-custom-bg {
    background-color: var(--bg-surface) !important;
}

.icon-bg-circle {
    opacity: 0.2;
}

/* Blog Index Hero */
.blog-hero {
    padding: 100px 0;
    text-align: center;
}

/* Custom Nav Pills for Dark Theme */
.nav-pills .nav-link {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    margin: 0 5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-orange);
}

.nav-pills .nav-link.active {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}

/* =========================================
   Appverse New Homepage Styles
   ========================================= */

.appverse-hero-new {
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 100%);
}

.ai-input-bar {
    transition: box-shadow 0.3s ease;
}

.ai-input-bar:focus-within {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2) !important;
}

.marketplace-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.marketplace-card:hover {
    transform: translateY(-10px);
}

.marketplace-card.active-card {
    transform: scale(1.05);
    z-index: 2;
}

.feature-box {
    background: #fff;
    transition: border-color 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent-orange) !important;
}

.btn-success {
    background-color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.btn-success:hover {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
}