* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #072E33;
  --secondary-color: #047857;
  --accent-color: #00d2d3;
  --dark-bg: #2c3e50;
  --light-bg: #f5f6fa;
  --card-bg: #ffffff;
  --text-primary: #000000;
  --text-secondary: #000000;
  --border-color: #dcdde1;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:linear-gradient(to bottom right, rgb(28, 170, 170), #0C7075);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth; 
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

header img, footer img {
  padding-right: 10px;
  padding-bottom: 20px;
  max-width: 70px; 
}

.header-logo, .footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

header {
  text-align: center;
  background-color: #0C7075;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  right: 0;
  padding: 20px;
}

.nav-btn {
  margin: 0 15px;
  align-content: space-evenly;
  text-decoration: none;
  font-weight: bolder;
  color: white; 
  font-size: larger;
  transition: 0.5s ease-in-out;
}

.nav-btn:hover {
  color: cyan;
  transition: 0.5s ease-in-out;
  text-shadow: cyan 0px 0px 5px;
  font-weight: bolder;
  text-decoration: underline;
}

.cta-btn {
  background-color: cyan;
  color: #072E33;
  align-content:flex-end;
  padding: 15px 20px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s ease-in-out;
  font-size: larger;
  margin-left: auto;
  box-shadow: cyan 0px 0px 5px;
}

.cta-btn:hover {
  background-color: #05161A;
  color: cyan;
  transition: 0.5s ease-in-out;
  box-shadow: cyan 0px 0px 5px;
}

/*MAIN*/

main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 2rem;
}

  /*Topics Sections*/
.topic-section {
  background:  #0C7075;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); 
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  }

.topic-section:nth-child(1) { animation-delay: 0.1s; }
.topic-section:nth-child(2) { animation-delay: 0.2s; }
.topic-section:nth-child(3) { animation-delay: 0.3s; }
.topic-section:nth-child(4) { animation-delay: 0.4s; }
.topic-section:nth-child(5) { animation-delay: 0.5s; }
.topic-section:nth-child(6) { animation-delay: 0.6s; }
.topic-section:nth-child(7) { animation-delay: 0.7s; }
.topic-section:nth-child(8) { animation-delay: 0.8s; }
.topic-section:nth-child(9) { animation-delay: 0.9s; }
.topic-section:nth-child(10) { animation-delay: 1.0s; }
.topic-section:nth-child(11) { animation-delay: 1.1s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topic-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.topic-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient( var(--accent-color), var(--primary-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.heading{
  color: white;
  text-align: center;
  font-size: x-large;
  padding-top: 120px;
  text-decoration: underline;
}

.topic-title {
  font-size: 1.90rem;
  color:white; 
  font-weight: 600;
}

  /*Rows for Topics*/
.content-row {
  margin-bottom: 1.5rem;
}

.row-label {
  font-size: 0.9 rem;
  font-weight: 600;
  color: white; 
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

  /*Scroll*/
.scroll-container {
  position: relative;
  overflow: hidden;
}

.scroll-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color); 
}

.scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: 10px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient( var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}


/* Video Card */
.video-card {
 flex: 0 0 280px;
 background: var(--card-bg);
 border-radius: 15px;
 overflow: hidden;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
 cursor: pointer;
 text-decoration: none;
 color:white; 
}

.video-card:hover {
 transform: translateY(-8px) scale(1.02);
 box-shadow: var(--shadow-lg); 
}

.video-thumbnail {
 position: relative;
 width: 100%;
 height: 160px;
 background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
 overflow: hidden;
}

.video-thumbnail img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 padding-right: 0;
 padding-bottom: 0;
}

.play-overlay {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 60px;
 height: 60px;
 background: rgba(255, 255, 255, 0.9);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: var(--transition);
 opacity: 0;
}

.video-card:hover .play-overlay {
 opacity: 1;
 transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
 width: 0;
 height: 0;
 border-left: 20px solid var(--primary-color);
 border-top: 12px solid transparent;
 border-bottom: 12px solid transparent;
 margin-left: 0; 
}

.video-duration {
 position: absolute;
 bottom: 10px;
 right: 10px;
 background: rgba(0, 0, 0, 0.8);
 color: white;
 padding: 4px 8px;
 border-radius: 5px;
 font-size: 0.8rem;
}

.video-info {
 padding: 1rem;
}

.video-title {
 font-weight: 600;
 color: var(--text-primary);
 margin-bottom: 0.5rem;
 display: -webkit-box;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.video-meta {
 display: flex;
 justify-content: space-between;
 font-size: 0.85rem;
 color: var(--text-secondary);
}

.document-card {
 flex: 0 0 200px;
 background: var(--card-bg);
 border-radius: 15px;
 padding: 1.5rem;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
 cursor: pointer;
 text-decoration: none;
 color: inherit;
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}

.document-card:hover {
 transform: translateY(-8px) scale(1.05);
 box-shadow: var(--shadow-lg);
 background: linear-gradient(var(--light-bg), var(--card-bg)); 
}

.doc-icon {
 width: 60px;
 height: 60px;
 background: linear-gradient(var(--accent-color), var(--primary-color));
 border-radius: 12px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: white;
 font-size: 1.5rem;
 margin-bottom: 1rem;
 transition: var(--transition);
}

.document-card:hover .doc-icon {
 transform: rotate(10deg) scale(1.1);
}

.doc-title {
 font-weight: 600;
 color: var(--text-primary);
 margin-bottom: 0.5rem;
 font-size: 0.95rem;
}

.doc-type {
 font-size: 0.8rem;
 color: var(--text-secondary);
 background: var(--light-bg);
 padding: 4px 12px;
 border-radius: 20px;
}


/*FOOTER*/

.footer {
  background-color: #0C7075; /* primary color */
  color: #fff;
  padding: 40px 20px;
}

footer {
  display: block;
  text-align: center;
  background-color: #0C7075;
  color: #FFFFFF;
  padding: 0 40px;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}


.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col p,
.footer-col ul {
  font-size: 14px;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.5s;
}

.footer-col ul li a i{
  padding-right: 5px;
}

.footer-col ul li a:hover {
  color: cyan; 
  font-weight: bold;
  transition: color 0.5s;
}

.footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

.Legal-docs {
    color: white;
    text-decoration: none;
}

.Legal-docs:hover {
    color: cyan;
    transition: 0.5s ease-in-out;
    box-shadow: cyan 0px 0px 5px;
}

/*CREDITS FOOTER*/

.team-credit {
    margin-top: 3rem;
    padding: 2rem;
    background:linear-gradient(to top,rgba(5, 22, 26, 0.7),#0C7075);
    border-radius: 10px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.team-member {
    padding: 0.8rem;
    background: #6ae1e7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-name {
    display: block;
    font-weight: bold;
    color: #2c3e50;
}

.member-role {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.credit-note {
    font-style: italic;
    color: #495057;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Icons */
#closeMenu,
#openMenu {
  display: none;
}

/* RESPONSIVE DESIGN */
/* ---------- Tablet View (<=1024px) ---------- */
@media (max-width: 1024px) {
  #closeMenu,
  #openMenu{
  display: none;
  }

  .heading h1 {
    margin-top: 80px;
  }

  header {
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
  }

  .nav-btn {
    margin: 10px;
    padding: 15px 0;
  }

  .cta-btn {
    margin-top: 20px;
  }

   .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile View (<=700px) ---------- */
@media (max-width: 700px) {
  /* Footer responsiveness */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .heading h1 {
    margin-top: 100px;
  }

  .footer-logo {
    margin: auto;
  }

  .cta-btn {
    font-size: 1em;
    padding: 10px 15px;
    margin-right: 15px;
  }

  /* Icons */
  #closeMenu,
  #openMenu {
    display: block;
    color: white;
    margin: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    border: #072e33 solid 2px;
    border-radius: 5px;
    padding: 5px;
    background-color: #072e33;
  }

  #closeMenu,
  #openMenu:hover {
    background-color: cyan;
    color: #072e33;
    border: cyan solid 2px;
    transition: 0.3s ease-in-out;
  }

  /* Header layout */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 1002;
  }

  .logo {
    max-width: 70px;
    padding: 0;
    margin: 0;
  }

  header h1 {
    font-size: 30px;
    margin: 0;
    padding: 10px 0;
  }

  /* NAV MENU OVERLAY */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100vh; /* full screen */
    background-color: #0C7075;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    box-shadow: cyan 0px 0px 8px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
  }

  nav.active {
    transform: translateY(0);
  }

  nav.active {
    transform: translateX(0);
  }

  .nav-btn {
    color: white;
    font-size: 1rem;
    padding: 10px;
  }
  .close-icon {
    display: none; /* Hide close icon by default */
  }

  /* Smooth icon toggle */
  #closeMenu,
  #openMenu {
    transition: opacity 0.3s ease;
  }
}
