/* --- Global & Font Styles --- */
/* For a slicker look, import a Google Font like 'Montserrat' */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    /*--primary-color: #007bff;*/
    --primary-color: #a47764;
    /* A modern blue accent */
    --light-gray: #f4f7f6;
    --dark-gray: #333;
    --text-color: #555;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    /*background-color: var(--light-gray);*/
    background-color: var(--primary-color);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* --- Header & Navigation Bar --- */
.main-header {
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    place-items: center;
    display: grid;    
}

.nav-box {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* The Calendar Icon Button */
.calendar-button {
    font-size: 1.5rem;
    /* Makes the icon larger */
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.calendar-button:hover {
    color: var(--primary-color);
}

/* --- Tile Grid --- */
.tile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;

    /* This is the magic for the responsive tiles! */
    display: grid;
    /* - repeat: Use as many columns as fit.
      - auto-fit: Fit as many as possible on the line.
      - minmax: Each column should be at least 300px, but can grow to 1fr (fractional unit) 
    */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* --- Individual Tile Styling --- */
.tile {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    /* Keeps the image corners rounded */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.tile-date {
    text-align: center;
    color: var(--dark-gray);
}

.tile:hover {
    transform: translateY(-5px);
    /* "Lifts" the card up */
    box-shadow: var(--card-shadow-hover);
}

.tile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Ensures image covers the area without distortion */
    display: block;
}

.tile-content {
    padding: 1.5rem;
}

.tile-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.tile-content p {
    font-size: 0.9rem;
    color: var(--text-color);
}

.tile-content p a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 0.5rem;
    margin-top: 2rem;
    background-color: var(--dark-gray);
    color: #ffffff;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        /*flex-direction: column;*/
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links li {
        margin: 0.5rem 0;
        padding: 10px;
    }


    .header-actions {
        /* Puts the icon in the top-right corner on mobile */
        position: absolute;
        top: 1.25rem;
        right: 2rem;
    }

    .tile-container {
        padding: 0 1rem;
        margin-top: 1rem;
    }
}

/*     for one  event */


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}


.card {
    background: #ffffff;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /*max-width: 600px;*/
    width: 100%;
    transition: transform 0.3s ease;
}

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

.image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: top;
    height: auto;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    padding: 24px;
}

.name {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.date {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}


.date::before {
    content: "📅";
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.content button {
    width: 35%;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    /*transition: all 0.3s ease;*/
}

.button-container {
    display: flex;
    justify-content: center;
    /* Add this line */
    gap: 15px;
    margin-top: 25px;
}

/* sliders */
.switch {
  position: relative;
  width: 45px;
  height: 21px;
  display: inline-block;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 26px;
  transition: .3s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}
input:checked + .slider {
  background: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(24px);
}