/* Global Styles */
/* In style.css or inside <style> of your layout */


html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background: #f3f3f3;
  color: #222;
  width: 100vw;
  overflow-x: hidden;
}

.page-content,
.box-wrapper {
  flex: 1;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
}





header {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

header .logo img {
  height: 50px;
}

nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd600;
}

.hero {
  background: url('images/banner.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta {
  padding: 0.75rem 1.5rem;
  background: #ffd600;
  color: #000;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
}

.categories {
  padding: 3rem 2rem;
  text-align: center;
}

.categories h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
}

.cat-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cat-card h3 {
  padding: 1rem;
}

.refer {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff9cc;
}

.refer h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.refer .btn-refer {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

footer {
  background: #000;
  color: #fff;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  font-size: 0.95rem;
  
}

footer div {
  flex: 1;
  min-width: 250px;
  padding: 0 1rem;
}

footer a {
  color: #edebe2;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}


.footer-links {
  margin: 1rem 0;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  color: #edebe2;
}

.social-icons img {
  width: 24px;
  margin: 0 5px;
  vertical-align: middle;
}


/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  border-radius: 16px;
  text-align: center;
  position: relative;
}

.popup-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.popup-content .cta {
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ff4d4d;
}


/* Styling the My Account Tab */
.my-account-tab {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  padding: 10px 15px;
  color: #333;
  transition: background-color 0.3s;
  border-radius: 8px;
}

.my-account-tab:hover {
  background-color: #f1f1f1; /* Light hover background for My Account */
}

/* Styling the My Account Menu */
.my-account-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 120%; /* Adjusting position to be below the "My Account" link */
  left: 0;
  background-color: #ffffff;
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* When the menu is visible */
.my-account-tab:hover .my-account-menu,
.my-account-menu:active {
  display: block;
  opacity: 1; /* Smooth fade-in effect */
}

/* My Account Tab (No animation on hover, similar to other tabs) */
.my-account-tab {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  padding: 10px 15px;
  color: #fff;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  margin-left: auto;
}

/* My Account Tab Hover Effect (No animation) */
.my-account-tab:hover {
  background-color: #333; /* Dark background on hover */
}

/* Styling the My Account Menu */
.my-account-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 120%; /* Position it below the "My Account" link */
  left: 0;
  background-color: #fff;
  width: 150px; /* Width equal to "My Account" tab */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
}

/* My Account Tab Hover - Show Menu */
.my-account-tab:hover .my-account-menu {
  display: block;
}

/* Links inside the dropdown */
.my-account-menu a {
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s, padding-left 0.3s;
}

/* Remove bottom border for last link */
.my-account-menu a:last-child {
  border-bottom: none;
}

/* Hover effect for links inside dropdown */
.my-account-menu a:hover {
  background-color: #f1f1f1; /* Light hover color */
  padding-left: 10px; /* Indentation effect */
}

/* Icons next to each menu item */
.my-account-menu a::before {
  content: "🔒"; /* Default icon */
  margin-right: 0px;
}

/* Icons for specific menu items */
.my-account-menu a[href="profile.html"]::before {
  content: "👤  "; /* Profile icon */
}

.my-account-menu a[href="order-history.html"]::before {
  content: "📜  "; /* Order History icon */
}

.my-account-menu a[href="refer.html"]::before {
  content: "💸  "; /* Refer & Earn icon */
}

.my-account-menu a[href="wheel-discount.html"]::before {
  content: "🎡  "; /* Wheel Discount Game icon */
}

.my-account-menu a[href="gift-balance.html"]::before {
  content: "🎁  "; /* Lattakapda Gift Balance icon */
}

/* Remove hover animation for the "My Account" tab itself */
.my-account-tab:hover a {
  color: #ffd600; /* Gold color on hover for My Account tab */
}

/* For smaller screens, ensure the menu doesn't break the layout */
@media (max-width: 768px) {
  .my-account-menu {
    width: 100%; /* Full width on small screens */
    left: 0; /* Align to the left */
  }
}




/* Profile Page Styling */
.profile-section {
  max-width: 800px;
  margin: auto;
  padding: 2rem 1rem;
  text-align: center;
}

.profile-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.profile-info {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
width : 100%
}

.profile-item label {
  font-weight: bold;
  color: #333;
  width: 100%; /* Take up full width */
}

.profile-item input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-size: 1rem;
}

.buttons {
  margin-top: 1rem;
}

.edit-btn,
.save-btn {
  padding: 12px 16px;
  background-color: #ffd600;
  border: none;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  width: 100%;  /* Keep buttons the same width */
  display: block;
  margin: 2rem;
}

.edit-btn:hover,
.save-btn:hover {
  background-color: #333;
  color: #fff;
}

#save-btn {
  margin-top: 1rem;
}

#edit-btn {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .profile-info {
    grid-template-columns: 1fr;
  }
}


/* Order History Styles */
.order-history-section {
  padding: 3rem 2rem;
  text-align: center;
  background: #f9f9f9;
}

.order-history-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

#order-history-container {
  max-width: 1200px;
  margin: 0 auto;
}

#no-orders-message {
  padding: 2rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #555;
  font-size: 1.2rem;
  font-weight: bold;
}

#orders-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.order-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.order-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.order-box p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.order-box .order-details {
  font-weight: bold;
  color: #000;
}

.order-box .order-status {
  font-size: 1.1rem;
  color: #28a745;
  margin-top: 1rem;
}

.order-box .order-status.failed {
  color: #dc3545;
}

.order-box .view-details-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
}

.order-box .view-details-btn:hover {
  background: #333;
}


.faq-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: #111;
}
.faq {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq:hover {
  background-color: #f9f9f9;
}

.faq-question {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  font-size: 16px;
  padding: 10px 0;
  color: #444;
}

.active .faq-answer {
  display: block;
}

.flex-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


input, textarea {
  display: block;
  margin-bottom: 10px;
  width: 300px;
  padding: 8px;
}
button {
  padding: 10px 20px;
  cursor: pointer;
}
h2 {
  margin-top: 30px;
}
