/* EDUCompass Main Styles */
:root {
  --primary: #262A85;
  --secondary: #319465;
  --light: #F5F5F5;
  --text: #333333;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  background-color: #F8F8F8;
}

img,
.site-header img,
.logo {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;
}

/* Prevent image downloads */
img {
  draggable: false;
}

.site-header {
  background: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 20%, rgba(255, 255, 255, 0.3) 45%, var(--primary) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.site-header .brand {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.site-header img {
  height: 40px;
}

.site-header nav {
  display: flex;
  gap: 0;
}

.site-header nav a {
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  transition: color 0.3s;
  flex: 1;
  text-align: center;
}

/* Default gradient: Dark blue (left/home) to white (right/contact) */
.site-header nav a:nth-child(1) {
  color: var(--primary);
}

.site-header nav a:nth-child(2) {
  color: #2e3e85;
}

.site-header nav a:nth-child(3) {
  color: #e6e6ff;
}

.site-header nav a:nth-child(4) {
  color: #f5f5ff;
}

.site-header nav a:nth-child(5) {
  color: #ffffff;
}

.site-header nav a:nth-child(6) {
  color: var(--white);
}

.site-header nav a:hover {
  color: var(--secondary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu background */
@media (max-width: 768px) {
  .site-header nav {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(38, 42, 133, 0.95)) !important;
    backdrop-filter: blur(10px);
  }
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  /* make hero background full-bleed and touch browser edges */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 6rem 2rem;
  color: var(--white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 500px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 22, 69, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.hero>* {
  position: relative;
  z-index: 2;
}

.hero-left {
  flex: 1;
  text-align: left;
}

.hero-right {
  flex: 1;
  text-align: right;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s;
  color: var(--white) !important;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.consult-btn,
.btn {
  background: linear-gradient(135deg, var(--secondary) 0%, #28a745 100%);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn:hover,
.consult-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 148, 101, 0.3);
}

/* Services Sections */
.service-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-section-2 {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1;
}

.service-content h2 {
  text-align: left;
  margin-bottom: 1rem;
  margin-top: 0;
}

.service-intro {
  font-size: 1.2rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.service-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

.service-image-wrapper {
  flex: 1;
  height: 400px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.services h2,
.reviews-preview h2,
.blogs-preview h2,
.cta h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.cta {
  text-align: center;
  padding: 3rem 2rem;
}

.cta p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.cta a {
  font-size: 1.1rem;
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.cta-feature-item {
  padding: 0;
}

.cta-feature-item h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  position: relative;
  padding-left: 2rem;
}

.cta-feature-item h3:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.3rem;
}

.cta-feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card,
.blog-card,
.review-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Success Stories Cards */
.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.success-story-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--secondary);
}

.success-story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.success-story-card:hover .story-image {
  transform: scale(1.05);
}

.story-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.story-content {
  padding: 1.5rem;
}

.story-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.story-university {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.story-description {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-card h3,
.blog-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner .col {
  min-width: 250px;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-inner .col h4 {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 1rem;
  word-wrap: break-word;
}

.footer-inner p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  word-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

.footer-inner a:hover {
  color: var(--secondary);
}

/* Forms */
.form {
  max-width: 500px;
  margin: 2rem auto;
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0f0f0;
  border-radius: 4px;
  color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 200px;
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cookie-banner a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

#cookie-accept {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  white-space: nowrap;
  min-height: 48px;
  font-weight: bold;
}

#cookie-accept:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

.slide-in {
  animation: slideIn 0.6s ease-in;
}

/* Main content */
main {
  min-height: 60vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* If the hero is the first child inside main, remove the main top padding gap
   so the hero background touches the top of the viewport */
main>.hero {
  margin-top: -2rem;
}

h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

h2 {
  color: #000000;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* Keep original colors for services h2 only - hero h1 should stay white */
.hero h2,
.service-section h2,
.services h2 {
  color: var(--primary);
}

/* Utility */
.sticky-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  z-index: 999;
  transition: all 0.3s;
}

.sticky-button:hover {
  transform: scale(1.1);
  background: var(--primary);
}

/* Grid layouts */
.blog-grid,
.review-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.blog-full {
  border: 1px solid #ddd;
  background-color: rgb(255, 253, 242);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.blog-full:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.blog-image {
  flex-shrink: 0;
  /* Preserve original aspect ratio but limit size so image remains clear without being too large */
  max-width: 420px;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-full h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--primary);
}

.blog-full .meta {
  margin: 0 0 1rem 0;
}

.blog-full p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

.review-card {
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.review-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}