/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

  a {
    text-decoration: none;
  }

body {
  font-family: 'Georgia', serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem;
  color: white;
  background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../media/shradhha1.jpg');
  background-size: cover;
  background-position: center;
  height: 500px;
  position: relative;
}

.header-top-left {
  display: flex;
  align-items: center;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.header-top-left img { width: 60px; margin-right: 1rem; }
.header-top-left h2 { font-size: 1.5rem; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); color: #ffffff; text-decoration: none;}


.header-center-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.header-center-text h1 { font-size: 2rem; }
.header-center-text h2 { font-size: 1.2rem; }

header nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  transition: 0.3s;
}
nav a:hover, nav a.active {
  background: #f0f0f0;
  border-radius: 4px;
}

/* footer */



/* Hero Section */
.hero {
  background: linear-gradient(to bottom, #ffd992, #ffffff);
  padding: 40px 2rem;
  border-top: 4px solid black;
  border-bottom: 4px solid black;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.hero-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.hero-text { flex: 2; }
.hero-image { flex: 1; }
.hero-image img {
  width: 100%; border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ----- CUSTOM AUDIO PLAYER (ENHANCED) ----- */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, #f9f9f9, #e6e6e6); /* Subtle gradient background */
    padding: 0.75rem 1rem;
    border-radius: 50px; /* Pill shape */
    margin: 2rem 0;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Softer, more pronounced shadow */
}

.player-btn {
    background-color: #c93e07;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px; /* Slightly larger button */
    height: 45px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Prevents button from shrinking */
    box-shadow: 0 2px 5px rgba(166, 61, 0, 0.4);
    transition: all 0.3s ease;
}

.player-btn:hover {
    background-color: #702000;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(112, 41, 0, 0.5);
}

/* This is the key change for centering */
.progress-and-time {
    display: flex;
    align-items: center;
    gap: 1rem; /* Space between progress bar and time */
    width: 100%;
}

.player-progress-container {
    background: #dcdcdc;
    border-radius: 5px;
    cursor: pointer;
    height: 10px; /* Thicker bar */
    width: 100%;
    flex-grow: 1; /* Allows the bar to take up available space */
    transition: height 0.2s ease;
}

/* Hover effect for the progress container */
.player-progress-container:hover {
    height: 12px; /* Bar gets slightly thicker on hover */
}

.player-progress {
    background-color: #c93e07;
    border-radius: 5px;
    height: 100%;
    width: 0%;
    position: relative; /* Needed for the thumb pseudo-element */
    transition: width 0.1s linear;
}

/* --- The new "thumb" on the progress bar --- */
.player-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 18px; /* Thumb size */
    height: 18px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #c93e07;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-audio-player:hover .player-progress::after {
    opacity: 1; /* Show thumb when hovering the player */
}

.time-display {
    font-size: 0.9rem;
    color: #333;
    font-family: monospace; /* Monospaced font for clean time display */
    font-weight: bold;
    min-width: 90px; /* Prevents layout shift as time changes */
    text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #f9f9f9;
  color: #777;
  font-size: 0.95rem;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  header { height: auto; padding: 1rem 0 2rem; }
  .header-top-left { position: static; justify-content: center; margin-bottom: 0.5rem;}
  .header-top-left img { width: 50px; margin-right: 0.5rem; }
  .header-center-text { position: static; transform: none; margin: 0.5rem 0; }
  header nav { position: static; transform: none; margin-top: 1rem; }
  nav ul { flex-direction: row; gap: 0.5rem; }

  .hero-content { flex-direction: column; align-items: center; text-align: center; }
  .hero-text { max-width: 90%; margin-bottom: 1.5rem; }
  .hero-image { max-width: 90%; display: flex; justify-content: center; }
  .hero-image img { width: auto; max-width: 100%; }
}
