/*
Theme Name: altanmia
Theme URI: https://www.altanmia-gateway.com
Author: gc
Author URI: https://www.altanmia-gateway.com
Description: Custom secure theme for Al-Tanmia
Version: 1.0.0
License: GNU GPLv2 or later
Text Domain: rafidain-law
*/

:root {
    --primary-color: #0b2c4d;
    --secondary-color: #b18e46;
    --text-dark: #1a202c;
    --text-muted: #4a5568;
    --bg-site-sky: #f0f4f8;   
    --bg-white: #ffffff;      
    --font-main: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-site-sky); 
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img, video {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

.hero-section {
    background: transparent; 
}

.about-section-container,
.features-services-section,
.features-section, 
.specialties-section, 
.blog-section, 
.news-section,
.lawyers-catalog-section {
    background-color: var(--bg-white) !important;
    padding-block: 80px;
    position: relative;
    border-bottom: 1px solid rgba(11, 44, 77, 0.05); 
}

.site-header {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    z-index: 9999;
    padding-block: 15px;
    padding-inline: 8%; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

.transparent-header {
    background: linear-gradient(to bottom, rgba(7, 14, 23, 0.6) 0%, rgba(7, 14, 23, 0) 100%);
}

.scrolled-header {
    background-color: rgba(15, 44, 89, 0.95); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding-block: 10px;
    padding-inline: 8%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-box {
    display: flex;
    align-items: center;
}

#header-logo {
    height: 110px; 
    width: auto;
    transition: filter 0.4s ease, transform 0.3s ease, height 0.4s ease;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3)); 
}

.scrolled-header #header-logo {
    height: 85px;
    filter: brightness(0) invert(1) !important;
}

.menu-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    z-index: 9999 !important; 
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff !important; 
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .menu-toggle-btn {
        display: flex !important;
    }

    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        inset-inline-start: -100% !important; 
        width: 280px !important;
        height: 100vh !important;
        background-color: #080f1d !important; 
        padding-block: 80px 40px !important;
        padding-inline: 30px !important;
        box-shadow: 5px 0 25px rgba(0,0,0,0.5) !important;
        transition: inset-inline-start 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) !important;
        display: block !important;
        z-index: 9998 !important;
    }

    .main-navigation.active {
        inset-inline-start: 0 !important; 
    }

    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: start !important;
        align-items: flex-start !important; 
        width: 100% !important;
    }

    .nav-menu li {
        width: 100% !important;
        gap: 0 !important;
    }

    .nav-menu li a {
        font-size: 17px !important;
        font-weight: 700 !important;
        display: block !important;
        color: #ffffff !important;
        padding-block: 10px !important;
        padding-inline: 0 !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .nav-menu li a::after,
    .nav-menu li.current-menu-item a::after {
        display: none !important;
    }

    .menu-toggle-btn.open .hamburger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }
    .menu-toggle-btn.open .hamburger-bar:nth-child(2) {
        opacity: 0 !important;
    }
    .menu-toggle-btn.open .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
    }
}

.news-section {
    padding-block: 80px;
    width: 100%;
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px;
    padding-inline: 4%;
}

.news-card {
    position: relative;
    display: block;
    width: 100%;
    height: 380px; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease; 
}

.news-card:hover {
    transform: scale(1.04); 
    box-shadow: 0 20px 40px rgba(11, 44, 77, 0.18); 
}

.news-thumb {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px 25px; 
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(7, 24, 43, 0.95) 0%, rgba(7, 24, 43, 0.6) 60%, rgba(7, 24, 43, 0) 100%);
}

.news-info-overlay h3 {
    color: #ffffff; 
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
}

.read-more-link {
    color: #C5A880; 
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease, padding-inline-start 0.3s ease;
}

.news-card:hover .read-more-link {
    color: #ffffff;
    padding-inline-start: 5px; 
}

.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px; 
    padding: 10px;
}

.lawyer-card {
    background: #ffffff; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 44, 77, 0.06); 
    border: 1px solid #f0f4f8; 
    transition: all 0.3s ease;
    text-align: center;
}

.lawyer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(13, 39, 67, 0.12);
    border-color: #0d2743;
}

.lawyer-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #eee;
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.lawyer-card:hover .lawyer-image img {
    transform: scale(1.06); 
}

.lawyer-info {
    padding: 20px;
}

.lawyer-name {
    font-size: 19px;
    color: #0d2743;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.lawyer-specialty {
    font-size: 14px;
    color: #555;
    margin: 0 0 15px 0;
    min-height: 42px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.lawyer-experience {
    display: inline-block;
    background-color: rgba(13, 39, 67, 0.07); 
    color: #0d2743;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.hero-slider {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    display: flex;
    align-items: center;    
    justify-content: center; 
    position: relative;
    width: 100%;
}

.swiper-button-next, .swiper-button-prev {
    color: #b18e46 !important;
}

#animated-logo-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
    width: 280px;
    height: auto;
}

#animated-logo-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-section-container {
    padding-block: 100px;
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 60px;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 4%;
    align-items: center;
}

.about-text-column {
    text-align: start;
    display: flex;
    flex-direction: column;
}

#about-video-target {
    width: 100%;
    height: 420px; 
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 45px rgba(11, 44, 77, 0.15);
    background-color: #0b2c4d;
}

#about-target-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 44, 77, 0.4); 
    z-index: 1;
}

.overlay-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 2;
    width: 140px; 
    height: auto;
    pointer-events: none;
}

.overlay-center-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.4)); 
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .about-text-column {
        order: 1; 
    }
    
    #about-video-target {
        order: 2;
        height: 300px; 
    }
}

.specialties-section {
    padding-block: 80px;
    width: 100%;
    background-color: #ffffff;
}

.specialties-container {
    display: flex;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
    gap: 50px;
}

.specialties-left-side {
    flex: 1.5;
}

.specialties-right-side {
    flex: 1;
}

.side-title {
    font-size: 28px;
    color: #b18e46; 
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.side-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 60px;
    height: 3px;
    background-color: #b18e46;
}

.specialties-circular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}

.specialty-circle-card {
    width: 280px;
    height: 280px;
    border-radius: 50%; 
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    box-shadow: 0 10px 25px rgba(11, 44, 77, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-inline: auto; 
    border: 2px solid rgba(177, 142, 70, 0.2); 
}

.specialty-circle-card:hover {
    transform: translateY(-8px) rotate(2px); 
    box-shadow: 0 15px 35px rgba(11, 44, 77, 0.2);
    border-color: #b18e46;
}

.circle-image-half {
    width: 100%;
    height: 50%; 
    overflow: hidden;
    position: relative;
}

.circle-image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.specialty-circle-card:hover .circle-image-half img {
    transform: scale(1.1); 
}

.circle-text-half {
    width: 100%;
    height: 50%; 
    background-color: #0b2c4d; 
    color: #ffffff; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px 20px;
    box-sizing: border-box;
}

.circle-text-half h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #C5A880; 
}

.circle-text-half p {
    font-size: 11px;
    line-height: 1.4;
    color: #f0f4f8; 
    margin: 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    text-align: start;
}

.feature-text p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.feature-icon {
    font-size: 28px;
    background: rgba(177, 142, 70, 0.1);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #b18e46;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .specialties-container {
        flex-direction: column;
    }
    .specialties-circular-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.bt-premium-footer {
    background-color: #080f1d !important;
    color: #ffffff !important;
    padding-block: 60px 40px !important;
    width: 100% !important;
    border-radius: 40px 40px 0 0 !important;
    position: relative !important;
    z-index: 99 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.bt-footer-grid {
    max-width: 1380px !important;
    margin-inline: auto !important;
    padding-inline: 3% !important;
    display: grid !important;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr 1.6fr !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

.bt-footer-col {
    display: flex !important;
    flex-direction: column !important;
    text-align: start !important;
    position: relative !important;
}

.bt-brand-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.bt-footer-logo-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.bt-footer-logo-box img {
    max-width: 110px !important;
    height: auto !important;
}

.bt-brand-info h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 5px 0 2px 0 !important;
}

.bt-brand-info span {
    font-size: 11px !important;
    color: #8892b0 !important;
}

.bt-footer-bottom-bar {
    grid-column: 1 / -1; 
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    margin-top: 35px !important;
    padding-top: 20px !important;
    text-align: center !important; 
    width: 100% !important;
}

.bt-copyright-text {
    font-size: 12px !important;
    color: #606984 !important;
    margin: 0 !important;
    display: block !important;
}

.bt-col-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 5px !important;
    border-bottom: 2px solid rgba(177, 142, 70, 0.3) !important;
    width: fit-content !important;
    white-space: nowrap !important;
}

.bt-footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bt-footer-menu li {
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.bt-footer-menu li a {
    color: #a8b2d1 !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.bt-footer-menu li a:hover {
    color: #b18e46 !important;
}

.bt-contact-menu li a {
    white-space: nowrap !important;
}

.bt-wa-link {
    color: #4ade80 !important;
    font-weight: bold !important;
}

.bt-video-col {
    width: 100% !important;
}

.bt-iframe-container {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; 
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.bt-iframe-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1150px) {
    .bt-footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
    .bt-video-col {
        grid-column: span 3 !important;
        max-width: 400px !important;
        margin-inline: auto !important;
    }
}

@media (max-width: 768px) {
    .bt-footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 35px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .bt-brand-col, 
    .bt-footer-col:nth-child(2), 
    .bt-footer-col:nth-child(3) {
        width: 100% !important;
        align-items: center !important;
    }

    .bt-footer-col:nth-child(4) {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .bt-contact-menu {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .bt-contact-menu li {
        width: 100% !important;
        text-align: center !important;
    }

    .bt-contact-menu li a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: auto !important;
    }

    .bt-video-col {
        max-width: 280px !important; 
        margin-inline: auto !important;
    }

    .bt-col-title {
        margin-inline: auto !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .bt-footer-menu {
        padding: 0 !important;
        align-items: center !important;
    }

    .bt-footer-bottom-bar {
        width: 100% !important;
        text-align: center !important;
        margin-top: 15px !important;
    }
}

.bt-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important; 
    display: none !important; 
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(5px) !important; 
}

.bt-modal-overlay[style*="display: flex"],
.bt-modal-overlay[style*="display:flex"] {
    display: flex !important;
}

.bt-modal-container {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 900px !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4) !important;
    position: relative !important;
    padding: 40px 30px 30px 30px !important;
    overflow-y: auto !important;
    max-height: 90vh !important;
    color: #333333 !important;
}

.bt-modal-close {
    position: absolute !important;
    top: 15px !important;
    inset-inline-end: 20px !important;
    background: transparent !important;
    border: none !important;
    font-size: 32px !important;
    color: #aaaaaa !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.bt-modal-close:hover {
    color: #111111 !important;
}

.bt-modal-body-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 40px !important;
    text-align: start !important;
}

.bt-modal-info-side {
    border-inline-end: 1px solid #eeeeee !important;
    padding-inline-end: 20px !important;
}

@media (max-width: 768px) {
    .bt-modal-body-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .bt-modal-info-side {
        border-inline-end: none !important;
        padding-inline-end: 0 !important;
        border-top: 1px solid #eeeeee !important;
        padding-top: 20px !important;
    }
}

.lawyers-catalog-section {
    padding-block: 60px;
    background-color: #f9fbfd; 
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #0d2743;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

.hero-text-box h1,
.hero-text-box p,
.hero-text-box .fade-up-item,
.fade-up-item {
    text-shadow: 0px 3px 12px rgba(0, 0, 0, 0.9), 
                 0px 1px 4px rgba(0, 0, 0, 0.7) !important;
}
.fade-up-item {
    text-shadow: 0px 3px 12px rgba(0, 0, 0, 0.9), 
                 0px 1px 4px rgba(0, 0, 0, 0.7) !important;
}