/* ==========================================================================
   SMS Egypt (smseg.com) Custom Stylesheet
   ========================================================================== */

:root {
    --smseg-primary: #0088cc;
    --smseg-primary-dark: #006699;
    --smseg-primary-light: #e8f4fd;
    --smseg-accent: #f3d97a;
    --smseg-accent-dark: #d4a017;
    --smseg-dark: #2c2927;
    --smseg-muted: #6c757d;
    --smseg-bg-light: #f8f9fb;
    --smseg-border: #e2e8f0;
    --smseg-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --smseg-card-hover: 0 8px 30px rgba(0, 136, 204, 0.15);
    --smseg-radius: 10px;
    --smseg-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base & Typography */
body {
    font-family: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    background-color: #ffffff !important;
    line-height: 1.6;
}

#page_wrapper {
    background-color: #ffffff !important;
    min-height: 100vh;
}

div#content,
#content,
.site-content {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-light {
    background-color: #f8f9fb !important;
}

.bg-gray {
    background-color: #f1f5f9 !important;
}

.bg-primary-soft {
    background-color: var(--smseg-primary-light) !important;
}

[dir="rtl"] body,
html[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    text-align: right;
}

/* Header & Navigation - Exact smseg.com styling */
.nav-on-top {
    width: 100%;
    z-index: 1050;
    transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

/* Home Page Header: Absolute & Transparent on top of Hero */
.nav-on-top.header-home {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent !important;
    box-shadow: none !important;
}

/* Inner Pages Header: Dark by default across all other pages */
.nav-on-top.header-inner-dark {
    position: sticky !important;
    top: 0;
    left: 0;
    background-color: #111b24 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-on-top.header-inner-dark .main-nav {
    padding: 0.35rem 0 !important;
}

/* Scrolled Header State (applied to Home page on scroll down) */
.nav-on-top.header-scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 27, 36, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-on-top.header-scrolled .main-nav {
    padding: 0.25rem 0 !important;
}

.nav-on-top.header-scrolled .navbar-brand img.nav-logo,
.nav-on-top.header-inner-dark .navbar-brand img.nav-logo {
    max-height: 48px;
}

/* Dropdown Menu on Dark Header */
.nav-on-top .dropdown-menu {
    background-color: #111b24 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
}

.nav-on-top .dropdown-item {
    color: #e2e8f0 !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 1.2rem;
    transition: var(--smseg-transition);
}

.nav-on-top .dropdown-item:hover {
    background-color: rgba(0, 136, 204, 0.2) !important;
    color: var(--smseg-accent) !important;
}

.main-nav {
    background: transparent;
    padding: 0.5rem 0;
    transition: padding 0.35s ease;
}

.navbar {
    padding: 0.8rem 1rem;
    background: transparent !important;
}

.navbar-brand img.nav-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--smseg-transition);
}

.navbar-nav .nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff !important;
    padding: 0.6rem 1rem !important;
    transition: var(--smseg-transition);
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--smseg-accent) !important; /* Gold #f3d97a */
}

.navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--smseg-accent);
    border-radius: 2px;
}

[dir="rtl"] .navbar-nav .nav-item.active .nav-link::after {
    left: auto;
    right: 1rem;
}

.btn-smseg-primary {
    background-color: var(--smseg-primary);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.5rem 1.4rem;
    border: 2px solid var(--smseg-primary);
    transition: var(--smseg-transition);
}

.btn-smseg-primary:hover {
    background-color: var(--smseg-primary-dark);
    border-color: var(--smseg-primary-dark);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transform: translateY(-2px);
}

.btn-smseg-outline {
    background-color: transparent;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.5rem 1.4rem;
    border: 2px solid #ffffff;
    transition: var(--smseg-transition);
}

.btn-smseg-outline:hover {
    background-color: #ffffff;
    color: var(--smseg-dark) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Section - Exact smseg.com screenshot match */
.smseg-hero {
    background-image: linear-gradient(180deg, rgba(15, 15, 15, 0.60) 0%, rgba(20, 20, 20, 0.68) 100%), url('/front/img/background/5a849_slider1.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 15px 70px 15px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1025px) {
    .smseg-hero {
        background-attachment: fixed;
    }
}

.smseg-hero .hero-title-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    max-width: 950px;
}

.smseg-hero .find-out-how-link {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: var(--smseg-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.smseg-hero .find-out-how-link:hover {
    color: var(--smseg-accent);
    transform: translateX(-50%) translateY(3px);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .smseg-hero .hero-title-serif {
        font-size: 3.2rem;
    }
}

@media (max-width: 767.98px) {
    .smseg-hero .hero-title-serif {
        font-size: 2.2rem;
    }
}

.smseg-hero .find-out-how-link svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    fill: currentColor;
    vertical-align: middle;
}

svg {
    max-width: 100%;
}

.site-content svg:not([width]) {
    max-width: 48px;
    max-height: 48px;
}

.smseg-hero .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 850px;
    margin: 0 auto 2rem auto;
}

.smseg-hero .btn-hero {
    background: #ffffff;
    color: var(--smseg-primary) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2.4rem;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: var(--smseg-transition);
    border: none;
}

.smseg-hero .btn-hero:hover {
    background: var(--smseg-accent);
    color: var(--smseg-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Section Common Styling */
.smseg-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--smseg-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.smseg-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--smseg-primary);
    margin: 0.6rem auto 0 auto;
    border-radius: 2px;
}

.smseg-section-subtitle {
    font-size: 1.1rem;
    color: var(--smseg-muted);
    margin-bottom: 3rem;
}

/* Feature & Service Cards */
.smseg-card {
    background: #ffffff;
    border: 1px solid var(--smseg-border);
    border-radius: var(--smseg-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--smseg-card-shadow);
    transition: var(--smseg-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.smseg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--smseg-card-hover);
    border-color: rgba(0, 136, 204, 0.3);
}

.smseg-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--smseg-primary-light);
    color: var(--smseg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
    transition: var(--smseg-transition);
}

.smseg-card:hover .icon-wrapper {
    background: var(--smseg-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.smseg-card h3,
.smseg-card h4,
.smseg-card h5 {
    font-weight: 700;
    color: var(--smseg-dark);
    margin-bottom: 0.8rem;
}

.smseg-card p {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Benefits Grid */
.benefit-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--smseg-radius);
    box-shadow: var(--smseg-card-shadow);
    transition: var(--smseg-transition);
    margin-bottom: 1.5rem;
    border: 1px solid var(--smseg-border);
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--smseg-card-hover);
    border-color: rgba(0, 136, 204, 0.3);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: var(--smseg-primary-light);
    color: var(--smseg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 1.2rem;
}

[dir="rtl"] .benefit-icon {
    margin-right: 0;
    margin-left: 1.2rem;
}

.benefit-content h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--smseg-dark);
}

.benefit-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.92rem;
}

/* Why SMS & Stats Section with Background Image */
.why-sms-section {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.93) 0%, rgba(0, 70, 110, 0.95) 100%), url('/front/img/background/slider2.jpg') center/cover fixed no-repeat;
    color: #ffffff;
    padding: 85px 0;
    position: relative;
}

.why-sms-section .stat-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--smseg-radius);
    padding: 1.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--smseg-transition);
}

.why-sms-section .stat-box:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.why-sms-section .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--smseg-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* App Download Section with Background Image */
.app-download-section {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.94) 0%, rgba(17, 27, 36, 0.96) 100%), url('/front/img/background/slider3.jpg') center/cover fixed no-repeat;
    color: #ffffff;
    padding: 75px 0;
    position: relative;
}

/* Page Hero for Sub-pages */
.page-hero {
    background: linear-gradient(135deg, rgba(11, 34, 57, 0.92) 0%, rgba(0, 136, 204, 0.88) 100%), url('/front/img/background/slider1.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 70px 0;
    position: relative;
}

.bg-pattern {
    background: #f8f9fb url('/front/img/background/bg-1.png') repeat;
}

.app-badge-btn {
    display: inline-block;
    transition: var(--smseg-transition);
    margin: 0.5rem;
}

.app-badge-btn img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.app-badge-btn:hover {
    transform: translateY(-3px) scale(1.03);
}

/* Payment Methods Grid */
.payment-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.payment-badge {
    background: #ffffff;
    border: 1px solid var(--smseg-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 75px;
    transition: var(--smseg-transition);
}

.payment-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--smseg-card-hover);
    border-color: var(--smseg-primary);
}

.payment-badge img {
    max-height: 45px;
    max-width: 100px;
    object-fit: contain;
}

/* Blog Cards */
.smseg-blog-card {
    background: #ffffff;
    border-radius: var(--smseg-radius);
    overflow: hidden;
    box-shadow: var(--smseg-card-shadow);
    border: 1px solid var(--smseg-border);
    transition: var(--smseg-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.smseg-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--smseg-card-hover);
}

.smseg-blog-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.smseg-blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.smseg-blog-card:hover .smseg-blog-img-wrap img {
    transform: scale(1.08);
}

.smseg-blog-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.smseg-blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--smseg-dark);
    margin-bottom: 0.6rem;
    transition: var(--smseg-transition);
}

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

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

/* Footer Custom */
.bg-footer {
    background-color: #111b24 !important;
    color: #a0aec0;
}

.footer-widget h3.widget-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-widget h3.widget-title::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: var(--smseg-primary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.socila-footer li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    margin-right: 0.5rem;
    transition: var(--smseg-transition);
}

.socila-footer li a:hover {
    background: var(--smseg-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .smseg-hero h1 {
        font-size: 2.1rem;
    }
    .smseg-hero {
        padding: 50px 0 40px 0;
    }
}
