/* Section IDs for scrolling targets */
#founders-message,
#our-history,
#mission-vision,
#accreditation,
#partners {
  scroll-margin-top: 100px; /* Adjust based on your header height */
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 89, 95, 0.3), rgba(0, 49, 58, 0.3)), url('bestkenyacollege.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding:  0 20px;
}

.hero__content {
  position: relative;
  width: 100%;
  height: 100%;
  width: 1200px;
  display: flex;
  align-items: flex-end;
}

.hero__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.801);
  margin-bottom: 20px;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
    min-height: 400px;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 40vh;
    min-height: 300px;
  }
  
  .hero__title {
    font-size: 2rem;
  }
}

.intro {
  max-width: 1200px;
  padding: 0 20px;
  margin: 20px auto;
}

/* Mission & Vision Section */
.mission-vision {
  padding: 80px 0;
  background: #f8f9fa;
}

.mission-vision__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.mission-vision__box {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.mission-vision__box--blue {
  background: var(--blue);
  color: white;
}

.mission-vision__box--white {
  background: white;
  color: #333;
}

.mission-vision__item {
  text-align: center;
}

.mission-vision__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.mission-vision__box--blue .mission-vision__icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mission-vision__box--white .mission-vision__icon {
  background: var(--blue);
  color: white;
  border: 2px solid var(--blue);
}

.mission-vision__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.mission-vision__box--blue .mission-vision__title {
  color: white;
}

.mission-vision__box--white .mission-vision__title {
  color: #000000;
}

.mission-vision__text {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.mission-vision__box--blue .mission-vision__text {
  color: rgba(255, 255, 255, 0.9);
}

.mission-vision__box--white .mission-vision__text {
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mission-vision {
    padding: 60px 0;
  }
  
  .mission-vision__container {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }
  
  .mission-vision__box {
    padding: 40px 25px;
    gap: 40px;
  }
  
  .mission-vision__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .mission-vision__title {
    font-size: 1.3rem;
  }
  
  .mission-vision__text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .mission-vision {
    padding: 40px 0;
  }
  
  .mission-vision__container {
    padding: 0 15px;
  }
  
  .mission-vision__box {
    padding: 30px 20px;
    gap: 30px;
  }
  
  .mission-vision__icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .mission-vision__title {
    font-size: 1.2rem;
  }
}
/* Founder's Message Section */
.founders-message {
  background: var(--blue);
  color: white;
  padding: 80px 0;
  background-image: linear-gradient(rgba(20, 172, 218, 0.9), rgba(20, 172, 218, 0.9)), url('bestkenyacollege3.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
}

.founders-message .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.founders-message__content {
  text-align: center;
}

.founders-message__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
}

.founders-message__text {
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.founders-message__text p {
  margin-bottom: 25px;
}

.parents-section {
  margin: 40px 0 30px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.parents-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.signature {
  text-align: right;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.signature__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.signature__title {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .founders-message {
    padding: 60px 0;
  }
  
  .founders-message__title {
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
  }
  
  .founders-message__text {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .parents-section {
    margin: 30px 0 25px 0;
    padding: 20px;
  }
  
  .parents-section h3 {
    font-size: 1.2rem;
  }
  
  .signature {
    margin-top: 30px;
  }
  
  .signature__name {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .founders-message {
    padding: 40px 0;
  }
  
  .founders-message__title {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }
  
  .founders-message__text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .founders-message__text p {
    margin-bottom: 20px;
  }
  
  .parents-section {
    margin: 25px 0 20px 0;
    padding: 15px;
  }
  
  .signature {
    text-align: center;
    margin-top: 25px;
  }
}

/* Accreditation Section */
.accreditation {
  padding: 80px 0;
  background: #fff;
}

.accreditation .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.accreditation__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

/* Left Side */
.accreditation__left {
  padding-top: 20px;
}

.accreditation__header {
  border-top: 3px solid #000;
  padding-top: 15px;
  margin-bottom: 25px;
}

.accreditation__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.accreditation__intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Right Side - Collapsible Items */
.accreditation__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accreditation-item {
  border-bottom: 2px solid #e63946;
}

.accreditation-item__header {
  width: 100%;
  background: none;
  border: none;
  padding: 25px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accreditation-item__header:hover {
  background-color: #f8f9fa;
}

.accreditation-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  margin: 0;
  text-align: left;
}

.accreditation-item__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #e63946;
  transition: transform 0.3s ease;
}

.accreditation-item__header[aria-expanded="true"] .accreditation-item__icon {
  transform: rotate(45deg);
}

.accreditation-item__content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accreditation-item__header[aria-expanded="true"] + .accreditation-item__content {
  padding: 0 20px 25px 20px;
  max-height: 2000px;
}

.accreditation-item__content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 15px;
}

.accreditation-item__content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.accreditation-item__content li {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 8px;
}

.accreditation-item__content strong {
  color: #333;
}

/* Responsive Design */
@media (max-width: 968px) {
  .accreditation__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .accreditation__left {
    padding-top: 0;
  }
  
  .accreditation__header {
    border-top: 2px solid #000;
  }
}

@media (max-width: 768px) {
  .accreditation {
    padding: 60px 0;
  }
  
  .accreditation__title {
    font-size: 1.7rem;
  }
  
  .accreditation__intro {
    font-size: 1rem;
  }
  
  .accreditation-item__header {
    padding: 20px 15px;
  }
  
  .accreditation-item__title {
    font-size: 1.1rem;
  }
  
  .accreditation-item__content {
    padding: 0 15px;
  }
  
  .accreditation-item__header[aria-expanded="true"] + .accreditation-item__content {
    padding: 0 15px 20px 15px;
  }
}

@media (max-width: 480px) {
  .accreditation {
    padding: 40px 0;
  }
  
  .accreditation__title {
    font-size: 1.5rem;
  }
  
  .accreditation-item__header {
    padding: 18px 12px;
  }
  
  .accreditation-item__title {
    font-size: 1rem;
  }
}

/* Partners Section */
.partners {
  background: #e63946;
  padding: 80px 0;
  color: white;
}

.partners .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.partners__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partners__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.partners__image:hover img {
  transform: scale(1.05);
}

.partners__text {
  padding: 20px 0;
}

.partners__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partners__description p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.95);
}

.partners__description p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .partners__content {
    gap: 40px;
  }
  
  .partners__image img {
    height: 350px;
  }
  
  .partners__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .partners {
    padding: 60px 0;
  }
  
  .partners__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .partners__image img {
    height: 300px;
  }
  
  .partners__title {
    font-size: 2rem;
    margin-bottom: 25px;
  }
  
  .partners__description p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .partners {
    padding: 40px 0;
  }
  
  .partners__content {
    gap: 30px;
  }
  
  .partners__image img {
    height: 250px;
  }
  
  .partners__title {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }
  
  .partners__description p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
}

/* History Section */
.history {
  padding: 80px 0;
  background: #f8f9fa;
}

.history .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.history__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

/* Left Side - Image with Title Overlay */
.history__image-side {
  position: relative;
}

.history__image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 500px;
}

.history__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history__title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 40px 20px 20px 20px;
  text-align: center;
}

.history__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.815);
}

/* Right Side - Content */
.history__text-side {
  padding: 10px 0;
}

.history__text-side p {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 25px;
}

.history__text-side p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .history__content {
    gap: 40px;
  }
  
  .history__image {
    height: 450px;
  }
  
  .history__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .history {
    padding: 60px 0;
  }
  
  .history__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .history__image {
    height: 400px;
  }
  
  .history__title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .history__text-side p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .history {
    padding: 40px 0;
  }
  
  .history__content {
    gap: 30px;
  }
  
  .history__image {
    height: 350px;
  }
  
  .history__title {
    font-size: 1.7rem;
    padding: 30px 15px 15px 15px;
  }
  
  .history__text-side p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
}
