/* ========================= */
/*      VARIABLES & RESET    */
/* ========================= */
:root {
  --primary: #1F383A;
  --secondary: #305983;
  --accent: #607768;
  --light: #fff;
}
html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  background: var(--light);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================= */
/*         HEADER            */
/* ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

header .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary);
}

header .logo img {
  width: 60%;
}

header nav {
  display: flex;
  gap: 1.5rem;
}

header nav a:hover {
  color: var(--secondary);
}

/* ========================= */
/*        HAMBURGER          */
/* ========================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--secondary);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* Close button inside mobile menu */
.menu-close {
display: none;
}
/* ========================= */
/*          HERO             */
/* ========================= */
.hero {
  position: relative;
  height: 86vh;
  background: url('../images/member4.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 56, 58, 0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-btn {
  background: var(--secondary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ========================= */
/*        SECTIONS           */
/* ========================= */

.container {
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ========================= */
/*           CARDS           */
/* ========================= */
.cards,
.membership-cards,
.institute-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--light);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 60px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p {
  color: #a9a9a9;
  font-size: 1rem;
  line-height: 1.5;
}

/* ========================= */
/*        TEXT COLUMNS       */
/* ========================= */
.member-benefits,
.institute-section, .about, .membership-section {
  padding: 60px 20px 0 20px;

}


.membership-section{
  width:70%
}
.membership-cards{
  margin-top:30px
}
.text-column ul li{
  color:#a9a9a9
}
.institute-section{
  margin-top:-60px
}
.institute-section h2, .expected-outcomes h2{
  padding:0 0 30px 0
}
.benefits-container {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: stretch;
}

.text-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-column h2 {
  margin-bottom: 20px;
  color: var(--secondary);
}

.text-column ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.text-column li {
  margin-bottom: 12px;
}

/* Image columns */
.image-column,
.image-columns,
.image-columnss {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.image-column {
  background-image: url('../images/member.webp');
}

.image-columns {
  background-image: url('../images/member2.webp');
}
.image-columnss {
  background-image: url('../images/member5.webp');
}
/* ========================= */
/*          FOOTER           */
/* ========================= */
footer {
  background: #fff;
  color: var(--primary);
  padding: 4rem 2rem 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-top div h3 {
  margin-bottom: 0.8rem;
  text-transform: capitalize;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(6, 88, 126, 0.9);
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* ========================= */
/*          PARTNERS         */
/* ========================= */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
  padding: 20px 0;
}

.partners img {
  display: inline-block;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partners img:hover {
  transform: scale(1.1);
}

/* ========================= */
/*       EXPECTED OUTCOME    */
/* ========================= */
.expected-outcomes {
  padding: 60px 20px;
  text-align: center;
}

.outcomes-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 180px;
}

.circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.milestone p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

/* Connecting line for desktop */
@media (min-width: 768px) {
  .outcomes-timeline {
    position: relative;
  }
  .outcomes-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: var(--accent);
    z-index: 0;
  }
  .milestone {
    position: relative;
    z-index: 1;
  }
}

/* ========================= */
/*         CTA SECTION       */
/* ========================= */
.cta-section {
  position: relative;
  height: 70vh;
  background: url('../images/member3.webp') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.cta-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-cards {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  position: relative;
  z-index: 1;
  
}

.cta-cards::-webkit-scrollbar {
  height: 6px;
}

.cta-cards::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.cta-cards .card {
  display: inline-block;
  min-width: 220px;
  max-width: 250px;
  background: rgba(255,255,255,0.1);
  padding: 25px 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
  color: #fff!important;
  text-align: center;
  flex-shrink: 0;
}
.cta-cards .card h3{
  color: #fff!important;
}

.cta-cards .card p{
  color: #fff!important;
}
.cta-cards .card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.2);
}

/* ========================= */
/*        BACK TO TOP        */
/* ========================= */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 1.5rem;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ========================= */
/*           LOADER          */
/* ========================= */
#loader {
  position: fixed;
  inset: 0;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top: 6px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ========================= */
/*      MOBILE MENU          */
/* ========================= */
/* Mobile layout */
@media (max-width: 768px) {
  header {
    flex-direction: row; /* keep logo + hamburger inline */
    align-items: center;
    padding: 1rem 1.5rem;
  }

  header .logo {
    width: 50%; /* logo takes left side */
  }

  .hamburger {
    display: flex;
    margin-left: auto; /* push hamburger to right */
  }

  nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    flex-direction: column; /* stack links vertically */
    padding: 2rem 2rem;
    gap: 1.5rem;
    transition: top 0.5s ease;
    z-index: 999;
    overflow-y: auto;
    height:50%
  }
  /* Show close button on mobile */
  .menu-close {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 2rem;
    margin-top: -20px; /* move it slightly up */
  }

  nav.show {
    top: 0;
  }
  ul li{
    list-style-type: none;
  
  }

}


/* ========================= */
/*       RESPONSIVE QUERIES  */
/* ========================= */

/* Tablets & small desktops */
@media (max-width: 1024px) {
  header { padding: 1rem; }
  .hero { height: 70vh; padding: 1rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .container { padding: 0 1rem; }
  .cta-cards { flex-wrap: wrap; justify-content: center; }
}

/* Tablets portrait */
@media (max-width: 900px) {
  .benefits-container,
  .institute-cards,
  .membership-cards {
    flex-direction: column;
    grid-template-columns: 1fr !important;
  }

  .image-column,
  .image-columns {
    min-height: 200px;
    border-radius: 10px;
  }

  .text-column { padding-top: 20px; text-align: center; }
  .footer-top { flex-direction: column; text-align: center; gap: 1.5rem; }
  .partners img { max-height: 45px; }
}

/* Large phones */
@media (max-width: 600px) {
  header nav { flex-wrap: wrap; gap: 1rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  section { padding: 2rem 1rem; }
  h2 { font-size: 1.5rem; }
  .card { padding: 1.5rem; }
  .cta-cards { gap: 15px; }
  .cta-cards .card { min-width: 80%; }
  .outcomes-timeline { flex-direction: column; align-items: center; }
  .circle { width: 50px; height: 50px; font-size: 1rem; }
  .about{
    padding:3rem 0;
  }
  .cards .card{
width:80%;
margin:0 auto;
  }
  .membership-section{
    width:100%;
    margin:0 auto;
  }
  .partnerss{
    margin-top: -50px!important;
  }
  .membership-cards .card{
    width:100%;
margin:0 auto;
  }
  .about-paragraph{
    padding: 0 2rem;
color:#a9a9a9;
text-align: center;

  }
  .partners{
    padding: 2rem 2rem 0;
    margin: 0 auto;
  }
  .text-column ul li{
    list-style-type: none;
    color:#a9a9a9;
  }
  .costofweekness{
    margin-top: -70px;
  }
  .benefits-columns{
    margin-top: 20px!important;
  }
.member-benefits{
  margin-top: -70px;
}
  .institute-section{
    margin-top: -80px;
  }
  .programme, .expected-outcomes{
    margin-top: -40px;
  }
 .cicle2{
    margin-top: -70px;
}
.cta-cards .card {
  display: block;

}
.cta-section {
  height: 120vh;
}
.cta-cards .card h3, .cta-cards .card p{
  color:#fff;
}
.about{
  text-align: justify;
}
}
/* Small phones */
@media (max-width: 430px) {
  .cta-section {
    height: 100vh;
  }
  .hero {

  height: 56vh;

}
nav {

  height:35%
}
}


/* Small phones */
@media (max-width: 320px) {
  header nav { flex-wrap: wrap; gap: 1rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  section { padding: 2rem 1rem; }
  h2 { font-size: 1.5rem; }
  .card { padding: 1.5rem; }
  .cta-cards { gap: 15px; }
  .cta-cards .card { min-width: 80%; }
  .outcomes-timeline { flex-direction: column; align-items: center; }
  .circle { width: 50px; height: 50px; font-size: 1rem; }
  .about{
    padding:3rem 0;
  }
  .about-paragraph{
    padding: 0 2rem;
color:#a9a9a9;
text-align: center;
  }
  .partners{
    padding: 2rem 2rem 0;
    margin: 0 auto;
  }
  .text-column ul li{
    list-style-type: none;
    color:#a9a9a9;
  }
  .costofweekness, .member-benefitss{
    margin-top: -70px;
  }
  .institute-section,  .expected-outcomes{
    margin-top: -50px;
  }
  .why-align {
    margin-top: 0;
    padding-top: 0;
  }
  
  .programme{
    margin-top: -40px;
  }
 .cicle2{
    margin-top: -70px;
}
.cta-cards .card {
  display: block;

}
.cta-section {
  height: 190vh;
}
.cta-cards .card h3, .cta-cards .card p{
  color:#fff;
}
nav {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  flex-direction: column; /* stack links vertically */
  padding: 2rem 2rem;
  gap: 1.5rem;
  transition: top 0.5s ease;
  z-index: 999;
  overflow-y: auto;
}

.hero {
  position: relative;
  height: 100vh;

}
}









#cookie-consent {
  position: fixed;
  bottom: -100px; /* Start hidden below viewport */
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2000;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: bottom 0.5s ease, opacity 0.5s ease;
}

#cookie-consent.show {
  bottom: 20px;
  opacity: 1;
}

#cookie-consent p {
  margin: 0;
  text-align: center;
}

#cookie-consent a {
  color: var(--accent);
  text-decoration: underline;
}

#cookie-consent button {
  background: #fff;
  color: var(--secondary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

#cookie-consent button:hover {
  background: var(--accent);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #cookie-consent {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    width:100%
  }

  #cookie-consent button {
    width: 100%;
  }
}


/* ========================= */
/*           ABOUT           */
/* ========================= */

.about-paragraph{
  width:70%;
  margin:0 auto;
  color:#a9a9a9;
  padding:1rem 0 3rem 0;
  text-align: center;
}



/* Reusable fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
