/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background: #f7f7f7;
}

/* Header & Navigation */
header {
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

nav .logo {
  font-size: 1.8em;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ffdd59;
}

/* Hero Section with Movable Background */
.hero {
  background: url('https://images.unsplash.com/photo-1581091215365-4ed8a9b93501?auto=format&fit=crop&w=1470&q=80') no-repeat center center;
  background-size: cover;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: background-position 0.1s ease-out;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #4e54c8;
}

/* Services */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #f1f1f1;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  background: #8f94fb;
  color: white;
}

.service-card i {
  font-size: 2em;
  margin-bottom: 15px;
  color: #4e54c8;
}

/* Student Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-container img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery-container img:hover {
  transform: scale(1.05);
}

/* FAQ */
/* FAQ Accordion Styles */
.faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 1em;
  font-weight: 600;
  background: #f1f1f1;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 0;
}

.faq-question:hover {
  background: #8f94fb;
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  transition: max-height 0.35s ease;
  padding: 0 20px;
}

.faq-answer p {
  padding: 15px 0;
  margin: 0;
}


/* Contact */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  width: 100%;
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4e54c8;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #8f94fb;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 20px;
  text-align: center;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Floating + Rotation animation */
@keyframes float-rotate {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.social {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 50px;
  background: #4e54c8;
  color: white;
  font-size: 1.2em;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  animation: float-rotate 3s ease-in-out infinite;
}

.social:hover {
  background: #8f94fb;
  transform: scale(1.3);
}

/* Staggered floating delays */
.social:nth-child(1) { animation-delay: 0s; }
.social:nth-child(2) { animation-delay: 0.2s; }
.social:nth-child(3) { animation-delay: 0.4s; }
.social:nth-child(4) { animation-delay: 0.6s; }
.social:nth-child(5) { animation-delay: 0.8s; }
.social:nth-child(6) { animation-delay: 1s; }
.social:nth-child(7) { animation-delay: 1.2s; }

/* Tooltip */
.social::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.8em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.social:hover::after {
  opacity: 1;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* Footer Social Links - same style as contact section */
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Reuse same .social class for floating, rotating, staggered animation */
.footer-social-links .social {
  width: 50px;
  height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #4e54c8;
  color: white;
  font-size: 1.2em;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  animation: float-rotate 3s ease-in-out infinite;
}

.footer-social-links .social:hover {
  background: #8f94fb;
  transform: scale(1.3);
}

/* Staggered animation for footer icons */
.footer-social-links .social:nth-child(1) { animation-delay: 0s; }
.footer-social-links .social:nth-child(2) { animation-delay: 0.2s; }
.footer-social-links .social:nth-child(3) { animation-delay: 0.4s; }
.footer-social-links .social:nth-child(4) { animation-delay: 0.6s; }
.footer-social-links .social:nth-child(5) { animation-delay: 0.8s; }
.footer-social-links .social:nth-child(6) { animation-delay: 1s; }
.footer-social-links .social:nth-child(7) { animation-delay: 1.2s; }


/* Student Carousel */
.student-carousel {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  transition: transform 0.3s;
}

.carousel-item img {
  width: 100%;
  display: block;
  border-radius: 15px;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}


/* About Section with Animated Overlay */
#about {
  position: relative;
  background: linear-gradient(135deg, #8f94fb 0%, #4e54c8 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 50px auto;
  max-width: 1200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
}

#about .about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOverlay 10s linear infinite;
}

@keyframes floatOverlay {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  50% { transform: translateX(20px) translateY(10px) rotate(5deg); }
  100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

#about .about-content {
  position: relative; /* Keep content above overlay */
  z-index: 2;
}

#about h2 {
  font-size: 1.5em;
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  	color: #FFFFFF;
}

#about p {
  font-size: 1.1em;
  line-height: 1.8em;
  margin-bottom: 20px;
}

#about strong {
  color: #ffe600;
}

@media screen and (max-width: 768px) {
  #about {
    padding: 60px 15px;
  }
  #about h2 {
    font-size: 1em;
  }
  #about p {
    font-size: 1em;
  }
}

/* Reset & Basic Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #1e3a8a; /* Professional deep blue */
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5rem;
}

main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.program-category {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.program-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.program-category h2 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 10px;
  border-bottom: 2px solid #1e3a8a;
  display: inline-block;
  padding-bottom: 5px;
}

.program-category p {
  font-weight: bold;
  margin-bottom: 15px;
  color: #555;
}

.program-category ul {
  list-style: none;
  padding-left: 0;
}

.program-category ul li {
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s;
}

.program-category ul li:hover {
  color: #1e3a8a;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #1e3a8a;
  color: #fff;
  font-size: 0.9rem;
  margin-top: 50px;
  box-shadow: 0 -4px 6px rgba(0,0,0,0.05);
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #1e3a8a;
}


.services-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.service-card-link {
  text-decoration: none;
  flex: 1 1 250px;
  max-width: 300px;
}

.service-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  background-color: #f0f4ff;
}

.service-card i {
  font-size: 2.5rem;
  color: #1e3a8a;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1e3a8a;
}

.service-card p {
  font-size: 1rem;
  color: #555;
}

/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background: #0d47a1;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

header nav h1 {
  font-size: 24px;
  font-weight: 700;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  transition: 0.3s;
}

header nav ul li a:hover {
  background: #1565c0;
}

/* Main Content */
main {
  width: 90%;
  margin: 30px auto;
}

main h2 {
  text-align: center;
  color: #0d47a1;
  margin-bottom: 25px;
}

.course-card-link {
  text-decoration: none;
  color: inherit;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.course-card h3 {
  color: #0d47a1;
  margin-bottom: 10px;
}

.course-card p {
  font-weight: 500;
}

/* Modules List */
.course-module {
  margin-top: 15px;
  list-style-type: disc;
  padding-left: 20px;
}

/* Footer */
footer {
  background: #0d47a1;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

footer .social-links {
  margin-top: 10px;
}

footer .social-links a {
  color: #fff;
  font-size: 20px;
  margin: 0 8px;
  transition: 0.3s;
}

footer .social-links a:hover {
  color: #ffeb3b;
}



/* Tab Buttons */
.tab-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.tab-btn {
  background: #0a3d62;
  color: #fff;
  border: none;
  padding: 12px 25px;
  margin: 0 5px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.tab-btn:hover {
  background: #ffda79;
  color: #0a3d62;
}

.tab-btn.active {
  background: #ffda79;
  color: #0a3d62;
}

/* Hide inactive gallery containers */
.gallery-container {
  display: none;
}

.gallery-container.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}



/* Contact Wrapper and Floating Icons */
.contact-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.floating-icons {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-icons i {
  position: absolute;
  font-size: 50px;
  color: rgba(10, 61, 98, 0.05);
  animation: floatIcons 10s linear infinite;
}

.floating-icons i:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 50%; left: 80%; animation-delay: 2s; }
.floating-icons i:nth-child(3) { top: 70%; left: 20%; animation-delay: 4s; }
.floating-icons i:nth-child(4) { top: 30%; left: 60%; animation-delay: 6s; }
.floating-icons i:nth-child(5) { top: 80%; left: 40%; animation-delay: 8s; }

@keyframes floatIcons {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Form Container */
.contact-container {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #f9f9f9, #e0f7fa);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.contact-container form label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: #0a3d62;
}

.contact-container form input,
.contact-container form textarea {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-container form input:focus,
.contact-container form textarea:focus {
  outline: none;
  border-color: #0a3d62;
  box-shadow: 0 0 8px rgba(10, 61, 98, 0.3);
}

/* Contact Button */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  background: #0a3d62;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.contact-btn:hover {
  background: #ffda79;
  color: #0a3d62;
  transform: translateY(-3px);
}

.contact-btn:hover i {
  transform: translateX(5px);
}

/* Contact Info */
.contact-info {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 40px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 16px;
}

/* Map and Get Directions */
.map-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 20px 0;
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.get-directions-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #0a3d62;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.get-directions-btn i {
  font-size: 16px;
}

.get-directions-btn:hover {
  background: #ffda79;
  color: #0a3d62;
  transform: translateY(-3px);
}

/* Social Links */
.contact-info .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.contact-info .social-links a {
  color: #0a3d62;
  font-size: 22px;
  transition: color 0.3s ease;
}

.contact-info .social-links a:hover {
  color: #ffda79;
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.student-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 1s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  height: 400px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* FAQ Section Styles */
#faq {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  font-family: 'Roboto', sans-serif;
}

#faq h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #333;
}

/* Each FAQ item */
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

/* FAQ question button */
.faq-question {
  background: #0066cc;
  color: white;
  border: none;
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #004a99;
}

/* Answer area (hidden by default) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #f9f9f9;
  border-radius: 5px;
  padding: 0 15px;
}

/* Active state (when expanded) */
.faq-item.active .faq-answer {
  max-height: 500px; /* enough space for most answers */
  padding: 15px;
}


/* Contact Section */
#contact {
  padding: 60px 20px;
  background: #f4f7fa;
}

#contact h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #222;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 320px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form .submit-btn {
  margin-top: 20px;
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 17px;
  transition: background 0.3s;
}

.contact-form .submit-btn:hover {
  background: #004a99;
}

/* Contact Info and Map */
.contact-info {
  flex: 1;
  min-width: 320px;
}

.map-container {
  margin-top: 15px;
  position: relative;
}

.get-directions-btn {
  display: inline-block;
  background: #0066cc;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.3s;
}

.get-directions-btn:hover {
  background: #004a99;
}
