/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #d8d8d8;

}
a:link {
  text-decoration: none;
}
/* Header Section */
header {
    background-color: #002244; /* Dark blue background */
    color: #ffffff;
    padding: 10px 0;
    position: absolute;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
}

header .logo img {
    width: 100px;
    height: auto;
}

/* Navigation Menu */
.menu-toggle{
  z-index: 1;
  align-items: right;
  position: relative;
  left: 175px;
}
nav{
   z-index:0;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #009fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f0c040;
}

/* Menu Toggle (Initial State) */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    color: #ffffff; /* Change to your preferred color */
    display: none; /* Hidden on larger screens */
}

/* Small screen adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none; /* Hide menu by default */
        flex-direction: column;
        background-color: #002244; /* Match header background */
        position: relative;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }
    
    nav ul.active {
        display: flex; /* Show menu when toggled */
        position: absolute;
       left: 380px;
      width: 20%;
    }
    
    nav ul li {
        text-align: center;
        margin: 10px 0;
    }
}

/* Slider Section */
#slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    align-items: center;
    background-color: #c4c4c4;
   background: url(images/tobafaximage2.jpg) center no-repeat;
   background-position: center center;
  background-size: cover;
  z-index: -1;
}

/* End Slider Section */

 /* table */
.table-container {
    width: 65%;
    margin: 20px auto;
    overflow-x: auto;
     height: 100%;
}

table, td, th {
  border: 3px solid #002244;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color:  #f2f2f2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   font-size: 1.5rem;
}
.table-header{
  font-size: 3.5rem;
  margin-top: 28px;
 align-item: center;
text-align: center;
}
.table-paragraph{
  font-size: 3rem;
  margin-bottom: 45px;
  text-align: center;
  align-item: center;
}

table img {
  width: 150px;
    height: 150px;
    margin-bottom: -40px;
    align-item: left;
}
thead {
    background-color: #002244;
    color: white;
    font-size: 2rem;
}

td {
   font-size: 2.3rem;
}
.phone-icon { 
color: #25d366; /* WhatsApp green */
 } 
.email-icon {
 color: #ea4335; /* Gmail red */
 }
 .location-icon { 
color: #4285f4; /* Google Maps blue */
 } 
.website-icon {
 color: #34a853; /* Google green */
 }
 .building-icon { 
color: #ff5722; /* Orange for buildings */
 }
 .instagram-icon { 
color:#f77737; /* Orange for instagram */
 }
.facebook-icon { 
color:#3b5998; /* blue for facebook */
 }
.twitter-icon { 
color: #1da1f2; /* blue for twitter */
 }
.social-media-icon { 
color: #1DA1F2; /* Twitter blue */
 }

#globe{
  margin-bottom: -10px; 
  margin-top: -35px; 
 }
.social-media-icons {
 display: flex;
 justify-content: left;
 margin-left: 4.5px;
 gap: 45px;
 }
 .social-media-icons a {
 text-decoration: none; 
color: #333;
 font-size: 30px; 
transition: color 0.3s; 
} 
.social-media-icons a:hover {
 color: #0077b5; /* Change color on hover */
 }
.contact-item {
 display: flex;
 align-items: center; 
margin-bottom: 10px; 
}
 .contact-item i {
 font-size: 24px;
 margin-right: 15px;

}
 .contact-item a {
 text-decoration: none;
 color: #333;
 transition: color 0.3s; 
}
 .contact-item a:hover { 
color: #0077b5;
}
@media (max-width: 768px) {
    .table-container {
    width: 92%;
    margin: 20px auto;
    overflow-x: auto;
     height: 100%;
 }
}
/* End Table */

/* Footer */
.footer {
  width: 100%;
  height: 12rem;
  background-color: #202122;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10rem;
}

.footer-nav a {
  font-family: "MADE Soulmaze", serif;
  font-size: 2rem;
  color: #ccc;
  margin-right: 3rem;
  letter-spacing: 0.1rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color:  #f0c040;
}

.copyright {
  font-size: 2rem;
  color: #ddd;
}
/* End of Footer */
.categories-container {
    padding: 40px 20px;
}

.categories-container h1 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #444;
    text-align: center;
}

/* Grid Layout */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Cards */
/* Category Cards */
.category-card {
    background-color: #fff;
    border-radius: 8px;
   box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1), -4px -4px 15px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    text-align: center;
   position: relative;
    display: flex;
    flex-direction: column;
    /*transform: rotateY(20deg) skewX(-2deg);*/
    width: 200px; /* Fixed width */
    height: 150px; /* Fixed height */

}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 4px 20px 30px rgba(0, 0, 0, 0.2), -4px -4px 30px rgba(255, 255, 255, 0.8);
}
 
.category-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;

    align-item: center;
}

/* Icon Container */
.icon-container {
    width: 60px; /* Adjusted size for smaller card */
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.icon-container img {
    width: 70%; /* Icon fits within the circle */
    height: 70%;
}

/* Highlighted Card */
.category-card.highlight {
    background-color: #white;
    color: #fff;
}

.category-card.highlight p {
    color: #555;
}

/* Hover Effects */
.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-card.highlight:hover {
    background-color: #002245;
    color: #fff;
}

.category-card.highlight:hover p{
    color: #fff;
}


/* Card Content */
.card-content h2 {
    font-size: 0.9rem; /* Adjusted size for fixed width */
    margin: 0;
    margin-bottom: 5px;
    color: #333;
}

.card-content p {
    font-size: 0.75rem; /* Smaller font for smaller cards */
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-container h1 {
        font-size: 1.8rem;
    }

    .category-card {
        width: 200px;
        height: 180px;
    }

    .card-content h2 {
        font-size: 0.8rem;
    }

    .card-content p {
        font-size: 0.7rem;
    }
header { 
flex-direction: column; 
align-items: flex-start; 
width: 100%; 
max-width: 760px; 
} 

}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

@media (max-width: 600px) {
    th, td {
        padding: 8px 10px;
    }
}
@media (max-width: 1400px) {
  html {
    font-size: 60%; 
  }
.category-card.highlight p {
    font-size: 2rem;
}
header { 
flex-direction: column; 
align-items: flex-start; 
width: 100%; 
max-width: 1400px; 
} 

 .section-2 {
    height: auto;
  }

  .cards-container {
    margin-top: 10rem;
  }
@media (max-width: 900px) {
  html {
    font-size: 59%;
  }


 .cards-container {
    flex-wrap: wrap;
  }

.footer {
    padding: 0 5rem;
  }

  .footer-nav a {
    font-size: 1.8rem;
  }
}
@media (max-width: 700px) {
  html {
    font-size: 56%;
  }

 .contact-details div {
    margin: 3rem 2rem;
  }

.slider{
   width: 90rem;
  
  }


.footer {
    flex-direction: column;
    justify-content: center;
  }

  .footer-nav {
    margin-bottom: 2rem;
  }
}
@media only screen and (max-width: 425px) { 
header { 
flex-direction: column; 
align-items: flex-start; 
width: 100%; 
max-width: 425px; 
} 
.menu-toggle{
  z-index: 1;
  align-items: right;
  position: relative;
  left: 130px;
}
 nav ul.active {
        display: flex; /* Show menu when toggled */
        position: absolute;
       left: 290px;
      width: 25%;
    }
.category-card {
        width: 300px;
        height: 180px;
    }
.categories-container  {
    font-size: 2.3rem;
  
}

 .footer { 
width: 100%; 
max-width: 425px; 
  }
}
@media only screen and (max-width: 390px) { 
html {
    font-size: 53%;
    width: 100%; 
  max-width: 390px; 
  }
header { 
flex-direction: column; 
align-items: flex-start; 
width: 100%; 
max-width: 390px; 
} 

header .logo img {
    width: 75px;
    height: auto;
}


.menu-toggle{
  z-index: 1;
  align-items: right;
  position: relative;
  left: 120px;
}
 nav ul.active {
        display: flex; /* Show menu when toggled */
        position: absolute;
       left: 290px;
      width: 25%;
    }

 .footer { 
width: 100%; 
max-width: 390px; 
  }

#slider { 
width: 100%; /* Full width for images */ 
max-width: 390px; /* Maximum width to fit the screen */ 
  }
.footer {
    flex-direction: column;
    justify-content: center;
  }

  .footer-nav {
    margin-bottom: 1.6rem;
  }
}
@media only screen and (max-width: 320px) {
  .category-card {
        width: 280px;
        height: 180px;
    }
}