* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
    overflow-x: hidden; /* prevents horizontal scroll */
    font-family: Arial, sans-serif;
    background-image: url("images/hero.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header{
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
}

.navbar {  
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.5);
}

.logo{
    padding: 0px;
    color: rgb(3, 100, 92);
    font-weight: bold;
    font-size: 25px;
    font-family: 'Times New Roman', Times, serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
}



.speakers-container {
    width: 100%;       
    display: flex;    
    flex-direction: column;       
    justify-content: center;      
    align-items: center;
    max-width: 1200px;
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;   
    height: calc(100% - 80px);  /* subtract space for heading */
}

.speaker-card {
    background: rgb(125, 192, 188);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    background-color: rgb(96, 145, 141);
}

.speaker-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.speakers-container h2 {
    font-size: 40px;
    margin-bottom: 5px;
    color: #f9f9f9;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

.speakers-container p {
    font-size: 30px;
    margin-bottom: 5px;
    color: #ffffff;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

.speaker-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #222;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

.speaker-card p {
    font-size: 0.9rem;
    color: #222;
    font-family: 'Times New Roman', Times, serif;
}

.footer {
    background: #111;
    color: #eee;
    text-align: center;
    padding: 20px;
}

.footer a {
    color: rgb(3, 100, 92);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
}

.footer a:hover {
    color: #fff;
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
   .navbar{
       display: flex;
       flex-direction: column;
       gap: 10px;      
      /* align-items: flex-start; */
    } 
    .nav-links {
    gap: 20px;   
    }

    .speaker-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row */
    }

    .speakers-container h2 {
        font-size: 32px;
    }

    .speakers-container p {
        font-size: 22px;
    }
}

/* Mobile (max-width: 768px) */
@media(max-width: 1048px){
    .footer{
        width: 100% ;
        margin-right: 0;
    }
}
@media (max-width: 768px) {
    .navbar{
       display: flex;
       flex-direction: column;
       gap: 10px;      
      /* align-items: flex-start; */
    } 
    .nav-links {
    gap: 20px;   
    }

    .speaker-grid {
        grid-template-columns: 1fr; /* single column */
    }

    .speakers-container {
        margin: 40px auto;
        padding: 20px;
        width: 90%;
    }

    .speaker-card{
        width: 90%;
    }

    .speakers-container h2 {
        font-size: 26px;
    }

    .speakers-container p {
        font-size: 18px;
    }

    .speaker-card img {
        height: 180px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .speaker-card h3 {
        font-size: 1rem;
    }

    .speaker-card p {
        font-size: 0.85rem;
    }

    .footer {
        font-size: 0.85rem;
        padding: 15px;
    }
}