/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #000;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

header .logo img {
    width: 150px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a.active,
.nav-links a:hover {
    background-color: red;
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('hero-image.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero .red-text {
    color: red;
}

/* About MICA Section */
#about-mica {
    padding: 4rem 2rem;
    text-align: center;
}

.mica-logos {
    display: block;
    margin-bottom: 2rem;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mica-logos img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.mica-text {
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.2rem;
    font-family: "Helvetica";
    font-weight: 400;
    color: white;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.mica-text p {
    margin-bottom: 1rem;
}

/* TEDx Theme Section Styles */
#tedx-theme {
    padding: 4rem 2rem;
    text-align: center;
}

.tedx-logos {
    display: block;
    margin-bottom: 2rem;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tedx-logos img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.tedx-text {
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.2rem;
    font-family: "Helvetica";
    font-weight: 400;
    color: white;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.tedx-text p {
    margin-bottom: 1rem;
}

/* Speakers Page Styles */
#speakers-section {
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.speakers-title {
    font-size: 3rem;
    color: red;
    margin-bottom: 2rem;
}

.speaker-info {
    display: flex;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    gap: 2rem;
    text-align: left;
    padding-bottom: 2rem;
}

.speaker-image {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.right-align {
    flex-direction: row-reverse;
}


.speaker-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.speaker-designation {
    color: red;
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

.speaker-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Georgia', serif;
    color: white;
}

/* Sponsors Page Styles */
#sponsors-section {
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.sponsors-title {
    font-size: 3rem;
    color: red;
    margin-bottom: 4rem;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 auto;
    width: 90%;
    margin-bottom: 8rem;
}

.sponsor { /* Apply flexbox to center content within the sponsor div */
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;    /* Vertically center */
    flex-direction: column;  /* Stack image and text vertically */
    text-align: center;      /* Center text */
    margin-bottom: 2rem;
    max-width: 200px;  /* Or whatever width you want for regular sponsor logos */
}

.sponsor img {
    max-width: 100%;  /* Ensure image fits container */
    height: auto;
    margin-bottom: 1rem; 
}


/* Indian Oil logo specific styles */
.sponsor img[src="indianoil.png"] {  
    max-width: 400px; /* Or your desired size for the larger logo */
    height: auto;
}


.sponsor-name {
    color: red;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.sponsor-description {
    font-size: 1.2rem;
}

/* Team Page Styles */
#team-section {
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.team-title {
    font-size: 3rem;
    color: red;
    margin-bottom: 0;
}

.team-image {
    max-width: 80%;
    height: auto;
    border: 1px solid transparent;
    padding: 20px;
    border-radius: 2px;
    margin: 0 auto;
    display: block;
}

#team-section .team-image + .team-image {
    margin-top: -4px;
}


/* Contact Page Styles */
#contact-section {
    padding: 4rem 2rem;
    color: white;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-title .red-text {
    color: red;
}

.contact-info {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-info p {
    margin-bottom: 1rem;
}



/* Section Styles (for speakers, sponsors, etc.) */
section {
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

section h2 {
  font-size: 2.5rem;
  color: red;
  margin-bottom: 1rem;
}

/* Footer Styles */
footer {
  background-color: black;
  padding: 2rem;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-left-logo {
  max-width: 200px;
  height: auto;
}

.social-icons {
  display: flex;
  gap: 2rem;
}

.social-icons img {
  width: 48px;
  height: 48px;
}


/* Media Query for smaller screens (e.g., mobile phones) */
@media (max-width: 768px) { /* Adjust the breakpoint as needed */

    /* General Styles */
    body {
        font-size: 16px; /* Slightly smaller base font size */
    }

    /* Header */
    header {
    flex-direction: column; /* Stack logo and nav */
    align-items: center;    /* Center header content horizontally */ /* Center the logo */
    padding: 1rem;
  }

  .nav-links {
    display: flex;         /* Keep display: flex */
    flex-direction: column; /* Force vertical stacking */
    align-items: center; /* centers horizontally */ /* Added */
    gap: 1rem;             /* Space between links */
    width: 100%;
    margin-top: 1rem;
  }

    
    /* Hero Section */
    .hero { padding: 2rem;}
    .hero img {width: 100%; height: auto;}
    .hero .hero-text {font-size: 1.2rem;}


    /* About MICA, TEDx Theme Sections */
    #about-mica, #tedx-theme {padding: 2rem;}
    .mica-logos img, .tedx-logos img {max-width: 100%; margin: 1rem auto;}
    .mica-text, .tedx-text {font-size: 1rem; padding: 1rem;}

    /* Home Page Specific Styles for Mobile */
    .mica-logos img, .tedx-logos img {
      max-width: 100%;    /* Ensure images scale down */
      height: auto;       /* Maintain aspect ratio */
      margin: 1rem auto;  /* Center the logos */
      display: block;      /* So they stack vertically */ /* Correct this rule */

    }
    .mica-logos, .tedx-logos {
        width: auto;  /* don't restrict container width */ /* Correct this rule */
    }

    /* Footer Styles for Mobile */
    .footer-content {
        flex-direction: column; /* Stack logo and icons vertically */
        align-items: center; /* Center content horizontally */
    }

    .bottom-left-logo {
        max-width: 150px; /* Adjust size as needed for mobile */
        margin-bottom: 1rem; /* Space below logo */
    }

    .social-icons {
        display: flex;      /* Make social icons horizontal */
        justify-content: center;  /* Center icons horizontally */

        flex-wrap: wrap;   /* Allow wrapping if needed */
        gap: 1.5rem;
        width: 100%;

    }


    .social-icons img {
        width: 40px;
        height: 40px;
    }



    /* Speakers Section */
    .speaker-info {
        flex-direction: column; 
        gap: 1rem;             
        text-align: center;    
    }

    .speaker-image {max-width: 100%; margin: 0 auto;}
    /* No need for .right-align on mobile */



    /* Sponsors Section */
    .sponsor-logos {
        flex-direction: column; 
        gap: 2rem; 
        margin-bottom: 4rem; 
    }
    .sponsor {max-width: 80%; margin: 0 auto; margin-bottom: 2rem;}
    .sponsor img[src="indianoil.png"] {max-width: 70%;} /* Indian Oil logo size on mobile */



    /* Team Page */
    .team-image {max-width: 90%; padding: 1rem;}




    /* Contact Section */
    .contact-info {margin-bottom: 1.5rem;}


    /* Footer */
    .social-icons {flex-wrap: wrap; justify-content: center; gap: 1.5rem;}
    .social-icons img {width: 40px; height: 40px;}

} /* End of media query */


/* Larger Screens (Optional - adjust breakpoint as needed) */
@media (min-width: 1024px) {
    body { font-size: 18px;}

    .sponsor img[src="indianoil.png"] {max-width: 350px;} /* Larger Indian Oil logo */

}
