/*
Theme Name: ISMA Official Theme
Theme URI: https://e-isma.com/
Author: Custom WP Developer
Description: قالب رسمی الهيأة البحرية العراقية العليا (ISMA) با قابلیت شخصی‌سازی کامل تمام بخش‌ها
Version: 2.0.0
Text Domain: isma-theme
*/

:root {
    --isma-blue: #002699;
    --isma-dark: #01131c;
    --isma-white: #ffffff;
    --isma-gray: #636363;
    --isma-light-gray: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Almarai', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    color: #353535;
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.row {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
.page_header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.admin-bar .page_header {
    top: 32px;
}

.page_header.onSticky {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.header_2 .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
}

.page_header.onSticky .header_2 .row {
    padding: 8px 30px;
}

.logo img {
    width: 174px;
    transition: width 0.3s ease;
}

.page_header.onSticky .logo img {
    width: 95px;
}

.header_2_right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sf-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.sf-menu > li > a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    padding: 0 0 14px;
    position: relative;
    display: inline-block;
    font-weight: 400;
}

.sf-menu > li > a:hover,
.sf-menu > li.current-menu-item > a,
.sf-menu > li.current_menu > a {
    color: #ffffff;
}

.sf-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.sf-menu > li > a:hover::before,
.sf-menu > li.current-menu-item > a::before,
.sf-menu > li.current_menu > a::before {
    width: 100%;
}

.search_with_icon {
    position: relative;
}

.xtra-search-icon {
    font-size: 18px;
    color: #ffffff;
    padding: 5px;
    cursor: pointer;
}

.outer_search {
    display: none;
    position: absolute;
    left: 0;
    top: 42px;
    background: #ffffff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 270px;
    z-index: 999;
}

.outer_search.active {
    display: block;
}

.outer_search form {
    display: flex;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
}

.outer_search input {
    border: none;
    padding: 10px 12px;
    width: 100%;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    outline: none;
}

.outer_search button {
    background: transparent;
    border: none;
    padding: 0 12px;
    color: #000;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    color: var(--isma-blue);
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 18px;
    cursor: pointer;
}

/* HERO SLIDER */
.hero-slider-wrap {
    position: relative;
    height: 860px;
    background-color: var(--isma-dark);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(1,19,28,0.45) 0%, rgba(1,19,28,0.82) 100%);
    z-index: 2;
}

.hero-slide-content {
    position: relative;
    z-index: 5;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
    margin-top: -30px;
}

.hero-slide-content h3 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 22px;
}

.hero-slide-content p {
    font-size: 28px;
    font-weight: 300;
    line-height: 40px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 42px;
}

.sr7-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    background: transparent;
}

.sr7-btn:hover {
    background-color: #ffffff;
    color: var(--isma-blue);
}

.hero-sub-link {
    display: block;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.hero-sub-link:hover {
    color: #ffffff;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 2px;
}

.slider-arrow:hover {
    background: #000000;
}

.slider-arrow.prev { right: 20px; }
.slider-arrow.next { left: 20px; }

/* 6-BOX SERVICES & VIDEO GRID */
.services-overlap-section {
    position: relative;
    z-index: 20;
    margin-top: -150px;
    padding-bottom: 60px;
}

.isma-6grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.isma-card {
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.08);
    min-height: 250px;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.isma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 55px rgba(0, 0, 0, 0.14);
}

.isma-card-video {
    padding: 0;
    overflow: hidden;
    background: var(--isma-dark);
}

.isma-card-video video {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

.isma-card-icon {
    text-align: center;
    margin-bottom: 25px;
}

.isma-card-icon i {
    font-size: 40px;
    color: #000000;
}

.isma-card-icon svg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    fill: #000000;
}

.isma-card-body {
    text-align: right;
}

.isma-card-sub {
    font-size: 13px;
    color: #777777;
    margin-bottom: 6px;
}

.isma-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.isma-card-footer h4 {
    font-size: 18px;
    color: #000000;
    font-weight: 800;
}

.isma-card-footer .arrow-left {
    font-size: 15px;
    color: #b0b0b0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.isma-card:hover .arrow-left {
    color: var(--isma-blue);
    transform: translateX(-5px);
}

.isma-card-cta {
    border: 3px solid var(--isma-blue);
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.isma-card-cta .cta-chevron {
    font-size: 42px;
    color: #dcdcdc;
    margin-bottom: 18px;
    font-weight: 300;
}

.isma-card-cta strong {
    font-size: 15px;
    color: #999999;
    font-weight: 700;
    display: block;
}

.isma-card-cta .hover-txt {
    display: none;
    color: var(--isma-blue);
}

.isma-card-cta:hover .default-txt {
    display: none;
}

.isma-card-cta:hover .hover-txt {
    display: block;
}

/* PORTS GALLERY CAROUSEL */
.ports-gallery-section {
    position: relative;
    padding: 30px 0 85px;
    overflow: hidden;
}

.ports-gallery-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background-color: var(--isma-dark);
    z-index: 1;
}

.ports-carousel-container {
    position: relative;
    z-index: 5;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ports-slide-frame {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    background: #0b1d2a;
}

.port-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.port-slide-item.active {
    opacity: 1;
}

.port-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.port-nav-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 15px;
    z-index: 10;
    transition: color 0.3s;
}

.port-nav-btn:hover {
    color: #ffffff;
}

/* ABOUT SECTION */
.about-isma-section {
    padding: 100px 0;
    background: #ffffff;
}

.about-isma-grid {
    display: grid;
    grid-template-columns: 60px 1.25fr 1fr;
    gap: 40px;
    align-items: center;
}

.cz_line {
    width: 1px;
    height: 220px;
    background-color: #e5e5e5;
    margin: 0 auto;
}

.about-isma-text h3 {
    font-size: 38px;
    color: #000000;
    margin-bottom: 24px;
}

.about-isma-text p {
    font-size: 15px;
    color: #555555;
    line-height: 2;
    margin-bottom: 18px;
    text-align: justify;
}

.cz_btn_outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    border: 1.5px solid var(--isma-blue);
    border-radius: 3px;
    color: var(--isma-blue);
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
}

.cz_btn_outline:hover {
    background-color: var(--isma-dark);
    border-color: var(--isma-dark);
    color: #ffffff;
}

.about-isma-img-wrap {
    position: relative;
}

.about-isma-img-wrap::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: -28px;
    width: 240px;
    height: 150px;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    z-index: 1;
}

.about-isma-img-wrap img {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ARTICLES / NEWS SECTION */
.articles-isma-section {
    padding: 60px 0 110px;
}

.articles-header {
    text-align: center;
    margin-bottom: 55px;
}

.articles-header p {
    color: var(--isma-light-gray);
    font-size: 18px;
    margin-bottom: 6px;
}

.articles-header h3 {
    font-size: 38px;
    color: #000000;
}

.articles-header h3 span {
    color: var(--isma-blue);
}

.articles-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.cz_grid_item_card {
    text-align: center;
}

.cz_grid_link_img {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
    margin-bottom: 18px;
    background: #f1f5f9;
}

.cz_grid_link_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cz_grid_item_card:hover .cz_grid_link_img img {
    transform: scale(1.07);
}

.cz_post_meta_small {
    font-size: 12px;
    color: #888888;
    margin-bottom: 10px;
    display: block;
}

.cz_post_meta_small a {
    color: var(--isma-blue);
    margin: 0 4px;
}

.cz_grid_title h3 {
    font-size: 16px;
    color: #111111;
    line-height: 1.65;
    font-weight: 800;
}

.cz_grid_title:hover h3 {
    color: var(--isma-blue);
}

/* INNER PAGE TITLE */
.page_title {
    background-position: center center;
    background-size: cover;
    background-color: var(--isma-dark);
    padding-top: 220px;
    padding-bottom: 85px;
    color: #ffffff;
}

.page_title .section_title {
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
}

/* FOOTER */
.page_footer {
    position: relative;
    background-color: var(--isma-dark);
    color: rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.footer-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.footer_1, .cz_middle_footer, .footer_2 {
    position: relative;
    z-index: 2;
}

.footer_1 .row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 45px 0 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.newsletter-title h3 {
    font-size: 28px;
    color: #ffffff;
}

.newsletter-title h3 span {
    font-weight: 300;
}

.cz_subscribe_elm {
    display: flex;
    width: 480px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 5px;
}

.cz_subscribe_elm input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 15px;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    outline: none;
}

.cz_subscribe_elm input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.cz_subscribe_elm button {
    background: #ffffff;
    color: var(--isma-blue);
    font-weight: 700;
    font-size: 13px;
    border: none;
    padding: 10px 22px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
    transition: 0.3s;
}

.cz_subscribe_elm button:hover {
    background: var(--isma-blue);
    color: #ffffff;
}

.cz_middle_footer {
    padding: 60px 0 40px;
}

.footer-middle-grid {
    display: grid;
    grid-template-columns: 2fr 0.3fr 1fr 1.3fr;
    gap: 30px;
}

.codevz-widget-about-logo {
    width: 174px;
    margin-bottom: 25px;
}

.codevz-widget-about-content {
    font-size: 14px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.78);
    max-width: 480px;
}

.codevz-widget-title {
    font-size: 15px;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 22px;
}

.footer-menu-list li {
    margin-bottom: 8px;
}

.footer-menu-list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-menu-list a i {
    font-size: 10px;
}

.footer-menu-list a:hover {
    color: #ffffff;
    padding-right: 5px;
}

.footer_2 .row {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer_2_links {
    display: flex;
    gap: 20px;
}

.footer_2_links a:hover {
    color: #ffffff;
}

/* FLOATING BUTTONS */
.floating-widgets {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 999;
}

.float-btn {
    width: 40px;
    height: 40px;
    background-color: var(--isma-dark);
    color: #ffffff;
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.float-btn:hover {
    background-color: var(--isma-blue);
}

.fixed_contact_popup {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 320px;
    background: #ffffff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    z-index: 1000;
}

.fixed_contact_popup.active {
    display: block;
}

.fixed_contact_popup input,
.fixed_contact_popup textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
}

.fixed_contact_popup button {
    width: 100%;
    background: var(--isma-blue);
    color: #ffffff;
    border: none;
    padding: 11px;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .isma-6grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-isma-grid { grid-template-columns: 1fr; }
    .cz_line { display: none; }
    .footer-middle-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
    .sf-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        right: 5%;
        width: 90%;
        background: var(--isma-blue);
        padding: 20px;
        border-radius: 4px;
    }
    .sf-menu.open { display: flex; }
    .mobile-menu-toggle { display: block; }
    .hero-slide-content h3 { font-size: 38px; }
    .hero-slide-content p { font-size: 20px; }
    .isma-6grid { grid-template-columns: 1fr; }
    .articles-grid-4 { grid-template-columns: 1fr; }
    .footer-middle-grid { grid-template-columns: 1fr; }
    .ports-slide-frame { height: 300px; }
}