*, *::before, *::after {
  box-sizing: border-box;
}

.menu, .menu-btn, .footer-social img {
  will-change: transform;
}

/* General Styles for Larger Screens */
.container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 20px;
}

header, footer {
  padding: 20px;
  text-align: left;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

header {
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    color: white;
}

header .logo img {
    width: 20vw;
    height: auto;
    background-color: #f4f4f4;
    margin-left: 1vw;
}

.menu-btn {
  font-size: 2rem;
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: #007acc;
  display: block; /* Always visible by default (mobile first) */
  z-index: 1100;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.menu-btn:focus,
.menu-btn:hover {
  background: #e0f7fa;
  color: #f39c12;
  outline: 2px solid #007acc;
}

/* Default: Mobile First (menu hidden, button visible) */
.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #E0FFFF;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: left;
  z-index: 1000;
  min-width: 50vw;
  margin-right: 0;
  overflow: visible;
}
.menu.active {
  display: block;
}

.menu ul {
  list-style: none;
  padding: 10px;
  gap: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu ul li {
  margin: 0;
}

.menu ul li a {
  text-decoration: none;
  color: #00008B;
  display: block;
  padding: 5px;
  font-size: 1.2rem;
}

.menu ul li a:hover {
  text-decoration: underline;
  color: #f39c12;
}

/* Large and Tablet Screens: Menu always visible, flexible, button hidden */
@media (min-width: 768px) {
  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    box-shadow: 2px 2px 10px rgba(4, 40, 105, 0.5);    
    min-width: 0;
    width: auto;
    max-width: 100vw;
    margin-right: 0;
    overflow: visible !important;
  }
  .menu ul {
    flex-direction: row;
    gap: 2vw;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
    justify-content: flex-end;
  }
  .menu ul li {
    margin: 0 0.5vw;
    flex: 0 1 auto;
  }
  .menu ul li a {
    padding: 8px 1vw;
    font-size: 1rem;
    min-width: 60px;
    word-break: keep-all;
  }
  .menu-btn {
    display: none !important;
  }
}

/* As screen shrinks, menu items wrap and shrink spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .menu ul {
    gap: 1vw;
  }
  .menu ul li a {
    padding: 8px 0.5vw;
    font-size: 0.95rem;
  }
}

/* At exactly 768px and below, switch to button menu */
@media (max-width: 767px) {
  .menu {
    display: none;
    background-color: #15317E;
    border-radius: 10px;
  }
  .menu-btn {
    display: block;
  }

  .menu ul li a {
    color: #fff;
    text-align: center;
  }
}

/* Tablet-specific Styles */
@media (max-width: 768px) {
  .container {
    padding: 10px;
    max-width: 95vw;
  }
  .menu {
    width: 90%;
  }
  header, footer {
    padding: 15px;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Phone-specific Styles */
@media (max-width: 480px) {
  .container {
    padding: 5px;
    max-width: 99vw;
  }
  header, footer {
    font-size: 14px;
  }
  nav ul li {
    margin: 5px 0;
  }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.hero-image {
    position: relative;
    width: 60vw;
    max-width: 80%;
    height: auto;
    left: 20vw;
    border-radius: 8vw 2vw 8vw 2vw;
}

/* Adjust for smaller screens */
@media (max-width: 768px), (max-width: 480px) {
  .hero-image {
    width: 90vw; 
    height: auto;
    left: 10vw;
    }
}

.full-width-image {
    position: relative;
    width: 100%;
}

.base-image {
    position: relative;
    width: 100vw;
    max-width: 100vw; 
    height: 100vh;
}

/* Overlay Images */
.overlay-image1, .overlay-image2 {
    transform: translateY(-50%);
    height: auto;
    max-height: 100%;
    border-radius: 20px;
    top: 50%; /* Vertically center */
    bottom: 2%;
    position: absolute;
    transition: transform 0.3s ease-in-out;
    z-index: 2;
    will-change: transform;
}

/* Positioning Overlay Images */
.overlay-image1 {
    left: 5%;
    width: 40vw;
}

.overlay-image2 {
    right: 5%;
    width: 40vw;
}

.overlay-text {
    top: 98vh;
    left: 58vw;
    transform: translateY(-80%); 
    display: flex;
    text-align: center;
    font-size: 2vw;
    color: white;
    background: #15317E rgb(0, 0, 0, 0.1); 
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 20px;
    position: absolute;
    transition: transform 0.3s ease-in-out;
    z-index: 10; 
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px), (max-width: 480px) {
     .hero {
        flex-wrap: nowrap;
        align-items: center;
    }

    .base-image {
        max-height: 50vh;
    }

     .overlay-image1, .overlay-image2 {
        width: 45%; 
        max-width: 50vw;
        top: 50%;
    }

    .overlay-image1 {
        left: 2%;
    }

    .overlay-image2 {
        right: 2%;
    }

    .overlay-text {
        font-size: 1rem;
        position: absolute;
        display: flex;
        top: 85%;
        bottom: 0; 
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 5%;
        background: #15317E rgb(0, 0, 0, 0.2); 
        background: rgba(0, 0, 0, 0.2); 
        color: white;
        text-align: center;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    .value-card {
        width: 80vw;
        height: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}

/* focus Section Styling */
.focus {
    text-align: center;
    padding: 0.2vw;
    background: #f0f8ff;
    font-family: Arial, sans-serif;
    color: #007bff;
}
.focus h2 {
    font-size: 2.2rem;
    color: #4169e1;    
}

section h1 {
    color: #007bff;
    text-align: center;
    padding: 20px;
}

section p {
    font-size: 1.1rem;
    text-align: center;
}

/* About Section */
.about {
    padding: 0;
    background-color: #f0f8ff;
    text-align: center;
    font-family: Arial, sans-serif;
}

.about-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    padding: 20px;
    width: 80vw;
    margin-left: 10vw;
    text-align: left;
}

.about-content h3 {
    font-size: 1.25rem;
    color: #007acc;
    margin-bottom: 10px;
}

/* Vision & Mission */
.vision-mission-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    margin-top: 20px;
}

.vision-card, .mission-card {
    background: #fff;
    color: green;
    border-radius: 8px;
    width: 40%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Core Values */
.core-values {
    background-color: #ecf0f1;
    text-align: center;
    color: #15317E;
    padding: 20px;
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
}

.value-card {
    background: #0038a8;
    color: #fff;
    border-radius: 8px;
    width: 30%;
    margin: 2vw;
}

.statement {
     border-right: 4px solid #007BFF;
    border-left: 4px solid #007BFF;
    margin-left: 10vw;
    text-align: center;
    justify-content: center;
}

blockquote p {
    font-style: italic;
    color: #555;
    margin: 5vh;
   font-size: 1.25rem;
}

.belt {
    text-align: center;
    padding: 0.2vw;
    background: url('star5a.png') center/cover no-repeat;
    font-family: Arial, sans-serif;
}

.belt h2 {
    font-size: 2.2rem;
    color: #00008B;    
}

/* Footer */
footer {
    background-color: #15317E;
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 100vw;
    flex-wrap: wrap;
    font-size: 1rem;
}

.footer-logo img {
    max-width: 10vw;
    height: auto;
    padding: 0;
    margin-left: 1vw;
    margin-top: 3vh;
    margin-right: 1vw;
    border-radius: 5%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.footer-contact {
  flex: 2;
  text-align: left;
  padding: 0;
  margin-left: 5vw;
}

.footer-contact p {
  color: #fff;
  margin-left: 1vw;
  padding: 0;
  text-align: left;
  margin-top: 1vw;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #f39c12;
}

.footer-social {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.footer-social img {
    width: 3vw;
    height: auto;
    transition: transform 0.3s ease;
    margin: 5px;
    will-change: transform;
}

.footer-social img:hover {
    transform: scale(1.1);
    filter: brightness(2);
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 5px;
 }

.footer-links {
    flex: 1;
    text-align: left;
    padding: 2px;
    margin-left: 5vw;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1rem;
    margin-left: 5px;
    padding: 5px;
    display: inline-block;
    will-change: color;
}

.footer-links a:hover {
    color: #f39c12;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px;
}

.footer-links ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
    will-change: color;
}

.footer-links ul li a:hover {
    color: #f39c12;
}

.footer-copyright {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    text-align: center;
    font-size: small;
    color: #fff;
}

.footer-copyright p {
    margin: 0;
    padding: 0;
    color: #fff;
}
.footer-copyright a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    will-change: color;
}
.footer-copyright a:hover {
    text-decoration: underline;
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px), (max-width: 480px) {

    .menu-btn {
        display: block;  
    }

    .vision-mission-container {
        flex-direction: column;
        align-items: center;
    }

    .vision-card,
    .mission-card {
         width: 80%;
    }

    .values-container {
        flex-direction: column;
        align-items: center;
    }

    .value-card {
        width: 80vw;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-contact, .footer-social, .footer-links {
        flex: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer-container h2 {
        font-size: 2.2rem;
        margin: 2vh;
        padding: 1vw;
        color: #fff;
        text-align: center;
    }

    .footer-container p {
        font-size: 1.1rem;
        margin: 1vh;
        color: #fff;
        padding-top: 0.5vw;
        text-align: center;
    }

    .footer-logo img {
        max-width: 30vw;
        height: auto;
        margin: 5vh;
    } 

    .footer-social img {
        width: 5vw;
        height: auto;
        margin: 5px;
    }

    .footer-links ul li {
        display: block;
    }

    .footer-links ul li a {
        display: block;
        font-size: 1.1rem;
        text-align: center;
        color: #fff;
        transition: color 0.3s ease;
    }
}