/* ============================================
   HERO SECTION
   ============================================ */
.hero-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--color-primary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 15s infinite ease-in;
}

    .bubble:nth-child(1) {
        width: 40px;
        height: 40px;
        left: 10%;
        animation-duration: 8s;
    }

    .bubble:nth-child(2) {
        width: 20px;
        height: 20px;
        left: 20%;
        animation-duration: 10s;
        animation-delay: 1s;
    }

    .bubble:nth-child(3) {
        width: 50px;
        height: 50px;
        left: 35%;
        animation-duration: 12s;
        animation-delay: 2s;
    }

    .bubble:nth-child(4) {
        width: 80px;
        height: 80px;
        left: 50%;
        animation-duration: 14s;
    }

    .bubble:nth-child(5) {
        width: 35px;
        height: 35px;
        left: 55%;
        animation-duration: 11s;
        animation-delay: 1s;
    }

    .bubble:nth-child(6) {
        width: 45px;
        height: 45px;
        left: 65%;
        animation-duration: 13s;
        animation-delay: 3s;
    }

    .bubble:nth-child(7) {
        width: 25px;
        height: 25px;
        left: 75%;
        animation-duration: 9s;
        animation-delay: 2s;
    }

    .bubble:nth-child(8) {
        width: 60px;
        height: 60px;
        left: 80%;
        animation-duration: 15s;
        animation-delay: 4s;
    }

    .bubble:nth-child(9) {
        width: 30px;
        height: 30px;
        left: 90%;
        animation-duration: 10s;
        animation-delay: 1s;
    }

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }

    50% {
        transform: translateX(100px);
    }

    100% {
        bottom: 1080px;
        transform: translateX(-200px);
    }
}

.hero-gradient-line {
    height: 4px;
    background: linear-gradient(90deg, #d8262f, #ff6b6b, #d8262f);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    width: 100%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   MAIN SECTIONS
   ============================================ */
.content-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
    padding: 70px 0;
}

.detail-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, white 50%);
    padding: 60px 0;
}

.related-section {
    background: #f8f9fa;
    padding: 60px 0;
    border-top: 3px solid var(--main-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--main-color), #ff6b6b);
        border-radius: 2px;
    }

/* ============================================
   CARD BASE STYLES
   ============================================ */
.card-base {
    background: white;
    border-radius: 20px;
    overflow: visible;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-horizontal {
    display: flex;
    flex-direction: row;
    height: 180px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

    .card-horizontal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--main-color), transparent);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .card-horizontal:hover::before {
        opacity: 1;
    }

/* Clickable Cards */
a .card-base {
    cursor: pointer;
}

a:hover .card-base {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

a:hover .card-horizontal {
    transform: translateY(-6px);
}

/* ============================================
   CARD IMAGES
   ============================================ */
.card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card-image-vertical {
    height: 200px;
    border-radius: 20px 20px 0 0;
}

.card-image-horizontal {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    height: 180px;
    flex-shrink: 0;
}

.card-image-lg {
    height: 450px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: visible;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

a:hover .card-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

a:hover .card-image-overlay {
    opacity: 1;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .card-image-placeholder::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   ICON BADGES (Generic)
   ============================================ */
.icon-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -35px;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.icon-badge {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-badge-sm {
    width: 55px;
    height: 55px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: white; 
    border-radius: 50%;
    display: flex; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[dir="rtl"] .icon-badge-sm {
    right: auto;
    left: 15px;
}

.icon-badge-sm::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

a:hover .icon-badge {
    transform: scale(1.25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

a:hover .icon-badge-sm {
    transform: scale(1.12) rotate(8deg);
}

    a:hover .icon-badge-sm::before {
        opacity: 1;
    }

.icon-badge img {
    max-width: 40px;
    max-height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.icon-badge-sm img {
    max-width: 32px;
    max-height: 32px;
}

a:hover .icon-badge img {
    transform: scale(1.1);
}

.icon-badge-lg {
    position: absolute;
    bottom: -45px; /* Half of badge height */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 999;
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }
}

.icon-badge-lg::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    z-index: -1;
    opacity: 0.6;
}

.icon-badge-lg img {
    max-width: 55px;
    max-height: 55px;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.icon-badge-lg:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

    .icon-badge-lg:hover img {
        transform: scale(1.1);
    }

/* Responsive */
@media (max-width: 767px) {
    .card-image-lg {
        height: 280px;
    }

    .icon-badge-lg {
        width: 75px;
        height: 75px;
        bottom: -37px;
    }

        .icon-badge-lg img {
            max-width: 48px;
            max-height: 48px;
        }
}

/* ============================================
   CARD BODY
   ============================================ */
.card-body {
    padding: 0 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body-horizontal {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, white 0%, rgba(248, 249, 250, 0.3) 100%);
}

[dir="rtl"] .card-body-horizontal {
    background: linear-gradient(to left, white 0%, rgba(248, 249, 250, 0.3) 100%);
}

.card-body-lg {
    padding: 5rem 3rem 3rem;
    position: relative;
    z-index: 1;
}

.card-header-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title-horizontal {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    transition: transform 0.3s ease;
    flex: 1;
}

a:hover .card-title-horizontal {
    transform: translateX(5px);
}

[dir="rtl"] a:hover .card-title-horizontal {
    transform: translateX(-5px);
}

.card-title-lg {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 1rem;
    min-height: 85px;
    flex-grow: 1;
}

.card-text-horizontal {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.7em;
}

.card-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

    .card-content p {
        margin-bottom: 1.5rem;
    }

    .card-content h2,
    .card-content h3 {
        color: var(--main-color);
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

/* ============================================
   BADGES
   ============================================ */
.badge-tag {
    display: inline-block;
    background: white;
    color: var(--main-color);
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--main-color);
    box-shadow: 0 4px 15px rgba(216, 38, 47, 0.15);
}

    .badge-tag::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 30%;
        height: 200%;
        background: rgba(216, 38, 47, 0.08);
        transform: rotate(15deg);
    }

    .badge-tag::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 30%;
        height: 200%;
        background: rgba(216, 38, 47, 0.04);
        transform: rotate(15deg);
    }

    .badge-tag:hover {
        box-shadow: 0 6px 20px rgba(216, 38, 47, 0.25);
        transform: translateY(-1px);
        transition: all 0.3s ease;
    }

.badge-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 18px;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .btn-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-action:hover::before {
        left: 100%;
    }

    .btn-action:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .btn-action i {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    .btn-action:hover i {
        transform: translateX(5px);
    }

.link-animated {
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

    .link-animated::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: currentColor;
        transition: width 0.3s ease;
    }

[dir="rtl"] .link-animated::after {
    left: auto;
    right: 0;
}

a:hover .link-animated {
    transform: translateX(8px);
}

[dir="rtl"] a:hover .link-animated {
    transform: translateX(-8px);
}

a:hover .link-animated::after {
    width: 100%;
}

/* ============================================
   SIDEBAR (Generic for all pages)
   ============================================ */
.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--main-color);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-card {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .sidebar-card:hover {
        transform: translateX(5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--main-color);
    }

.sidebar-image {
    position: relative;
    width: 100px;
    min-width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

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

.sidebar-card:hover .sidebar-image img {
    transform: scale(1.1);
}

.sidebar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .sidebar-icon img {
        max-width: 20px;
        max-height: 20px;
    }

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.sidebar-card-text {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.sidebar-link-arrow {
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}

.sidebar-card:hover .sidebar-link-arrow {
    transform: translateX(5px);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.card-decoration {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.06;
    transition: all 0.6s ease;
    pointer-events: none;
}

a:hover .card-decoration {
    transform: scale(1.4) rotate(90deg);
    opacity: 0.1;
}

.accent-line {
    content: '';
    position: absolute;
    left: 360px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--main-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

[dir="rtl"] .accent-line {
    left: auto;
    right: 360px;
}

a:hover .accent-line {
    opacity: 0.3;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .card-image-horizontal {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        height: 160px;
    }

    .card-horizontal {
        height: 160px;
    }

    .accent-line {
        left: 320px;
    }

    [dir="rtl"] .accent-line {
        left: auto;
        right: 320px;
    }
}

@media (max-width: 991px) {
    .card-horizontal {
        flex-direction: column;
        height: auto;
    }

    .card-image-horizontal {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 200px;
    }

    .icon-badge-sm {
        top: auto;
        bottom: -27px;
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    [dir="rtl"] .icon-badge-sm {
        right: 50%;
        left: auto;
    }

    .card-body-horizontal {
        padding: 2.5rem 2rem 1.75rem;
    }

    .card-header-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .card-text-horizontal {
        -webkit-line-clamp: 3;
        max-height: 4em;
    }

    .accent-line {
        display: none;
    }

    .sidebar-sticky {
        position: static;
        margin-top: 3rem;
    }

    .sidebar-title {
        text-align: center;
    }

    .sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-modern {
        padding: 3rem 0 !important;
        min-height: 250px;
    }

        .hero-modern h1 {
            font-size: 1.75rem;
        }

    .content-section {
        padding: 50px 0;
    }

    .card-image-vertical,
    .card-image-horizontal {
        height: 180px;
    }

    .card-image-lg {
        height: 280px;
    }

    .icon-badge-wrapper {
        margin-top: -30px;
        margin-bottom: 12px;
    }

    .icon-badge {
        width: 60px;
        height: 60px;
    }

        .icon-badge img {
            max-width: 32px;
            max-height: 32px;
        }

    .icon-badge-lg {
        width: 75px;
        height: 75px;
        top: 242px;
    }

        .icon-badge-lg img {
            max-width: 48px;
            max-height: 48px;
        }

    .card-body {
        padding: 0 1rem 1.25rem;
    }

    .card-body-lg {
        padding: 4rem 1.5rem 2rem;
    }

    .card-body-horizontal {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .card-title-horizontal {
        font-size: 1.25rem;
    }

    .card-title-lg {
        font-size: 1.75rem;
    }

    .card-content {
        font-size: 1rem;
    }

    .card-text-horizontal {
        font-size: 0.85rem;
    }

    .btn-action {
        padding: 0.55rem 1.3rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .sidebar-list {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sidebar-image {
        width: 100%;
        height: 150px;
    }
}
/* ========================================================================
   BLOG POST NAVIGATION CARDS (Smaller Size)
   ======================================================================== */

/* Navigation Card Specific Styles */
.card-navigation {
    transition: all 0.3s ease;
    min-height: 120px;
}

    .card-navigation:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Smaller Image for Navigation */
.card-image-nav {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

    .card-image-nav img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.card-navigation:hover .card-image-nav img {
    transform: scale(1.05);
}

/* Navigation Card Title */
.card-title-nav {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.card-navigation:hover .card-title-nav {
    color: var(--main-color) !important;
}

/* RTL Support for Navigation Cards */
.card-navigation.rtl {
    flex-direction: row-reverse;
}

    .card-navigation.rtl .card-image-nav {
        border-radius: 0 8px 8px 0;
    }

    .card-navigation.rtl .card-body-horizontal {
        text-align: right;
    }

/* Responsive Navigation Cards */
@media (max-width: 768px) {
    .card-image-nav {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        height: 100px;
    }

    .card-title-nav {
        font-size: 0.875rem;
    }

    .card-navigation {
        min-height: 100px;
    }
}

@media (max-width: 576px) {
    .card-horizontal.card-navigation {
        flex-direction: column !important;
    }

    .card-image-nav {
        width: 100%;
        max-width: 100%;
        height: 150px;
        border-radius: 8px 8px 0 0 !important;
    }

    .card-navigation.rtl .card-image-nav {
        border-radius: 8px 8px 0 0 !important;
    }
}

/* ========================================================================
   HERO WITH BACKGROUND IMAGE
   ======================================================================== */

/* Hero with Image Background */
.hero-with-image {
    position: relative;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Text Shadow for Better Readability */
.text-shadow-lg {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Badge Hover Effect */
.hover-scale {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .hover-scale:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

/* Ensure white text is always readable */
.hero-with-image .text-white {
    color: #ffffff !important;
}

.hero-with-image .badge {
    backdrop-filter: blur(10px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-with-image {
        background-attachment: scroll;
        min-height: 400px !important;
    }

        .hero-with-image .row {
            min-height: 400px !important;
        }

    .display-3 {
        font-size: 2rem;
    }
}

/* ========================================================================
   MODERN BREADCRUMB - WITH COMPLETE RTL SUPPORT
   ======================================================================== */

.breadcrumb-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
}

.breadcrumb-item-modern {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    color: var(--main-color, #d8262f);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .breadcrumb-link:hover {
        background: var(--main-color, #d8262f);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(216, 38, 47, 0.3);
    }

    .breadcrumb-link i {
        transition: transform 0.3s ease;
    }

    .breadcrumb-link:hover i {
        transform: scale(1.1);
    }

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.75rem;
}

.breadcrumb-item-modern.active {
    color: #495057;
    font-weight: 600;
}

    .breadcrumb-item-modern.active span {
        max-width: 300px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

@media (max-width: 768px) {
    .breadcrumb-modern {
        padding: 10px 15px;
    }

    .breadcrumb-link {
        padding: 4px 8px;
        font-size: 0.8125rem;
    }

    .breadcrumb-item-modern.active span {
        max-width: 150px;
    }

    /* Hide icons on small screens for better spacing */
    .breadcrumb-link i,
    .breadcrumb-item-modern.active i {
        display: none;
    }
}

@media (max-width: 576px) {
    .breadcrumb-modern {
        padding: 8px 12px;
    }

    .breadcrumb-list {
        gap: 4px;
    }

    .breadcrumb-separator {
        font-size: 0.625rem;
    }

    .breadcrumb-link {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .breadcrumb-item-modern.active span {
        max-width: 100px;
    }
}

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

@media print {
    .breadcrumb-modern {
        background: #ffffff;
        border: 1px solid #000000;
        box-shadow: none;
    }

    .breadcrumb-link {
        color: #000000;
    }
}
/* ========================================================================
   EVENTS SPECIFIC STYLES
   ======================================================================== */

/* Event Date Badge */
.event-date-badge {
    position: absolute;
    top: var(--space-16);
    left: var(--space-16);
    background: var(--color-error);
    padding: var(--space-12) var(--space-10);
    border-radius: var(--radius-base);
    text-align: center;
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-md);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.event-date-day {
    display: block;
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
}

.event-date-month {
    display: block;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-4);
}

/* RTL Support for Event Badge */
[dir="rtl"] .event-date-badge {
    left: auto;
    right: var(--space-16);
}


/* Event Info Icons */
.event-info-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-size-3xl);
    flex-shrink: 0;
}

/* Mobile Portrait Adjustments */
@media (max-width: 480px) {
    .event-date-badge {
        top: var(--space-8);
        left: var(--space-8);
        padding: var(--space-6) var(--space-4);
    }

    .event-date-day {
        font-size: var(--font-size-xl);
    }

    .event-date-month {
        font-size: var(--font-size-xs);
        margin-top: var(--space-2);
    }

    [dir="rtl"] .event-date-badge {
        right: var(--space-8);
    }

    .event-info-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
        border-radius: var(--radius-base);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .event-date-badge {
        top: var(--space-10);
        left: var(--space-10);
        padding: var(--space-8) var(--space-6);
    }

    .event-date-day {
        font-size: var(--font-size-2xl);
    }

    .event-date-month {
        font-size: var(--font-size-xs);
    }

    [dir="rtl"] .event-date-badge {
        right: var(--space-10);
    }

    .event-info-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-2xl);
    }
}

/* ========================================================================
   CONTACT PAGE STYLES
   ======================================================================== */

/* Contact Info Items */
.contact-info-item {
    display: flex;
    gap: var(--space-16);
    align-items: flex-start;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.contact-info-content h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0 0 var(--space-8) 0;
}

.contact-info-content p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Form Enhancements */
.form-control:focus,
.form-control-lg:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.input-group-text {
    border-right: 0;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: var(--space-8) var(--space-12);
}

.input-group .form-control {
    border-left: 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--color-primary);
    background: var(--color-secondary);
}

/* Map Section */
.map-section iframe {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

/* RTL Support */
[dir="rtl"] .contact-info-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .input-group-text {
    border-left: 0;
    border-right: 1px solid var(--color-border);
}

[dir="rtl"] .input-group .form-control {
    border-right: 0;
    border-left: 1px solid var(--color-border);
}

/* Mobile Portrait Responsive (480px) */
@media (max-width: 480px) {
    .contact-info-item {
        gap: var(--space-12);
    }

    .contact-info-icon {
        width: 48px;
        height: 48px;
        font-size: var(--font-size-xl);
    }

    .contact-info-content h5 {
        font-size: var(--font-size-md);
    }

    .contact-info-content p {
        font-size: var(--font-size-sm);
    }

    .map-section iframe {
        height: 250px;
        border-radius: var(--radius-base);
    }

    .input-group-text {
        padding: var(--space-6) var(--space-10);
        font-size: var(--font-size-sm);
    }
}

/* Tablet Responsive (768px) */
@media (max-width: 768px) {
    .contact-info-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }

    .map-section iframe {
        height: 300px;
    }
}

/* ========================================================================
   PRODUCTS PAGE STYLES
   ======================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 38, 47, 0.3);
}

/* Enhanced Pagination */
.pagination-modern {
    gap: 5px;
    flex-wrap: wrap;
}

    .pagination-modern .page-link {
        border-radius: 8px;
        border: none;
        background: #f8f9fa;
        color: var(--main-color, #d8262f);
        font-weight: 600;
        transition: all 0.3s ease;
        padding: 8px 12px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

/* Better Load More Button */
.btn-outline-danger {
    border: 2px solid var(--main-color, #d8262f);
    color: var(--main-color, #d8262f);
}

    .btn-outline-danger:hover {
        background: var(--main-color, #d8262f);
        border-color: var(--main-color, #d8262f);
        color: #fff;
    }

/* RTL Support */
[dir="rtl"] .breadcrumb-modern {
    direction: rtl;
}

[dir="rtl"] .product-view-btn {
    flex-direction: row-reverse;
}

.category-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin-bottom: 8px;
}

[dir="rtl"] .category-item-modern {
    border-right: 3px solid transparent;
    border-left: none;
}

.category-item-modern:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

[dir="rtl"] .category-item-modern:hover {
    transform: translateX(-4px);
}

.category-item-modern.active {
    background: var(--main-color, #d8262f);
    color: #fff;
    border-left-color: var(--main-color, #d8262f);
}

[dir="rtl"] .category-item-modern.active {
    border-right-color: var(--main-color, #d8262f);
    border-left-color: transparent;
}

.category-name {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.pagination-modern {
    gap: 5px;
}

    .pagination-modern .page-link {
        border-radius: 8px;
        border: none;
        background: #f8f9fa;
        color: var(--main-color, #d8262f);
        font-weight: 600;
        transition: all 0.3s ease;
        padding: 8px 12px;
    }

        .pagination-modern .page-link:hover {
            background: var(--main-color, #d8262f);
            color: #fff;
            transform: translateY(-2px);
        }

    .pagination-modern .page-item.active .page-link {
        background: var(--main-color, #d8262f);
        color: #fff;
        box-shadow: 0 4px 12px rgba(216, 38, 47, 0.3);
    }

.form-check-input {
    width: 1.5em;
    height: 1.5em;
    border: 2px solid #ddd;
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--main-color, #d8262f);
        border-color: var(--main-color, #d8262f);
    }

.form-check-label {
    margin-left: 8px;
    cursor: pointer;
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
}

.btn-twitter {
    background: #1da1f2;
    color: #fff;
}

.btn-linkedin {
    background: #0077b5;
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

    .btn-facebook:hover, .btn-twitter:hover, .btn-linkedin:hover, .btn-whatsapp:hover {
        opacity: 0.9;
        color: #fff;
    }

.product-cta-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .product-cta-section .col-md-4 {
        margin-top: 1rem;
    }
}