html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Century Gothic, sans-serif;
  color: black;
  background-color: #FEFCFF;
}

/* Header */
header {
  background-color: #301934; /* dark purple for top part */
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Logo + Title inline */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;  /* taller */
  background-color: #301934; /* stays dark */
}

.header-logo {
  height: 40px; /* slightly larger logo */
}

.campaign-name {
  font-size: 18px; /* larger title text */
  font-weight: bold;
  margin: 0;
  color: white;
}

/* Desktop Menu - lighter background */
.desktop-menu {
  display: flex;
  align-items: center;
  background-color: #563c5c;
  padding: 3px 15px;
  position: relative;
}

/* Center the menu absolutely */
.menu {
  list-style: none;
  margin: 0 auto;   /* centers inside flexbox */
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Right-aligned join button */
.join-btn {
  margin-left: auto; /* pushes only this one to the right */
}

.join-btn a {
  background-color: #301934; /* same as top header */
  color: #d3d3d3;            /* light gray text */
  padding: 4px 10px;         /* smaller size */
  border-radius: 0;          /* square edges */
  text-decoration: none;
  font-weight: 500;          /* slightly lighter than bold */
  font-size: 14px;           /* smaller font */
  border: 1px solid #d3d3d3; /* subtle gray border */
  transition: all 0.3s ease;
}

.join-btn a:hover {
  background-color: #d3d3d3; /* gray highlight on hover */
  color: #301934;            /* dark purple text */
  border-color: #d3d3d3;
}


.menu a {
  color: white;
  text-decoration: none;
  padding: 6px 12px; /* smaller padding for compact look */
  display: block;
  font-weight: 500;
}

.menu a:hover {
  background-color: #7B68EE; /* hover effect */
  color: white;
}

.menu li {
  position: relative;
  margin: 5px;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s, color 0.3s;
}

.dropbtn i {
  font-size: 0.8em;
  margin-left: 4px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown Menu (Desktop) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #E6E6FA;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.dropdown-content a {
  padding: 12px 16px;
  color: black;
}
/* Hide toggle button on desktop */
.menu-toggle-wrapper {
  display: none;
}
/* ðŸ”’ Hide sidebar on desktop */
.sidebar {
  display: none;
}

/* Footer */
.last-container {
  text-align: center;
  padding: 20px;
  background-color: #301934;
  color: white;
}

.last-container .social-icons {
  margin: 10px 0;
}

.last-container .social-icons a {
  color: white;
  font-size: 20px;
  margin: 0 10px;
  text-decoration: none;
}

/* Social Label Section */
.social-label {
  text-align: center;
  font-weight: bold;
  color: #301934;
  margin-top: 40px;
  font-size: 18px;
  letter-spacing: 1px;
}

.social-divider {
  margin: 15px auto 30px;
  padding: 15px 0;
  max-width: 320px;
  border: 2px solid #301934;
  border-radius: 10px;
  text-align: center;
}

.social-divider a {
  color: #301934;
  font-size: 24px;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-divider a:hover {
  color: #6a1b9a;
}

.news-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 180px auto 0 auto;  /* âœ… centers left & right */
  padding: 0 20px;           /* âœ… equal side spacing */
}
.breaking-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* âœ… prevent stretching */
  gap: 40px;
  margin-bottom: 20px;
}

/* Left column of breaking bars */
.breaking-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Breaking bar */
.breaking-bar {
  display: flex;
  align-items: center;
  height: 34px;           /* âœ… thinner bar height */
  font-size: 13px;
  border: 1px solid #eee;
  background: #f7f7f7;
  border-radius: 3px;
  overflow: hidden;       /* âœ… makes color fill neatly */
}

.breaking-bar .breaking-item {
  display: flex;
  align-items: center;
  padding: 0 12px;        /* âœ… no vertical padding, fills full height */
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  height: 100%;           /* âœ… stretches to full bar height */
}

.breaking-bar .red { background: #e60000; }
.breaking-bar .blue { background: #0056b3; }

.breaking-bar .breaking-text {
  color: #333;
  flex: 1;
  padding-left: 8px;
}
/* Ad-box always matches .breaking-left height */
.ad-box {
  width: 300px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  display: flex;
  height: 80px; /* letâ€™s reset this */
}

/* Force ad-box height equal to breaking-left */
.breaking-left,
.ad-box {
  align-self: stretch;  /* âœ… sync their heights */
}

.ad-box img {
  width: 100%;
  height: 100%;        /* âœ… always fill container */
  object-fit: cover;   /* âœ… keeps ratio, crops instead of stretching */
  display: block;
}

.ad-box .ad-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5); /* âœ… dark overlay like screenshot */
  color: #fff;
  text-align: center;
}

.ad-box .ad-content h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: bold;
}

.ad-box .ad-content a {
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.2s;
}

.ad-box .ad-content a:hover {
  background: #f1f1f1;
}

    /* Grid layout */
    .news-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 20px;
  padding: 20px;
  width: 100%;
  align-items: start; /* <-- important! prevents row stretching */
}
.left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;     /* space between big-news and small-news */
  grid-column: 1; /* lock entire stack to first column */
}
    /* Left big news */
    .big-news img {
      width: 100%;
      border-radius: 5px;
    }
    .big-news h2 {
      margin: 10px 0;
      color: #111;
    }
    .big-news p {
      font-size: 14px;
      color: #555;
      text-align:justify;
    }
    .big-news .meta {
      margin-top: 8px;
      font-size: 13px;
      color: #777;
    }
    /* Remove underline from titles */
    a {
        text-decoration: none;
        color: inherit; /* keeps the text color consistent */
    }
    /* Style for "Read more" */
    .read-more {
    color: blue;  /* blue like a hyperlink */
    cursor: pointer;
    font-size:14px;
    }

    .read-more:hover {
        text-decoration: underline;
    }


    /* Middle column */
    .medium-news {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .medium-news article img {
      width: 100%;
      border-radius: 5px;
    }
    .medium-news .tag-date {
        font-size:12px;
    }
    .medium-news h3 {
      font-size: 16px;
      margin: 8px 0;
      color: #111;
    }
    .medium-news p {
      font-size: 14px;
      color: #555;
      text-align:justify;
    }
    
    /* Style for "Read more" */
    .mini-news .read-more {
    color: blue;  /* blue like a hyperlink */
    cursor: pointer;
    font-size:12px;
    }

/* Make small-news stay in the first column */
.small-news {
  grid-column: 1;   /* forces it under big-news in col 1 */
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-top: 20px;
}

.small-news img {
  width: 100%;
  height: 180px;       /* shorter image */
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.small-news h3 {
  font-size: 16px;
  margin: 10px;
  color: #111;
}

.small-news p {
  font-size: 14px;
  color: #555;
  margin: 0 10px 10px;
}

    /* Right column */
.side-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mini news */
.mini-news {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.mini-news img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.mini-news .mini-text {
  flex: 1;
}

.tag1 {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: red;
  margin-bottom: 4px;
}
.tag2 {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 4px;
}
.tag3 {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: #0056b3;
  margin-bottom: 4px;
}

.mini-news p {
  font-size: 13px;
  margin: 2px 0 4px;
  line-height: 1.3;
  text-align:justify;
}

.mini-news small {
  color: #888;
  font-size: 10px;
}

/* Extra News Section (independent block) */
.extra-news {
  display: grid;
  grid-template-columns: 2fr 1fr; /* left big card, right stacked cards */
  gap: 20px;
  margin-top: 10px;  /* spacing from first grid */
}

/* Big card styling */
.extra-big {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.extra-big img {
  width: 100%;
  height: 240px;
  object-fit: fill;
}

.extra-big h2 {
    text-decoration:underline;
  font-size: 20px;
  margin: 12px;
  color: #000;
}

.extra-big p {
  font-size: 14px;
  margin: 0 12px 12px;
  color: #555;
  text-align:justify;
}

/* Right stacked cards */
.extra-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Tag below the image */
.extra-small {
  display: flex;
  flex-direction: column;  /* stack image, tag, and text vertically */
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.extra-small img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.extra-small .tag1 {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #8b0000; /* deep red, adjust as you like */
  padding: 4px 8px;
  margin: 4px 8px;      /* left-aligned */
  border-radius: 4px;
  display: inline-block;
}
.extra-small div {
  padding: 8px;
  text-align: justify; /* optional if you want justified */
}
.extra-small h3 {
  font-size: 14px;
  margin: 0 0 5px;
  color: #000;
}

.extra-small p {
  font-size: 12px;
  margin: 0;
  color: #555;
}
.extra-small small {
    color: #888;
  font-size: 10px;
}

/* Grid wrapper */
.extend-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px;
  margin-top: 20px;
}

/* Each thumbnail card */
.extend-item {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
  transition: transform 0.2s ease;
}

.extend-item:hover {
  transform: translateY(-4px);
}

/* Left image */
.extend-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Right content */
.extend-content {
  margin-left: 12px;
  flex: 1;
}

/* Tag style */
.extend-tag {
  display: inline-block;
  background: #6a0dad;  /* purple highlight */
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 5px;
}

/* Title */
.extend-content h3 {
  font-size: 14px;
  margin: 0 0 5px;
  color: #000;
}

/* Short description */
.extend-content p {
  font-size: 12px;
  margin: 0 0 5px;
  color: #555;
  line-height: 1.4;
}

/* Date */
.extend-content small {
  font-size: 11px;
  color: #888;
}
/* Back to top button */
#backToTop {
  position: fixed !important; 
  bottom: 30px;               /* slightly closer to bottom */
  right: 30px;                /* slightly closer to right edge */
  display: none;              
  z-index: 1000;

  background: #301934;        
  color: #fff;
  font-size: 22px;            /* adjusted arrow size */
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: opacity 0.3s ease, transform 0.2s ease;
  line-height: 45px;          /* perfectly center the arrow */
}

#backToTop:hover {
  background: #47265a;        
  transform: translateY(-3px);
}




 @media (max-width: 768px) {
   .desktop-menu { display: none; }
  .menu-toggle-wrapper {
    display: flex; align-items: center; justify-content: center;
    background: #563c5c; padding: 4px 8px; height: 34px; gap: 4px; width: 100%;
  }
  .menu-toggle { font-size: 18px; color: white; }
  .menu-label { font-size: 14px; color: white; font-weight: 600; }

  .sidebar {
    display: block;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    width: auto; max-width: none;
    height: 50vh; /* ⬅️ Half the screen height */
    background: #6d4c7d;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 20px 15px;
  }
  .sidebar.show { opacity: 1; visibility: visible; transform: translateY(0); }
  .sidebar ul li { margin-bottom: 20px; } /* more spacing */
  .sidebar ul li a {
    text-decoration: none;
    color: #f2e9f8;
    font-size: 18px; /* balanced size */
    line-height: 1.5;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.3s;
  }
  .sidebar ul {
  list-style: none;
  padding: 20px 0 0 0; /* ⬅️ pushes menu items down */
  margin: 0;
}
  .sidebar ul li a:hover { background: #8a6b96; }

  .sidebar .dropdown-content {
    background: #c9b6d4;
    border-radius: 6px;
    padding: 4px 0;
  }
  .sidebar .dropdown-content a {
    color: #301934;
    font-size: 18px;
    padding: 8px 14px;
    display: block;
  }
  .sidebar .dropdown-content a:hover { background: #b497c4; color: #fff; }

  /* Bigger close button */
  .sidebar .close-btn {
    position: absolute;
    top: 8px; right: 20px;
    font-size: 36px; /* ⬅️ Bigger for easy tapping */
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background:transparent;
  }
  .sidebar .dropdown > a i {
  transition: transform 0.3s;
}
.sidebar .dropdown > a i.rotate {
  transform: rotate(180deg);
}
/* Make all sidebar menu labels uppercase */
.sidebar ul li a,
.sidebar .dropdown-content a {
  text-transform: uppercase;
}
  /* Wrapper fits with side padding */
  .news-wrapper {
    max-width: 95%;   /* âœ… no more edge-to-edge */
    margin: 150px auto 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* Breaking section stacks */
  .breaking-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .breaking-bar {
    font-size: 12px;
    height: 30px;  /* slightly thinner */
  }

  .ad-box {
    width: 100%;
    height: 140px;   /* controlled height */
    max-width: 100%;
  }

  /* News grid goes 2 columns on mobile */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */
  gap: 12px;
  padding: 0 10px;
  width: 100%;
}

/* Side-news spans full width */
.news-grid .side-news {
  grid-column: 1 / -1; /* makes it stretch across both columns */
}

  /* Images scale */
  .big-news img,
  .medium-news article img,
  .mini-news img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }

  /* Mini-news inline */
  .mini-news {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
  }

  .mini-news img {
    width: 90px;
    height: 70px;
    object-fit: cover;
  }

  /* Text scaling */
  .big-news h2 { font-size: 18px; }
  .medium-news h3 { font-size: 15px;}
  .medium-news p {text-align:justify;}
  .mini-news p { font-size: 13px; text-align:justify; }
  
  .medium-news .tag-date { font-size:12px;}
  
  /* Extra News - stack vertically */
  .extra-news {
    grid-template-columns: 1fr; /* single column */
  }

  .extra-big img {
    height: auto; /* let height adjust naturally */
  }

  .extra-side {
    flex-direction: column;
  }

  /* Extend News - stack vertically */
  .extend-news {
    grid-template-columns: 1fr; /* single column */
  }

  .extend-item {
    flex-direction: row; /* keep image left, text right */
    width: 100%;
  }

  .extend-item img {
    width: 90px;
    height: 90px;
  }

  .extend-content h3 {
    font-size: 15px;
  }

  .extend-content p {
    font-size: 13px;
    text-align: justify;
  }
}




