body {
    font-family: 'Inter', 'Cairo', 'Tajawal', Arial, sans-serif;
    background: #f4f3f7;
    color: #222;
      height: 100%;
    min-height: 100%;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#footer {
    margin-top: auto;
    width: 100%;
}

.navbar{
        box-shadow: 0px 0px 10px #666 !important; 
}
.navbar-brand {
    color: #e53935 !important;
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 1.45rem;
}
.navbar-nav .nav-link {
    color: #23272b !important;
    font-weight: 500;
    letter-spacing: .4px;
    margin-left: 2.1rem !important;
    font-size: 1.06rem;
    transition: color .13s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .show > .nav-link {
    color: #e53935 !important;
    background: #ffe5e6;
}
.dropdown-menu {
    border-radius: 1.4rem;
    min-width: 210px;
    box-shadow: 0 6px 32px #2222;
    padding: .28rem 0;
}
.dropdown-item {
    font-size: 0.96rem;
    font-weight: 400;
    padding: .36rem 1.17rem;
    color: #23272b !important;
    letter-spacing: .2px;
    transition: background .12s;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: #ffe5e6;
    color: #e53935 !important;
}
.hero-section {
    text-align: center;
    padding: 30px 12px 25px 12px;
}
.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 13px;
    font-family: 'Inter', 'Cairo', 'Tajawal', Arial, sans-serif;
    color: #000;
    letter-spacing: 1px;
}
.hero-section p {
    color: #444;
    font-size: 1.13rem;
    margin-bottom: 32px;
}
/* Tools grid iLovePDF style */
.tools-section {
    max-width: 1250px;
    margin: 0px auto 0 auto;
    padding: 0 12px;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 1px;
    background: #f4f3f7;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 36px;
}


.badge-new {
    position: absolute;
    top: 18px; right: 18px;
    background: #fff;
    color: #e14b3c;
    border: 1.5px solid #e14b3c;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 700;
    padding: 2.5px 11px 2.5px 11px;
    letter-spacing: 0.6px;
}
footer {
    background: #fff;
    border-top: 1px solid #ececec;
    color: #888;
    text-align: center;
    padding: 10px 0 10px 0;
    font-size: 1rem;
    margin-top: 36px;
    letter-spacing: 0.1px;
    position: fixed;
    bottom: 0;
        font-size: 15px;

    left: 0;
    width: 100%;
}
.coloraherf{
  color:#e14b3c !important;
}
/* @media (max-width: 600px) {
    .tools-grid { grid-template-columns: 1fr; }
    .tool-tile { padding: 20px 13px 14px 13px; }
    .tool-title { font-size: 1.05rem; }
    .tool-icon { font-size: 1.5rem; }
} */


    .tools-row {
      margin: 0;
      /* background: #ddd; */
      border-radius: 18px;
      overflow: hidden;
    }
    .tool-tile {
      background: #fff;
      /* display: flex; */
      flex-direction: column;
      height: 210px !important;
      padding: 32px 24px 22px 24px;
      border-radius: 3px;
      box-shadow: none;
      justify-content: flex-start;
      transition: box-shadow .17s, transform .14s;
      position: relative;
      border: none;
      cursor: pointer;
      margin: 3px;
    }
    .tool-tile:hover {
      box-shadow: 0 5px 28px #e5737330;
      z-index: 1;
      transform: translateY(-3px) scale(1.012);
    }
    .tool-icon {
      font-size: 2rem;
      margin-bottom: 13px;
      margin-right: 2px;
      display: inline-block;
      border-radius: 12px;
      padding: 5px 8px 4px 8px;
      color: #fff;
    }
    .tool-icon.pdf { background: #e14b3c; }
    .tool-icon.word { background: #4476d9; }
    .tool-icon.image { background: #3b90df; }
    .tool-icon.video { background: #ef8c57; }
    .tool-icon.calc { background: #19baa1; }
    .tool-icon.general { background: #9067b0; }
    .tool-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 8px;
      color: #222;
    }
    .tool-desc {
      font-size: 0.92rem;
      color: #777;
      line-height: 1.56;
      margin-bottom: 0;
      margin-top: 3px;
      min-height: 38px;
    }
    
    #footer {
    margin-top: auto;
    width: 100%;
}
  
    /* شاشات كبيرة جدًا: 5 في الصف */
    @media (min-width: 1400px) {
      .col-xl-tool { flex: 0 0 auto; width: 20%; }
      .tools-row { border-radius: 22px; }
    }
    /* شاشات لابتوب/حاسوب: 4 في الصف */
    @media (min-width: 992px) and (max-width: 1399.98px) {
      .col-lg-tool { flex: 0 0 auto; width: 25%; }
    }
    /* شاشات تابلت: 4 في الصف */
    @media (min-width: 768px) and (max-width: 991.98px) {
      .col-md-tool { flex: 0 0 auto; width: 25%; }
    }
    /* شاشات صغيرة: 2 في الصف */
    @media (max-width: 767.98px) {
      .col-sm-tool { flex: 0 0 auto; width: 50%; }
    }
    @media (max-width: 600px) {
      .tool-tile { padding: 18px 8px 12px 8px; }
      .tool-title { font-size: 1.05rem; }
      .tool-icon { font-size: 1.5rem; }
    }