/* ===================================
   MODERN PROFESSIONAL DESIGN
   مرصد التجارة العربية
   =================================== */

:root {
    --primary-color: #2D6F3F;
    --primary-dark: #1e4d2a;
    --primary-light: #4a8f5f;
    --secondary-color: #F4B81B;
    --accent-color: #599336;
    --text-dark: #2c3e50;
    --text-gray: #5b5858;
    --text-light: #7d7c7c;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* ===================================
   GLOBAL ENHANCEMENTS
   =================================== */

body {
    font-family: 'Droid-Arabic-Kufi', 'Tajawal', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

/* ===================================
   UPPER HEADER MODERN STYLING
   =================================== */

.upper-header-1 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.links-1-upper {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.link-c-n {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.link-c-n:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.link-lang-n {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.link-lang-n:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.icon-new-ii {
    font-size: 14px;
}

/* ===================================
   LOGO SECTION MODERN STYLING
   =================================== */

.multi-logos-ii {
    background: white;
    padding: 25px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.logo-m-11 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.img-logo-new {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.heading-1-nn {
    flex: 1;
}

.header-web-new {
    margin: 0;
    line-height: 1.4;
}

.header-web-new:first-child {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.header-web-new:last-child {
    font-size: 22px;
    color: var(--text-gray);
    font-weight: 500;
}

.logo-inner-two {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.img-logo-two {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===================================
   NAVIGATION MODERN STYLING
   =================================== */

.nav-bar-ii {
    background: linear-gradient(180deg, #474343 0%, #2c2c2c 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: visible;
}

.nav-bar-ii .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.navbar {
    padding: 0;
    width: 100%;
    overflow: visible;
    position: relative;
}

.navbar-collapse {
    overflow: visible !important;
    position: relative;
}

.navbar-nav {
    gap: 0;
    width: auto;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-link-n {
    color: white !important;
    padding: 18px 16px !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
}

.nav-link-n::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, #D69A07 100%);
    transition: var(--transition);
}

.nav-item.active .nav-link-n::before,
.nav-link-n:hover::before {
    width: 100%;
}

.nav-item.active .nav-link-n,
.nav-link-n:hover {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #D69A07 100%);
    color: white !important;
    text-decoration: none;
}

.nav-link-n i {
    font-size: 12px;
    transition: var(--transition);
    margin-right: 5px;
}

.dropdown-toggle:hover i {
    transform: rotate(180deg);
}

/* Hide Bootstrap's default dropdown arrow (::after) - we use Font Awesome icon instead */
.dropdown-toggle::after {
    display: none !important;
}

/* Dropdown Menu Styling */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    background: white;
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 0;
    min-width: 250px;
    max-width: 300px;
    right: 0;
    left: auto;
    position: absolute;
    top: 100%;
    z-index: 1050;
    display: none;
}

.dropdown-menu.show {
    display: block !important;
}

/* Ensure dropdowns work on hover for desktop */
@media (min-width: 992px) {
    /* Always show menu on desktop - no collapse */
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-direction: row !important;
    }
    
    .nav-bar-ii .container {
        max-width: 100% !important;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .navbar-nav {
        flex-wrap: nowrap !important;
        overflow: visible !important;
        width: auto !important;
        max-width: none !important;
        flex-direction: row !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .nav-link-n {
        padding: 18px 14px !important;
        font-size: 15px;
        white-space: nowrap !important;
    }
    
    /* Ensure full menu labels are visible */
    .nav-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .nav-item.dropdown {
        position: relative;
    }
    
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.show .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        z-index: 1050 !important;
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        margin-top: 0;
    }
    
    .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure dropdown stays visible on hover */
    .nav-item.dropdown:hover .dropdown-menu {
        pointer-events: auto;
    }
    
    /* Hide Bootstrap's default dropdown arrow on desktop */
    .dropdown-toggle::after {
        display: none !important;
    }
}

/* Medium screens - adjust for better fit */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-link-n {
        padding: 18px 12px !important;
        font-size: 14px;
    }
    
    .nav-bar-ii .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.link-sub-menu-n {
    color: var(--text-dark);
    padding: 12px 20px;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    display: block;
    text-align: right;
}

.link-sub-menu-n:last-child {
    border-bottom: none;
}

.link-sub-menu-n:hover {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-decoration: none;
    padding-right: 25px;
}

/* Mobile Toggle Button */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    background: transparent;
    outline: none;
    display: none;
}

.navbar-toggler:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

/* Hide toggle on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Mobile Menu Styling */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-collapse {
        background: linear-gradient(180deg, #474343 0%, #2c2c2c 100%);
        margin-top: 10px;
        padding: 15px;
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link-n {
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-link-n::before {
        display: none;
    }
    
    .nav-item.active .nav-link-n,
    .nav-link-n:hover {
        background: linear-gradient(90deg, var(--secondary-color) 0%, #D69A07 100%);
        border-bottom-color: transparent;
    }
    
    /* Dropdown in Mobile */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        display: none;
    }
    
    .link-sub-menu-n {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 14px;
    }
    
    .link-sub-menu-n:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        padding-right: 35px;
    }
    
    .dropdown-toggle::after {
        display: none;
    }
    
    /* Show dropdown on click in mobile */
    .nav-item.dropdown.show .dropdown-menu {
        display: block !important;
    }
    
    /* Better mobile dropdown toggle */
    .nav-item.dropdown .dropdown-toggle {
        cursor: pointer;
    }
    
    .nav-item.dropdown .dropdown-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
    
    .logo-m-11 {
        flex-direction: column;
        text-align: center;
    }
    
    .img-logo-new {
        width: 120px;
    }

    .logo-inner-two {
        justify-content: center;
        margin-top: 20px;
    }

    .header-web-new:first-child {
        font-size: 24px;
    }

    .header-web-new:last-child {
        font-size: 18px;
    }

    .component-d {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices */
@media (max-width: 575px) {
    .nav-link-n {
        font-size: 14px;
        padding: 12px 15px !important;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
    }
}

/* Large screens - show full labels */
@media (min-width: 1200px) {
    .nav-link-n {
        padding: 18px 18px !important;
        font-size: 15px;
    }
    
    .nav-bar-ii .container {
        max-width: 100%;
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Extra large screens - more space for full labels */
@media (min-width: 1400px) {
    .nav-link-n {
        padding: 18px 22px !important;
        font-size: 16px;
    }
    
    .nav-bar-ii .container {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* ===================================
   SLIDER MODERN STYLING
   =================================== */

.slider-m {
    margin: 30px 0;
}

.main-slider .single-one {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.main-slider .single-one:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.main-slider .single-one img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.main-slider .slick-dots {
    bottom: 25px;
}

.main-slider .slick-dots li button:before {
    color: white;
    font-size: 14px;
    opacity: 0.6;
}

.main-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--secondary-color);
    font-size: 16px;
}

/* ===================================
   NEWS SECTION MODERN STYLING
   =================================== */

.news-organization {
    margin: 40px 0;
}

.header-of-slider {
    margin-bottom: 25px;
}

.header-of-slider h6 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius-sm);
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.header-of-slider h6::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.header-of-slider h6:hover::before {
    right: 100%;
}

.carosal-slider-news {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.carosal-slider-news:hover {
    box-shadow: var(--shadow-lg);
}

.detail-slide-c {
    padding: 20px;
}

.detail-slide-c .link-a-header {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
    text-decoration: none;
    transition: var(--transition);
}

.detail-slide-c .link-a-header:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(-3px);
}

.detail-slide-c span {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.detail-slide-c p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-slide-c .btn-a-more {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: none;
}

.detail-slide-c .btn-a-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.slide-one img {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 350px;
    object-fit: cover;
    width: 100%;
}

.slide-one:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ===================================
   SERVICES CARD MODERN STYLING
   =================================== */

.services-organization {
    height: 100%;
}

.detail-serv {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    color: white;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-serv::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.detail-serv:hover::before {
    top: -30%;
    right: -30%;
}

.detail-serv:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.detail-serv img {
    width: 100%;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.detail-serv p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-serv a {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.detail-serv a:hover {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   EVENTS SECTION MODERN STYLING
   =================================== */

.events {
    margin: 40px 0;
}

.soon-events {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.soon-events:hover {
    box-shadow: var(--shadow-lg);
}

.heading-events {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
}

.img-e {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.heading-events h6 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.soon-events ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.soon-events ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    transition: var(--transition);
    position: relative;
    padding-right: 50px;
}

.soon-events ul li:hover {
    background: #e9ecef;
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

.number-s {
    position: absolute;
    right: -12px;
    background: var(--text-gray);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.a-li-events {
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.a-li-events:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.more-events {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
}

.more-events:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   PROGRAMS/PUBLICATIONS MODERN STYLING
   =================================== */

.li-n-ii {
    padding: 25px 0;
    border-bottom: 2px solid var(--border-color);
    transition: var(--transition);
}

.li-n-ii:last-child {
    border-bottom: none;
}

.li-n-ii:hover {
    padding-right: 10px;
}

.main-li-n {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-h6-li-n {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    transition: var(--transition);
}

.li-n-ii:hover .main-h6-li-n {
    color: var(--accent-color);
}

.text-li-n {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.p-n-li-ii {
    flex: 1;
}

.p-n-li-ii p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.more-events-li-n {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.more-events-li-n:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.a-img-li-ii {
    width: 150px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.li-n-ii:hover .a-img-li-ii {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.img-n-ii {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* ===================================
   COMPONENT GRID MODERN STYLING
   =================================== */

.component-d {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    width: 100%;
}

.component-d a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
    min-height: 130px;
    box-shadow: var(--shadow-sm);
    color: white;
    font-size: 15px;
    font-weight: 600;
    gap: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.component-d a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.component-d a:hover::before {
    opacity: 1;
}

.component-d a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
}

.component-d a img {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
    flex-shrink: 0;
}

.component-d a:hover img {
    transform: scale(1.1);
}

.bg-light-g {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.bg-yellow-1 {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e0a500 100%);
}

.bg-light-gray {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.bg-d-gray {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.img-c-a {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* ===================================
   FOOTER MODERN STYLING
   =================================== */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 50px 0 30px;
    color: white;
    margin-top: 60px;
}

.foot-d {
    margin-bottom: 30px;
}

.foot-d h6 {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.foot-d ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foot-d ul li {
    margin-bottom: 12px;
}

.foot-d ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.foot-d ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
    text-decoration: none;
}

.num-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
}

.num-contact:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    text-decoration: none;
}

.img-footer {
    width: 30px;
    height: 30px;
}

/* ===================================
   COPYRIGHT MODERN STYLING
   =================================== */

.copy-right {
    background: #1a252f;
    padding: 20px 0;
    text-align: center;
}

.copy-right p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

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

@media (max-width: 767px) {
    .links-1-upper {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .slide-one .row {
        flex-direction: column-reverse;
    }

    .slide-one img {
        height: 250px;
    }

    .main-slider .single-one img {
        height: 300px;
    }

    .detail-slide-c {
        padding: 15px;
    }

    .detail-slide-c .link-a-header {
        font-size: 18px;
    }

    .soon-events ul li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-right: 20px;
    }

    .a-li-events {
        width: 100%;
        text-align: center;
    }

    .component-d {
        padding: 20px 15px;
    }

    .footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 575px) {
    .header-of-slider h6 {
        font-size: 16px;
        padding: 10px 20px;
    }

    .carosal-slider-news {
        padding: 20px 15px;
    }

    .soon-events {
        padding: 20px 15px;
    }

    .detail-serv {
        padding: 20px 15px;
    }
}

/* ===================================
   MODERN TABLE STYLING
   =================================== */

/* Base Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background-color: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.table-responsive > .table {
    margin-bottom: 0;
}

/* Table Header */
thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

thead th {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 15px;
    text-align: right;
    border: none;
    color: white;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
}

thead th:first-child {
    border-top-right-radius: var(--border-radius);
}

thead th:last-child {
    border-top-left-radius: var(--border-radius);
}

/* Table Body */
tbody {
    background: white;
}

tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-dark);
    border: none;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    text-align: right;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Striped Table Rows */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(45, 111, 63, 0.02);
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: white;
}

.table-striped tbody tr:hover {
    background-color: #f0f7f2 !important;
}

/* Hover Effect */
.table-hover tbody tr {
    cursor: pointer;
}

.table-hover tbody tr:hover {
    background-color: #f0f7f2;
    box-shadow: 0 2px 8px rgba(45, 111, 63, 0.1);
}

/* Table Footer */
tfoot {
    background: var(--bg-light);
    border-top: 2px solid var(--primary-color);
}

tfoot td {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    border: none;
    text-align: right;
}

/* Bordered Table */
.table-bordered {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-bordered thead th,
.table-bordered tbody td,
.table-bordered tfoot td {
    border: 1px solid var(--border-color);
}

.table-bordered thead th {
    border-bottom: 2px solid var(--primary-color);
}

/* Borderless Table */
.table-borderless thead th,
.table-borderless tbody td,
.table-borderless tfoot td {
    border: none;
}

/* Small Table */
.table-sm thead th {
    padding: 12px 15px;
    font-size: 13px;
}

.table-sm tbody td {
    padding: 10px 15px;
    font-size: 13px;
}

/* Dark Table Variant */
.table-dark {
    background-color: #2c3e50;
    color: white;
}

.table-dark thead {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.table-dark tbody {
    background-color: #2c3e50;
    color: white;
}

.table-dark tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.table-dark tbody tr:hover {
    background-color: #34495e;
}

.table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Primary Table Variant */
.table-primary thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Success Table Variant */
.table-success thead {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Info Table Variant */
.table-info thead {
    background: linear-gradient(135deg, #17a2b8 0%, #13cae1 100%);
}

/* Warning Table Variant */
.table-warning thead {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e0a500 100%);
    color: var(--text-dark);
}

.table-warning thead th {
    color: var(--text-dark);
}

/* Danger Table Variant */
.table-danger thead {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Table with Actions */
.table-actions td:last-child {
    text-align: center;
    white-space: nowrap;
}

.table-actions .btn {
    margin: 0 3px;
    padding: 6px 12px;
    font-size: 12px;
}

/* Responsive Table */
@media (max-width: 767px) {
    .table-responsive {
        border-radius: var(--border-radius-sm);
    }
    
    table {
        font-size: 13px;
    }
    
    thead th {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .table-sm thead th,
    .table-sm tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Table with Icons */
.table-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
    color: var(--primary-color);
}

/* Empty State */
.table-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    font-style: italic;
}

.table-empty::before {
    content: "📋";
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
}

/* Loading State */
.table-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.table-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* GridView Specific Styles */
.GridView {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.GridViewHeaderStyle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 15px;
    text-align: right;
    border: none;
}

.GridViewRowStyle {
    background: white;
    transition: var(--transition);
}

.GridViewRowStyle:hover {
    background-color: #f0f7f2;
}

.GridViewAlternatingRowStyle {
    background-color: rgba(45, 111, 63, 0.02);
}

.GridViewAlternatingRowStyle:hover {
    background-color: #f0f7f2;
}

.GridViewFooterStyle {
    background: var(--bg-light);
    border-top: 2px solid var(--primary-color);
    padding: 16px 20px;
    font-weight: 600;
}

/* DetailsView Specific Styles */
.DetailsView {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.DetailsViewHeaderStyle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 15px;
    text-align: right;
    border: none;
    width: 30%;
}

.DetailsViewFieldHeaderStyle {
    background: var(--bg-light);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    width: 30%;
}

.DetailsViewRowStyle {
    background: white;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.DetailsViewAlternatingRowStyle {
    background-color: rgba(45, 111, 63, 0.02);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

/* ===================================
   ADDITIONAL MODERN ENHANCEMENTS
   =================================== */

/* Better spacing for sections */
.news-organization,
.events {
    padding: 20px 0;
}

/* Enhanced card hover effects */
.services-organization:hover .detail-serv,
.soon-events:hover {
    transform: translateY(-3px);
}

/* Better image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Improved form elements */
input, textarea, select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 111, 63, 0.1);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-one,
.soon-events,
.services-organization,
.component-d {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    .upper-header-1,
    .nav-bar-ii,
    .footer,
    .copy-right {
        display: none;
    }
    
    body {
        background: white;
    }
    
    table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    thead {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
    
    thead th {
        color: #000 !important;
    }
    
    tbody tr {
        border-bottom: 1px solid #ddd;
    }
}

