/* ------------------------------------------------------
   GLOBAL STYLES
------------------------------------------------------ */

/* Define CSS Variables for easy theme management */
:root {
  --primary-color: #4a148c; /* Deep Purple */
  --primary-color-dark: #310b61; /* Darker Purple for hover */
  --primary-color-light: #7c4dff; /* Lighter Purple accent */
  --text-color-dark: #2c2c2c;
  --text-color-medium: #555;
  --text-color-light: #777;
  --background-light: #fdfcff; /* Lighter background for body */
  --background-white: #fff;
  --border-color: #eee;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-medium: 0 8px 25px rgba(0,0,0,0.08);
  --shadow-hover: 0 14px 35px rgba(0,0,0,0.12);
  --border-radius-small: 6px;
  --border-radius-medium: 10px;
  --border-radius-large: 14px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f7f3f3; /* Softer background */
  color: var(--text-color-dark); /* Slightly softer dark text */
  line-height: 1.65; /* Improved readability */
  font-size: 16px; /* Base font size */
}

.container {
  width: 92%;
  max-width: 1200px; /* Slightly wider container */
  margin: auto;
}

/* Common box styling - Enhanced for consistency */
.box {
  padding: 30px; /* Slightly more padding */
  margin: 40px 0; /* More vertical spacing */
  background: var(--background-white);
  border-radius: var(--border-radius-large); /* Consistent border-radius */
  box-shadow: var(--shadow-medium); /* Consistent shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Add transition */
}
.box:hover {
  transform: translateY(-5px); /* Subtle lift on hover */
  box-shadow: 0 12px 30px rgba(0,0,0,0.1); /* Slightly more pronounced shadow on hover */
}


/* ------------------------------------------------------
   HEADER / NAVBAR
------------------------------------------------------ */

.site-header {
  background: var(--background-white);
  padding: 18px 0; /* Slightly more vertical padding */
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.3s ease; /* Smooth padding transition for potential future scroll effects */
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-header h1 a {
  text-decoration: none;
  font-size: 28px; /* Slightly larger logo */
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px; /* Subtle letter spacing adjustment */
}

.site-header nav {
  display: flex;
  align-items: center;
}

.site-header nav a {
  margin: 0 18px; /* More spacing between nav items */
  text-decoration: none;
  color: var(--text-color-medium); /* Softer color for nav links */
  font-weight: 500;
  transition: 0.3s ease;
  position: relative;
  padding-bottom: 3px; /* Space for underline effect */
}

.site-header nav a:hover {
  color: var(--primary-color);
}

/* Animated underline effect for nav links */
.site-header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

.site-header nav a:hover::after {
  width: 100%;
}


.search-form {
  display: flex;
  gap: 10px; /* Slightly more gap */
}

.search-form input {
  padding: 10px 16px; /* Slightly more padding */
  border: 1px solid #ddd;
  border-radius: var(--border-radius-small);
  outline: none;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-form input:focus {
  border-color: var(--primary-color-light);
  box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1); /* Subtle focus ring */
}

.search-form button {
  padding: 10px 18px; /* Slightly more padding */
  background: var(--primary-color);
  color: var(--background-white);
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 15px;
  font-weight: 500;
}

.search-form button:hover {
  background: var(--primary-color-dark);
  transform: translateY(-1px); /* Subtle press effect */
}

/* ------------------------------------------------------
   SHAYARI CARDS (HOME PAGE)
------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly wider minmax for cards */
  gap: 25px; /* More space between cards */
  margin: 50px 0; /* More vertical spacing */
}

.card {
  background: var(--background-white);
  padding: 22px; /* Slightly more padding */
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  overflow: hidden;
  display: flex; /* Make card content a flex container */
  flex-direction: column; /* Stack content vertically */
}

.card:hover {
  transform: translateY(-8px); /* More pronounced lift */
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  aspect-ratio: 16/9; /* Maintain aspect ratio for images */
  object-fit: cover;
  border-radius: var(--border-radius-medium);
  margin-bottom: 18px; /* More space below image */
  filter: brightness(95%); /* Subtle image softening */
  transition: filter 0.3s ease;
}

.card:hover img {
  filter: brightness(100%); /* Brighten image on hover */
}

.card h3 {
  font-size: 22px; /* Slightly larger title */
  margin-bottom: 10px;
  color: var(--text-color-dark);
  line-height: 1.3;
}

.card .meta {
  font-size: 13.5px; /* Slightly larger meta text */
  color: var(--text-color-light);
  margin-bottom: 12px; /* More space below meta */
  text-transform: uppercase; /* Make meta stand out */
  letter-spacing: 0.5px;
  font-weight: 500;
}

.card .excerpt {
  font-size: 15.5px; /* Slightly larger excerpt */
  margin-bottom: 20px; /* More space below excerpt */
  color: var(--text-color-medium);
  flex-grow: 1; /* Allow excerpt to take available space */
}

.card .button {
  display: inline-block;
  padding: 9px 18px; /* Slightly more padding */
  background: var(--primary-color);
  color: var(--background-white);
  border-radius: var(--border-radius-small);
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 500;
  align-self: flex-start; /* Align button to start of flex container */
}

.card .button:hover {
  background: var(--primary-color-dark);
  transform: translateY(-1px);
}

/* ------------------------------------------------------
   SINGLE SHAYARI (VIEW PAGE)
------------------------------------------------------ */

.single-shayari {
  background: var(--background-white);
  padding: 40px; /* More generous padding */
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  margin: 50px 0; /* More vertical spacing */
}

.single-shayari h2 {
  font-size: 32px; /* Larger title */
  color: var(--primary-color);
  margin-bottom: 15px; /* More space below title */
  line-height: 1.2;
}

.single-shayari .meta {
  font-size: 15px; /* Slightly larger meta */
  margin-bottom: 25px; /* More space below meta */
  color: var(--text-color-medium);
  letter-spacing: 0.3px;
}

.single-shayari img {
  width: 100%;
  max-height: 350px; /* Slightly taller image */
  object-fit: cover;
  border-radius: var(--border-radius-medium);
  margin-bottom: 30px; /* More space below image */
  box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Subtle shadow for the image */
}

.single-shayari .body {
  font-size: 19px; /* Slightly larger body text */
  color: var(--text-color-dark);
  padding: 15px 0; /* More vertical padding */
  white-space: pre-line;
  margin-bottom: 30px; /* More space below body */
  line-height: 1.8; /* Enhanced readability for long text */
}

.single-shayari .button {
  padding: 12px 22px; /* More padding for a prominent button */
  background: var(--primary-color);
  color: var(--background-white);
  text-decoration: none;
  border-radius: var(--border-radius-small);
  transition: 0.3s ease;
  font-weight: 500;
  font-size: 16px;
}

.single-shayari .button:hover {
  background: var(--primary-color-dark);
  transform: translateY(-1px);
}

/* ------------------------------------------------------
   FOOTER
------------------------------------------------------ */

.site-footer {
  padding: 25px 0; /* More padding */
  margin-top: 50px; /* More space from content */
  background: var(--background-white);
  text-align: center;
  box-shadow: var(--shadow-light); /* Consistent shadow */
  border-top: 1px solid var(--border-color);
}

.site-footer p {
  font-size: 14.5px; /* Slightly larger font */
  color: var(--text-color-medium);
}

/* ------------------------------------------------------
   PAGINATION
------------------------------------------------------ */

.pagination {
  text-align: center;
  margin: 40px 0; /* More vertical spacing */
}

.pagination a,
.pagination span.current-page { /* Style for current page as well */
  display: inline-block;
  padding: 9px 15px; /* Slightly more padding */
  background: var(--primary-color);
  color: var(--background-white);
  border-radius: var(--border-radius-small);
  text-decoration: none;
  margin: 0 6px; /* Slightly more margin */
  transition: 0.3s ease;
  font-weight: 500;
  min-width: 40px; /* Ensure consistent width for page numbers */
}

.pagination span.current-page {
  background: var(--primary-color-dark); /* Highlight current page */
  pointer-events: none; /* Disable click on current page */
  cursor: default;
}

.pagination a:hover {
  background: var(--primary-color-dark);
  transform: translateY(-1px);
}

.pagination span.ellipsis { /* Style for ellipsis */
  margin: 0 8px;
  font-weight: 600;
  color: var(--text-color-medium);
  font-size: 18px; /* Slightly larger ellipsis */
}


/* -------------------------------------------------------------
   LOGIN PAGE (Kept distinct as it's a separate page/theme)
------------------------------------------------------------- */
.login-container {
  width: 100%;
  min-height: 100vh; /* Use min-height for better adaptability */
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff7f50, #ff4757); /* Angle for gradient */
  padding: 30px; /* Add padding for smaller screens */
  box-sizing: border-box; /* Ensure padding is included in element's total width and height */
}

.login-box {
  background: var(--background-white);
  padding: 40px; /* More padding */
  width: 400px; /* Slightly wider */
  max-width: 95%; /* Ensure it doesn't overflow on small screens */
  border-radius: var(--border-radius-large); /* Consistent border radius */
  box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Stronger, softer shadow */
  text-align: center; /* Center content */
}

.login-box h2 {
  text-align: center;
  margin-bottom: 30px; /* More space */
  color: var(--text-color-dark);
  font-size: 28px; /* Larger heading */
  font-weight: 600;
}

.login-box input {
  width: 100%;
  padding: 14px; /* More padding */
  margin-bottom: 20px; /* More space */
  border: 1px solid #ddd;
  border-radius: var(--border-radius-small);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-box input:focus {
  border-color: #ff7f50; /* Focus color matching login theme */
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.15);
  outline: none;
}

.login-btn {
  width: 100%;
  padding: 14px; /* More padding */
  background: #ff7f50; /* Login theme color */
  color: var(--background-white);
  border-radius: var(--border-radius-small);
  border: none;
  font-size: 17px; /* Slightly larger font */
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-btn:hover {
  background: #ff5733; /* Darker hover */
  transform: translateY(-2px); /* Lift effect */
  box-shadow: 0 5px 10px rgba(0,0,0,0.15); /* Subtle shadow on hover */
}

/* -------------------------------------------------------------
   SHAYARI OF THE DAY (Integrated into main theme)
------------------------------------------------------------- */
.shayari-day blockquote {
  font-size: 1.55rem; /* Slightly larger, better line height */
  line-height: 1.8;
  font-style: italic;
  margin: 15px 0 20px; /* More spacing */
  padding-left: 20px; /* More padding */
  border-left: 5px solid var(--primary-color-light); /* Integrated with purple theme */
  color: var(--text-color-dark);
  position: relative;
}
/* Add a subtle quote icon or similar visual */
.shayari-day blockquote::before {
  content: '“';
  font-family: serif; /* Classic quote font */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 3em; /* Large quote mark */
  color: rgba(74, 20, 140, 0.1); /* Very light purple */
  line-height: 1;
  transform: translateX(-50%) translateY(-20%);
  z-index: 0;
}


.shayari-day .meta {
  margin-top: 15px; /* More spacing */
  font-weight: 600; /* Slightly bolder */
  color: var(--text-color-medium);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

.sod-img {
  margin-top: 25px; /* More spacing */
  width: 100%;
  max-height: 300px; /* Slightly taller */
  object-fit: cover;
  border-radius: var(--border-radius-medium);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Subtle shadow */
}

/* -------------------------------------------------------------
   AUTHOR SPOTLIGHT (Integrated into main theme)
------------------------------------------------------------- */
.author-spotlight h2 {
  margin-bottom: 25px; /* More spacing */
  font-size: 26px; /* Consistent heading size */
  color: var(--primary-color);
}

.spotlight-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Slightly wider minmax */
  gap: 25px; /* More space between cards */
}

.spot-card {
  background: var(--background-white); /* White background for consistency */
  border-radius: var(--border-radius-medium);
  padding: 20px; /* More padding */
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Lighter shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.spot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.spot-card h3 {
  font-size: 1.25rem; /* Larger title */
  margin-bottom: 10px;
  color: var(--text-color-dark);
  line-height: 1.3;
}

.spot-card p {
  color: var(--text-color-medium);
  font-size: 1rem; /* Slightly larger text */
  margin-bottom: 15px; /* More space */
  line-height: 1.7;
  flex-grow: 1; /* Allow description to take space */
}

.spot-card .button {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-color); /* Use a lighter accent purple */
  color: white;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
  align-self: flex-start; /* Align button to start */
}

.spot-card .button:hover {
  background: var(--primary-color-dark); /* Darker on hover */
  transform: translateY(-1px);
}


/* ------------------------------------------------------
   MOBILE RESPONSIVE
------------------------------------------------------ */

@media (max-width: 992px) { /* Adjust breakpoint for larger tablets */
  .site-header nav a {
    margin: 0 12px;
  }
}

@media (max-width: 767px) {

  body {
    font-size: 15px;
  }

  .container {
    width: 94%; /* Slightly wider on small screens */
  }

  .site-header .container {
    flex-direction: column;
    text-align: center;
    gap: 15px; /* More space between header elements */
  }

  .site-header h1 a {
    font-size: 24px;
  }

  .site-header nav {
    flex-wrap: wrap; /* Allow nav items to wrap */
    justify-content: center;
    gap: 8px 15px; /* Gap between wrapped nav items */
  }

  .site-header nav a {
    margin: 0; /* Reset margins for wrap */
    padding: 5px 0;
  }

  .search-form {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap; /* Allow search elements to wrap */
  }

  .search-form input,
  .search-form button {
    width: auto; /* Allow auto width for better wrapping */
    flex-grow: 1; /* Allow them to grow */
  }
  .search-form input {
    max-width: 250px; /* Limit input width */
  }

  .grid {
    grid-template-columns: 1fr; /* Single column layout */
    margin: 30px 0;
    gap: 20px;
  }

  .card {
    padding: 18px;
  }
  .card h3 {
    font-size: 20px;
  }
  .card .meta {
    font-size: 12.5px;
  }
  .card .excerpt {
    font-size: 14.5px;
  }

  .single-shayari {
    padding: 25px;
    margin: 30px 0;
  }

  .single-shayari h2 {
    font-size: 26px;
  }
  .single-shayari .body {
    font-size: 17px;
  }
  .single-shayari img {
    max-height: 250px;
  }

  .site-footer {
    margin-top: 40px;
  }

  .pagination a, .pagination span.current-page {
    padding: 7px 12px;
    font-size: 14px;
    min-width: 35px;
  }

  /* Shayari of the Day & Author Spotlight adjustments */
  .box {
    padding: 25px;
    margin: 30px 0;
  }
  .shayari-day blockquote {
    font-size: 1.3rem;
    padding-left: 15px;
    border-left-width: 4px;
  }
  .sod-img {
    max-height: 220px;
  }
  .author-spotlight h2 {
    font-size: 22px;
  }
  .spotlight-list {
    grid-template-columns: 1fr;
  }
  .spot-card h3 {
    font-size: 1.15rem;
  }

  .login-box {
    padding: 30px;
  }
  .login-box h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .login-box input, .login-btn {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .site-header h1 a {
    font-size: 22px;
  }
  .site-header nav {
    flex-direction: column;
    gap: 5px;
  }
  .search-form {
    flex-direction: column;
  }
  .search-form input,
  .search-form button {
    width: 100%;
    max-width: none;
  }

  .single-shayari h2 {
    font-size: 22px;
  }
  .single-shayari .body {
    font-size: 16px;
  }
}

/* Toggle Button Basic Styles */
.menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative; /* For the span animation */
  z-index: 101; /* Ensure it's above the menu when open */
}

.menu-toggle span {
  display: block;
  width: 28px; /* Width of the hamburger lines */
  height: 3px; /* Thickness of the lines */
  background-color: var(--primary-color);
  margin: 6px 0; /* Space between lines */
  transition: 0.3s ease-in-out;
  border-radius: 2px;
}

/* Toggle button animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* Adjust existing header styles for mobile behavior */
@media (max-width: 767px) {

  /* Display the toggle button on mobile */
  .menu-toggle {
    display: block;
  }

  .site-header .container {
    flex-direction: column;
    /* text-align: center; REMOVED, as we'll align based on elements */
    gap: 0; /* Reset gap, managed by individual elements */
  }

  /* New wrapper for logo and toggle */
  .header-logo-and-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Pushes logo to left, toggle to right */
    align-items: center;
    padding-bottom: 10px; /* Space below this section */
    border-bottom: 1px solid var(--border-color); /* Separator */
  }

  .site-header h1 { /* Adjust h1 margin if needed */
    margin: 0;
  }
  .site-header h1 a {
    font-size: 24px; /* Adjust size for mobile if needed */
  }

  /* Hide the menu items by default on mobile */
  .header-menu-items {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 15px; /* Space from logo/toggle section */
    align-items: center; /* Center nav links and search form */
    gap: 20px; /* Space between nav and search form */
  }

  /* Show the menu items when the 'active' class is present */
  .header-menu-items.active {
    display: flex; /* Show menu items */
  }

  .site-header nav {
    flex-direction: column; /* Stack nav items vertically */
    width: 100%; /* Take full width */
    margin: 0; /* Reset margin */
    border: 1px solid var(--border-color); /* Add a border to the nav block */
    border-radius: var(--border-radius-small);
    overflow: hidden; /* Ensures borders/shadows are contained */
  }

  .site-header nav a {
    margin: 0; /* Reset margins from desktop */
    padding: 12px 20px; /* More generous padding for touch targets */
    border-bottom: 1px solid var(--border-color); /* Separator between nav items */
    width: 100%;
    text-align: center;
    background-color: var(--background-white);
  }

  .site-header nav a:last-child {
    border-bottom: none; /* No border for the last item */
  }
  
  .site-header nav a:hover {
    background-color: #f8f8f8; /* Light background on hover for mobile */
  }

  .search-form {
    width: 100%;
    flex-direction: column; /* Stack search input and button */
    gap: 10px;
    margin: 0; /* Reset margin */
  }

  .search-form input,
  .search-form button {
    width: 100%; /* Make input and button full width */
    max-width: none; /* Remove max-width restriction */
  }

  /* Adjust other mobile styles as needed for new layout */
  .single-shayari {
    padding: 20px;
  }

  .single-shayari h2 {
    font-size: 22px;
  }
}

/* Ensure the desktop styles for nav are correctly applied when not in mobile */
@media (min-width: 768px) {
  .header-menu-items {
    display: flex !important; /* Always show on desktop */
    flex-direction: row; /* Ensure nav and search are side-by-side */
    align-items: center;
    gap: 20px; /* Gap between nav and search form */
    width: auto;
    margin-top: 0;
  }
  .site-header nav {
    display: flex;
    flex-direction: row; /* Ensure nav links are in a row */
    align-items: center;
    gap: 0;
    width: auto;
    margin-left: 0; /* Reset any mobile-specific margins */
    border: none;
  }
  .site-header nav a {
    padding: 0 10px; /* Restore desktop nav link padding */
    border-bottom: none;
    text-align: left;
    background-color: transparent;
  }
  .search-form {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: auto;
    margin-top: 0;
  }
}

/* --- Article Specific Styles --- */
.single-shayari {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px; /* Limit article width for readability */
    margin: 30px auto; /* Center the article */
}

.single-shayari h2 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
    text-align: center;
}

.single-shayari .meta {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.single-shayari img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto; /* Center the image */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Shayari Box and Button - THE CORE FIX --- */
.shayari-box {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Default: Stack text and button vertically on small screens */
    gap: 20px; /* Space between the text and the button */
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 30px;
    position: relative; /* If you add any absolutely positioned elements later, this will be the context */
}

#shayariText {
    white-space: pre-wrap; /* Preserves line breaks from nl2br and wraps long lines */
    word-wrap: break-word; /* Ensures very long words break */
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    flex-grow: 1; /* Allow text to grow and take available space */
}

.copy-btn {
    /* Existing button styles + adjustments */
    padding: 12px 20px;
    background-color: black; /* A nice blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
    align-self: flex-start; /* Align button to the left in a column layout */
    /* On small screens, we might want the button to take full width or be centered */
    width: 100%; /* Default to full width on small screens */
    text-align: center;
    box-sizing: border-box; /* Include padding/border in width calculation */
}

.copy-btn:hover {
    background-color: rgba(0, 0, 0, 0.849); /* Darker blue on hover */
    transform: translateY(-1px); /* Slight lift effect */
}

.copy-btn:active {
    transform: translateY(0);
}

/* Media Query for larger screens (e.g., tablets and desktops) */
@media (min-width: 768px) {
    .shayari-box {
        flex-direction: row; /* On larger screens, arrange text and button in a row */
        align-items: flex-start; /* Align items to the top (button aligns with the top of the text) */
        gap: 30px; /* More space between text and button on desktop */
    }

    #shayariText {
        flex-basis: 70%; /* Text takes up 70% of the box width */
    }

    .copy-btn {
        flex-shrink: 0; /* Prevent button from shrinking */
        width: auto; /* Let button take its natural width */
        align-self: flex-start; /* Align to the top (flex-start) in a row layout */
    }
}


/* --- Other General Styles --- */
.button {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #5a6268;
}

/* Footer styles (if you have a footer) */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #333;
    color: #f4f4f4;
    font-size: 0.9em;
}
