/*
Theme Name: Maqar Theme
Theme URI: https://maqar.com.sa
Author: MAQAR
Author URI: https://maqar.com.sa
Description: Custom WordPress Theme for Maqar with a responsive custom dashboard and multi-language support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aqarat
Tags: Maqar International Limited
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Outfit:wght@100..900&display=swap');

:root {
    --primary-color: #4db2b2;
    --primary-dark: #225675;
    --signature-color: #225675;
    --text-color: #1a2a36;
    --secondary-text: #7a7a7c;
    --border-color: #E1E1E1;
    --primary-light: #e0f4f4;
    --primary-shadow: rgba(83, 193, 193, 0.3);
    --navy: #225675;
    --teal: #4db2b2;
    --gray: #7a7a7c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html,
input,
button,
select,
textarea {
    font-family: 'Cairo', 'Outfit', sans-serif;
}

body {
    color: var(--text-color);
    direction: rtl;
    background-color: #FFFFFF;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Header Styles */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99999;
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    flex-wrap: nowrap !important;
}

.logo-wrapper {
    flex-shrink: 0;
    padding-left: 20px;
    /* Space between logo and menu in RTL */
}

.site-logo {
    width: auto;
    height: 60px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.nav-menu-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.faq-btn {
    border-radius: 50% !important;
    background-color: goldenrod !important;

    svg {
        color: #000;
        fill: #000;
    }
}

/* Premium Navigation Styling */
.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.nav-link {
    position: relative;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a2a36 !important;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: #4db2b2;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #4db2b2 !important;
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.signature {
    color: var(--signature-color);
}

/* Contact Us Button in Nav */
.nav-contact-btn {
    background-color: rgba(77, 178, 178, 0.1);
    color: #4db2b2 !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    border: none;
    transition: all 0.4s ease;
}

.nav-contact-btn:hover {
    background-color: #4db2b2;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(77, 178, 178, 0.2);
}

.nav-contact-btn::after {
    display: none !important;
}


.header-utilities {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap !important;
}



.more-icon {
    font-size: 10px;
    margin-right: 4px;
    transition: transform 0.3s;
}

.header-dropdown.active .more-icon {
    transform: rotate(180deg);
}

/* More Dropdown Specific Header */
.more-dropdown .dropdown-content {
    min-width: 250px;
    padding: 0;
    /* Header takes full width */
    overflow: hidden;
}

.dropdown-header {
    background: #e0f4f4;
    color: #4db2b2;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid rgba(83, 193, 193, 0.1);
}

.more-dropdown .dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
}

/* Header Utility Dropdowns (Generic) */
.header-dropdown {
    position: relative;
    display: inline-block;
}

.header-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    /* Align to right for RTL */
    background: #ffffff;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 999999;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Specific styling for Currency/Language which should be narrower or align differently */
.header-dropdown.currency-dropdown .dropdown-content {
    min-width: 120px;
}

.header-dropdown.lang-dropdown .dropdown-content {
    min-width: 100px;
}

.header-dropdown .dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.header-dropdown.active .dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.dropdown-item .country-flag,
.dropdown-item .currency-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.dropdown-item i {
    width: 14px;
    text-align: center;
}

.utility-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 12px;
    transition: opacity 0.2s;
}

.utility-btn i {
    color: var(--secondary-text);
    font-size: 14px;
}

.utility-btn .lang-text {
    font-weight: 700;
}

.country-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* User Dropdown Styling */
.user-utility-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
}

.user-utility-btn:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.user-name-text {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a36;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown .dropdown-content {
    min-width: 180px;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 44px;
    background-color: #FFFFFF;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.login-btn:hover {
    background-color: #F8F8F8;
    border-color: #CCCCCC;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-color);
}

/* Submenu Arrow for RTL */
.has-submenu>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 11px;
    color: var(--secondary-text);
}

/* Mobile Media Queries */
@media (max-width: 1024px) {
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
    }
    .logo-wrapper {
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }
    .header-utilities {
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .nav-menu-wrapper,
    .utility-btn,
    .currency-dropdown,
    .lang-dropdown,
    .country-dropdown,
    .user-dropdown {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
        margin: 0 !important;
    }
    .site-logo {
        width: 110px !important;
        height: auto !important;
    }
}

/* Hero Search Styles */
.hero-search-tabs li {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
}

.hero-search-tabs li.active-tab {
    background-color: #4db2b2 !important;
    color: white !important;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 1050px;
    height: 80px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    padding: 8px;
    align-items: stretch;
}

/* Global Main Container - Standardized for unified width */
.container-main {
    width: 100%;
    max-width: 1188px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Premium Section Wrapper - Adds consistent spacing and beautiful borders */
.premium-section-wrapper {
    padding: 100px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    background-color: #FFFFFF;
    transition: background-color 0.4s ease;
}

/* Subtle background alternation for premium depth */
.premium-section-wrapper:nth-child(even) {
    background-color: #fbfbfb;
}

@media (max-width: 1024px) {
    .premium-section-wrapper {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .premium-section-wrapper {
        padding: 60px 0;
    }
    .container-main {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Home About Section Vertical Margins */
.home-about-section {
    width: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
    padding: 20px 0;
    /* Some padding for background image breathing room */
}

.search-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    border-radius: 40px;
    margin: 0 4px;
    background: transparent;
}

.search-segment:hover {
    background-color: rgba(240, 244, 248, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.search-segment-location {
    flex: 1.8;
}

.search-segment-location input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-right: 12px;
}

.search-segment label,
.search-segment span {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.btn-search-hero {
    background: linear-gradient(135deg, var(--signature-color), #123d57);
    color: white;
    min-width: 150px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 40px;
    box-shadow: 0 8px 15px rgba(34, 86, 117, 0.25);
}

.btn-search-hero:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 12px 24px rgba(34, 86, 117, 0.4);
    background: linear-gradient(135deg, #123d57, var(--signature-color));
}

.search-segment i {
    color: #9ca3af;
    font-size: 12px;
    margin-right: 12px;
}

/* Bootstrap Dropdown Customization for Search Bar */
.search-container .dropdown-menu {
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid #eee;
    margin-top: 10px !important;
    padding: 10px 0;
    max-height: 350px;
    overflow-y: auto;
    width: 280px;
    z-index: 9999;
    right: 0 !important;
    /* Force RTL alignment */
    left: auto !important;
}

/* Scrollbar on LEFT for RTL dropdown */
.search-container .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.search-container .dropdown-menu::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.search-container .dropdown-menu::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.search-container .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.search-container .dropdown-item {
    padding: 14px 24px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #4b5563;
    transition: all 0.2s ease;
    border-bottom: 0px solid #f9fafb;
}

.search-container .dropdown-item:hover {
    background-color: #f5f7f9;
    color: #4db2b2;
    padding-right: 30px;
    /* Micro-interaction */
}

/* Hide Default Bootstrap Chevron on Toggle */
.search-container .dropdown-toggle::after {
    display: none !important;
}

.search-container .search-segment {
    text-decoration: none !important;
    color: inherit !important;
}

/* Hero Search Tabs Styling - Creative Glassmorphism */
.hero-search-tabs {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    padding: 8px !important;
    border-radius: 60px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    display: inline-flex !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 auto 24px auto !important;
    position: relative !important;
    z-index: 100 !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    list-style: none !important;
}

.hero-search-tabs li {
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #4b5563 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 10px 28px !important;
    flex: none !important;
    margin: 0 4px !important;
    border: 1px solid transparent !important;
}

.hero-search-tabs li.is-active {
    background: linear-gradient(135deg, var(--primary-color), #3ea3a3) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(83, 193, 193, 0.35) !important;
    transform: scale(1.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero-search-tabs li:hover:not(.is-active) {
    background: rgba(83, 193, 193, 0.08) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

/* Projects Tab Specifics */
.hero-search-tabs.is-project-active li.is-active {
    background: linear-gradient(135deg, #8cc63f, #6d9e2e) !important;
    box-shadow: 0 8px 20px rgba(140, 198, 63, 0.35) !important;
}

.hero-search-tabs.is-project-active li:hover:not(.is-active) {
    background: rgba(140, 198, 63, 0.08) !important;
    color: #8cc63f !important;
}

.btn-search-projects {
    background: linear-gradient(135deg, #8cc63f, #6d9e2e) !important;
    box-shadow: 0 8px 15px rgba(140, 198, 63, 0.25) !important;
}

.btn-search-projects:hover {
    background: linear-gradient(135deg, #6d9e2e, #8cc63f) !important;
    box-shadow: 0 12px 24px rgba(140, 198, 63, 0.4) !important;
}

/* Circular Room Buttons */
.room-circle-btn {
    cursor: pointer;
    margin: 0;
}

.room-circle-btn .circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 14px;
    border-radius: 50px;
    border: 1px solid #E1E1E1;
    color: #4b5563;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 14px;
}

.room-circle-btn input:checked+.circle {
    border-color: #8cc63f;
    color: #8cc63f;
    background-color: rgba(140, 198, 63, 0.05);
}

/* Reusable Pill Tabs Styling */
.custom-pill-tabs {
    display: flex !important;
    background: white !important;
    border: 1px solid #E1E1E1 !important;
    border-radius: 50px !important;
    padding: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    width: fit-content !important;
}

.custom-pill-tabs button {
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    background: transparent !important;
    color: #4b5563 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
}

.custom-pill-tabs button.active {
    background: #16435e !important;
    color: white !important;
    box-shadow: 0 6px 15px rgba(83, 193, 193, 0.3) !important;
}

.custom-pill-tabs button:hover:not(.active) {
    background: #f8fafc !important;
    color: #4db2b2 !important;
}

/* Remove Underline from Project Links */
section a,
.btn-search-hero span {
    text-decoration: none !important;
}

/* Premium Project Card Styling - Modern & Simple */
.project-card-premium {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    aspect-ratio: 4 / 5 !important;
    background: #f8fafc !important;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    height: 100% !important;
    width: 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.project-card-premium:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.project-card-premium .card-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.project-card-premium:hover .card-image {
    transform: scale(1.06) !important;
}

.project-card-premium .card-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Badges Layout */
.project-card-premium .top-badges {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    z-index: 10 !important;
}

.project-card-premium .badge-pill {
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    letter-spacing: 0.3px !important;
}

.project-card-premium .badge-available {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #10b981 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.project-card-premium .badge-black {
    background: rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.project-card-premium .delivery-info {
    position: absolute !important;
    top: 48px !important;
    right: 16px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 10 !important;
    backdrop-filter: blur(8px) !important;
}

/* Logo Circle */
.project-card-premium .project-logo-circle {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    width: 46px !important;
    height: 46px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px) !important;
}

.project-card-premium .project-logo-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Projects Section Spacing */
#exclusive-projects-section {
    margin-top: 120px !important;
    margin-bottom: 120px !important;
}

/* Card Content (Bottom) */
.project-card-content {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    padding: 20px !important;
    color: white !important;
    z-index: 30 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.project-card-content .card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: white !important;
    width: 100% !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: -0.3px !important;
}

.project-card-content .card-location {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.project-card-content .card-location i {
    order: 2 !important;
    font-size: 13px !important;
}

.project-card-content .card-location span {
    order: 1 !important;
}

.project-card-content .type-badge {
    display: none !important;
    /* Hidden for a cleaner look */
}

/* Modern Card Footer */
.project-card-content .card-footer-row {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin-top: 8px !important;
}

.project-card-content .footer-line {
    display: none !important;
}

.project-card-content .card-footer-row>.flex {
    margin-top: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.project-card-content .price-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.project-card-content .price-selector-wrapper {
    position: relative !important;
    z-index: 31 !important;
}

.project-card-content .price-value-trigger {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.project-card-content .price-value-trigger:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

.project-card-content .currency-icon {
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-right: 4px !important;
}

.project-card-content .price-num {
    color: white !important;
}

.project-card-content .price-value-trigger i {
    font-size: 10px !important;
    margin-right: 6px !important;
    opacity: 0.7 !important;
}

/* Currency Dropdown */
.project-card-content .currency-dropdown {
    position: absolute !important;
    bottom: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    width: 220px !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    padding: 16px !important;
    z-index: 100 !important;
    color: #1e293b !important;
    display: none;
    opacity: 0;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    text-align: left !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.project-card-content .currency-dropdown.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.project-card-content .currency-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.project-card-content .currency-item {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
}

.project-card-content .currency-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.project-card-content .currency-item span:first-child {
    color: #64748b !important;
    font-weight: 600 !important;
}

.project-card-content .currency-item span:last-child {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Projects Navigation Buttons */
.swiper-nav-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #FAFAFA !important;
    border: 1px solid #E5E7EB !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #000 !important;
}

.swiper-nav-btn:hover {
    background: #0f172a !important;
    color: #FFF !important;
    border-color: #0f172a !important;
    transform: scale(1.05) !important;
}

.swiper-nav-btn i {
    font-size: 14px !important;
}

/* Community Section Styles */
.community-card-premium {
    position: relative !important;
    height: 480px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    group: hover;
}

.community-card-premium .card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.community-card-premium:hover .card-image {
    transform: scale(1.08) !important;
}

.community-card-premium .card-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.8) 100%) !important;
    z-index: 5 !important;
}

.community-card-premium .card-info-box {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    left: 30px !important;
    z-index: 10 !important;
    color: white !important;
}

.community-card-premium .community-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.community-card-premium .community-subtitle {
    font-size: 16px !important;
    font-weight: 400 !important;
    opacity: 0.85 !important;
}

.community-card-premium .community-arrow {
    width: 48px !important;
    height: 48px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}

.community-card-premium:hover .community-arrow {
    background: white !important;
    color: black !important;
    border-color: white !important;
}

/* Circular Progress Controls */
.progress-wrapper {
    position: relative !important;
    padding: 0 !important;
    background: transparent !important;
}

.comm-progress-circle {
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    width: 48px !important;
    height: 48px !important;
    transform: rotate(-90deg) !important;
    pointer-events: none !important;
}

.comm-progress-circle circle {
    fill: none !important;
    stroke: #4db2b2 !important;
    /* Signature Green */
    stroke-width: 2.5px !important;
    stroke-linecap: round !important;
}

.circle-btn i {
    z-index: 1 !important;
}



main.flex.flex-col.min-h-screen.bg-\[\#FAFAFA\].pb-20 {
    margin-top: 50px;
}
.project-card-content .price-num {
    color: white !important;
}

.project-card-content .price-value-trigger i {
    font-size: 10px !important;
    margin-right: 6px !important;
    opacity: 0.7 !important;
}

/* Currency Dropdown */
.project-card-content .currency-dropdown {
    position: absolute !important;
    bottom: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    width: 220px !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    padding: 16px !important;
    z-index: 100 !important;
    color: #1e293b !important;
    display: none;
    opacity: 0;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    text-align: left !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.project-card-content .currency-dropdown.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.project-card-content .currency-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.project-card-content .currency-item {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
}

.project-card-content .currency-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.project-card-content .currency-item span:first-child {
    color: #64748b !important;
    font-weight: 600 !important;
}

.project-card-content .currency-item span:last-child {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Projects Navigation Buttons */
.swiper-nav-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #FAFAFA !important;
    border: 1px solid #E5E7EB !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #000 !important;
}

.swiper-nav-btn:hover {
    background: #0f172a !important;
    color: #FFF !important;
    border-color: #0f172a !important;
    transform: scale(1.05) !important;
}

.swiper-nav-btn i {
    font-size: 14px !important;
}

/* Community Section Styles */
.community-card-premium {
    position: relative !important;
    height: 480px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    group: hover;
}

.community-card-premium .card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.community-card-premium:hover .card-image {
    transform: scale(1.08) !important;
}

.community-card-premium .card-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.8) 100%) !important;
    z-index: 5 !important;
}

.community-card-premium .card-info-box {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    left: 30px !important;
    z-index: 10 !important;
    color: white !important;
}

.community-card-premium .community-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.community-card-premium .community-subtitle {
    font-size: 16px !important;
    font-weight: 400 !important;
    opacity: 0.85 !important;
}

.community-card-premium .community-arrow {
    width: 48px !important;
    height: 48px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}

.community-card-premium:hover .community-arrow {
    background: white !important;
    color: black !important;
    border-color: white !important;
}

/* Circular Progress Controls */
.progress-wrapper {
    position: relative !important;
    padding: 0 !important;
    background: transparent !important;
}

.comm-progress-circle {
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    width: 48px !important;
    height: 48px !important;
    transform: rotate(-90deg) !important;
    pointer-events: none !important;
}

.comm-progress-circle circle {
    fill: none !important;
    stroke: #4db2b2 !important;
    /* Signature Green */
    stroke-width: 2.5px !important;
    stroke-linecap: round !important;
}

.circle-btn i {
    z-index: 1 !important;
}



main.flex.flex-col.min-h-screen.bg-\[\#FAFAFA\].pb-20 {
    margin-top: 50px;
}

.w-full.max-w-full.lg\:max-w-\[1188px\].mx-auto.px-\[24px\] {
    margin-top: 50px;
}

/* ============================================================
   MOBILE OPTIMIZATION & ORGANIZATION (Premium Global Cleanup)
   ============================================================ */
@media (max-width: 768px) {
    /* 1. Global Spacing & Typography */
    .premium-section-wrapper {
        padding: 30px 0 !important;
    }
    
    .container-main {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    h1, h2, .h-main-title, .radical-main-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    /* 2. Hero & Search Engine */
    .search-engine-wrapper {
        margin-top: -40px !important;
        margin-bottom: 10px !important;
    }

    #hero-form .search-container {
        height: auto !important;
        padding: 15px !important;
        gap: 10px !important;
        border-radius: 25px !important;
    }

    #hero-form .search-container .dropdown-menu {
        z-index: 9999999 !important;
    }

    /* 3. Reduce Gaps between Cards */
    .swiper-slide {
        margin-bottom: 0 !important;
    }
    
    .h-card, .project-card-premium {
        margin-bottom: 10px !important;
    }

    #exclusive-projects-section, 
    .home-about-section,
    #maqar-blog-section {
        margin-top: 25px !important;
        margin-bottom: 25px !important;
    }

    .radical-header, .h-header {
        margin-bottom: 20px !important;
    }

    /* 4. Projects Section Optimization */
    .radical-showcase-board {
        padding: 8px !important;
        gap: 12px !important;
        min-height: auto !important;
    }
    
    .showcase-display {
        height: 380px !important;
    }
    
    .display-content {
        padding: 15px !important;
    }
    
    .content-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }
    
    .content-metrics {
        margin-bottom: 15px !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }

    .metric-box {
        gap: 4px !important;
    }

    .m-val {
        font-size: 16px !important;
    }

    .radical-cta {
        padding: 12px 25px !important;
        font-size: 14px !important;
        gap: 10px !important;
    }

    .project-item {
        padding: 10px !important;
        gap: 10px !important;
    }

    .item-thumb {
        width: 45px !important;
        height: 45px !important;
    }

    .item-info h5 {
        font-size: 13px !important;
    }

    /* 5. Fixed White Spaces */
    .pf-grid {
        gap: 20px !important;
    }
    
    .pf-card {
        padding: 30px 20px !important;
    }
}
