/* --- GLOBAL RESET & TYPOGRAPHY --- */
* {
    box-sizing: border-box;
}

html, body, p, span, li, label, input, textarea, button {
    font-family: 'Calibri', 'Candara', 'Segoe UI', sans-serif;
    font-size: 19px;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: #222222;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* --- HEADER AND NAVIGATION (Stacked Layout) --- */
.site-header {
    display: flex;
    flex-direction: column;   /* Stacks the logo and menu vertically */
    align-items: stretch;  /* Aligns both the logo and menu to the left */
    gap: 15px;                /* Controls the exact vertical space between logo and menu */
    max-width: 900px;
    width: 90%;
    margin: 10px auto;        /* Centers the header bar on the screen */
}

.logo-heading {
    font-family: 'Nunito', calibri, sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: #000;
    align-self: flex-start;
}

.top-menu {
    text-align: right;      
}

.top-menu a {
    font-family: 'Nunito', Calibri, sans-serif;
    text-decoration: none;
    color: #171717;
    font-weight: 500;
    margin-left: 20px;        /* Spacing between the menu items */
    display: inline-block; 
    transition: color 0.2s ease;
}

.top-menu a:hover {
    color: #06baba;
}

/* --- STRETCHED BANNER IMAGE CONTAINER --- */
.banner-container {
    position: relative;     /* Locks absolute children to *only* this box */
    width: 100%;            /* Spans edge-to-edge */
    height: 150px;          /* Enforces your strict height requirement */
    overflow: hidden;       /* Instantly cuts off any visual leak */
    margin-top: 0px;
    margin-bottom: 40px;
    display: block;         /* Ensures it clears headers cleanly */
}

/* This creates the overlay safely inside the container borders */
.banner-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;             /* Layered directly over the image */
    background: linear-gradient(90deg, rgba(211, 232, 247, 0) 0%, rgba(66, 159, 230, 0.573) 100%);
    pointer-events: none;   /* Avoids mouse interaction blocking */
}

.banner-image {
    width: 100%;
    height: 100%;           /* Targets 100% of the parent box height */
    object-fit: cover;
    display: block;         /* Eliminates inline browser white-space gaps */
    position: relative;
    z-index: 1;             /* Layered below the overlay */
}

/* --- SUB-PAGE BANNER CONTAINER WITH LOGO --- */
.banner-subpage {
    position: relative;     
    width: 100%;            
    height: 90px;           
    overflow: hidden;       
    margin-top: 0px;
    margin-bottom: 15px;    /* Reduced to bring the menu closer to the banner */
    display: block;         
}

.banner-subpage::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;             
    background: linear-gradient(90deg, rgba(211, 232, 247, 0) 0%, rgba(66, 159, 230, 0.573) 100%);
    pointer-events: none;   
}

.banner-subpage .banner-image {
    width: 100%;
    height: 100%;           
    object-fit: cover;
    object-position: center; 
    display: block;         
    position: relative;
    z-index: 1;             
}

/* --- LOGO INSIDE BANNER (ALIGNED RIGHT) --- */
.banner-subpage .logo-heading {
    position: absolute;
    right: 1%;              /* Pushes it away from the right edge slightly */
    top: 80%;               /* Centers it vertically inside the 90px height */
    transform: translateY(-50%); 
    z-index: 3;             /* Places it safely above the image and gradient overlay */
    margin: 0;
    font-family: 'Nunito', calibri, sans-serif;
    font-size: 25px;
    font-weight: 500;
    color: #000;            /* Keeps your original black color */
}

/* --- CENTERED MENU BELOW BANNER --- */
.subpage-menu-container {
    text-align: center;     /* Centers the entire link row */
    width: 100%;
    margin-bottom: 40px;    /* Creates breathing room before your page content starts */
}

.subpage-menu-container a {
    font-family: 'Nunito', Calibri, sans-serif;
    text-decoration: none;
    color: #171717;
    font-weight: 500;
    margin: 0 15px;         /* Balanced left and right spacing for centered elements */
    display: inline-block; 
    transition: color 0.2s ease;
}

.subpage-menu-container a:hover {
    color: #06baba;
}


/* --- FRAMELESS MAIN CONTENT WRAPPER --- */
.content-wrapper {
    max-width: 900px;
    width: 90%;
    margin: 0 auto 40px auto; /* Centers your core textual layout */
}

/* --- HEADINGS --- */
h1 {
    font-family: 'Nunito', Calibri, sans-serif;
    font-weight: 500;
    color: #000;
    font-size: 36px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 20px;
}

h2 {
    font-family: 'Nunito', Calibri, sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 30px;
    line-height: 1.2;
    margin-top: 30;
    margin-bottom: 0px;

}

/* --- CUSTOM BULLET LIST STYLING --- */
ul.custom-bullets {
    list-style: none;      /* Removes the default black browser dots */
    padding-left: 30px;    /* FIXED: Added 'px' unit so it works */
    margin: 15px 0;

    /* --- ADD THESE NEW LINES FOR TWO COLUMNS --- */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Splits list into 2 equal columns */
    gap: 5px;                             /* Adds spacing between columns and rows */
}

ul.custom-bullets li {
    position: relative;
    /* Creates a 30px indentation on the left to make room for your image */
    padding-left: 20px;    
    margin-bottom: 5px;   /* Adds comfortable space between list items */
}

ul.custom-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    /* Adjust this value to perfectly align the image with the middle of your text line */
    top: 11px;              
    
    /* Set your custom bullet size here */
    width: 8px;           
    height: 8px;          
    
    /* Link your image file path here */
    background-image: url('images/dot.png'); 
    background-size: contain;   /* Scales the image smoothly inside the box */
    background-repeat: no-repeat;
    background-position: center;
}

/* READ MORE ARROW */
.read-more-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px; /* Adjusts spacing below the main text */
}

.read-more {
  text-decoration: none;
  color: #0066cc; /* Change to your preferred link color */
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* IMAGE FLOAT RIGHT */
.float_right_img {
  float: right;
  width: 150px;
  height: 150px;
  object-fit: contain; /* 'contain' is better for badges/logos so they don't get cropped */
  margin-left: 20px;   /* Creates breathing room between the text and the badge */
  margin-bottom: 15px; 
}

/* 1. Make the page scroll smoothly instead of jumping instantly */
html {
  scroll-behavior: smooth;
}
/* Floating back to top button*/
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(6, 144, 186, 0.5); 
  color: white !important;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  
  /* Hides the button initially */
  opacity: 0;
  visibility: hidden;
  
  /* Smooth fade transition */
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s ease, transform 0.2s ease;
}

/* This utility class will be added dynamically by JavaScript */
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Keep your existing hover styles intact */
.back-to-top-btn:hover {
  background-color: #06baba;
  transform: translateY(-3px);
}

/* --- TESTIMONIAL BLOCK --- */
.testimonial-block {
    max-width: 900px;
    width: 90%;
    margin: 40px auto;          /* Centers the block and adds vertical space */
    padding: 30px;
    background-color: #f9f9f9;  /* Light gray background to break up the page */
    border-left: 4px solid #0690ba; /* Teal accent bar on the left side */
    border-radius: 4px;
    box-sizing: border-box;
}

.testimonial-quote {
    font-family: 'Nunito', calibri, sans-serif;
    font-size: 20px;
    font-style: italic;
    color: #171717;
    line-height: 1.6;
    margin: 0 0 20px 0;         /* Spacing below the quote text */
}

.testimonial-author {
    font-family: 'Nunito', calibri, sans-serif;
    display: flex;
    flex-direction: column;     /* Stacks the name and the title vertically */
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.author-title {
    font-size: 14px;
    color: #666;                /* Muted text color for the company/title */
}

/* --- INVERSE TESTIMONIAL (Flipped Layout) --- */
.testimonial-block.testimonial-inverse {
    border-left: none;               /* Removes the left accent bar */
    border-right: 4px solid #06baba; /* Adds the teal accent bar to the right side instead */
    text-align: right;               /* Flips all text inside the block to align right */
}

.testimonial-inverse .testimonial-author {
    align-items: flex-end;           /* Ensures author name and title align to the right edge */
}



/* --- FORM STRUCTURE --- */
form {
    width: 50%;
    margin-top: 30px;
}

label {
    font-family: 'Nunito', Calibri, sans-serif;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

input[type="text"],
input[type="email"],
textarea {
    font-family: 'Calibri', sans-serif;
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 18px;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- BUTTONS --- */
.btn-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.submit-btn {
    background-color: #0690ba;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-family: 'Calibri', sans-serif;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background-color: #06baba;
}

.reset-btn {
    background-color: transparent;
    color: #666666;
    border: 1px solid #cccccc;
    padding: 12px 24px;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
}

.reset-btn:hover {
    background-color: #f5f5f5;
    color: #222222;
}
/* -- MESSAGE SENT NOTE--*/
/* --- THE WRAPPER THAT CENTERS THE BOX --- */
.thank-you-wrapper {
    display: flex;
    justify-content: center; /* Centers the box horizontally (left to right) */
    align-items: center;     /* Centers the box vertically (top to bottom) */
    min-height: 70vh;        /* Gives enough vertical room to notice the centering */
    width: 100%;             /* Spans the full screen width */
    padding: 20px;
    box-sizing: border-box;
}

/* --- THE ACTUAL MESSAGE BOX --- */
.thank-you-box {
    text-align: center;      /* Centers all the text, icons, and buttons inside */
    max-width: 500px;        /* Prevents the box from getting too wide on desktop */
    width: 100%;             /* Allows the box to shrink fluidly on mobile */
    /* Add your background color, padding, and borders here */
}
/* Large Solid Blue Success Checkmark Circle */
.success-icon {
    width: 85px;                               /* Increased size */
    height: 85px;                              /* Increased size */
    background-color: #06baba;                 /* Solid blue background */
    color: #ffffff;                            /* White checkmark symbol */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;                           /* Bigger checkmark symbol size */
    font-weight: bold;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 12px rgba(6, 186, 186, 0.25); /* Subtle blue depth shadow */
}

.db-search-box {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
.db-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.db-table th, .db-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.db-table th {
    background-color: #f2f2f2;
}
.db-table tr:hover {
    background-color: #f5f5f5;
}
.db-header-ar {
    text-align: right;
}
.db-arabic-col {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.db-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.db-pagination button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
}
.db-pagination button:disabled {
    background-color: #eee;
    cursor: not-allowed;
}
.db-page-info {
    font-size: 14px;
}


/* --- RESPONSIVE MOBILE LAYOUT --- */
@media (max-width: 600px) {
    .site-header {
        flex-direction: column; /* Stacks header heading over menu on tiny mobile viewports */
        gap: 10px;
        text-align: center;
    }
    .top-menu a {
        margin: 0 10px; /* Even spacing for navigation elements when stacked */
    }
    h1 {
        font-size: 28px;
    }
    .btn-container {
        flex-direction: column;
    }
    .submit-btn, .reset-btn {
        width: 100%;
    }
}
