/* ==========================================================================
   1. GLOBAL & SITE BACKGROUND
   ========================================================================== */
body.site {
  background: 
    linear-gradient(rgba(245, 245, 245, 0.9), rgba(245, 245, 245, 0.6)),
    url('/images/background2.png') no-repeat center center fixed;
  background-size: cover;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
.header {
  width: 100%;
  height: 450px;
  aspect-ratio: 16/9;
  background-image: url('https://sub25.investkirkuk.com/images/headers/kic3.webp');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   3. TOP NAVIGATION (TOP B)
   ========================================================================== */
.top-b {
  background: linear-gradient(-45deg, #FCC8C7, #FFFFFF, #E5FFE9, #E3E3E3);
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
 border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 8px 0 !important;
}

.top-b ul.mod-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 1px 0;
}

.top-b ul.mod-menu li {
  flex: 0 0 auto;
}
.top-b ul.mod-menu a {
  background: transparent !important;
  color: #001b4c !important; /* Deep Midnight Blue text */
  font-weight: bold;
  border-radius: 30px !important; /* Rounded capsule look */
  padding: 8px 20px !important;
  transition: all 0.3s ease !important;
}

.top-b ul.mod-menu a:hover {
  background: #001b4c !important; /* Deep Midnight Blue background on hover */
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 27, 76, 0.2);
}


/* ==========================================================================
   4. ARTICLES & MAIN BLOG
   ========================================================================== */
.blog-item {
  background-color: rgba(245, 245, 245, 0.85);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  border-bottom: 3px double #888;
}

.blog-item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   5. BUTTONS & UTILITIES
   ========================================================================== */
.print-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  transition: background 0.3s ease;
}

.print-btn:hover {
  background: #005f8d;
}

/* ==========================================================================
   6. NEWS TICKER (RTL FIX)
   ========================================================================== */
.ticker-container {
  width: 100%;
  overflow: hidden;
  background: #222;
  color: #fff;
  direction: ltr; /* Force LTR for the scroll calculations */
  height: 40px;
  line-height: 40px;
}

.ticker-wrapper {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%; /* Starts off-screen to the right */
  animation: ticker 25s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin: 0 30px;
  direction: rtl; /* Arabic text displays RTL correctly */
  text-align: right;
}

.ticker-item a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
}
/* Pause ticker animation when user hovers */
.ticker-container:hover .ticker-wrapper {
  animation-play-state: paused;
}

/* Pinned "عاجل" Badge on the News Ticker */
.ticker-container {
  position: relative;
  background: #111 !important; /* Sleek dark theme */
  border-bottom: 2px solid #c5a059; /* Gold accent line */
}

.ticker-container::before {
  content: "اخر الاعلانات";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.4);
}
/* ==========================================================================
   7. FOOTER STYLING & CENTERING
   ========================================================================== */
/* Center the main footer block wrapper */
footer.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Center all child layout grids, containers, or custom modules */
footer.footer .grid-child,
footer.footer .container-footer,
footer.footer .footer-inner,
footer.footer .mod-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

/* Multi-column custom layout */
.footer-columns {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  background: linear-gradient(-45deg, #0073aa, #00c3ff, #7b2ff7, #f107a3);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 6px;
  font-weight: bold;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-col a {
  color: #ffeb3b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  margin: 6px 0;
}

.footer-col img {
  border-radius: 8px;
  margin-top: 10px;
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-col img:hover {
  transform: scale(1.1); /* Zoom image slightly on hover */
}

/* Center lists and menus (if you use standard menus in the footer) */
footer.footer ul.nav,
footer.footer ul.mod-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 10px auto;
  list-style: none;
  gap: 15px;
  flex-wrap: wrap;
}

footer.footer ul.nav li,
footer.footer ul.mod-menu li {
  display: inline-block;
  margin: 0;
}

/* ==========================================================================
   8. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

/* ==========================================================================
   9. PRINT MEDIA STYLES
   ========================================================================== */
@media print {
  html, body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  @page {
    size: A3; /* Change to A4 if preferred */
    margin: 15mm;
  }

  .header {
    width: 100% !important;       
    height: 120px !important;     
    background-size: cover !important;  
    background-position: center !important; 
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-area {
    width: 100% !important;
    margin: 0 auto !important;
  }

  footer {
    display: none !important;
  }

  body::after {
    content: "موقع الاستثمار - sub25.investkirkuk.com";
    display: block;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    border-top: 1px solid #000;
    padding-top: 8px;
    color: #333;
  }
}

/* Import Tajawal Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* Apply it to the whole body */
body.site {
  font-family: 'Tajawal', sans-serif !important;
}

/* Glassmorphic Blog Cards with Hover Effects */
.blog-item {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-bottom: 4px solid #c5a059 !important; /* Thick Gold border on the bottom */
  border-radius: 12px !important;
  padding: 25px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.blog-item:hover {
  transform: translateY(-6px); /* Lifts card up */
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.18) !important; /* Warm gold glow */
  background: rgba(255, 255, 255, 0.95) !important;
}


/* Metallic Border under Header */
.header {
  border-bottom: 5px solid;
  border-image: linear-gradient(to right, #001b4c, #c5a059, #001b4c) 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Premium Corporate Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #001b4c; /* Deep midnight blue */
}
::-webkit-scrollbar-thumb {
  background: #c5a059; /* Gold */
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e5c07b; /* Lighter gold on hover */
}