body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.navbar-brand { font-weight: 600; font-size: 1.5rem; color: #0d6efd !important; }
.theme-toggle { border: none; background: transparent; font-size: 1.5rem; }

/* Cookie banner styling and animation */
.cookie-banner {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    position: relative;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

/* When banner becomes visible */
.cookie-banner.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Optional subtle hover animation for buttons */
.cookie-banner button:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* --- Ad Carousel Consistency --- */
.ad-card {
    min-height: 250px;       /* minimum height for all cards */
    max-height: 250px;       /* prevents oversized ads */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Ad container ensures Google iframes stay contained */
.ad-container {
    width: 100%;
    height: 120px;            /* typical banner height */
    overflow: hidden;
}

.ad-container ins {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Optional: Keep other ad cards uniform */
.carousel-item .card {
    height: 250px;            /* matches AdSense card */
}

/* Mobile adjustments */
@media (max-width: 768px) {
        .ad-card,
        .carousel-item .card {
          height: 220px;
    }
    .ad-container {
          height: 100px;
    }
}

.card {
    border: none;
    border-radius: 0.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card-title a { color: #0d6efd; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }

.search-box-container {
    max-width: 600px;
    height: 50px;
    border-radius: 24px; /* Rounded corners for the entire container */
    overflow: hidden; /* Ensures content respects the border-radius */
    border: 1px solid #dadce0; /* Subtle border similar to Google */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* A wrapper that controls size on ALL devices */
.date-wrapper {
  position: relative;
  height: 38px;        /* Mobile-safe, consistent */
  display: flex;
  align-items: center;  /* vertically aligns input inside wrapper */
}

/* Force the input to fill the wrapper exactly */
.date-wrapper .date-input {
  height: 100% !important;
  line-height: normal !important;  /* prevent text stretching */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

.date-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #6c757d;
  pointer-events: none;
}

footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    z-index: 1000;
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
}
#backToTop:hover { background-color: #0b5ed7; }

.form-control, .form-select { border-radius: 0.5rem; }
.btn-primary { border-radius: 0.5rem; }
.pagination .page-link { border-radius: 0.4rem; }