/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}

html, body {
  overflow-x: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* ---------------- HEADER ---------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #fff;
  width: 100%;
  height: 85px; /* Increased for bigger logo */
  position: relative;
  z-index: 1000;
  overflow: visible;
}

/* Logo container - takes left side */
.logo-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0; /* Allows shrinking */
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Combined logo styling - SINGLE IMAGE - EXTRA BIG */
.combined-logo {
  height: 90px; /* Increased from 55px */
  width: auto;
  max-width: 500px; /* Increased from 350px */
  object-fit: contain;
}

/* Hamburger container - takes right side */
.hamburger-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* Hamburger styling */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* ---------------- NAV ---------------- */
nav ul.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul.menu li a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
}

/* ---------------- DROPDOWN ---------------- */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 200px;
  top: 100%;
  left: 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 2000;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: black;
}

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

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  height: 70vh;
  background: url('https://ik.imagekit.io/edtechdigit/usdsi/content/images/articles/explore-the-vital-role-of-data-visualisation-in-data-science.jpeg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(1,29,45,0.8);
}

.hero .content {
  position: relative;
  color: white;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 1.3rem;
}

/* ---------------- DETAILS ---------------- */
.details {
  padding: 60px 20px;
  text-align: center;
}

.details .container {
  max-width: 900px;
  margin: auto;
}

.details p {
  max-width: 800px;
  margin: auto;
  text-align: justify;
}

/* ---------------- CARDS ---------------- */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.card {
  width: 100%;
  max-width: 320px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 300px; /* Minimum height for desktop */
}

.card img {
 width: 60px;
  margin-bottom: 15px;
  display: block; /* Change from default inline */
  margin-left: auto; /* Center horizontally */
  margin-right: auto; /* Center horizontally */
}

.card p {
max-height: none; /* REMOVED fixed height */
  overflow: visible; /* Changed from hidden */
  flex-grow: 1; /* Allows text to expand */
  text-align: center; /* Center text */
  margin: 10px 0;
  line-height: 1.5;
}

/* Center the UCLan Cyprus text specifically */
.card p.card-text {
 text-align: center;
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.card-text.expanded {
  max-height: 500px;
}
.card h3 {
  margin-bottom: 15px;
}
/* ---------------- BUTTONS ---------------- */
.read-more-btn, .send-btn {
  margin-top: 15px;
  padding: 12px 18px;
  background: #008c96;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  width: auto;
  min-width: 140px;
}

/* ---------------- CONTACT ---------------- */
.contact-section {
  padding: 60px 20px;
  background: url('https://iep-edu.ec/wp-content/uploads/2025/06/Business_Data_Science_y_Visual_Analytics.jpg') center/cover no-repeat;
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.contact-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-details,
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

/* ---------------- MOBILE ---------------- */
@media screen and (max-width: 1250px), (max-device-width: 1250px) {
  /* Header adjustments */
  header {
    padding: 10px 15px;
    height: 80px; /* Increased for bigger logo */
  }
  
  /* Make combined logo smaller on mobile but still bigger than before */
  .combined-logo {
    height: 60px; /* Increased from 45px */
    max-width: 350px; /* Increased from 280px */
  }
  
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }
  
  /* Hide regular menu on mobile */
  nav ul.menu {
    display: none;
    position: fixed;
    top: 80px; /* Updated to match new header height */
    left: -100%;
    width: 100%;
    max-width: 280px;
    height: calc(100vh - 80px); /* Updated */
    background: white;
    flex-direction: column;
    padding: 15px;
    gap: 0;
    transition: left 0.3s ease;
    z-index: 9999;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    list-style: none;
  }
  
  nav ul.menu.active {
    display: flex;
    left: 0;
  }
  
  /* Mobile menu items */
  nav ul.menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  nav ul.menu li:last-child {
    border-bottom: none;
  }
  
  nav ul.menu li a {
    display: block;
    padding: 15px 0;
    width: 100%;
  }
  
  /* Mobile dropdowns */
  .dropdown > a {
    position: relative;
    padding-right: 30px;
  }
  
  .dropdown > a::after {
    content: "›";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
  }
  
  .dropdown.open > a::after {
    transform: translateY(-50%) rotate(-90deg);
  }
  
  .dropdown-content {
    position: static;
    display: none;
    background: #f9f9f9;
    box-shadow: none;
    padding-left: 20px;
    width: 100%;
  }
  
  .dropdown.open .dropdown-content {
    display: block;
  }
  
  .dropdown-content li {
    border-bottom: none;
  }
  
  .dropdown-content a {
    padding: 12px 0;
    color: #555;
    border-bottom: 1px solid #eee;
  }
  
  .dropdown-content a:last-child {
    border-bottom: none;
  }
  
  /* Prevent body scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Adjust hero text for mobile */
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 0.9rem;
  }
  
  /* MOBILE CARD FIXES */
  .cards {
    gap: 20px;
    padding: 0 10px;
  }
  
  .card {
    max-width: 100%;
    min-height: 350px; /* Taller on mobile */
    padding: 20px;
    margin: 0 10px;
  }
  
  .card p {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    padding: 0 5px;
  }
  
  /* Specifically center the UCLan Cyprus text */
  .card p.card-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    min-height: 60px;
    margin: 15px 0;
    font-size: 17px;
  }
  
  /* Make sure buttons are centered */
  .read-more-btn {
    margin: 10px auto;
    display: block;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
  .combined-logo {
    height: 55px; /* Increased from 40px */
    max-width: 300px; /* Increased from 240px */
  }
  
  header {
    height: 75px; /* Increased for mobile */
  }
  
  nav ul.menu {
    top: 75px; /* Updated */
    height: calc(100vh - 75px); /* Updated */
    list-style: none;
  }
  
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .hero h2 {
    font-size: 0.8rem;
  }
  
  /* Extra small card adjustments */
  .card {
    min-height: 400px; /* Even taller on very small screens */
    padding: 15px;
  }
  
  .card p.card-text {
    font-size: 16px;
    min-height: 70px;
  }
  
  /* Adjust card images */
  .card img {
    width: 50px;
    margin-bottom: 10px;
  }
  
  /* Adjust spacing in details section */
  .details {
    padding: 40px 15px;
  }
  
  .cards {
    margin-top: 30px;
  }
}

/* Small tablets and large phones */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .card {
    min-height: 320px;
  }
  
  .card p.card-text {
    min-height: 50px;
    font-size: 16px;
  }
}

/* If you want even BIGGER logo for desktop, add this: */
@media screen and (min-width: 1251px) {
  .combined-logo {
    height: 75px; /* Even bigger for desktop */
    max-width: 450px; /* Even wider */
  }
  
  header {
    height: 90px; /* Even taller header */
  }
}
