/* IMN NEWS Custom Fonts */
@font-face {
    font-family: 'IMN NEWS';
    src: url('imn news Regular .ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IMN NEWS';
    src: url('IMN NEWS lightt.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IMN NEWS';
    src: url('IMN NEWS bold .ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
}

p {
	margin-bottom: 1rem;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

/* CSS Variables */
:root {
    --color-primary: #fd4f5a;
    --color-black: #161616;
    --color-text-primary: #161616;
    --color-text-secondary: #585858;
    --color-text-light: #ffffff;
    --color-border: #e0e0e0;
    --color-bg-light: #f6f6f6;
    --color-bg-dark: #161616;
    --color-accent-gray: #a5a5a5;
    
    --font-body: 'IMN NEWS', 'IBM Plex Sans Arabic', sans-serif;
    --font-body-secondary: 'Tajawal', sans-serif;
    --font-heading: 'IMN NEWS', 'IBM Plex Sans Arabic', sans-serif;
    
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    --border-radius-sm: 2px;
    --border-radius-md: 4px;
    --border-radius-lg: 8px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 9.6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

.cartoon-category {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.white-color {
    color: var(--color-bg-light) !important;
}



html {
    font-size: clamp(14px, 1.1vw, 16px);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    direction: rtl;
    text-align: right;
}

main {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1425px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}


/* Header */
.header {
    background-color: #ffffff;
    color: var(--color-text-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    direction: rtl;
}


@media screen and (max-width: 768px) {
    .header-container {
        height: 60px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    order: 3;
}

.social-icons-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid #e0e0e0;
}

.social-icon-small {
    color: #585858;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.social-icon-small:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.icon-btn {
    color: #585858;
    padding: 6px;
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.header-left .mobile-only {
    display: none;
}


.icon-btn:hover {
    color: var(--color-primary);
    background-color: #f5f5f5;
}

.header-search {
    position: relative;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.header-search.active {
    max-height: 120px;
    opacity: 1;
    visibility: visible;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-search-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: #f6f6f6;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
}

.header-search-field .search-icon {
    color: #888;
    margin-left: 8px;
}

.header-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--color-text-primary);
}

.header-search-input::placeholder {
    color: #a5a5a5;
}

.header-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search-submit {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.header-search-submit:hover {
    opacity: 0.9;
}

.header-search-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #585858;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-search-close:hover {
    background: #f1f1f1;
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    order: 2;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}


.main-nav ul::after {
    content: "";
    background: linear-gradient(to right, #fff 0%, rgba(224,224,224,0) 100%);
    height: 100%;
    width: 50px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 20px;
    left: 20px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  list-style: none;
  margin: 0;
  padding: 0;
  direction: rtl;
  flex-wrap: nowrap;
  max-width: 100%;
  width: max-content;
  overflow: hidden;
  position: relative;
}

.main-nav ul li {
  position: relative;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.main-nav ul li a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  direction: rtl;
  padding: 8px 12px;
  color: #161616;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav ul li a:hover {
  color: var(--color-primary);
}

/* Active category styling */
.main-nav ul li {
  font-weight: 700;
}

.main-nav ul li.is-active a {
  color: var(--color-primary);
  background-color: rgba(253, 79, 90, 0.1);
  border-radius: 4px;
}

/* Sub-menu (dropdown) styling */
.main-nav ul li ul {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1001;
  margin-top: 8px;
  list-style: none;
  flex-direction: column;
  gap: 0;
}

.main-nav ul li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav ul li ul li {
  width: 100%;
  margin: 0;
}

.main-nav ul li ul li a {
  display: block;
  padding: 10px 20px;
  color: #161616;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-align: right;
  white-space: nowrap;
  text-transform: none;
  gap: 0;
}

.main-nav ul li ul li a:hover {
  background-color: #f8f8f8;
  color: var(--color-primary);
  padding-right: 24px;
}

.main-nav ul li ul li b a {
  background-color: rgba(253, 79, 90, 0.1);
  color: var(--color-primary);
}

.main-nav ul li:has(ul) > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.main-nav ul li:has(ul):hover > a::after {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .mobile-nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-nav ul li:last-child {
    border-bottom: none;
  }

  .mobile-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #161616;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    text-align: right;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav ul li a:hover {
    background-color: #f8f8f8;
    color: var(--color-primary);
  }

  .mobile-nav ul li b a {
    background-color: rgba(253, 79, 90, 0.1);
    color: var(--color-primary);
  }

  .mobile-nav ul li ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .mobile-nav ul li:hover ul {
    max-height: 500px;
  }

  .mobile-nav ul li ul li a {
    padding: 12px 40px;
    font-size: 13px;
    background-color: transparent;
  }

  .mobile-nav ul li ul li a:hover {
    background-color: #e8e8e8;
    padding-right: 44px;
  }
}


.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item.is-active::after {
    transform: scaleX(1);
    opacity: 1;
}
/* Dropdown Accessibility & Expanded States */
.nav-link.has-dropdown:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nav-link[aria-expanded="true"] .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    order: 1;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    color: #585858;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-divider {
    width: 2px;
    height: 50px;
    background-color: var(--color-border);
}
	
.logo-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
    color: #161616;
    line-height: 1.3;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 1998;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1999;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f8f8;
}

.mobile-logo img {
    height: 50px;
    width: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #161616;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.mobile-menu-close:hover {
    background-color: #e5e5e5;
    color: var(--color-primary);
}

.mobile-nav {
        overflow-y: auto;
}

.mobile-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #161616;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.mobile-nav .nav-item:hover {
    background-color: #f8f8f8;
    color: var(--color-primary);
}

.mobile-nav .nav-item:focus-visible {
    outline: 3px solid #004aad;
    outline-offset: 2px;
    border-radius: 4px;
}


.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background-color: #f8f8f8;
}

.mobile-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mobile-social-icon {
    color: #585858;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
}

.mobile-social-icon:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {

    .main-nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .logo img {
        height: 55px;
    }

    /* Show mobile-only controls on tablet/phone */
    .mobile-only { display: inline-flex; }

    .logo-text {
        font-size: 12px;
    }

    .social-icons {
        gap: 10px;
    }
}

@media screen and (max-width: 768px) {

    .main-nav {
        display: none;
    }

    .social-icons {
        display: none;
    }

    .header-right {
        gap: 12px;
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 11px;
    }

    .mobile-only { display: inline-flex; }

    .logo-divider {
        height: 40px;
    }

    .header-left {
        gap: 12px;
    }

    .social-icons-left {
        display: none;
    }

    .icon-btn {
        padding: 8px;
    }

    .header-left .mobile-only {
        display: inline-flex;
    }

    .hero {
        height: 500px !important;
    }

    .hero-content {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-swiper .swiper-button-prev {
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 10px;
        max-width: 100px;
    }

    .logo-divider {
        height: 35px;
    }

    .header-left {
        gap: 8px;
    }

    .icon-btn {
        padding: 6px;
    }

    .mobile-menu {
        width: 280px;
    }

    /* Hero Slider Small Mobile */
    .hero {
        height: 400px;
    }

    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .hero-swiper .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: clamp(700px, 60vh, 600px);
    overflow: hidden;
    touch-action: pan-y;
}

/* Swiper Slider Styles */
.hero .hero-swiper {
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.hero .swiper-slide {
    position: relative;
    height:100%;
}

.hero .hero-info {
	position: relative;
	width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	padding: var(--spacing-3xl) var(--spacing-2xl);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	height: 100%;
	justify-content: center;	
}

.hero .hero-logo {
	z-index: 10;
	max-width: 500px;
    height: calc(100% / 2);
}

.hero .hero-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin-bottom: 16px;
	z-index: 10;
}

.hero .hero-image {
    position: absolute;
    inset: 0;
}

.hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22, 22, 22, 0.7) 0%, rgba(22, 22, 22, 0.3) 60%, transparent 100%);
}

.hero .hero-content {
    position: absolute;
    max-width: 1000px;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: clamp(1rem, 4vw, 3rem);
    padding-bottom: max(clamp(1.5rem, 6vw, 4rem), env(safe-area-inset-bottom, 1.5rem));
    z-index: 2;
    padding-bottom: var(--spacing-3xl) ;
}

.category-badge {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    display: block;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-family: var(--font-body-secondary);
    font-weight: 600;
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.375rem);
    margin-bottom: 0.75rem;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-body-secondary);
}

.hero-date {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    opacity: 0.8;
    font-weight: 500;
}

.hero .hero-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero .hero-date::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
    display: inline-block;
}





.hero .hero-swiper .swiper-button-prev {
    right: 20px;
    left: auto;
}

/* Swiper Pagination */
.hero .hero-swiper .swiper-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    position: absolute !important;
    z-index: 10 !important;
}

.hero .hero-swiper .swiper-pagination-bullet {
    width: clamp(10px, 1.8vw, 15px);
    height: clamp(10px, 1.8vw, 15px);
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    outline: none;
}

.hero .hero-swiper .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
    width: clamp(24px, 4vw, 40px);
    border-radius: 6px;
    transform: scale(1.1) !important;
}

/* Navigation arrows (responsive) */
.hero .hero-swiper .swiper-button-prev,
.hero .hero-swiper .swiper-button-next {
    width: clamp(36px, 4vw, 48px);
    height: clamp(36px, 4vw, 48px);
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    color: #585858;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}
.hero .hero-swiper .swiper-button-prev::after,
.hero .hero-swiper .swiper-button-next::after {
    font-size: clamp(16px, 2vw, 20px);
}
.hero .hero-swiper .swiper-button-prev { left: 20px; right: auto; }
.hero .hero-swiper .swiper-button-next { right: 20px; left: auto; }

@media (max-width: 576px) {
    .hero .hero-swiper .swiper-button-prev,
    .hero .hero-swiper .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    .hero .hero-swiper .swiper-button-prev::after,
    .hero .hero-swiper .swiper-button-next::after {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .hero-content { transition: none !important; transform: none !important; opacity: 1 !important; }
    .hero .hero-swiper .swiper-pagination,
    .hero .hero-swiper .swiper-pagination-bullet { transition: none !important; }
}

.hero .hero-swiper .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}


.show-date {
    font-family: var(--font-body-secondary)  ;    
    color: var(--color-text-secondary);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 500;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.025em;
    margin-top: 0.3rem;
}

.show-date-without-icon {
    font-family: var(--font-body-secondary)  ;    
    color: #6b7280;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 500;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.025em;
    margin-top: 0.3rem;
}


.show-date::before {    
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    width: 11px;
    height: 23px;
    display: inline-block;
}

.show-date.white-color::before {    
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    width: 11px;
    height: 23px;
    display: inline-block;
}
.mySwiper_1 {
  height: 100% !important;
}




/* Container Layout */
.category-grid-pdf {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px; 
  /* Optional: adds spacing inside the container edges */
  padding: 20px 0; 
}

/* --- Responsive Breakpoints --- */

/* Laptops / Tablets (Screens smaller than 1024px) -> 3 Columns */
@media (max-width: 1024px) {
  .category-grid-pdf {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Tablets (Screens smaller than 768px) -> 2 Columns */
@media (max-width: 768px) {
  .category-grid-pdf {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile Phones (Screens smaller than 480px) -> 1 Column */
@media (max-width: 480px) {
  .category-grid-pdf {
    grid-template-columns: 1fr;
  }
}




.footer {
    background-color: #f1f1f1;
    padding: 60px 0 20px;
    direction: rtl;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

.footer-top {
    display: grid;
    grid-template-columns:1.5fr 2fr 1fr 1fr; 
    gap: 30px;
    margin-bottom: 50px;
}

.footer-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #000;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    padding-left: 90px; /* Space for the button */
    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.newsletter-button {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0 25px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-button:hover {
    background-color: #333;
}

.newsletter-disclaimer {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    margin-top: 5px;
}

.footer-links-list {
    display: grid;
    grid-template-rows: repeat(6, min-content);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 15px 24px;
}

.footer-link {
    font-family: var(--font-body-secondary);
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    gap: .6rem;
}

.footer-link:hover {
    color: #000;
}

/* The Red Dot Magic */
.footer-link::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.footer-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.logo-box {
    width: 70px;
    height: auto;
    display: block;
}


.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* --- Bottom Section --- */
.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #000;
    transition: opacity 0.3s;
}
.social-link:hover {
    opacity: 0.7;
}

/* Copyright Text */
.footer-copyright {
    font-family: var(--font-body-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(12px, 2.5vw, 16px);
    color: var(--color-text-secondary);
    gap: 5px;
}

.legal-links a {
    color: var(--color-primary);
    text-decoration: underline;
    margin: 0 5px;
}

.footer-copyright span a {
    color: #004aad;
    text-decoration: underline;
    margin: 0 5px;
}

.footer-main-logo {
    width: 100px;
    height: auto;
}


/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr; /* Stack everything */
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column-reverse; /* Logo on top, then text, then social */
        text-align: center;
    }
}