/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f7fa;
    color: #222;
}

/* Navbar */
.navbar {
    background-color: #003366;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;  /* Ensure navbar items wrap on smaller screens */
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
    border-radius: 5px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #00aaff;
}

/* Intro Section */
.intro-section {
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.intro-section h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Keypoints */
.keypoints {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1000px;
    margin: 40px auto;
    gap: 30px;
    padding: 0 20px 60px;
}

.keypoint {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.keypoint:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.keypoint img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.keypoint h3 {
    color: #003366;
    margin-bottom: 10px;
    font-size: 20px;
}

.keypoint p {
    font-size: 16px;
    color: #444;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease-in;
}

.copyright {
    text-align: center;
    padding: 20px;
    background-color: #003366;
    color: white;
    font-size: 14px;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */

/* Tablets and below */
@media (max-width: 1024px) {
    .intro-section,
    .keypoints {
        max-width: 90%;
        padding: 20px;
    }

    .keypoint {
        padding: 15px;
    }

    .keypoint h3 {
        font-size: 18px;
    }

    .keypoint p {
        font-size: 14px;
    }

    .intro-section p {
        font-size: 16px;
    }

    /* Ensure the navbar is responsive */
    .navbar {
        flex-direction: column;
        align-items: flex-start; /* Align items at the start of the container */
    }

    .navbar nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
    }

    .navbar nav a {
        margin: 10px 10px 0 0;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .partner {
        max-width: 90%;
    }

    .mySlides img {
        height: 300px;
    }

    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo-img {
        height: 40px;
        margin-right: 10px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .navbar nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 0;
    }

    .navbar nav a {
        font-size: 14px;
        margin-left: 12px;
        margin-top: 6px;
    }

    .link-box {
        padding: 6px 12px;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: 1rem;
        
    }
    .navbar{
        padding: 10px;
    }

    .navbar nav a {
        font-size: 14px;
        margin-top:10px;
        margin-right:10px;
        margin-left:0px;
        margin-bottom:0px;
    }
    .keypoint img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
   .keypoints {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }

  .keypoint {
    padding: 15px 10px;
    border-radius: 8px;
  }

    .intro-section h2 {
        font-size: 1.4rem;
    }

    .intro-section p {
        font-size: 14px;
    }

    .keypoint {
        padding: 15px 10px;
    }

    .keypoint h3 {
        font-size: 16px;
    }

    .keypoint p {
        font-size: 13px;
    }

    .copyright {
        font-size: 12px;
        padding: 15px;
    }
}
