/* Universal background for body */
/* Universal */
body {
  background-color: #EDEAE1;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  padding: 12px 32px;
  color: #edeae1;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid #CC7700;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 1);
  flex-wrap: nowrap;
}

/* Logo */
.logo img {
  height: 40px;
  flex-shrink: 0;
}

/* Nav + Search Wrapper */
.nav-search-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  max-width: 800px;
  justify-content: center;
}

/* Navigation Menu */
.desktop-menu {
  display: block;
}
.desktop-menu ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.desktop-menu ul li {
  position: relative;
}
.desktop-menu ul li a {
  text-decoration: none;
  color: #edeae1;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s;
  white-space: nowrap;
}
.desktop-menu ul li a:hover {
  color: #CC7700;
}
.desktop-menu ul li a.active {
  color: #CC7700;
  font-weight: 700;
  border-bottom: 2px solid #CC7700;
}

/* Global Search */
.global-search {
  position: relative;
  width: 100%;
  max-width: 300px;
}
.global-search form {
  display: flex;
  background-color: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid #CC7700;
}
.global-search input[type="text"] {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  background: transparent;
  color: #edeae1;
  border: none;
  outline: none;
}
.global-search input::placeholder {
  color: #b5a56e;
  font-style: italic;
}
.global-search input:focus {
  outline: none;
  box-shadow: none;
}
.global-search button {
  background-color: #CC7700;
  color: black;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}
.global-search button:hover {
  background-color: #f5c518;
}

/* Suggestions Dropdown */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  border-radius: 4px;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  color: #edeae1;
}
.suggestion-item:hover,
.suggestion-item:focus {
  background-color: #CC7700;
  color: #000;
}
.no-suggestions {
  padding: 8px 12px;
  color: #b5a56e;
}

/* User Profile */
#user-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 60px;
}
#profile-picture {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #CC7700;
  object-fit: cover;
  cursor: pointer;
}

/* Auth dropdown menu */
.auth-menu {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: #edeae1;
  border: 2px solid #CC7700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  z-index: 1000;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  min-width: 150px;
}
.auth-menu.show {
  display: block;
}
.auth-menu li {
  margin: 0;
}
.auth-menu button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}
.auth-menu button:hover {
  background-color: #CC7700;
}

/* Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: black;
  visibility: hidden;
  opacity: 0;
  flex-direction: column;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  border: 1px solid #CC7700;
  z-index: 1000;
  width: max-content;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
}
.desktop-menu ul li:hover .submenu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.submenu li {
  padding: 8px 12px;
  border-bottom: 1px solid #CC7700;
}
.submenu li:last-child {
  border-bottom: none;
}
.submenu li button {
  background: none;
  border: none;
  color: #edeae1;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.submenu li button:hover {
  background-color: #CC7700;
  color: black;
}


/* mobile responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 12px 0;
    gap: 2px; /* replaced auto with a fixed gap */
  }

  .logo {
    padding-right: 5px;
  }

  .nav-search-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .desktop-menu {
    display: none;
  }

  .global-search {
    flex-grow: 1;
    max-width: none;
  }

  .global-search input[type="text"] {
    width: 100%;
  }

  #user-profile {
    padding-left: 5px;
    flex-shrink: 0;
  }

  .logo img {
    height: 32px;
  }
}

/* Ticker */
@media (max-width: 1024px) {
  .ticker-bar {
    display: none !important;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  header {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 16px;
  }

  .nav-search-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 100%;
  }

  .global-search {
    max-width: 100%;
  }

  .global-search input[type="text"] {
    font-size: 13px;
  }

  .logo img {
    height: 28px;
  }

  #user-profile {
    padding: 0;
    margin-left: auto;
    margin-top: 6px;
  }

  /* 🔥 THIS LINE IS MISSING IN YOUR CODE */
  .desktop-menu {
    display: none;
  }
}

  

/* Hero Section */

.tweet-loading {
  text-align: center;
  font-style: italic;
  color: #64748b;
  padding: 1rem;
  font-size: 0.95rem;
}


.hero-section {
    width: 100%;
    padding: 50px 20px;
    background-color: black; /* Dark background */
    display: flex;
    justify-content: center;   
    border-bottom: 3px solid black;
    box-shadow: 0 -50px 16px rgba(0, 0, 0, 0.3);
  }
  
  .hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: auto;
    align-items: center;
  }
  
  .hero-text {
    flex: 1;
    margin-left: 40px; /* pushes left */
  }
  
  .hero-text h1 {
    font-size: 36px;
    color: #edeae1;
    margin-bottom: 10px;    
  }
  
  .hero-text p {
    font-size: 18px;
    color: #edeae1;
  }
  
  .hero-tweet {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;    
  }
  

  @media (max-width: 768px) {
  .hero-section {
    padding: 30px 16px;
    box-shadow: none;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-text {
    margin-left: 0;
    width: 100%;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-tweet {
    width: 100%;
    justify-content: center;
  }
}



/* 🌐 Trending Tech News Section */
#trending-news-section {
  background-color: #f9f9f9; /* light cream background */
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 950px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#trending-news-section h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
  padding-left: 0.25rem;
}

/* Each news article block */
.news-article {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.news-image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
}

.news-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #0f172a;
}

.news-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.view-all-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.view-all-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #1e293b;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.view-all-btn:hover {
  background-color: #0f172a;
}

/* 🔄 Mobile Responsiveness */

@media (max-width: 768px) {
  .news-article {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
  }

  .news-image {
    width: 100%;
    height: auto;
    max-height: none; /* ⬅️ Remove the height constraint */
    aspect-ratio: 16 / 9; /* ⬅️ Add this to control dimensions */
    object-fit: cover;
    border-radius: 8px;
  }

  .news-content h3 {
    font-size: 1rem;
  }

  .news-content p {
    font-size: 0.85rem;
  }

  .view-all-btn {
    width: 100%;
    padding: 0.75rem;
  }
}



/* Latest from the Verses section */
.section-title {
  position: relative;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin: 50px 10px 30px; /* more space above to fit the line */
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::before {
  content: '';
  display: block;
  width: 80%;                  /* line width */
  height: 3px;                   /* line thickness */
  background-color: black;     /* accent color, change as needed */
  margin: 0 auto 25px auto;      /* center the line above the title */
  border-radius: 2px;
}


#verse-grid {
  display: flex;
  gap: 20px;             /* space between cards */
  flex-wrap: nowrap;     /* keep cards in one row */
  overflow-x: auto;      /* horizontal scroll if needed */
  padding: 10px 0;

  justify-content: center;  /* center align cards horizontally */
  /* Optional: add some horizontal padding so cards aren't flush with edges */
  padding-left: 20px;
  padding-right: 20px;
}

/* Optional: hide scrollbar but keep scroll functionality */
#verse-grid::-webkit-scrollbar {
  height: 6px;
}
#verse-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
#verse-grid::-webkit-scrollbar-track {
  background: transparent;
}


.verse-card {
  background: #1e293b;   /* dark background, adjust as needed */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  width: 280px;          /* fixed width for uniform cards */
  flex-shrink: 0;        /* prevent shrinking */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #eee;
}

.verse-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.verse-content {
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.verse-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
  align-self: flex-start;
  color: #fff;
}

/* Verse tag colors */
.IT {
  background-color: #4a90e2;
}

.game {
  background-color: #e94e77;
}

.future {
  background-color: #f5a623;
}

.tool {
  background-color: #7ed6df;
}

.verse-title {
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.verse-summary {
  font-size: 0.95rem;
  line-height: 1.3;
  flex-grow: 1;  /* fill vertical space */
  margin-bottom: 12px;
  color: #ccc;
}

.read-more {
  font-weight: 600;
  text-decoration: none;
  color: #f39c12;
  align-self: flex-start;
  transition: color 0.2s ease-in-out;
}

.read-more:hover {
  color: #e67e22;
}


/* Latest from the Verses section mobile responsiveness */
@media (max-width: 800px) {
  #verse-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .verse-card {
    width: 90%;
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 1.5rem;
    margin: 40px 10px 25px;
  }

  .verse-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

  #verse-grid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .verse-title {
    font-size: 1.1rem;
  }

  .verse-summary {
    font-size: 0.85rem;
  }
}


/* rik-dev-engage Section section */
.rik-dev-engage {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #1e293b; /* dark background to match RiK style */
  color: #ffffff;
  border-radius: 1rem;
  margin: 2rem auto;
  max-width: 960px;
}

.rik-dev-engage .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #CC7700; /* light blue accent */
}

.rik-dev-engage .section-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.engage-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.engage-btn {
  background-color: #CC7700;
  color: #0f172a;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.engage-btn:hover {
  background-color: #0ea5e9;
}

.engage-btn.secondary {
  background-color: transparent;
  border: 2px solid #CC7700;
  color: #CC7700;
}

.engage-btn.secondary:hover {
  background-color: #0ea5e9;
}

/* rik-dev-engage Section for mobile responsiveness */

@media (max-width: 600px) {
  .rik-dev-engage {
    padding: 2rem 1rem;
    border-radius: 0.5rem;
    margin: 1.5rem 1rem;
  }

  .rik-dev-engage .section-title {
    font-size: 1.5rem;
  }

  .rik-dev-engage .section-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .engage-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .engage-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}


/* Rik newsletter section */
.rik-newsletter {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #1e293b;
  color: #ffffff;
  border-radius: 1rem;
  max-width: 640px;
  margin: 3rem auto;
}

.rik-newsletter .section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #CC7700;
}

.rik-newsletter .section-description {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.newsletter-form input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 9999px;
  width: 250px;
  max-width: 100%;
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  background-color: #CC7700;
  color: #0f172a;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #0ea5e9;
}


.newsletter-feedback {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: all 0.2s ease-in-out;
}

/* Rik newsletter section for mobile responsiveness */
@media (max-width: 600px) {
  .rik-newsletter {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
    border-radius: 0.75rem;
  }

  .rik-newsletter .section-title {
    font-size: 1.5rem;
  }

  .rik-newsletter .section-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    max-width: 320px;
    font-size: 1rem;
    padding: 0.65rem 1rem;
  }
}



/* Footer Styles */
footer {
    background-color: #CC7700; /* Yellow background */
    color: #002855; /* Blue text */
    padding: 30px 20px;
    text-align: left;
    position: relative;
    padding-bottom: 80px; /* or whatever matches your fixed menu height */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-branding {
    text-align: center;
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-branding p {
    font-size: 16px;
    margin-bottom: 10px;
}

.social-link .x-icon {
    width: 24px;
    height: 24px;
    margin-top: 10px;
}

/* Menu Columns */
.footer-menus {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.footer-column {
    flex: 1 1 180px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #002855;
    font-weight: bold;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #002855;
    text-decoration: none;
    font-weight: 500;
}

.footer-column a:hover {
    color: #F1C40F;
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed; /* changed from absolute */
    bottom: 90px;    /* slightly above your fixed footer */
    right: 20px;
    background-color: #1e293b;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999; /* ensure it appears above everything */
}


.back-to-top-btn:hover {
    background-color: #0ea5e9;
}

/* Copyright */
footer .copyright {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #002855;
}


/* Footer Styles for mobile responsiveness */
@media (max-width: 768px) {
  .footer-menus {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .footer-column h4 {
    margin-top: 20px;
  }
}

@media (max-width: 500px) {
  .back-to-top-btn {
    padding: 10px 14px;
    font-size: 20px;
    bottom: 70px; /* slightly more clearance on small screens */
  }
}


/* fixed footer for mobile responsiveness */
.fixed-footer-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #1e293b;  /* dark background */
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border-top: 2px solid #CC7700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fixed-footer-menu .menu-item {
  color: #ccc;
  text-decoration: none;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.3s ease;
}

.fixed-footer-menu .menu-item .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.fixed-footer-menu .menu-item:hover,
.fixed-footer-menu .menu-item:focus,
.fixed-footer-menu .menu-item.active {
  color: #CC7700;
  outline: none;
}

/* Hide on wider screens */
@media (min-width: 768px) {
  .fixed-footer-menu {
    display: none;
  }
}

