/* style.css - STACKIATEMPLATE SPECIALIZED STYLES */

/* --- TOP BAR (BLACK BAND) --- */
.top-bar { 
    background-color: #0b0f19; 
    color: white; 
    padding: 8px 0; 
    font-size: 0.85rem; 
    position: sticky; 
    top: 0; 
    z-index: 1040; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-link { 
    color: #9ca3af; 
    text-decoration: none; 
    margin-left: 15px; 
    transition: 0.3s; 
    cursor: pointer; 
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-link:hover, .top-link.active { 
    color: white; 
    font-weight: bold; 
}

.top-link img {
    width: 16px;
    height: 12px;
    border-radius: 1px;
}

/* --- NAVBAR (SOLID, NON-TRANSPARENT, STICKY) --- */
.navbar { 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); 
    background-color: var(--nav-bg) !important; 
    padding: 14px 0; 
    transition: background-color 0.3s; 
    position: sticky; 
    top: 37px; 
    margin-top: -1px; 
    z-index: 1030; 
    border-bottom: 1px solid var(--border-color);
}

.btn-trial { 
    background-color: var(--primary-color); 
    color: white !important; 
    font-weight: 600; 
    border-radius: 6px; 
    padding: 8px 20px; 
    transition: 0.3s; 
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-trial:hover { 
    background-color: var(--primary-hover); 
    color: white !important; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 55px 0 15px 0;
    text-align: center;
}

.hero-title {
    font-weight: 800;
    font-size: 3.1rem;
    color: var(--text-main);
    margin-bottom: 18px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

#hero-img-container {
    text-align: center;
}

#hero-img-container img {
    max-width: 780px;
    width: auto;
    max-height: 480px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    object-fit: contain;
    display: inline-block;
}

#hero-img-desc {
    max-width: 960px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- CAROUSEL STYLES --- */
.carousel-container { 
    max-width: 1040px; 
    margin: 20px auto 35px auto; 
    border-radius: 16px; 
    box-shadow: var(--card-shadow); 
    border: 1px solid var(--border-color); 
    background-color: var(--bg-surface); 
    position: relative; 
    overflow: hidden;
}

.carousel-slide-content { 
    padding: 35px 50px 55px 50px; 
    min-height: 380px; 
    display: flex; 
    align-items: center; 
}

.carousel-img-col { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 300px; 
    text-align: center;
}

.carousel-img-col img { 
    max-height: 100%; 
    max-width: 100%; 
    width: auto;
    height: auto;
    object-fit: contain; 
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08)); 
}

.carousel-text-col { 
    text-align: left; 
    padding-left: 30px; 
}

.carousel-title {
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.carousel-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 25px;
}

/* Carousel Indicators (Slider Bullets) */
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 22px !important;
    height: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    background-color: var(--primary-color) !important;
    border: 0 !important;
    border-radius: 3px !important;
    opacity: 0.35;
    transition: opacity .3s ease, width .3s ease;
}

.carousel-indicators .active {
    opacity: 1 !important;
    width: 34px !important;
}

/* Carousel Arrow Controls */
.carousel-control-prev, 
.carousel-control-next { 
    width: 50px; 
    opacity: 0.8; 
    transition: 0.3s; 
    z-index: 5; 
}

.carousel-control-prev:hover, 
.carousel-control-next:hover { 
    opacity: 1; 
    transform: scale(1.1); 
}

.carousel-control-prev-icon, 
.carousel-control-next-icon { 
    background-image: none !important; 
    background: none !important; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
}

.carousel-control-prev-icon::after { 
    content: "\f104"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    font-size: 2.8rem; 
    color: var(--primary-color); 
}

.carousel-control-next-icon::after { 
    content: "\f105"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    font-size: 2.8rem; 
    color: var(--primary-color); 
}

/* --- FEATURE & DETAILS SECTIONS --- */
.feature-row { 
    padding: 60px 0; 
    border-bottom: 1px solid var(--border-color); 
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-img-box { 
    background: var(--bg-surface); 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03); 
    text-align: center; 
    border: 1px solid var(--border-color); 
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.feature-img-box:hover {
    transform: translateY(-3px);
}

.feature-img-box img { 
    max-width: 100%; 
    max-height: 380px;
    height: auto; 
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    display: inline-block;
}

.feature-title { 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 18px; 
    font-size: 1.8rem;
}

.feature-text { 
    color: var(--text-muted); 
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Structured H6 Subheadings (What / How / Benefits) */
.feature-text h6 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-text ul {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.feature-text li {
    margin-bottom: 0.45rem;
    line-height: 1.6;
}

/* --- FAQ ACCORDION --- */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 12px;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 18px 22px;
}

.accordion-body {
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 20px 22px;
}

/* --- SITE FOOTER (THIN SINGLE-LINE DARK BAR) --- */
.site-footer {
    background-color: #0b0f19;
    color: #9ca3af;
    padding: 16px 0;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-link:hover {
    color: #ffffff !important;
}

/* --- RTL (ARABIC) RULES --- */
html[dir="rtl"] body {
    text-align: right;
    font-family: 'Cairo', 'Inter', sans-serif !important;
}

html[dir="rtl"] .carousel-text-col {
    text-align: right;
    padding-left: 0;
    padding-right: 30px;
}

html[dir="rtl"] .top-link {
    margin-left: 0;
    margin-right: 15px;
}

html[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ps-md-5 {
    padding-right: 3rem !important;
    padding-left: 0 !important;
}

html[dir="rtl"] .pe-md-5 {
    padding-left: 3rem !important;
    padding-right: 0 !important;
}

html[dir="rtl"] .feature-text ul {
    padding-right: 1.25rem;
    padding-left: 0;
}

html[dir="rtl"] .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .carousel-control-prev-icon::after {
    content: "\f105";
}

html[dir="rtl"] .carousel-control-next-icon::after {
    content: "\f104";
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991.98px) {
    .carousel-slide-content {
        padding: 25px 20px 45px 20px;
    }
    .carousel-img-col {
        height: 220px;
        margin-bottom: 20px;
    }
    .carousel-text-col {
        padding-left: 0;
        text-align: center;
    }
    html[dir="rtl"] .carousel-text-col {
        padding-right: 0;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .navbar {
        top: 37px;
    }
}
