/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif; /* Modern Font */
}

/* ------------------- */
/* TOP INFO BAR */
/* ------------------- */
.top-bar {
    background-color: #f0f0f0; /* Light Gray Background */
    padding: 10px 0;
    font-size: 0.9rem; /* Small Font */
    border-bottom: 2px solid #ffbf00; /* Yellow Stripe */
}

.top-info {
    display: flex;
    justify-content: space-around; /* Even spacing for items */
    align-items: center;
    text-transform: uppercase; /* Uppercase text */
    font-weight: 500;
    color: #004b59; /* Dark Teal */
}

.top-info img {
    height: 20px; /* Icon size */
    margin-right: 5px;
}

/* Mobile Adjustment for Top Info */
@media (max-width: 768px) {
    .top-info {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
    }
    .top-info div {
        margin: 5px 0; /* Spacing between rows */
    }
}

/* ------------------- */
/* HEADER SECTION */
/* ------------------- */
.header {
    background-color: #ffbf00; /* Yellow Background */
    padding: 15px 20px; /* Padding for spacing */
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle Shadow */
}

.header-content {
    display: flex;
    justify-content: space-between; /* Space between logo and phone */
    align-items: center;
    width: 80%; /* Keeps the header centered */
}

/* Logo Styling */
.logo img {
    height: 80px; /* Logo size */
}

/* Phone Number Styling */
.phone-support {
    text-align: right;
    color: #004b59; /* Dark Teal */
    font-size: 0.9rem;
    font-weight: 500;
}

.phone-support span {
    display: block;
    font-size: 1.8rem; /* Larger Phone Number */
    font-weight: bold; /* Bold Phone Number */
    color: #004b59; /* Dark Teal */
}

/* Mobile Adjustment for Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .phone-support {
        margin-top: 10px;
    }
}

/* ------------------- */
/* NAVIGATION BAR */
/* ------------------- */
.nav-bar {
    background-color: #004b59; /* Dark Teal Background */
    padding: 10px 0;
}

.nav-links {
    display: flex;
    justify-content: center; /* Centered Links */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px; /* Spacing between menu items */
}

.nav-links a {
    text-decoration: none; /* Removes underline */
    color: white; /* White text */
    font-weight: 500;
    text-transform: uppercase; /* Uppercase text */
    transition: color 0.3s; /* Smooth color transition */
}

.nav-links a:hover {
    color: #ffbf00; /* Yellow on Hover */
}

/* Mobile Adjustment for Navigation Bar */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column; /* Stack links vertically */
        text-align: center;
    }

    .nav-links li {
        margin: 10px 0; /* Add spacing between links */
    }
}

/* ------------------- */
/* SLIDESHOW SECTION */
/* ------------------- */
.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 700px; /* Set fixed height */
    margin: auto;
    overflow: hidden;
    background-color: #000; /* Placeholder for transition fade */
}

/* Slide images */
.slide-image {
    width: 100%;
    height: 700px; /* Match container height */
    object-fit: cover; /* Ensures images fit while maintaining aspect ratio */
}

/* Caption container */
.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Transparent background for captions */
    padding: 15px;
    border-radius: 5px;
}

.caption h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.caption p {
    margin: 0;
    font-size: 1rem;
}

/* Mobile Adjustment for Slideshow */
@media (max-width: 768px) {
    .slideshow-container {
        height: 400px; /* Adjust slideshow height */
    }

    .slide-image {
        height: 400px; /* Match smaller container height */
    }

    .caption {
        bottom: 10px;
        left: 10px;
        padding: 10px;
    }

    .caption h2 {
        font-size: 1.2rem;
    }

    .caption p {
        font-size: 0.9rem;
    }
}

/* Navigation arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dots navigation */
.dots-container {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* Fade animation */
.fade {
    animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
}

.bar {
    background-color: white;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: 0.3s ease-in-out;
}

/* Navigation for Desktop */
.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffbf00;
}

/* Responsive Navigation for Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #004b59;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Show menu when active */
    }

    .nav-links li {
        margin: 20px 0;
    }
}





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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* Container */
.container {
  width:90%;
  max-width:1200px;
  margin:0 auto;
  padding:80px 0;
}






/* Sections styling */
.section-title {
  text-align:center;
  font-size:2.5rem;
  color:#34495c;
  margin-bottom:40px;
}

.section-subtext {
  text-align:center;
  max-width:600px;
  margin:0 auto 50px;
  color:#777;
  font-size:1rem;
}

/* Services Section */
.services-section {
  background:#f9f9f9;
  position:relative;
  padding:80px 0;
}

.services-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:30px;
}

.service-card {
  background:#fff;
  border-radius:10px;
  padding:20px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  text-align:left;
  transition:transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.service-card i {
  font-size:3rem;
  color:#d11e3d;
  margin-bottom:20px;
}

.service-card h3 {
  font-size:1.5rem;
  color:#333;
  margin-bottom:15px;
}

.service-card p {
  font-size:1rem;
  color:#555;
}

/* About Section */
.about-section {
  position:relative;
  background:#fff;
  padding:80px 0;
}

.about-container {
  display:flex;
  align-items:center;
  gap:40px;
  flex-wrap:wrap;
}

.about-text h2 {
  font-size:2rem;
  margin-bottom:20px;
  color:#34495c;
}

.about-text p {
  font-size:1.1rem;
  color:#444;
  margin-bottom:20px;
}

.btn-secondary {
  background:#ffcb00;
  color:#2C3E50;
  padding:10px 20px;
  border-radius:5px;
  text-decoration:none;
  font-weight:600;
  transition:background 0.3s;
}

.btn-secondary:hover {
  background:#e6b800;
  transform: translateY(-2px);
}

.about-image img {
  width:100%;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

/* Subsidiaries Section */
.subsidiaries-section {
  background:#f9f9f9;
  text-align:center;
}

.subsidiaries-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:30px;
  margin-top:50px;
}

.subsidiary-card {
  background:#fff;
  padding:20px;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  text-align:left;
  transition:transform 0.3s, box-shadow 0.3s;
}

.subsidiary-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.subsidiary-card img {
  max-width:100%;
  height:auto;
  display:block;
  margin-bottom:15px;
}

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

.subsidiary-card p {
  font-size:1rem;
  color:#555;
}

/* Portfolio Section */
.portfolio-section {
  background:#f9f9f9;
  text-align:center;
}

.portfolio-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:30px;
  margin-top:50px;
}

.portfolio-card {
  background:#fff;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  overflow:hidden;
  transition:transform 0.3s, box-shadow 0.3s;
  text-align:left;
}

.portfolio-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.portfolio-card img {
  width:100%;
  display:block;
}

.portfolio-card h3 {
  font-size:1.3rem;
  margin:15px;
  color:#34495c;
}

.portfolio-card p {
  font-size:1rem;
  margin: 0 15px 15px 15px;
  color:#555;
}

/* News Section */
.news-section {
  background:#f9f9f9;
  text-align:center;
}

.news-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:30px;
  margin-top:50px;
}

.news-card {
  background:#fff;
  border-radius:10px;
  padding:20px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  text-align:left;
  transition:transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.news-card h3 {
  font-size:1.2rem;
  margin-bottom:15px;
  color:#333;
}

.news-card p {
  color:#555;
  margin-bottom:20px;
}

.news-card .read-more {
  font-weight:600;
  color:#d11e3d;
  text-decoration:none;
}

.news-card .read-more:hover {
  text-decoration:underline;
}



/* Section Styling */
.csr-section {
    background-color: #2b3a42;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.csr-title {
    font-size: 3em;
    color: #f5a623;
    margin-bottom: 20px;
}

.csr-description {
    font-size: 1.2em;
    color: #f5a623;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Card Container */
.csr-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
}

/* Individual Card Styling */
.csr-card {
    background-color: #fff;
    color: #333;
    width: 220px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    cursor: pointer;
    flex: 1;
    max-width: 280px;
}

.csr-card:hover {
    transform: scale(1.05);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #f5a623;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

/* Button */
.get-involved-btn {
    background-color: #f5a623;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.get-involved-btn:hover {
    background-color: #d38f2a;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .csr-cards {
        flex-direction: column;
        align-items: center;
    }

    .csr-card {
        width: 90%;
        margin-bottom: 20px;
    }
}

/* Contact Section */
.contact-section {
  position:relative;
  background:#fff;
  text-align:center;
}

.contact-section p {
  font-size:1.1rem;
  color:#555;
  margin-bottom:40px;
}

.contact-form {
  max-width:600px;
  margin:0 auto;
  text-align:left;
  display:grid;
  gap:20px;
}

.contact-form input,
.contact-form textarea {
  width:100%;
  padding:15px;
  border:1px solid #ccc;
  border-radius:5px;
  font-family:'Poppins', sans-serif;
}

.contact-form button {
  width:fit-content;
  align-self:center;
}



/* Preloader */
#preloader {
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:#fff;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.spinner {
  border:8px solid #f3f3f3;
  border-top:8px solid #d11e3d;
  border-radius:50%;
  width:60px;
  height:60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {transform:rotate(0deg);}
  100% {transform:rotate(360deg);}
}

/* Responsive */
@media (max-width:768px) {
  .about-container {
    flex-direction:column;
  }
}


.services-section {
  position: relative;
  background: #f9f9f9;
  padding: 80px 0;
  overflow: hidden; /* Ensure triangles don't overflow out of section */
}

.services-section .container {
  position: relative;
  z-index: 1; /* Ensure content sits above the triangles */
}

/* Two large triangle shapes */
.services-section::before,
.services-section::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* Top Triangle (Red), angled downward */
.services-section::before {
  top: 0;
  background: #d11e3d; /* Red */
  /* Create a downward slanting triangle:
     polygon coordinates:
     (0 0) top-left corner
     (100% 0) top-right corner
     (0 100%) bottom-left corner
     This forms a large diagonal triangle leaning to the left side */
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Bottom Triangle (Yellow), angled upward (opposite direction) */
.services-section::after {
  bottom: 0;
  background: #ffcb00; /* Yellow */
  /* This triangle will angle upward, opposite direction:
     polygon coordinates:
     (100% 100%) bottom-right corner
     (0 100%) bottom-left corner
     (100% 0) top-right corner
     This forms a triangle leaning towards the right side */
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

/* Services Grid and Cards remain unchanged */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card i {
  font-size: 3rem;
  color: #d11e3d;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 1rem;
  color: #555;
}


.portfolio-section {
  position: relative;
  padding: 10px 0;
  background: #ffcb00; /* Bright yellow background */
  text-align: center;
}

.portfolio-section .container {
  position: relative;
  z-index: 1;
}

.psection-title {
  font-size: 4.5rem;
  color: #2ffff; /* Dark text for strong contrast on yellow */
  margin-bottom: 20px;
  font-weight: 700;
}

.subsidiaries-section {
  font-size: 2.5rem;
  color: #2C3E50; /* Dark text for strong contrast on yellow */
  margin-bottom: 20px;
  font-weight: 700;
}

.section-subtext {
  font-size:1.25rem;
  color:#333; /* Slightly darker text for good readability */
  max-width:600px;
  margin:0 auto 50px;
  line-height:1.6;
}

.portfolio-grid {
  display: grid;
  gap:30px;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  margin-bottom:40px;
  padding:0 10px;
}

.portfolio-card {
  background:#fff;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  text-align:left;
  padding:20px;
  transition:transform 0.3s, box-shadow 0.3s;
  position:relative;
}

.portfolio-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.portfolio-card img {
  width:100%;
  height:auto;
  border-radius:5px;
  margin-bottom:15px;
  object-fit:cover;
}

.portfolio-card h3 {
  font-size:1.3rem;
  color:#333;
  margin-bottom:15px;
  font-weight:600;
}

.portfolio-card p {
  color:#555;
  line-height:1.5;
  margin-bottom:20px;
}

.read-more {
  font-weight:600;
  color:#d11e3d;
  text-decoration:none;
}

.read-more:hover {
  text-decoration:underline;
}

.section-cta {
  margin-top:20px;
}

.btn-secondary {
  background:#2C3E50;
  color:#fff;
  padding:10px 20px;
  border-radius:5px;
  text-decoration:none;
  font-weight:600;
  transition:background 0.3s;
}

.btn-secondary:hover {
  background:#1f2f40;
  transform:translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width:768px) {
  .section-title {
    font-size:2rem;
  }
  
  .section-subtext {
    margin-bottom:40px;
  }
}

/* Footer Styling */
/* General Footer Styling */
footer {
  background-color: #222;
  color: #ddd;
  font-family: 'Poppins', sans-serif;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-top {
  padding-bottom: 20px;
  border-bottom: 1px solid #444;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 15px;
}

.footer-about {
  margin-top: 15px;
}

.footer-about h3 {
  color: #f7ca18;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section h3 {
  color: #f7ca18;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #f7ca18;
}

.social-links {
  display: flex;
  flex-direction: column;
  /*align-items: flex-end; /* Align social media links to the right */
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #f7ca18;
  font-size: 30px; /* Enlarged icons */
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.newsletter input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
}

.newsletter button {
  padding: 8px 12px;
  background-color: #f7ca18;
  color: #222;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter button:hover {
  background-color: #e6b800;
}

.footer-bottom {
  background-color: #111;
  padding: 15px 0;
  text-align: center;
  color: #bbb;
  font-size: 14px;
}

.footer-bottom a {
  color: #f7ca18;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-logo img {
    width: 120px;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    display: flex;
    justify-content: flex-end; /* Align social icons to the right */
    gap: 10px;
    margin-top: 15px;
  }

  .social-icons a {
    margin: 0 10px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .newsletter form {
    flex-direction: column;
    gap: 15px;
  }
}

/*test*/

/* ===================================================
   CSS Variables for Consistent Theming
   =================================================== */
:root {
    --primary-color: #ff6600;
    --secondary-color: #FFD700;
    --background-color: #f4f4f4;
    --text-color: #333;
    --heading-color: #222;
    --overlay-color: rgba(0, 0, 0, 0.5);
    --button-hover-bg: #333;
    --button-hover-text: #fff;
    --card-bg: #fff;
    --card-hover-shadow: rgba(0, 0, 0, 0.2);
}

/* ===================================================
   General Styles
   =================================================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section {
    padding: 50px 20px;
    position: relative;
    background: #fff; /* Section background color */
}

.yellow-line {
    height: 5px;
    width: 50px;
    background-color: var(--secondary-color);
    margin: 20px auto; /* Center the divider */
}

/* ===================================================
   Navigation Bar
   =================================================== */
.tabs ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 15px;
    background: #333; /* Menu background color */
}

.tabs ul li {
    margin: 0 15px;
}

.tabs ul li a {
    text-decoration: none;
    font-size: 1.1rem; /* Menu font size */
    color: #fff;
    padding: 15px 20px; /* Padding to match height */
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px; /* Rounded corners */
}

.tabs ul li a:hover {
    background-color: var(--secondary-color); /* Hover background color */
    color: var(--button-hover-text); /* Hover text color */
}

/* ===================================================
   Hero Section
   =================================================== */
.hero {
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    width: 100%;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}

.hero-content h1 {
    font-size: 2.5rem; /* Header font size */
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem; /* Subheader font size */
}

/* ===================================================
   About Us Section
   =================================================== */
.about-us-section {
    padding: 80px 20px;
    background-color: #fff;
}

.about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1 1 500px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.big-caption {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.about-read-more {
    text-align: center;
    margin-top: 60px;
}

.content-preview h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.content-preview p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.read-more-btn {
    padding: 12px 25px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #e65c00;
}

.content-full p {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    color: #555;
    margin-bottom: 15px;
}

/* ===================================================
   Founder Section
   =================================================== */
.founder-section {
    text-align: center;
    margin: 40px auto;
}

.founder-image img {
    width: 200px;
    height: auto;
    margin-top: 20px;
}

/* ===================================================
   History Section with Background
   =================================================== */
.history-section {
    background: url('../images/history-background.jpg') no-repeat center center/cover;
    color: #fff; /* Ensure text contrasts with the background */
    padding: 50px 20px;
    position: relative;
    margin-top: 40px;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color); /* Semi-transparent overlay */
    z-index: 1;
}

.history-section .container {
    position: relative;
    z-index: 2; /* Bring content above the overlay */
}

.history-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure responsiveness */
}

.history-slider-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.history-slide {
    display: none;
}

.history-slide.active {
    display: block;
}

.history-slider img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.history-text {
    flex: 1;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.1); /* Light background for readability */
    padding: 20px;
    border-radius: 8px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hidden.show {
    display: block;
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    transform: translateY(-50%);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slide-caption {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
}

/* Slideshow Dots */
.slideshow-dots {
    text-align: center;
    margin-top: 15px;
}

.slideshow-dots .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.slideshow-dots .active, .slideshow-dots .dot:hover {
    background-color: var(--primary-color);
}

/* ===================================================
   Leadership Legacy Section
   =================================================== */
.legacy-grid, .next-gen-grid, .history-grid, .leaders-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure responsiveness */
}

.legacy-card, .next-gen-card, .history-item, .leader {
    flex: 1 1 calc(33.333% - 20px); /* Changed from calc(50% - 20px) to make cards smaller */
    background: var(--card-bg);
    padding: 15px; /* Reduced padding from 20px to 15px */
    border: 1px solid #ddd; /* Border color */
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s;
}

.legacy-card:hover, .next-gen-card:hover, .history-item:hover, .leader:hover {
    box-shadow: 0 4px 10px var(--card-hover-shadow);
    transform: translateY(-5px);
}

.legacy-card img, .next-gen-card img, .history-item img, .leader img {
    max-width: 50%; /* Reduced from 100% to make images smaller */
    height: auto;
    margin: 0 auto; /* Center the images */
    display: block; /* Ensure margin auto centers the image */
    border-radius: 8px;
}

.legacy-card h3, .next-gen-card p, .leader p {
    text-align: center;
    margin-top: 10px;
}

.small-image {
    max-width: 70%; /* Adjust leader image size */
    height: auto;
    margin-bottom: 10px;
}

/* Next Generation Cards Specific */
.next-gen-card {
    flex: 1 1 calc(25% - 20px); /* Further reduce size to fit four cards per row */
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s ease;
}

.next-gen-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===================================================
   Buttons
   =================================================== */
button.read-more, button.expand-button {
    background: var(--secondary-color); /* Button background color */
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button.read-more:hover, button.expand-button:hover {
    background: var(--button-hover-bg); /* Hover button background */
    color: var(--button-hover-text);
    transform: scale(1.05);
}

button.read-more {
    position: absolute;
    bottom: 10px; /* Place button at the bottom */
    right: 20px;
}

/* ===================================================
   Hidden Class for Toggle Visibility
   =================================================== */
.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hidden.show {
    display: block;
    opacity: 1;
}

/* ===================================================
   Responsive Styles
   =================================================== */
@media (max-width: 992px) {
    .about-content-wrapper {
        flex-direction: column;
    }

    .about-slideshow, .about-text {
        flex: 1 1 100%;
    }

    .history-content {
        flex-direction: column;
    }

    .legacy-card, .next-gen-card, .history-item, .leader {
        flex: 1 1 calc(50% - 20px); /* Two cards per row on tablets */
    }

    /* Adjust Next Gen cards */
    .next-gen-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .founder-image img {
        width: 100px;
        height: 100px;
    }

    .founder-info h4 {
        font-size: 18px;
    }

    .founder-info p {
        font-size: 14px;
    }

    .big-caption {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .description {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 2rem; /* Adjusted for smaller screens */
    }

    .hero-content p {
        font-size: 1rem; /* Adjusted for smaller screens */
    }

    .tabs ul {
        flex-direction: column;
    }

    .tabs ul li {
        margin: 10px 0;
    }

    .history-slider-container, .history-text {
        width: 100%;
    }

    .legacy-card, .next-gen-card, .history-item, .leader {
        flex: 1 1 100%; /* Full width on smaller screens */
    }

    .next-gen-card {
        flex: 1 1 100%; /* Full width on smaller screens */
    }
}


/* Fix for Button Placement =====================*/
/* Hide the checkbox */
        #exp_toggle {
            display: none;
        }

        /* Style the expandable section */
        .exp_expandable-section {
            position: relative;
            width: 100%;
            max-width: 1200px;
            margin: 50px auto;
            height: 700px; /* Initial fixed height */
            overflow: hidden;
            padding: 40px 20px;
            background-color: #f9f9f9;
            transition: height 0.5s ease;
            border: 2px solid #ddd;
            border-radius: 8px;
        }

        /* Content styling */
        .exp_content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .exp_content h2 {
            font-size: 2.5em;
            margin-bottom: 20px;
            color: #333;
        }

        .exp_content p {
            font-size: 1.2em;
            color: #666;
            line-height: 1.6;
        }

        /* Cards container */
        .exp_cards {
            display: none; /* Hidden by default */
            margin-top: 40px;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        /* Individual card styling */
        .exp_card {
            background-color: #fff;
            padding: 20px;
            width: 220px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border-radius: 8px;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .exp_card:hover {
            transform: translateY(-5px);
        }

        .exp_card h3 {
            margin-bottom: 10px;
            color: #007BFF;
        }

        .exp_card p {
            color: #555;
            font-size: 1em;
        }

        /* Buttons container */
        .exp_buttons {
            display: flex;
            justify-content: center;
            gap: 10px; /* Add spacing between buttons */
            margin-top: 20px; /* Adjust spacing between the buttons and cards */
        }

        /* Toggle button styling */
        .exp_toggle-button {
            position: relative; /* Remove absolute positioning */
            background-color: #007BFF;
            color: #fff;
            padding: 12px 24px;
            margin: 5px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            user-select: none;
            font-size: 1em;
            text-decoration: none;
        }

        .exp_toggle-button:hover {
            background-color: #0056b3;
        }

        /* "Read Less" button hidden by default */
        .exp_toggle-button.exp_read-less {
            display: none;
        }

        /* When checkbox is checked, expand the section */
        #exp_toggle:checked + .exp_expandable-section {
            height: auto; /* Allow the section to expand */
        }

        /* Show cards and fade them in when expanded */
        #exp_toggle:checked + .exp_expandable-section .exp_cards {
            display: flex;
            opacity: 1;
        }

        /* Toggle button visibility based on checkbox state */
        #exp_toggle:checked + .exp_expandable-section .exp_buttons .exp_read-more {
            display: none;
        }

        #exp_toggle:checked + .exp_expandable-section .exp_buttons .exp_read-less {
            display: inline-block;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .exp_expandable-section {
                padding: 20px 10px;
            }

            .exp_cards {
                flex-direction: column;
                align-items: center;
            }

            .exp_card {
                width: 100%;
                max-width: 300px;
            }

            .exp_content h2 {
                font-size: 2em;
            }

            .exp_content p {
                font-size: 1em;
            }

            .exp_toggle-button {
                padding: 10px 20px;
                font-size: 0.9em;
            }
        }

/* Hisotry test */

