/*======================
  RESET & BASE STYLES
========================*/
html,
body {
  width: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: "Poppins", "Arial", sans-serif;
  scroll-behavior: smooth;
}

/*======================
  NAVBAR STYLES
========================*/
.navbar {
  background-color: #030c24;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.container1 {
  max-width: 1200px;
  width: 100%;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 1px solid #d35400;
}

.logo {
  height: 60px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 200px;
  width: auto;
  object-fit: contain;
}

/*======================
  NAV LINKS
========================*/
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-left: 10px;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: whitesmoke;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #d35400;
}

.dropdown-parent > a::after {
  content: "▼";
  margin-left: 5px;
  font-size: 15px;
}

/* Active link style */
.nav-links ul > li > a.active {
  color: #d35400 !important;
  position: relative;
}

/* Optional: Add underline */
.nav-links ul > li > a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d35400;
}

/*======================
  HAMBURGER STYLES
========================*/
.hamburger {
  display: none;
  position: absolute;
  right: 20px;
  top: 22px;
  z-index: 11;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #0e0d0d;
  transition: all 0.3s ease;
  width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  border-radius: 15px;
  border-color: var(--bs-border-color-translucent);
  background: #030c24;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgb(9, 1, 1);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-parent {
  position: relative;
}

.dropdown-parent .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #030c24;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown-parent:hover .dropdown-menu {
  display: block;
}

.dropdown-menu > li {
  position: relative;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #d35400;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: #d35400;
}

.dropdown-submenu .submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #030c24;
  border-radius: 15px;
  line-height: 1.2rem;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-submenu:hover .submenu {
  display: block;
}

.dropdown-submenu > a::after {
  content: "▶";
  margin-left: 10px;
  font-size: 12px;
}
.sub {
  font-size: 12px;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.hamburger span {
  transition: all 0.3s ease;
}

/* Divider */
.nav-divider {
  margin: 0 auto 20px auto;
}

.hidden {
  visibility: hidden;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  margin: 10px;
  margin-left: 50px;
  margin-right: -70px;
}

.language-selector label {
  font-weight: 600;
  color: white;
}

.language-selector select {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #d35400;
  font-size: 14px;
  cursor: pointer;
  transition: border 0.3s ease;
}

.language-selector select:hover {
  border-color: #007bff;
}

@media screen and (max-width: 768px) {
  .language-selector {
    display: block;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    text-align: left;
    margin-left: -50px;
  }

  .language-selector label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 200;
  }

  .language-selector select {
    padding: 8px;
    font-size: 16px;
  }
}

.about-hero {
  background: url("../images/cnu.jpg") no-repeat center center/cover;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.about-hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(255, 153, 52, 0.283); /* Maxidivine color tone overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
}

.about-hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.about-hero-text p {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
}

@media (max-width: 768px) {
  .about-hero-text h1 {
    font-size: 2.2rem;
  }

  .about-hero-text p {
    font-size: 1rem;
  }
}

.vision-section {
  padding: 80px 10%;
  background-color: #f3f7fc;
  overflow: hidden;
}

.vision-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
  margin-top: -60px;
}

.vision-text {
  flex: 1 1 500px;
}

.vision-text h2 {
  font-size: 2.8rem;
  color: #030c24;
  margin-bottom: 20px;
}

.vision-text h2 span {
  color: #d35400;
}

.vision-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}

.vision-image {
  flex: 1 1 45%;
  text-align: center;
}

.vision-image img {
  width: 100%;
  height: 250px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .vision-section {
    padding: 1rem 1rem;
  }

  .vision-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .vision-text {
    text-align: center;
    margin-bottom: -50%;
  }

  .vision-text h2 {
    font-size: 2.8rem;
    margin-top: 26%;
  }

  .vision-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 45px;
  }

  .vision-image img {
    width: 380px;
    height: 250px;
    object-fit: cover;
    margin: 0 auto; /* Center horizontally */
    display: block;
    margin-left: -10px;
  }
}

.mission-section {
  padding: 80px 10%;
  background-color: #f9f9f9;
  overflow: hidden;
}

.mission-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.mission-text {
  flex: 1 1 50%;
}

.mission-text h2 {
  font-size: 2.8rem;
  color: #030c24;
  margin-bottom: 20px;
}

.mission-text .highlight {
  color: #d35400;
}

.mission-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
}

.mission-image {
  flex: 1 1 45%;
  text-align: center;
}

.mission-image img {
  width: 100%;
  height: 250px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  margin-left: -70px;
}

@media (max-width: 768px) {
  .mission-container {
    flex-direction: column;
  }

  .mission-text {
    text-align: center;
    margin-left: -30px;
  }

  .mission-image img {
    justify-content: center;
    margin-left: -33px;
    width: 380px;
    height: 250px;
  }
}

.core-values-section {
  padding: 80px 10%;
  background-color: #f9f9f9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.core-values-header {
  text-align: center;
  margin-bottom: 50px;
}

.core-values-header h2 {
  font-size: 2.8rem;
  color: #030c24;
  margin-bottom: 10px;
}

.core-values-header .highlight {
  color: #d35400;
}

.core-values-header p {
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.core-value-box {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  background: url("../images/pexels-ahmad-ramlee-2281061-4125267.jpg"); /* optional subtle background */
}

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

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #030c24;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.icon-circle img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.core-value-box h4 {
  color: #d35400;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.core-value-box p {
  color: black;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .core-values-section {
    padding: 60px 6%;
  }

  .core-values-header h2 {
    font-size: 2rem;
  }

  .core-values-header p {
    font-size: 1rem;
  }

  .core-value-box {
    padding: 25px 20px;
  }
}

.our-story-section {
  padding: 80px 10%;
  background-color: #f9f9f9;
  overflow: hidden;
}

.story-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 40px;
}

.story-text {
  flex: 1 1 500px;
}

.story-text h2 {
  font-size: 2.4rem;
  color: #030c24;
  margin-bottom: 20px;
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.story-image {
  flex: 1 1 450px;
  text-align: center;
}

.story-image img {
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-left: 30px;
  margin-right: -50px;
  width: 400px;
  height: 450px;
}

@media (max-width: 768px) {
  .story-container {
    flex-direction: column;
    text-align: center;
    margin-bottom: -230px;
  }

  .story-text h2 {
    font-size: 2rem;
  }

  .story-text p {
    font-size: 1rem;
  }

  .story-image {
    margin-top: 20px;
  }

  .story-image img {
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-left: 30px;
    margin-left: -50px;
    width: 330px;
    height: 300px;
  }
}

.about-contact-section {
  background-color: #f3f7fc;
  padding: 80px 10%;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.contact-text {
  flex: 1 1 45%;
}

.contact-text h2 {
  font-size: 2.5rem;
  color: #030c24;
  margin-bottom: 10px;
}

.contact-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #333;
}

.contact-form {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background-color: #d35400;
  color: #fff;
  border: none;
  padding: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #030c24;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-text h2 {
    font-size: 2rem;
    margin-left: 60px;
  }

  .contact-form {
    margin-left: 50px;
  }
  .contact-form button {
    width: 100%;
    margin-left: 3px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container1 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
  }

  .logo img {
    height: 150px;
    width: auto;
    max-width: 100%;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 18px;
    right: 15px;
    z-index: 20;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    max-width: 100%;
  }

  .hamburger span {
    width: 30px;
    height: 5px;
    background-color: #f26c19;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: -10px;
    width: 100%;
    background-color: #030c24;
    flex-direction: column;
    display: none;
    align-items: flex-start;
    padding: 0;
    z-index: 15;
  }

  .nav-links a {
    color: white;
  }

  .nav-links.active {
    display: flex;
    width: 100%;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 20px 0 0 0;
  }

  .nav-links ul li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  /* Mobile dropdown menu container */
  .nav-links .dropdown-menu {
    background-color: #d35400; /* 🔁 Background color for dropdown */
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  /* Mobile dropdown links */
  .nav-links .dropdown-menu a {
    color: #030c24; /* 🔁 Text color */
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
  }

  /* Mobile dropdown hover effect */
  .nav-links .dropdown-menu a:hover {
    background-color: #d35400;
    color: #030c24; /* 🔁 Hover text color */
  }
}

.footer {
  background-color: #011640;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: "Poppins", sans-serif;
  position: relative;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  width: 200px;
  margin-bottom: 15px;
  margin-top: -50px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.social-icons a {
  color: #f27827;
  margin-right: 12px;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #215fed;
}

.footer-links,
.footer-contact {
  margin: 20px 0;
}

.footer-links h4,
.footer-contact h4 {
  color: #d35400;
  margin-bottom: 15px;
  font-size: 25px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 200;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #d35400;
}

.footer-contact p {
  font-size: 18px;
  font-weight: 200;
  margin-bottom: 8px;
}

.footer-map .map-img {
  max-width: 100%;
  height: auto;
  opacity: 0.6;
  margin-top: 20px;
  flex-wrap: nowrap;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid white;
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 60px;
  font-family: "Times New Roman", Times, serif;
  margin-left: -10px;
}

.footer-bottom p {
  margin-right: 70%;
}

/* Back to Top */
.back-to-top {
  position: absolute;
  bottom: 15px;
  right: 20px;
  background-color: #d35400 !important;
  color: white;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
  z-index: 1000;
  margin-right: 120px;
  margin-bottom: 50px;
}

.back-to-top:hover {
  background-color: red !important;
  z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
  /* Back to Top */
  .back-to-top {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background-color: #f27827;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
    z-index: 1000;
    margin-right: 150px;
    margin-bottom: 15px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .footer-contact {
    margin: 20px 0;
  }

  .footer-map .map-img {
    margin-top: 30px;
  }
}

@media screen and (max-width: 767px) {
  .footer-bottom p {
    margin-right: 0;
    text-align: center; /* Optional: center it on mobile */
  }
}
