*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

body{
background:#ffffff;
color:white;
}

/* HEADER */

header{
padding:20px;
text-align:center;
background:#111827;
font-size:22px;
}

/* MAIN LAYOUT */

.layout{
display:flex;
gap:25px;
width:95%;
margin:auto;
margin-top:30px;
}

/* SIDEBAR */

.sidebar{
width:240px;
background:#ffffff;
padding:20px;
border-radius:10px;
color:#111; /* main text color */
}

.sidebar h3{
margin-bottom:10px;
color:#000; /* heading color */
font-weight:600;
}

.sidebar ul{
list-style:none;
margin-bottom:20px;
}

.sidebar li{
padding:8px 0;
border-bottom:1px solid #e5e7eb;
color:#333; /* list text color */
}

.sidebar a{
text-decoration:none;
color:#333;
}

.sidebar a:hover{
color:#7c3aed; /* purple hover */
}

/* CONTENT */

.content{
flex:1;
}

/* GRID */

.course-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

/* CARD */

.card{
background:#ffffff;
border-radius:16px;
overflow:hidden;
border:1px solid #e5e7eb;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
transition:0.3s;
}

.card:hover{
transform:translateY(-6px);
}

.card img{
width:100%;
display:block;
}

/* CARD BODY */

.card-body{
padding:20px;
color:#111;
}

.card-body h3{
font-size:18px;
font-weight:700;
color:#111;
margin-bottom:8px;
}

.card-body p{
font-size:14px;
color:#555;
line-height:1.5;
margin-bottom:12px;
}

/* META */

.meta{
display:flex;
gap:15px;
font-size:14px;
color:#444;
margin-bottom:15px;
}

/* FOOTER */

.card-footer{
display:flex;
justify-content:space-between;
align-items:center;
}

.price{
font-size:22px;
font-weight:700;
color:#111;
}

.old{
text-decoration:line-through;
font-size:14px;
color:#888;
margin-left:6px;
}

.btn{
background:#8b5cf6;
color:#fff;
padding:10px 16px;
border-radius:8px;
text-decoration:none;
font-weight:600;
transition:0.3s;
}

.btn:hover{
background:#7c3aed;
}

/* BADGE */

.badge{
position:absolute;
background:#a855f7;
padding:6px 12px;
border-radius:20px;
font-size:12px;
top:10px;
left:10px;
}

.img-wrap{
position:relative;
}

/* RESPONSIVE */

@media(max-width:1100px){

.course-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.layout{
flex-direction:column;
}

.sidebar{
width:100%;
}

.course-grid{
grid-template-columns:1fr;
}

}

.header{
background:white;
border-bottom:1px solid #eee;
}

.header-container{
width:95%;
margin:auto;
display:flex;
align-items:center;
justify-content:space-between;
padding:15px 0;
}

/* TEXT LOGO */

.logo{
font-size:26px;
font-weight:700;
color:black;
letter-spacing:1px;
}

/* MENU */

.menu a{
margin-left:25px;
text-decoration:none;
color:#333;
font-weight:500;
}

.menu a:hover{
color:#8b5cf6;
}

@media(max-width:768px){

.menu{
display:none;
}

.header-container{
justify-content:center;
}

}

.logo{
font-size:28px;
font-weight:800;
color:black;
}

.logo span{
color:#8b5cf6;
}

.section-title{
margin-bottom:25px;
}

.section-title h2{
font-size:28px;
font-weight:700;
color:#111;
margin-bottom:6px;
}

.section-title h3{
font-size:24px;
font-weight:700;
color:#111;
margin-bottom:6px;
}

.section-title p{
color:#666;
font-size:14px;
}

/* DROPDOWN MENU */

.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 10px; /* creates hover-safe zone */
}

/* Submenu box */
.submenu {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);

  min-width: 200px;
  padding: 10px 0;

  display: none;
  flex-direction: column;

  opacity: 0;
  transition: all 0.25s ease;
  z-index: 1000;
}

/* Submenu links */
.submenu a {
  margin: 0; /* override your .menu a margin */
  padding: 12px 18px;
  white-space: nowrap;
  font-size: 14px;
}

/* Hover effect */
.submenu a:hover {
  background: #f3f4f6;
  color: #8b5cf6;
  padding-left: 22px;
}

/* Show dropdown */
.dropdown:hover .submenu {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}




/* ===== SECTION ===== */
.stores-section {
  padding: 24px;
  background: #f5f7fb;
}

/* ===== HEADER ===== */
.stores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stores-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}
.stores-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.view-all {
  text-decoration: none;
  font-size: 14px;
  color: #3b82f6;
  font-weight: 500;
}

/* ===== GRID CONTAINER ===== */
.stores-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Desktop */
  gap: 16px;
}

/* ===== STORE CARD ===== */
.store-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}



/* ===== IMAGE ===== */
.store-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== STORE NAME ===== */
.store-card p {
  font-size: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

/* ===== CASHBACK BADGE ===== */
.cashback {
  margin-top: 6px;
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ===== FEATURED BIG CARD (OPTIONAL) ===== */
.store-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .stores-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .stores-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-card {
    height: 120px;
    padding: 12px;
  }

  .store-card img {
    width: 50px;
    height: 50px;
      
  }

  .store-card p {
    font-size: 13px;
  }
}

.store-link {
  text-decoration: none;
  color: inherit; /* keeps text color same */
  display: block;
}

.store-link:hover .store-card {
  transform: translateY(-6px);
}
html {
  scroll-behavior: smooth;
}

h3 {
  scroll-margin-top: 100px; /* adjust based on header height */
}
