/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  white text since background is dark */
  /* background: transparent;
  background: #2A7B9B;
background: linear-gradient(5deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
  position: relative;
  z-index: 1;
} */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: repeating-linear-gradient(
    45deg,
    #2A7B9B,
    #2A7B9B 20px,
    #57c785 20px,
    #57c785 40px
  );
  position: relative;
  z-index: 1;
}
/* body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #2A7B9B;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 40px 40px;
} */



/* Canvas Background */
#c {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* behind content */
  width: 100%;
  height: 100%;
}

/* Container */
.container {
  width: 90%;
  margin: auto;
  overflow: hidden;
}

/* Header */
/* Header */
header {
  background: rgba(0, 64, 128, 0.8);
  color: #fff;
  padding: 10px 0;
}

header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
}

header .left {
  flex: 1;
  display: flex;
  align-items: center;
}

header .center {
  flex: 2;
  text-align: center;
}

header .logo {
  margin-left: 20px;
  height: 60px;
}

header h1.site-title {
  display: inline-block;
  font-family: 'Megrim', cursive;
  position: absolute;
  text-transform: uppercase;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  color: white;
  margin: 0;
  /* border: .075em solid rgba(255, 255, 255, .1); */
  padding: 10px;
  font-size: 34px;
  
}

/* ✅ Small screen adjustments */
/* ✅ Small screen adjustments */
@media (max-width: 768px) {
  header .logo {
    display: none; /* hide logo */
  }

  header .header-inner {
    justify-content: center; /* force everything to center */
  }

  header .center {
    flex: unset; /* remove flex growing */
    width: 100%; /* take full width */
    text-align: center;
  }

  header h1.site-title {
    position: relative; /* remove absolute */
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto; /* center horizontally */
    display: block;
    text-align: center;
    font-size: 25px;
  }
}




/* Navbar */
nav {
  background: rgba(0, 51, 102, 0.9);
  position: relative;
  z-index: 100;
  padding: 10px;
}

/* Menu toggle (hamburger / close) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Cross animation */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Links */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 12px 15px;
  display: block;
  transition: background 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(0, 34, 68, 0.9);
  border-radius: 5px;
}

/* Dropdown */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(237, 0, 0, 0.95);
  /* consistent red */
  list-style: none;
  min-width: 180px;
  border-radius: 5px;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li a {
  padding: 10px 15px;
  color: #f4f4f4;
}

nav ul li ul li a:hover {
  background: rgba(0, 51, 102, 0.15);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li ul {
    position: static;
    background: rgba(237, 0, 0, 0.95);
    /* red dropdown in mobile */
  }
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 15px;
  background: url("../images/OXFORD-COLLEGE-OF-RESEARCH-AND-MANAGEMENT.webp") 
              no-repeat center center/cover;
}

/* Dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero .hero-text {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}

.hero .hero-text h2 {
  font-size: clamp(24px, 5vw, 42px); /* responsive font */
  margin-bottom: 15px;
  color: white;
}

.hero .hero-text p {
  font-size: clamp(14px, 3vw, 20px);
  margin-bottom: 25px;
}

/* Glass Effect Button */
.glass-btn {
  display: inline-block;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 20px;
  }

  .hero .hero-text h2 {
    font-size: 24px;
  }

  .hero .hero-text p {
    font-size: 14px;
  }
}


/* About Section */
.about-us {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 20px;
  /* background: linear-gradient(135deg, #003c99, #0056d2); */
  border-radius: 10px;
  flex-wrap: wrap;
}

.about-content {
  flex: 1;
}

.line {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
}

.line-mask {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(254, 41, 41, 0.8);
  /* same as section background */
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.line.reveal .line-mask {
  transform: translateX(100%);
}

.about-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #2a015b;
}

.about-content .line {
  /* line-height: 1.6; */
  /* margin-bottom: 20px; */
  color: #01054d;
  text-align: justify;
}

.read-more-btn {
  display: inline-block;
  background: #00458e;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.read-more-btn:hover {
  background: #292206;
    transition: 0.3s;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsive for Tablet & Mobile */
@media (max-width: 992px) {
  .about-us {
    flex-direction: column;
    text-align: center;
  }

  .about-content h2 {
    font-size: 24px;
  }

  .about-content p {
    font-size: 15px;
    text-align: center;
  }

  .about-image img {
    max-width: 90%;
  }
}

@media (max-width: 576px) {
  .about-us {
    padding: 20px 10px;
    gap: 20px;
  }

  .about-content h2 {
    font-size: 20px;
  }

  .about-content p {
    font-size: 14px;
  }

  .read-more-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}



/* Courses */
.courses {
  padding: 60px 20px;
}

.courses-title {
  background: #f7f7fb;
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: 700;
  color: black;
}

.course-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.course-card {
  display: flex;
  align-items: stretch;
  gap: 20px;
  background: #cdc6fb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(12, 15, 30, 0.06);
  position: sticky;
  top: 100px;
  transition: transform 0.3s ease;
  min-height: 250px;
}

.course-card:hover {
  transform: scale(1.05);
}

.course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.course-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.course-text {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
}

.course-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #111827;
}

.divider {
  width: 26px;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.course-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  max-height: 220px;
}

/* Responsive */
@media (max-width: 820px) {
  .course-card {
    flex-direction: column-reverse;
    text-align: center;
  }

  .course-media img {
    max-width: 100%;
    height: auto;
  }
}

/* BRANCHES */
.branch-section {
  position: relative;
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 208, 0, 0.1),
    rgba(42, 123, 155, 0.15),
    rgba(87, 199, 133, 0.1)
  );
}

.branch-section h1 {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffd000, #ffc107);
  color: #002366;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.center-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 120px;
  background: linear-gradient(180deg, #ffd000, #57c785);
  transform: translateX(-50%);
}

.branches {
  display: flex;
  justify-content: space-around;
  margin-top: 90px;
  position: relative;
}

.branch {
  position: relative;
  width: 30%;
  text-align: center;
}

.branch-line {
  position: absolute;
  top: -100px;
  left: 50%;
  width: 2px;
  height: 100px;
  background: linear-gradient(180deg, #ffd000, #2a7b9b);
  transform: translateX(-50%);
}

.branch-box {
  background: linear-gradient(145deg, rgba(1, 2, 57, 0.15), rgba(42, 123, 155, 0.1));
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.branch-box p{
  font-weight: bold;
  color: #01054d;
}
.branch-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.branch-box img,
.branch-box iframe {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  height: 200px; /* Adjust iframe height */
  border: none;
}

/* Responsive */
@media (max-width: 820px) {
  .branches {
    flex-direction: column;
    gap: 40px;
  }

  .branch {
    width: 100%;
  }

  .branch-line {
    display: none;
  }

  .center-line {
    height: 60px;
  }
}

/* Testimonial */
.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
  }

  .testimonial-card {
    font-family: Arial, sans-serif;
    display: flex;
    max-width: 350px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
  }

  .testimonial-card:hover {
    transform: translateY(-8px);
  }

  .testimonial-content {
    flex: 3;
    padding: 20px;
  }

  .testimonial-title {
    color: #fbbf24;
    font-weight: bold;
    font-size: 18px;
  }

  .student-name {
    font-weight: bold;
    font-size: 20px;
    margin-top: 10px;
  }

  .student-course {
    color: #777;
    font-size: 14px;
  }

  .stars {
    color: #fbbf24;
    margin: 8px 0;
    font-size: 18px;
  }

  .testimonial-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    font-style: italic;
  }

  .testimonial-text span {
    font-size: 20px;
  }

  .testimonial-photo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #ffd700, #f59e0b);
    padding: 10px;
  }

  .testimonial-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    object-fit: cover;
  }

/* FAQ's */
    .faq-section {
      font-family: Arial, sans-serif;
      /* background: #0e5ba8; */

      max-width: 900px;
      margin: auto;
    }

    .faq-box {
      background: #fff;
      color: black;
      border-radius: 10px;
      margin: 10px 0;
      padding: 15px 20px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      position: relative;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
      transition: 0.3s;
    }

    .faq-box:hover {
      background: #f3f4f6;
    }

    .faq-box::after {
      content: "+";
      position: absolute;
      right: 20px;
      font-size: 22px;
      transition: transform 0.3s;
    }

    .faq-box.active::after {
      content: "-";
      transform: rotate(180deg);
    }

    .faq-content {
      max-height: 0;
      overflow: hidden;
      background: #fff;
      padding: 0 20px;
      border-left: 3px solid #2563eb;
      margin-bottom: 5px;
      line-height: 1.6;
      color: #374151;
      transition: all 0.4s ease;
    }

    .faq-content.show {
      max-height: 500px; /* enough for content */
      padding: 15px 20px;
    }

    .faq-content ul {
      margin: 8px 0 8px 20px;
    }

    .faq-content li {
      margin: 5px 0;
    }

    h2 {
      text-align: center;
      color: #111827;
      margin-bottom: 20px;
    }


/* Footer */
footer {
  background: rgba(0, 64, 128, 0.9);
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav ul li {
    width: 100%;
  }

  

  .course-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}