/*===========================
  Modern Header Styles
===========================*/

/* --- Colors and Fonts (Define these at the top for consistency) --- */
:root {
  --primary-color: #3b82f6; /* Equivalent to text-blue-600 */
  --accent-color: #dc2626; /* Equivalent to bg-red and text-red-600 */
  --text-color: #333;
  --bg-color: #fff;
  --font-family: 'Poppins', sans-serif;
}

/* --- General Header Container --- */
.header-area {
  background-color: var(--bg-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Equivalent to shadow-md */
  position: sticky; /* Equivalent to sticky */
  top: 0;
  z-index: 50; /* Equivalent to z-50 */
}

.main-header {
  padding: 1rem 1rem; /* Equivalent to py-4 and px-4 on a smaller screen */
}

/* --- Flexbox for Layout --- */
.menu-wrapper {
  display: flex;
  justify-content: space-between; /* Equivalent to justify-between */
  align-items: center; /* Equivalent to items-center */
}

/* --- Logo --- */
.logo img {
  width: 120px; /* Adjusted from w-30 to a standard pixel value */
  height: auto;
}

/* --- Main Navigation --- */
.main-menu {
  /* Hides the desktop menu on smaller screens. This matches the 'hidden md:block' behavior. */
  display: none;
}

/* Re-enables the navigation on medium screens and up */
@media (min-width: 768px) {
  .main-menu {
    display: block;
  }
}

.main-menu ul#navigation {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem; /* Equivalent to space-x-6 */
}

.main-menu ul#navigation li a {
  color: var(--primary-color);
  font-family: var(--font-family);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease-in-out; /* Equivalent to transition-colors */
}

.main-menu ul#navigation li a:hover {
  color: var(--accent-color);
}

/* --- Header Right Section (Icons) --- */
.header-right ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem; /* Equivalent to space-x-4 */
  align-items: center; /* Equivalent to items-center */
}

.header-right li {
  display: inline-block; /* Ensure all items are treated equally for spacing */
}

/* Hide the search and user icons on small screens, matching the Tailwind code */
.header-right .nav-search,
.header-right a[href="login.html"] {
  display: none;
}
@media (min-width: 768px) {
  .header-right .nav-search,
  .header-right a[href="login.html"] {
    display: block; /* Show them on medium screens and up */
  }
}

/* Style for the icons themselves */
.header-right .flaticon-search,
.header-right .flaticon-user,
.header-right .flaticon-shopping-cart {
  color: var(--primary-color);
  font-size: 24px; /* Adjust size to match h-6 w-6 */
  transition: color 0.3s ease-in-out;
  cursor: pointer;
}

.header-right .flaticon-search:hover,
.header-right .flaticon-user:hover,
.header-right .flaticon-shopping-cart:hover {
  color: var(--accent-color);
}

/* --- Mobile Menu (Hamburger Icon) --- */
/* The Tailwind code shows a hamburger button. This handles the original's mobile menu div. */
.mobile_menu {
  display: block;
}
@media (min-width: 768px) {
  .mobile_menu {
    display: none; /* Hide the mobile menu on medium screens and up */
  }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* 3. The Modern Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 20px;
    flex-grow: 1; /* Makes the content area fill remaining space */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-text {
    margin-bottom: 15px;
    color: var(--light-text);
}

/* 4. Stylish Buttons */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Pushes the button to the bottom of the card */
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 5. Responsive Design with Media Queries (optional but highly recommended) */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
}