/* ancientfit-frontend/css/esd.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
     
body {
  background: url('../Images/ESD/ESDHomePage.jpg') no-repeat center center fixed;
  background-size: cover;
}
/* MAIN CONTAINER */
.container {
  display: flex;
  flex-direction: row;
  justify-content: center;          /* Center both columns */
  align-items: flex-start;
  gap: 40px;                         /* Space between left and right */
  padding: 40px;
  width: 100%;
  flex-wrap: nowrap;                 /* Prevent stacking / nesting */
  box-sizing: border-box;
}

/* LEFT + RIGHT BOXES */
.left, .right {
  width: 450px;                      /* <<< FIXED WIDTH (prevents collapse) */
  max-width: 90%;
  padding: 25px;
  color: white;
  background: linear-gradient(
      135deg,
      rgba(13, 13, 13, 0.7),
      rgba(44, 44, 46, 0.7),
      rgba(31, 42, 68, 0.7),
      rgba(10, 15, 26, 0.7)
    );
  border-radius: 16px;
  border: 4px solid #0C2233;
  height: fit-content;
  overflow-y: auto;
  max-height: 80vh;
  box-sizing: border-box;
  flex-shrink: 0;                    /* <<< IMPORTANT: Prevent shrinking */
}

/* SCROLLBAR */
.left::-webkit-scrollbar,
.right::-webkit-scrollbar { width: 16px; }
.left::-webkit-scrollbar-thumb,
.right::-webkit-scrollbar-thumb {
  background-color: red;
  border-radius: 8px;
  border: 3px solid #222;
}
.left::-webkit-scrollbar-track,
.right::-webkit-scrollbar-track {
  background-color: #222;
  border-radius: 8px;
}
.left, .right {
  scrollbar-width: thick;
  scrollbar-color: red #222;
}

/* TYPOGRAPHY */
.left h1 { font-size: 35px; padding: 5px; text-align: start; }
.right h1 {
  padding: 10px;
  font-size: 25px;
  color: #F30A49;
  background-color: #26282B;
  opacity: 0.8;
  border-radius: 12px;
}
.right h2, .right h3 { padding: 10px; }
.left, .right p { font-size: 16px; line-height: 1.6; text-align: justify; }
.left h3 { padding-top: 10px; }
.left ul, .right ul {
  padding-left: 25px;
  padding-right: 25px;
  text-align: justify;
}

/* RESPONSIVE (MOBILE) */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: center;             /* center when stacked */
    gap: 20px;
  }

  .left, .right {
    width: 95%;                      /* full width on mobile */
    max-width: 500px;
  }
}


/* ---------- Scoped Base Styles for the Booking Component ---------- */

.selection-container {
  padding: 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  min-height: fit-content;
}

/* Reset box-sizing safely within this component */
.selection-container *,
.selection-container *::before,
.selection-container *::after {
  box-sizing: border-box;
}

/* Title */
.selection-container h1 {
  margin-bottom: 10px;
  color: white;
  font-size: 4rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  background: linear-gradient(
  135deg,
  rgba(5, 5, 5, 0.65),
  rgba(18, 18, 20, 0.65),
  rgba(30, 30, 32, 0.65),
  rgba(45, 45, 50, 0.65),
  rgba(80, 80, 85, 0.65),
  rgba(120, 120, 125, 0.65),
  rgba(160, 160, 165, 0.65)
);
  padding: 20px 40px;
  border-radius: 12px;
  text-align: center;
  border-radius: 12px;
  font-size: 2rem;
}

/* ---------- Card Layout ---------- */

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);

  color: #ffffff;
  padding: 20px;
  width: 250px;
  border-radius: 15px;

  border: 2px solid rgba(255, 60, 60, 0.6);
  box-shadow: 0 6px 20px rgba(255, 60, 60, 0.28);

  cursor: pointer;
  transition: 0.35s ease;
}

.card:hover {
  transform: scale(1.05);
  border-color: rgba(255, 90, 90, 0.9);
  box-shadow: 0 12px 32px rgba(255, 60, 60, 0.45);
}


.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .card {
    width: 100%;
  }

}
/* ---------- Modal Styles ---------- */

/* ---------- Glassy Modal Styles - Slate Blue ---------- */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  background-color: rgba(10, 15, 40, 0.35); /* Dark slate overlay */
  padding: 20px;
  box-sizing: border-box;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(35, 45, 80, 0.4); /* Soft slate tint */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: #dce0ff;
  animation: fadeIn 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #dce0ff;
}

.modal-content input,
.modal-content textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #dce0ff;
  font-size: 1rem;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 15px;
  transition: border 0.2s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #7a83ff;
}

.modal-content input[type="date"] {
  color-scheme: dark;
}

.modal-content textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons button {
  flex: 1 1 45%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  font-weight: 600;
}

.modal-buttons button:first-child {
  background: linear-gradient(135deg, #7a83ff, #4d56ff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(77, 86, 255, 0.4);
}

.modal-buttons button:first-child:hover {
  background: linear-gradient(135deg, #4d56ff, #7a83ff);
  transform: translateY(-1px);
}

.modal-buttons button:last-child {
  background: rgba(255, 255, 255, 0.1);
  color: #dce0ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-buttons button:last-child:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    border-radius: 12px;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }

  .modal-buttons button {
    flex: 1 1 100%;
  }
}

.ReportMainTitle {
  padding: 12px 20px;
  background: linear-gradient(145deg, rgba(10, 25, 50, 0.6), rgba(0, 45, 90, 0.6));
  border-radius: 12px;
  backdrop-filter: blur(12px);
  border-left: 4px solid #00aaff;
  box-shadow: 0 6px 18px rgba(0, 60, 120, 0.3);
  color: #e0f7ff;

  max-width: 960px;        /* constrain width like grid */
  margin: 50px auto 0 auto; /* center horizontally */
  text-align: center;       /* optional: center text inside box */
}


.EDN h2, .ReportMainTitle h2 {
  padding: 10px;
}

/* Report Cards Grid */
/* Center the grid and constrain its width */
.report-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;   /* center the entire grid */
  max-width: 960px;          /* max width of the box */
  margin: 50px auto 0 auto;  /* top margin + center horizontally */
}


.reportCard {
  background: rgba(20, 30, 40, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 50, 100, 0.3);
  color: #f9f9f9;
  transition: 0.3s ease;
  cursor: pointer;
  }

.reportCard:hover {
  transform: translateY(-5px);
  background: rgba(20, 30, 40, 0.75);
  box-shadow: 0 16px 50px rgba(0, 60, 120, 0.4);
  transform: translateY(-4px);
}

.report-card-title {
  background: rgba(255, 255, 255, 0.06);
  border-left: 5px solid #00aaff;
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
}

.reportPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 10, 20, 0.7); /* slightly deeper space-gray overlay */
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.report-popup-content {
  background: rgba(20, 30, 40, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 50, 100, 0.4);
  color: #f9f9f9;
  position: relative;
}

.report-popup-content h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.6rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.report-popup-content p {
  text-align: justify;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #ddd;
}

input, textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(40, 60, 80, 0.6);
  color: white;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.report-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0077ff 0%, #00111a 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 120, 255, 0.6);
}

.closeReport {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.closeReport:hover {
  color: #ff4d4d;
  transform: scale(1.2);
}

@media (max-width: 480px) {
    .report-cards-grid {
        grid-template-columns: 1fr;
    }
  }
    
.portfolioitem {
  padding: 20px;
  max-height: 90vh;          /* Limit height */
  scroll-behavior: smooth;
  
    
}
.portfolioitem h1 {
    padding: 15px;
    top:0%;
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    align-content: center;
    color: whitesmoke;
    background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.9),
    rgba(44, 44, 46, 0.9),
    rgba(31, 42, 68, 0.9),
    rgba(10, 15, 26, 0.9)
  );
    border: 3px solid #0C2233;
    border-radius: 3px;
    max-height: fit-content;  
    border-radius: 25px;
}


    .assassination-section {  
      max-height: 90vh;        /* Adjust height as needed */
      overflow-y: auto;        /* Enable vertical scroll */
      overflow-x: hidden;      /* Optional: prevent horizontal scroll */
      scroll-behavior: smooth; /* Optional: smooth scrolling */  
      max-width: 900px;
      margin: 0px auto;
      background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 40%),
      linear-gradient(145deg, #0f0f0f, #1b1b1b);
      backdrop-filter: blur(4px);  
      color: whitesmoke;
      padding: 20px;
      border-radius: 25px;
      border: 6px solid #0C2233;
    }

      /* WebKit browsers (Chrome, Edge, Safari) */
      .portfolioitem::-webkit-scrollbar,
      .assassination-section::-webkit-scrollbar {
          width: 20px;               /* Thick scrollbar */
      }

      .portfolioitem::-webkit-scrollbar-thumb,
      .assassination-section::-webkit-scrollbar-thumb {
          background-color: red;     
          border-radius: 10px;      
          border: 4px solid #1a1a1a; 
      }

      .portfolioitem::-webkit-scrollbar-track,
      .assassination-section::-webkit-scrollbar-track {
          background-color: #1a1a1a; 
          border-radius: 10px;
      }

      /* Firefox scrollbar */
      .portfolioitem,
      .assassination-section {
          scrollbar-width: thin;           /* Can be 'auto', 'thin', or 'none' */
          scrollbar-color: red #1a1a1a;   /* Thumb color and track color */
      }

    .assassination-section h2 {
      color: whitesmoke;
      padding: 10px;
    }
    .assassination-item strong {
        padding: 10px;
        color: whitesmoke;
    }

    .assassination-item p {
        padding-left: 10px;
        padding-right: 10px;
        text-align: justify;
    }

    .assassination-item li {
        text-align: justify;
        margin-left: 25px;
    }

    .assassination-item img {
        float: left;
        margin: 20px;
    }

    .assassination-item [src="..//Images/ESD/Dr.Ali Moustafa Mosharafa.jpeg"] {
        float: right;
        margin: 10px;
        width:40%;
        border-radius: 7px;
    }

    .assassination-item [src="..//Images/ESD/Dr.Abu-BakrRamadan.jpg"], [src="..//Images/ESD/Dr.SamirNaguib.jpg"] {
        float: right;
        margin: 10px;
        width:55%;
        border-radius: 7px;
    }

    .assassination-item [src="..//Images/ESD/DrReemHamid.jpg"], [src="..//Images/ESD/reemPosts.webp"] {
        display: block;
        float: right;
        margin: 10px;
        width:40%;
        border-radius: 7px;
    }

    .assassination-item ul {
        padding-left: 45px;
        padding-right: 45px;
        text-align: justify;
    }
    .assassination-item {
      margin-bottom: 15px;
    }

    hr {
        width: 80%; 
        height: 2px; 
        background-color: #697565; 
        border: none; 
        margin: 20px auto;
    }





        

