/* General Styles (used by all pages) */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #F8FAFC;
    color: #1E293B;
}

/* ================= HEADER ================= */

/* header */
header {
  background-color: #0F172A;  
  color: #F8FAFC;
  padding-bottom: 20px; 
}

/* Top bar: logo + nav */
.top-bar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 10px 20px;
}

/* Logo */
.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;  
  background-color: white;
  padding: 5px;
  margin: 25px;
}

/* Navigation */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #F8FAFC;
  font-weight: bold;
  padding: 10px;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #ff9800;
}

/* Page title + description */
.page-title {
  text-align: center;
  margin-top: 20px;
}
.page-title h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.page-title p {
  font-size: 1.2rem;
  color: #ddd; 
}

/* ==================HEADER END================== */


/*========================= Main Content ===========================*/
main {
  background-color: #F8FAFC;
  color: #1E293B;
}

section {
    padding: 40px;
    text-align: center;
}

.container {
    background-color: #1E293B;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: white;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.container h2 {
    margin-top: 10px;
    font-size: 1.8rem;
    color: #F8FAFC; 
}

.container p {
    font-size: 1rem;
    line-height: 1.6;
}


#main-banner {
    background-image: url('images/banner.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    padding: 100px 20px;
    border-radius: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

.rounbded-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

/* Forms */
form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

input, textarea, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

button {
    background: #ff9800;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #2c36c0;
}

/*=================== Footer ====================*/ 
footer {
  background-color: #1E293B;
  color: #F8FAFC;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}



/* 3-assignment */


.layout {
  display: grid;
  grid-template-areas:
    "header header"
    "aside main"
    "footer footer";
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
header { grid-area: header;/* background: #222; color: white; */}
aside { grid-area: aside; background: #f4f4f4; padding: 15px; }
main { grid-area: main; padding: 20px; }
footer { grid-area: footer;/* background: #222; color: white; text-align: center; padding: 10px;*/ }


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;

}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar a {
  color: white;
  text-decoration: none;
}


.cards {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.card {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s;
}
.card img {
  max-width: 100%;
  border-radius: 10px;
}
.card:hover {
  transform: scale(1.05);
}


.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
}
.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  text-align: center;
  padding: 5px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover span {
  opacity: 1;
}


.delline {
  text-decoration: none;
}



/* 5-assignment */



body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.header-navbar {
  background: #1E293B;
  color: white;
  padding: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav a {
  color: white;
  text-decoration: none;
}

.container {
  text-align: center;
  padding: 50px;
}

.btn-primary {
  background: orange;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: darkorange;
}

/* --- Popup --- */




.popup {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 24px;
  cursor: pointer;
}

input {
  width: 90%;
  padding: 8px;
  margin: 10px 0;
}

.datetime-section{
  text-align: center;
  margin: 40px;
  font-size: small;
  
}