.parent{
    /* height: 50vh; */
    border: 2px transparent red;
    padding: 1rem;
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row-reverse;
    position: relative;
    background-color: #333;
}

.child{
    /* border: 1px solid lightgray; */
    border-radius: 5px;
    box-shadow: 1px -2px 2px 2px lightgray;
    width: 200px;
    height: 260px;
    /* padding: 1rem; */
}
.child-a{
    align-self: flex-start;
    /*background: url("./asset/image-1.jpeg");*/
    background-position: center;
    background-size: cover;
    }

.child-a img {
  display: block; /* Removes unwanted gap below image */
  width: 100%;
  border-radius: 5px;
}


.child-b{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-b img {
  display: block; /* Removes unwanted gap below image */
  width: 100%;
  border-radius: 5px;
}

.child-c{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-d{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-e{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-f{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-g{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-h{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-i{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-j{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-k{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-l{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-m{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-n{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-o{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-p{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-q{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-r{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-s{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-t{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-u{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-v{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-w{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-x{
    background: url("./asset/image-1.jpeg");
    align-self: flex-end;
    background-position: center;
    background-size: cover;
}

.nav-bar{
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.nav-list{
    display: flex;
    gap: 20px;
    list-style: none;
    font-size: 16px;
    font-family: cursive;
}
.nav-list li:hover{
 cursor: pointer;
 color: purple;
 /* font-weight: 600; */
 background-color: lightsalmon;
}
.child:hover{
    background: linear-gradient(rgba(255, 0, 0, 0.458), rgba(0, 0, 255, 0.408)), url("./asset/image-1.jpeg");
    background-position: center;
    background-size: cover;
    cursor: pointer;
}
.fa-solid{
    font-size: 16px;
    color: white;
    margin-left: 10px;
}
.button{
    background-color: green;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
}
h1, h2
{
    font-family: cursive;
    color: purple;
}

h3
{
    font-family: cursive;
    color: green;
}

header.head{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    padding: 0px;
}

span.label{
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 5px;
}

div.hero{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    padding: 0px;
}

body{
    background-color: darkgray;
    margin-top: 0;
}

.dropdown {
  position: relative; /* Keeps the dropdown menu anchored to this item */
  display: inline-block;
}

/* Main link styling */
.dropdown-toggle {
  text-decoration: none;
  color: #333;
  
  display: block;
}

/* Submenu - Hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;            /* Positions submenu directly below parent */
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 1000;
}

/* Submenu links */
.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  
  display: block;
  white-space: nowrap; /* Prevents long titles from wrapping awkwardly */
}

/* Hover effects */
.dropdown-menu li a:hover {
  background-color: #f1f1f1;
}

/* SHOW DROPDOWN ON HOVER */
.dropdown:hover .dropdown-menu {
  display: block;
}

.parent-container{
    /* height: 50vh; */
    border: 2px transparent red;
    padding: 1rem;
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row-reverse;
    position: relative;
    background-color: #333;
}

.children{
    /* border: 1px solid lightgray; */
    border-radius: 5px;
    box-shadow: 1px -2px 2px 2px lightgray;
    width: 233.3px;
    height: 260px;
    /* padding: 1rem; */
}
.child-1{
    align-self: flex-start;
    /*background: url("./asset/image-1.jpeg");*/
    background-position: center;
    background-size: cover;
    }

.child-2{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-3{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-4{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-5{
    background: url("./asset/image-1.jpeg");
    align-self: center;
    background-position: center;
    background-size: cover;
}

.child-6{
    background: url("./asset/image-1.jpeg");
    align-self: flex-end;
    background-position: center;
    background-size: cover;
}

.core-services{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    padding: 0px;
}

.core-services ol li{
    font-family: cursive;
    color: purple;
    font-size: 20px;
    margin-bottom: 10px;
    transition:all 0.3s ease-in-out;
    transform: scale(1);
}

.core-services ol li:hover{
    transform: scale(1.05); 
}

.partners{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    padding: 0px;
}



/* Phone Link Styling */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Spaces out the icon and text */
  color: rgb(148, 75, 148);
  text-decoration: none;
  font-weight: 500;
}

/* Icon Specific Style */
.phone-link i {
  font-size: 1rem;
  color: rgb(165, 80, 165);
}

.phone-link:hover {
  color: blue; /* Changes color on hover */
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.contact-section a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: purple;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}


footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  background-color: #0f172a;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #94a3b8;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #2563eb; /* Highlight color on hover */
}


/* ==========================================
   BASE SETUP FOR HAMBURGER MENU
   ========================================== */

/* Hide checkbox and hamburger button by default on desktop */
.menu-toggle,
.hamburger {
  display: none;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* --- TABLETS (Max-Width: 992px) --- */
@media screen and (max-width: 992px) {
  /* Navigation Bar Adjustments */
  .nav-bar {
    padding: 12px 20px;
    justify-content: space-between;
  }

  .nav-list {
    gap: 12px;
    font-size: 15px;
  }

  /* Flex Container Adjustments */
  .parent,
  .parent-container {
    justify-content: center;
    gap: 16px;
    padding: 1rem 0.5rem;
  }

  /* Scale child cards to fit 3-across on tablet screen widths */
  .child,
  .children {
    width: calc(33.333% - 16px);
    min-width: 200px;
  }

  /* Reset forced flex alignment on cards */
  .child-a, .child-u, .child-1, .child-6 {
    align-self: center;
  }
}


/* --- MOBILE DEVICES & COLLAPSIBLE MENU (Max-Width: 768px) --- */
@media screen and (max-width: 768px) {
  
  /* --- COLLAPSIBLE HAMBURGER MENU --- */
  
  .nav-bar {
    position: relative;
    padding: 14px 20px;
    justify-content: space-between;
  }

  /* Show Hamburger Icon */
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    z-index: 1001;
  }

  /* Hide the actual checkbox element */
  .menu-toggle {
    display: none;
  }

  /* Turn nav-list into a collapsible vertical menu overlay */
  .nav-list {
    display: none; /* Collapsed by default */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 20px;
    gap: 16px;
    text-align: center;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  /* EXPAND MENU WHEN HAMBURGER IS CHECKED */
  .menu-toggle:checked ~ .nav-list {
    display: flex;
  }

  /* Mobile Dropdown Styling inside Collapsible Menu */
  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static; /* Allows menu to open inline without overflowing */
    width: 100%;
    box-shadow: none;
    background-color: #444;
    border-radius: 4px;
    margin-top: 8px;
  }

  .dropdown-menu li a {
    color: #fff;
    padding: 8px;
  }

  /* --- GENERAL CONTENT ADJUSTMENTS --- */

  header.head,
  div.hero,
  .core-services,
  .partners {
    padding: 20px 10px;
    text-align: center;
  }

  /* Flex Cards: Stack 1 or 2 per row */
  .parent,
  .parent-container {
    flex-direction: row; /* Switch back from row-reverse for intuitive scrolling */
    justify-content: center;
    gap: 14px;
  }

  .child,
  .children {
    width: 100%;
    max-width: 300px; /* Centers cards nicely on phone screens */
    height: 240px;
  }

  .core-services ol {
    padding-left: 20px;
  }

  .core-services ol li {
    font-size: 16px;
  }
}


/* --- SMALL MOBILE PHONES (Max-Width: 480px) --- */
@media screen and (max-width: 480px) {
  .button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .child,
  .children {
    width: 100%;
    max-width: 100%; /* Stretch cards full width on very small phones */
  }

  footer {
    padding: 24px 12px;
  }
}