/**
 * Unified Custom Styles for Logistics System
 * Version: 3.0 - Brand Identity (Red & Blue from Logo)
 * Compatible with both LTR and RTL layouts
 * 
 * Color Scheme (From Company Logo):
 * Primary Red: #E03032 (From logo)
 * Secondary Blue: #0078BF (From logo)
 * Light Blue: #00A0E3 (From logo)
 * 
 * This file replaces both custom.css and custom-rtl.css
 * Import theme-variables.css before this file
 */

/* ===================================
   IMPORT THEME VARIABLES
   =================================== */
@import url('theme-variables.css');

/* ===================================
   CSS VARIABLES (Legacy Support)
   =================================== */
:root {
    /* Primary Colors - Company Brand Identity */
    /* Based on company logo: Red & Blue */
    --primary-red: #E03032;
    --primary-red-rgb: 224, 48, 50;
    --dark-blue: #0078BF;
    --medium-blue: #00A0E3;
    --light-gray: #F5F5F5;
    --dark-text: #1A1A1A;
    
    /* Legacy Support - mapped to new colors */
    --primary-orange: #E03032;        /* Now Red */
    --primary-orange-light: #FF4A4C;   /* Now Light Red */
    --primary-orange-lighter: #FF6B6D; /* Now Lighter Red */
    --primary-orange-dark: #C82628;    /* Now Dark Red */
}

/* ===================================
   GLOBAL STYLES
   =================================== */
body {
    font-family: 'Cairo', 'Libre Franklin', 'Martel Sans', sans-serif;
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Libre Franklin', sans-serif;
}

h2 {
    font-size: 1.75em;
    font-weight: 600;
}

h4 {
    font-size: 1.25em;
    font-weight: 500;
}

.title a {
    font-size: 1.25em;
}

/* ===================================
   COLOR UTILITY CLASSES
   =================================== */
.main-color,
.primary-color {
    color: var(--primary-red) !important;
}

.main-bg,
.primary-bg {
    background-color: var(--primary-red) !important;
}

.secondary-color {
    color: var(--dark-text);
}

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

/* ===================================
   HEADER STYLES
   =================================== */

/* Scroll Up Button */
.rs-slider.main-home .owl-nav .owl-next:hover,
.rs-slider.main-home .owl-nav .owl-prev:hover,
#scrollUp.orange-color i:hover {
    background-color: rgba(224, 48, 50, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 48, 50, 0.4);
}

/* Topbar Styles */
.full-width-header .rs-header .topbar-area .topbar-contact li,
.full-width-header .rs-header .topbar-area .topbar-contact li a,
.topbar-link-color {
    color: #D0D6DD;
}

.full-width-header .rs-header .topbar-area .topbar-right li.login-register a:hover {
    color: var(--primary-red);
}

.full-width-header .rs-header .topbar-area .topbar-contact li i:before {
    color: #E9EBEB;
}

/* Language Divider */
.divider {
    font-size: 20px;
    line-height: 20px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Logo Styles */
.full-width-header .rs-header .logo-part img {
    max-height: 7em;
    width: 7em;
    height: 7em;
    transition: all 0.3s ease;
}

.full-width-header .rs-header .logo-part img:hover {
    transform: scale(1.05);
}

.full-width-header .rs-header .menu-area .logo-cat-wrap {
    height: 90px;
    line-height: 90px;
}

.full-width-header .rs-header .menu-area .main-menu .rs-menu ul.nav-menu li a {
    height: 90px;
    line-height: 90px;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
}

.full-width-header.header-style2 .rs-header .menu-area .rs-menu-area {
    justify-content: flex-start;
}

/* ===================================
   NAVIGATION & MENU
   =================================== */

/* Main Menu Links */
.rs-menu ul.nav-menu > li > a:hover,
.rs-menu ul.nav-menu > li.current-menu-item > a {
    color: var(--primary-red);
}

/* Submenu */
.rs-menu ul.sub-menu {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-red);
}

.rs-menu ul.sub-menu li a:hover {
    color: var(--primary-red);
    background: rgba(255, 102, 0, 0.05);
}

/* Mobile Menu */
.mean-container .mean-nav {
    background: #ffffff;
}

.mean-container a.meanmenu-reveal {
    color: var(--primary-red);
}

/* ===================================
   BUTTONS
   =================================== */
.readon,
.readon-started,
.readon.learn-more {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-blue) 100%);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readon:hover,
.readon-started:hover,
.readon.learn-more:hover {
    background: #ffffff;
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 48, 50, 0.3);
}

/* Secondary Button */
.readon.readon-border {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.readon.readon-border:hover {
    background: var(--primary-red);
    color: #ffffff;
}

/* ===================================
   SECTION HEADERS
   =================================== */
.sec-title,
.sec-title2,
.sec-title3 {
    margin-bottom: 60px;
}

.sec-title .sub-title,
.sec-title2 .sub-title,
.sec-title3 .sub-title {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.sec-title .title,
.sec-title2 .title,
.sec-title3 .title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-text);
}

.sec-title .desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Title Underline Effect */
.header-statistics,
.header_playlist,
.header-colleges {
    position: relative;
    padding-bottom: 20px;
}

.header-statistics::after,
.header_playlist::after,
.header-colleges::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-blue));
    position: absolute;
    bottom: 0;
    border-radius: 2px;
}

/* RTL Support */
[dir="rtl"] .header-statistics::after,
[dir="rtl"] .header_playlist::after,
[dir="rtl"] .header-colleges::after {
    right: 0;
    left: auto;
}

/* LTR Support */
[dir="ltr"] .header-statistics::after,
[dir="ltr"] .header_playlist::after,
[dir="ltr"] .header-colleges::after {
    left: 0;
    right: auto;
}

/* ===================================
   BLOG & NEWS SECTION
   =================================== */
.rs-blog.style1 .blog-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rs-blog.style1 .blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(224, 48, 50, 0.15);
}

.rs-blog.style1 .blog-item .blog-content {
    padding: 20px;
}

.rs-blog.style1 .blog-item .blog-content .title a {
    font-size: 18px;
    color: var(--dark-text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.rs-blog.style1 .blog-item .blog-content .title a:hover {
    color: var(--primary-red);
}

.rs-blog.style1 .blog-item .blog-content .readon-arrow {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
}

.rs-blog.style1 .events-short .date-part {
    background: var(--primary-red);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

/* ===================================
   STATISTICS SECTION
   =================================== */
.rs-statistics {
    box-shadow: 0 0 40px rgba(224, 48, 50, 0.1);
    position: relative;
}

.rs-counter .counter-item {
    text-align: center;
}

.rs-counter .counter-item .rs-count {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.rs-counter .counter-item .title,
.rs-counter.style2-about .counter-item .title {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 18px;
    margin-top: 15px;
}

.rs-counter .counter-item .counter-icon i {
    font-size: 50px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.rs-services .services-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.rs-services .services-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(224, 48, 50, 0.2);
    border-color: rgba(224, 48, 50, 0.2);
}

.rs-services .services-item .services-icon i {
    font-size: 50px;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.rs-services .services-item:hover .services-icon i {
    transform: scale(1.1);
}

.rs-services .services-item .services-title a {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 22px;
}

.rs-services .services-item:hover .services-title a {
    color: var(--primary-red);
}

/* ===================================
   FOOTER
   =================================== */
.rs-footer {
    background: var(--dark-text);
    color: rgba(255, 255, 255, 0.8);
}

.rs-footer .widget-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.rs-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

[dir="rtl"] .rs-footer .widget-title::after {
    right: 0;
}

[dir="ltr"] .rs-footer .widget-title::after {
    left: 0;
}

.rs-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.rs-footer a:hover {
    color: var(--primary-red);
}

.rs-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

/* ===================================
   FORM ELEMENTS
   =================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 48, 50, 0.1);
}

/* ===================================
   UTILITIES
   =================================== */

/* Spacing */
.lg-mb-70 {
    margin-bottom: 70px;
}

.md-mb-50 {
    margin-bottom: 50px;
}

/* Shadows */
.shadow-primary {
    box-shadow: 0 10px 30px rgba(224, 48, 50, 0.3) !important;
}

.shadow-blue {
    box-shadow: 0 10px 30px rgba(0, 120, 191, 0.3) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-blue) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media only screen and (max-width: 991px) {
    .sec-title .title,
    .sec-title2 .title,
    .sec-title3 .title {
        font-size: 36px;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .rs-blog.style1 .events-short {
        flex-direction: column;
    }
    
    .rs-blog.style1 .events-short .content-part {
        text-align: center;
    }
}

@media only screen and (max-width: 767px) {
    .sec-title .title,
    .sec-title2 .title,
    .sec-title3 .title {
        font-size: 28px;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .readon,
    .readon-started {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .full-width-header .rs-header .logo-part img {
        max-height: 5em;
        width: 5em;
        height: 5em;
    }
}

/* ===================================
   RTL SPECIFIC ADJUSTMENTS
   =================================== */

[dir="rtl"] {
    /* Header Adjustments */
    .full-width-header .rs-header .topbar-area .topbar-contact li {
        border-left: 0;
        margin-left: 5px;
        padding-left: 5px;
    }
    
    .full-width-header .rs-header .topbar-area .topbar-right li {
        margin-left: 10px;
        margin-right: 0;
    }
    
    .full-width-header .rs-header .topbar-area .topbar-right li.login-register i {
        margin-left: 5px;
        margin-right: 0;
    }
}

/* ===================================
   LTR SPECIFIC ADJUSTMENTS
   =================================== */

[dir="ltr"] {
    /* Header Adjustments */
    .full-width-header .rs-header .topbar-area .topbar-contact li {
        border-right: 0;
        margin-right: 5px;
        padding-right: 5px;
    }
    
    .full-width-header .rs-header .topbar-area .topbar-right li {
        margin-right: 10px;
        margin-left: 0;
    }
    
    .full-width-header .rs-header .topbar-area .topbar-right li.login-register i {
        margin-right: 5px;
        margin-left: 0;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

