* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background and Typography */
body {
  background-color: #EDEAE1; /* Creamy background */
  font-family: 'Arial', sans-serif;
  color: #333;
}


header {
  background-color: #002855 !important; /* Creamy background */
  color: #333 !important;               /* Dark text for readability */
  border-bottom: 4px solid #CC7700;
}

/* Update menu item text colors */
.desktop-menu ul li a {
  color: #EDEAE1 !important;
}

.desktop-menu ul li a.active {
  color: #CC7700 !important;
  font-weight: bold;
  pointer-events: none; /* Optional: prevents clicking on current page */
}

/* Optional: Stop hover from overriding active */
.desktop-menu ul li a:hover:not(.active) {
  color: #CC7700 !important;
}


/* Breadcrumb styling */
.breadcrumb {
  font-size: 14px;
  padding: 12px 20px;
  background-color: #EDEAE1;
  color: #555;
  text-align: left;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.breadcrumb a {
  color: #002855;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-right: 5px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Optional: Responsive font-size */
@media (max-width: 480px) {
  .breadcrumb {
    font-size: 13px;
    padding: 10px 15px;
  }
}


/* Hero Section */
.hero {
  background-image: url('../submenu/it-images/it-verse-hero.png');
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  background-color: #0a1a2e; /* Dark techy blue */
  position: relative;
  padding: 80px 40px;
  color: #ffffff;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}


/* Content Centering */
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 500px;  
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: orange; /* Gold color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Topic card styling */
.topic-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}


/* Topic card */
.topic-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 180px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.topic-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Card icon */
.topic-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

/* Card title */
.topic-card h2 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

/* Responsive design */
/* ===== Responsive Design for IT Verse Page ===== */

/* Tablets and below (≤768px) */
@media (max-width: 768px) {

  /* Hero Section adjustments */
  .hero {
    padding: 40px 15px;
    background-size: cover;
    background-position: center;
  }

  /* Stack hero content vertically */
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Hero text */
  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  /* Topic cards in smaller layout */
  .topic-card {
    width: 140px;
  }

  /* Add spacing between hero and cards */
  .topic-grid {
    margin-top: 30px;
  }
}


/* Phones and small devices (≤480px) */
@media (max-width: 480px) {

  /* Center hero text */
  .hero-text {
    text-align: center;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  /* Stack topic cards vertically */
  .topic-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .topic-card {
    width: 100%;
    max-width: 300px;
  }
  
  /* Add tap feedback */
  .topic-card:active {
    transform: scale(0.98);
  }
}

@media (max-width: 768px) {
  .hero {
    background-repeat: repeat;
    background-size: contain;
  }
}

@media (max-width: 480px) {
  .topic-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 15px;
  }

  .topic-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}


/* Meta Section Styles */
.meta-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 4rem; /* slightly reduced */
}

.meta-section .section-title {
  font-size: 1.8rem; /* slightly smaller */
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px; /* slightly reduced */
  color: #333;
}

.meta-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* smaller card width */
  gap: 16px; /* tighter gap */
  padding: 8px;
}

/* Meta Card Styles */
.meta-card {
  background-color: #fff;
  border-radius: 6px; /* slightly smaller radius */
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.meta-card img {
  width: 100%;
  height: 180px; /* fixed height for uniform look */
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.meta-card-content {
  padding: 15px; /* tighter padding */
}

.meta-card-content h3 {
  font-size: 1.1rem;
  color: #007bff;
  margin: 8px 0;
  font-weight: bold;
  text-align: left;
  text-decoration: underline;
  margin-bottom: 20px; /* less bottom margin */
}

.meta-card-content h2 {
  font-size: 1.1rem;
  color: #333;
  font-weight: bold;
  margin: 8px 0;
}

.meta-card-content p {
  font-size: 0.95rem; /* slightly smaller */
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
}

.meta-card-content .read-more {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 6px 12px; /* smaller button */
  margin-top: 0.8rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.meta-card-content .read-more:hover {
  text-decoration: underline;
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .meta-section {
    padding: 1rem 0.5rem;
    margin-top: 2rem;
  }

  .meta-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .meta-section .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* slightly smaller cards */
    gap: 12px;
    padding: 4px;
  }

  .meta-card img {
    height: 140px; /* reduce image height on smaller screens */
  }

  .meta-card-content h3 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .meta-card-content h2 {
    font-size: 1rem;
  }

  .meta-card-content p {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .meta-card-content .read-more {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .meta-section .grid {
    grid-template-columns: 1fr; /* single column for narrow screens */
    gap: 16px;
  }

  .meta-card img {
    height: 180px; /* reset image height for better visual */
  }
}

