/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 7rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --hover:#ea5225;
  --light-color: #666;
  --box-shadow: 0 .2rem 0.2rem rgba(0, 0, 0, .1);
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1.5rem;
  }
}

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

*::-webkit-scrollbar
{
    width: 0.5rem;
}

*::-webkit-scrollbar-track
{
    background-color: transparent;
}

*::-webkit-scrollbar-thumb
{
    background-color: lightgray;
}

html
{
    font-size: 70%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

section{
  padding: 3rem 10%;
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1300px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__burger, 
.nav__close {
  color: var(--black-color);
}

.nav__logo img{
  width: 15rem;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
    margin-top: 3.4rem;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--white-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--black-color);
  background-color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  color: var(--hover);
}

/* .nav__link:hover {
  background-color: var(--black-color-li);
} */

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: #121212;
  background-color: var(--white-color);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

/* .dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
} */

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}



/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--white-color);
}

.home {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: relative; 
  width: 100%; 
  min-height: 100vh; 
  color: white; 
  text-align: center; 

}

.home video
{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
}


.head__container {
  position:absolute ;
  bottom: 2rem;
  left: 2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6); 
  border-radius: 1rem;
  max-width: 700px;
  backdrop-filter: blur(6px); 
}

.head__container h1 {
  font-size: 3rem;
  line-height: 3.5rem;
  color: #fff;
  margin-bottom: 1.2rem;
  padding: 1.5rem 0;
}

.head__container h1 span{
  color: var(--hover);
}

.head__container p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #eee;
  font-weight: bold;
}

.cta-btn {
  border:1px solid var(--hover);
  background-color: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

.cta-btn:hover {
  background: var(--hover);
  border: none;
}

.cta-btn:active{
  transform: scale(0.9);
}


.home::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: -1;
}


.about__container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about__container h1{
  font-weight: 700;
  text-align: center;
  padding: 2rem;
}

.about__container h1 span{
  color: var(--hover);
}

.about__container h2{
  padding: 1rem;
  font-size: 1.5rem;
  line-height: 1.6;
}

.about__container p{
  line-height: 2;
  font-weight: 300;
  font-size: 1.4rem;
}

.choose .choose__grid h1
{
    font-weight: 600;
}

.choose .choose__grid h1 span{
  color: var(--hover);
}

.choose .choose__grid .list__container
{
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.choose .choose__grid .list__container .list
{
    border: 1px solid lightgray;
    padding: 5rem 2rem;
    border-radius: 0.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.choose .choose__grid .list__container .list h2
{
    font-size: 2rem;
    padding: 1.5rem 0;
    line-height: 1.6;
}

.choose .choose__grid .list__container .list p
{
    font-size: 1.3rem;
    padding: 2rem 0;
    line-height: 1.6;
    text-transform: none;
}

.choose .choose__grid .list__container .list:hover{
  transform: translateY(-5px);
}

.title {
  border-left: 5px solid var(--hover);
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

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

.grid .box {
  border: 1px solid var(--light-color);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.grid .box .image {
  width: 100%;
  max-width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 0.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid .box .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.speakers__con{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.speakers__con h1{
  padding: 1.5rem 0;
  font-size: 2.5rem;
}

.speakers__con h1 span{
  color: var(--hover);
}

.speakers__con .grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%; 
  max-width: 800px; 
  padding: 2rem 0;
}

.speakers__con .grids .box {
  text-align: center;
  padding: 1rem 0;
  transition: transform 0.3s ease;
}

.speakers__con .grids .box:hover{
  
  transform: translateY(-5px);
}

.speakers__con .grids .box .image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.speakers__con .grids .box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.speakers__con .grids .box h1{
  font-size: 1.5rem;
}

.magazine {
  color: black;
}

.mag_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  padding: 1rem 0;
}

.mag_container h2 {
  font-size: 1.5rem;
  padding: 1.5rem 0;
  text-align: center;
}

.mag_container .image {
  width: 100%;
  max-width: 300px;
  height: 450px;
  overflow: hidden;
  border-radius: 0.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mag_container .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

.service
{
    background: #e2f0f1;
}

.service .service__grid h1
{
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 3rem;
    color: var(--text-dark);
}

.service .service__grid .list__container
{
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.service .service__grid .list__container .list
{
    border: 1px solid lightgray;
    padding: 5rem 2rem;
    border-radius: 0.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.service .service__grid .list__container .list h2
{
    font-size: 2rem;
    padding: 1.5rem 0;
    line-height: 1.6;
}

.service .service__grid .list__container .list p
{
    font-size: 1.3rem;
    padding: 2rem 0;
    line-height: 1.6;
    text-transform: none;
}

.services h1{
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);   
    padding: 1rem 0;
}

.service .service__grid .list__container .list:hover{
  transform: translateY(-5px);
}

.footer {
  background: #121212;
  padding: 5rem 10%;
  display: flex;
  flex-direction: column;
}

.footer-container {
  display: flex;
  gap: 30px;
}

.footer-container footer-items {
  flex: 1; /* Default flex value */
}

/* Adjust flex ratios for different sections */
.footer-container .first {
  flex: 3; /* More space */
}

.footer-container .second {
  flex: 1; /* Less space */
}

.footer-container .fourth {
  flex: 1; /* More space */
}

/* Logo Image Styling */
.footer-container footer-items .logo-image {
  width: 100%;
}

.footer-container footer-items .logo-image img {
  max-width: 100%; /* Ensures responsiveness */
  width: 20rem; /* Keeps original size */
}

/* Footer Headings */
footer-items h1 {
  font-size: 2rem;
  letter-spacing: 0.2rem;
  position: relative;
  margin-top: 0;
  color: white;
}

footer-items h1::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -16px;
  height: 1.6px;
  width: 70px;
  border-radius: 8px;
  background-color: var(--light-color);
}

/* First Section */
.first ul {
  margin: 2rem 0;
}

.first ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 1rem 0;
  font-weight: 300;
  color: white;
}

.first ul li p,
.first ul li a {
  font-family: 'Poppins', sans-serif;
  color: white;
  font-weight: 300;
  line-height: 1.5;
}

/* Second, Third, and Fourth Sections */
.second ul,
.fourth ul {
  margin-top: 3.5rem; /* Reduced spacing */
  line-height: 2.5; /* Adjusted line height */
}

.second ul li a,
.third ul li a {
  font-weight: 300;
  color: #979aa0;
  font-family: 'Poppins', sans-serif;
}

/* Fourth Section */
.fourth ul {
  display: flex;
  gap: 2rem; /* Reduced spacing */
  width: 100%;
}

/* Circular List Items */
.fourth ul li {
  font-size: 1.5rem;
  text-align: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fourth ul li a {
  color: white;
}

.fourth p {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  font-weight: 300;
}

.copy {
  padding: 0 5%;
  margin: 0;
  background: #121212;
}

.copy .line {
display: flex;
gap: 5rem;
align-items: center;
padding: 1rem 0;
border-top: 1px solid var(--light-color);
}

.copy .line .right p {
font-size: 1.3rem;
color: var(--light-color);
font-family: 'Poppins', sans-serif;
}

/* =========================== Media Queries =========================== */

/* Mobile View (Below 768px) */
@media (max-width: 768px) {
.footer {
  padding: 5rem 3%;
}
  .footer-container {
      flex-direction: column;
      gap: 20px;
  }

  .footer-container .first,
  .footer-container .second,
  .footer-container .fourth {
      flex: 1; /* Equal space for all sections on mobile */
  }

  .footer-container footer-items .logo-image{
      text-align: center;
  }

  footer-items h1 {
      font-size: 2rem; /* Adjust heading font size for mobile */
  }

  .copy {
      padding: 0 0; /* Adjust copy padding on mobile */
  }

  .copy .line {
      flex-direction: column;
      gap: 2rem; /* Stack the elements vertically on mobile */
  }

  .copy .line .right p {
      font-size: 1.1rem; /* Reduce font size for disclaimers */
      padding: 0 1rem;
  }

  .mag_container{
    grid-template-columns: repeat(2,1fr);
  }
}

/* Tablet View (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer-container {
      flex-direction: row;
      gap: 20px;
  }

  .footer-container .first,
  .footer-container .second,
  .footer-container .fourth {
      flex: 1.2; /* Slightly adjusted flex for tablet */
  }

  footer-items h1 {
      font-size: 2.2rem;
  }

}

/* Desktop View (Above 1024px) */
@media (min-width: 1024px) {
  .footer-container {
      flex-direction: row;
      gap: 30px;
  }

  .footer-container .first,
  .footer-container .second,
  .footer-container .fourth {
      flex: 1.5;
  }

  footer-items h1 {
      font-size: 2rem;
  }
}


@media (width > 968px){
    .service .service__grid .list__container
    {
        grid-template-columns: repeat(4, 1fr);
    }
    .choose .choose__grid .list__container
    {
        grid-template-columns: repeat(4, 1fr);
    }
  }

/* Mobile adjustments */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .upcoming__events .title {
    font-size: 1.25rem;
  }

  .grid {
    gap: 1rem;
  }

  .grid .box .content {
    padding: 0.75rem;
  }

  .grid .box .content h1 {
    font-size: 1.05rem;
  }

  .grid .box .content p {
    font-size: 0.9rem;
  }
}

@media (max-width:450px){
  html{
    font-size: 50%;
  }
  .mag_container{
    grid-template-columns: repeat(1,1fr);
  }
}



/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 1.5rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}