/* ========================================
   RESPONSIVE & LAYOUT FIXES
   ======================================== */

/* Container & Grid Fixes */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Auto Container */
.auto-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

/* Row Fixes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* ========================================
   HEADER RESPONSIVE FIXES
   ======================================== */

.header-style-two {
    width: 100%;
    position: relative;
    z-index: 999;
}

.header-navigation-area {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.header-navigation-area .row {
    align-items: center;
}

/* Logo */
.navbar-brand.logo {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.navbar-brand.logo .logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

/* Main Menu */
.main-menu {
    display: none;
}

.main-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.main-menu nav ul li {
    position: relative;
    margin: 0 8px;
}

.main-menu nav ul li a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.main-menu nav ul li a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Login Button Style */
.main-menu nav ul li a.btn-style {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
}

.main-menu nav ul li a.btn-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Language Toggle */
.language-toggle .language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-toggle .language-btn:hover {
    border-color: #667eea;
    background: #f9fafb;
    transform: translateY(-2px);
}

.language-toggle .flag-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.language-toggle .lang-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

/* Submenu */
.main-menu nav ul li.has-sub {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-menu nav ul li.has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
    display: block;
}

.sub-menu a,
.sub-menu .logout-btn {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 10px 20px !important;
    background: transparent !important;
    border: 0 !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: inherit !important;
    font-family: inherit !important;
    border-radius: 0 !important;
}

.sub-menu a:hover,
.sub-menu .logout-btn:hover {
    background: #f3f4f6 !important;
    color: #667eea !important;
    padding-left: 24px !important;
}

/* Mobile Menu Toggle */
.mobile-menu-right {
    display: block;
    float: right;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    float: right;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    position: absolute;
    left: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 18px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 26px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);

    nav ul li .sub-menu a {
        text-align: right;
        padding-right: 20px;
        padding-left: 10px;
    }

    top: 18px;
}

/* Desktop Menu */
@media (min-width: 992px) {
    .main-menu {
        display: block !important;
    }

    .mobile-menu-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .main-menu nav ul {
        flex-wrap: nowrap;
    }
}

/* Tablet & Mobile */
@media (max-width: 991px) {
    .header-navigation-area .col-md-12 {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-right {
        display: block;
        float: none;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px 15px;
        z-index: 999;
    }

    .main-menu.active {
        display: block;
    }

    .main-menu nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-menu nav ul li {
        margin: 4px 0;
        width: 100%;
    }

    .main-menu nav ul li a {
        padding: 12px 16px;
    }

    .main-menu nav ul li a.btn-style {
        text-align: center;
        margin: 10px 0;
    }

    .language-toggle {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .language-toggle .language-btn {
        display: inline-flex;
        margin: 0 auto;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        background: #f9fafb;
        margin-top: 8px;
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

/* ========================================
   HERO SECTION RESPONSIVE
   ======================================== */

.banner-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
}

.banner-section .content-box h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.banner-section .content-box .badge {
    font-size: 0.875rem;
    padding: 8px 16px;
}

.banner-section .image-box img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .banner-section {
        padding: 60px 0;
    }

    .banner-section .content-box h1 {
        font-size: 2rem;
    }

    .banner-section .image-box {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .banner-section {
        padding: 40px 0;
    }

    .banner-section .content-box h1 {
        font-size: 1.75rem;
    }

    .pdt-110 {
        padding-top: 60px !important;
    }

    .pdb-110 {
        padding-bottom: 60px !important;
    }
}

/* ========================================
   SERVICES SECTION RESPONSIVE
   ======================================== */

.serivce-section {
    padding: 80px 0;
}

.service-box {
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.2) !important;
}

.service-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.service-content .title h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.service-content .para p {
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .serivce-section {
        padding: 60px 0;
    }

    .service-box {
        padding: 25px;
        margin-bottom: 20px;
    }

    .service-content .title h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   FOOTER RESPONSIVE
   ======================================== */

.footer-main-area {
    padding: 80px 0 50px;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.footer-widget h3,
.footer-widget .widget-title {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-list li {
    margin-bottom: 10px;
}

.footer-widget-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget-list a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom-area {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
    .footer-main-area {
        padding: 60px 0 40px;
    }

    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .footer-main-area {
        padding: 40px 0 30px;
    }

    .footer-widget h3,
    .footer-widget .widget-title {
        font-size: 1.125rem;
    }

    .pdt-80 {
        padding-top: 40px !important;
    }

    .pdb-50 {
        padding-bottom: 30px !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Padding */
.pdt-80 {
    padding-top: 80px;
}

.pdb-80 {
    padding-bottom: 80px;
}

.pdt-110 {
    padding-top: 110px;
}

.pdb-110 {
    padding-bottom: 110px;
}

.pdt-50 {
    padding-top: 50px;
}

.pdb-50 {
    padding-bottom: 50px;
}

/* Margin */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Text */
.text-center {
    text-align: center;
}

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

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Background */
.bg-white {
    background-color: white;
}

.bg-dark {
    background-color: #1f2937;
}

.bg-gradient-color {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Flexbox */
.d-flex {
    display: flex;
}

.d-inline-block {
    display: inline-block;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

/* Border */
.border-radius-default {
    border-radius: 8px;
}

.rounded {
    border-radius: 12px;
}

/* Shadow */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.cs-btn-one {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-white {
    background: white;
    color: #667eea !important;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Height */
.h-100 {
    height: 100%;
}

/* ========================================
   RTL SUPPORT
   ======================================== */

[dir="rtl"] .f-left {
    float: right !important;
}

[dir="rtl"] .f-right {
    float: left !important;
}

[dir="rtl"] .main-menu nav ul {
    float: left;
}

[dir="rtl"] .main-menu nav ul li {
    float: right;
}

[dir="rtl"] .footer-widget-list a:hover {
    padding-left: 0;
    padding-right: 8px;
}

[dir="rtl"] .sub-menu a:hover,
[dir="rtl"] .sub-menu .logout-btn:hover {
    padding-left: 20px !important;
    padding-right: 24px !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header-style-two,
    .footer,
    .mobile-menu-toggle,
    .language-toggle {
        display: none !important;
    }
}
