body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
}

/* Responsive Typography (Task 1) */
h1 {
  font-size: 28px;
}
p {
  font-size: 16px;
}

#greeting {
  font-size: 24px;
}

@media (min-width: 600px) {
  h2 { font-size: 36px; }
  p { font-size: 18px; }
}

@media (min-width: 992px) {
  h2 { font-size: 48px; }
  p { font-size: 20px; }
}

 /* main block */
.master {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(120deg, #0f172a, #0b3a5b);
  color: white;
}

.master .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #ff8a65;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.master .btn:hover {
  background: #ff7043;
}

/* popular destinations */
/* Card Group (Task 2) */
.highlights {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.highlights h3 {
  color: #0b3a5b;
  margin-bottom: 40px;
}

.highlights h2 {
  color: #0b3a5b;
  margin-bottom: 40px;
}

/* adaptive grid for cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* styles for cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card h3 {
  color: #0b3a5b;
  margin-bottom: 10px;
}

.card p {
  color: #666;
  margin-bottom: 20px;
}

/* Card button */
.card-button {
  display: inline-block;
  background-color: #0b3a5b;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.card-button:hover {
  background: #ff8a65;
}


#top-banner{
  background: #0b3a5b;
  color:#fff;
  padding:20px 0;
  text-align:center;
}


    /* футер */
.site-footer {
  text-align: center;
  padding: 15px;
  background: #0b3a5b;
  color: white;
  margin-top: 30px;
}

#github{
  display: inline-block;
  color: #f8f9fa;
  text-decoration: none;
  margin-top: 10px;
}

#link{
  color: #f8f9fa;
}

#github:hover{
  color: blue;
}

/* Task 5: Date & Time Block */
.datetime-block {
  margin-top: 15px;
  font-size: 16px;
  color:#f8f9fa;
  font-weight: 500;
}

/* TOGGLE BUTTON Dark/Light Mode */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #ffffff66;
  border-radius: 8px;
  background: #ffffff1a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s, color .2s;
  height: 36px;              
  margin: 0;                
}

.theme-btn:hover {
  background: #ffffff2a;
  transform: translateY(-2px);
}


/* DARK MODE */
body.dark-mode {
  background: #0f172a;
  color: #f1f5f9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
body.dark-mode .navbar {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
}
body.dark-mode .navbar .nav-link {
  color: #f1f5f9 !important;
}
body.dark-mode .navbar .nav-link:hover {
  color: #93c5fd !important;
}
body.dark-mode .navbar-brand {
  color: #bfdbfe !important;
}

/* Toggle button */
body.dark-mode .theme-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #f8fafc;
  transition: background 0.2s, transform 0.2s;
}
body.dark-mode .theme-btn:hover {
  background: #475569;
  color: #93c5fd;
}

/* Hero section */
body.dark-mode .master {
  background: linear-gradient(120deg, #1e293b, #0f172a);
  color: #e2e8f0;
}
body.dark-mode .master .btn {
  background: #2563eb;
  color: #fff;
}
body.dark-mode .master .btn:hover {
  background: #1d4ed8;
}

/* Cards */
body.dark-mode .highlights {
  background: #1e293b;
}
body.dark-mode .highlights h3,
body.dark-mode .highlights h2 {
  color: #93c5fd;
}
body.dark-mode .card {
  background: #334155;
  color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
body.dark-mode .card h4,
body.dark-mode .card h3 {
  color: #bfdbfe;
}
body.dark-mode .card p {
  color: #e2e8f0;
}
body.dark-mode .card-button {
  background: #2563eb;
}
body.dark-mode .card-button:hover {
  background: #1d4ed8;
}

/* Footer */
body.dark-mode .site-footer {
  background: #1e293b;
  color: #f1f5f9;
}
body.dark-mode #link,
body.dark-mode #github {
  color: #93c5fd;
}
body.dark-mode #github:hover {
  color: #60a5fa;
}

/* Date/time block */
body.dark-mode .datetime-block {
  color: #bfdbfe;
}

* {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
