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

/* Overlay for Text Readability */
.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

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


.about-section {
  font-family: 'Arial', sans-serif;
  color: #333;
  padding: 40px;
  background: #f9f9f9;
}

h1, h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #222;
}

.summary-section p {
  text-align: center;
  line-height: 1.6;
}

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

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

/* History Section */
.history-section {
  margin-top: 40px;
}

.history-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.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;
}

.history-text {
  flex: 1;
  line-height: 1.6;
}

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

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

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

/* Leadership Legacy */
.legacy-grid, .next-gen-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.legacy-card img, .next-gen-card img {
  width: 150px;
  height: auto;
}

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

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* Change body background color */
}

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

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

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

/* 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: white;
    padding: 15px 20px; /* Padding to match height */
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px; /* Keep corners slightly rounded */
}

.tabs ul li a:hover {
    background-color: #FFD700; /* Hover background color */
    color: black; /* Hover text color */
    border-radius: 5px; /* Maintain square corners */
}

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

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

/* Yellow Divider Line */
.yellow-line {
    height: 5px;
    width: 50px;
    background-color: #FFD700; /* Divider color */
    margin: 20px 0;
}

/* History and Leaders Grid */
.history-grid,
.leaders-grid,
.next-gen-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* History Items and Leader Cards */
.history-item,
.leader,
.next-gen-card {
    flex: 1 1 calc(50% - 20px); /* Card size (adjust for different layouts) */
    background: #fff; /* Card background color */
    padding: 20px;
    border: 1px solid #ddd; /* Border color */
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.history-item:hover,
.leader:hover,
.next-gen-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Images for History and Leaders */
.history-item img,
.leader img,
.next-gen-card img {
    max-width: 100%;
    border-radius: 8px;
}

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

/* Buttons */
button.read-more,
button.expand-button {
    background: #FFD700; /* 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: #333; /* Hover button background */
    color: white;
    transform: scale(1.05);
}

/* Fix for Button Placement */
.details {
    margin-top: 10px;
    padding-bottom: 30px; /* Ensure spacing for button */
}

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

/* Next Generation Cards */
.next-gen-card {
    flex: 1 1 calc(33.333% - 20px); /* Adjust card size for next-gen */
    text-align: center;
    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);
}

/* test directors */
.read-more-btn {
    cursor: pointer;
    color: #ffd300;
    text-decoration: underline;
    border: none;
    background: none;
    padding: 0;
    font-size: 1em;
}

.read-more-content {
    display: none;
    margin-top: 15px;
    color: #555;
}
.read-more-content {
    display: none;
    margin-top: 15px;
    color: #555;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.read-more-content.show {
    display: block;
    max-height: 1000px; /* Adjust as needed */
    opacity: 1;
}

