/* Reset */
:root {
  --primary-red: #d60000;
  --primary-yellow: #ffeb00;
  --primary-blue: #1e3f8f;
  --text-white: #ffffff;
  --dark-text: #1a1a1a;
  --light-gray: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}


/*style on header with responsive*/
body {
  background-color: var(--light-gray);
  color: var(--dark-text);
  line-height: 1.6;
  width: 90%;
  margin-left: 5%;
  font-size: 1rem; /* 16px base */
  color: #2f4f4f;
  line-height: 1.6;
}

header {
  background-color: var(--primary-red);
  color: var(--text-white);
  padding: 20px 40px;
  border-bottom: 1px solid #ccc;
}
h1{
  color:white;
 /* text-shadow: 0 0 8px #00f, 0 0 15px #0ff;*/
  text-shadow: 2px 2px 3px red, 4px 4px 3px black;

  
}

/* Navigation */
nav a {
  font-size: 1rem;
  color: var(--text-white);
  font-weight: bold;
}

/* Course Boxes */
.cor11 {
  font-size: 1.1rem; /* Slightly larger text in course boxes */
  font-weight: 600;
}


header div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 90px;

}

h1, .lt2 {
  font-size: 2rem; /* 32px */
  font-weight: 600;
  margin-bottom: 0.5em;
}
.lt2 {
  font-size: 1.5rem;
  font-weight: bold;
}
nav {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  padding: 0;
  margin: 0;
}
nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  transition: letter-spacing 0.3s ease;
  font-size: 1rem;
  color: var(--text-white);
}

/* Underline Animation */
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 100%;
  width: 0%;
  height: 2px;
  background-color: #4682b4;
  transition: all 0.3s ease;
}

nav a:hover {
  letter-spacing: 1px; /* padding between characters */
  color: var(--primary-yellow);
  text-shadow: 2px 2px 3px red, 4px 4px 3px black;
  font-weight: bold;
}

/* Animate underline from right to left */
nav a:hover::after {
  left: 0;
  width: 100%;
}

h2, h3 {
  color: var(--primary-blue);
}
h2 {
  font-size: 1.75rem; /* 28px */
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #4682b4;
  text-align: center;
}h3 {
  font-size: 1.5rem; /* 24px */
}

p, label, li, input, textarea, button {
  font-size: 1rem; /* 16px */
}
button {
  font-size: 1rem;
  font-weight: 600;
}
.director-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  position: relative;
}

.director-img {
  width: 300px;
  height: 300px;
  border-radius: 10%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: none;
}

.director-thought {
  max-width: 600px;
  text-align: left;
  opacity: 0;
  animation: none;
}

.director-thought p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  color: #333;
}

.director-thought h4 {
  margin-top: 15px;
  color: #1e3f8f;
}

.see-more-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.see-more-btn:hover {
  background-color: var(--primary-blue);
}

/* Animations */
@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(50px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

section {
  padding: 40px;
  background: white;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

section h2 {
  font-size: 1.8rem;
  color: #4682b4;
  margin-bottom: 20px;
  text-align: center;
}

#about{
  text-align: justify;
}
/*course start*/
.course-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

 .course-box {
      position: relative;
      display: inline-block;
      margin: 20px;
      padding: 20px 30px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: 0.3s;
    }

    .course-title {
      font-size: 18px;
      font-weight: bold;
      color: #2c3e50;
      margin-bottom: 5px;
    }
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 10px;
}
    .dropdown-content p {
      margin: 6px 0;
      padding: 5px 10px;
      border-radius: 6px;
      transition: 0.2s;
      cursor: pointer;
    }

    .dropdown-content p:hover {
      background-color: #e6f7ff;
      color: #007acc;
    }

    @media screen and (max-width: 768px) {
      .course-box {
        display: block;
        margin: 20px auto;
      }
    }

    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.6);
    }

    .modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px 30px;
      border-radius: 12px;
      width: 90%;
      max-width: 500px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
      text-align: justify;
    }

    .modal-content h2 {
      color: #1a3c8b;
      font-size: 22px;
      margin-bottom: 10px;
    }

    .modal-content p {
      font-size: 16px;
      color: #444;
    }

    .modal-content h4 {
      margin-top: 20px;
      color: #1a3c8b;
    }

    .modal-content ul {
      padding-left: 20px;
    }

    .close {
      color: red;
      float: right;
      font-size: 20px;
      font-weight: bold;
      cursor: pointer;
    }

    .close:hover {
      color: darkred;
    }
    .courseL{
      width: 40px;
      height: 40px;
    }
/*course end*/
.gallery-container, .gallery1-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: auto;
  padding: 10px 0;
}
.gallery, .gallery1 {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 15px;
  padding: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.gallery::-webkit-scrollbar, .gallery1::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.gallery img,.gallery1 img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.gallery img:hover, .gallery1 img:hover {
  transform: scale(1.05);
}
.scroll-btn {
  position: absolute;
  top: 50%;
  background: rgba(219, 228, 232, 0.7);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 1;
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
}

form label {
  margin: 10px 0 5px;
  font-weight: 600;
}

form input,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f5faff;
}

form button {
  margin-top: 20px;
  padding: 12px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: var(--primary-blue);
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: var(--primary-yellow);
  color: var(--primary-red);
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none; /* hidden by default */
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: rgba(70, 130, 180, 0.8); /* steel blue */
}


footer {
   background-color: var(--primary-red);
  color: var(--text-white);
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  border-top: 1px solid #ccc;
}

/* Image Modal Popup */
#imageModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

#imageModal .modal-img {
  margin-top: 5%;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

#imageModal .close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

#imageModal .nav-btn {
  position: absolute;
  top: 50%;
  background-color: transparent;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
}

#imageModal .nav-btn.left {
  left: 30px;
}

#imageModal .nav-btn.right {
  right: 30px;
}
/* Image Modal Popup */


/* Header Container for layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Group logo and title */
.logo-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: white;
  transition: 0.3s ease;
}

/* Responsive behavior */
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  h1 {
    font-size: 1.2rem;
  }

  .logo {
    height: 60px;
  }
}

/* Slide Menu Styles */
.side-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background-color: var(--primary-red);
  padding: 30px 20px;
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-menu a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: 0.3s;
}

.side-menu a:hover {
  color: var(--primary-yellow);
}

.side-menu.active {
  right: 0;
}

.close-btn {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  align-self: flex-end;
}

/* Blur everything except the menu */
body.menu-open header,
body.menu-open .main-content {
  filter: blur(4px);
  transition: filter 0.3s ease;
  pointer-events: none;
}
