/* ========== GLOBAL RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5; /* Improved readability */
  scrollbar-width: none; /* Consider removing for a11y */
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  font-family: "Inter", Arial;
}

/* Brand selection highlight */
::selection {
  background: #ffcc00;
  color: #000;
}

/* ========== HTML & BODY ========== */
html,
body {
  font-family: "Inter", Arial;
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: rgb(246, 246, 246);
  color: #000; /* Use dark text for readability */
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== FLASH MESSAGES ========== */
.flash-messages {
  position: fixed;
  top: 170px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 500px;
}

.flash-message {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.flash-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  padding-top: 170px;
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 80vh;
  display: grid;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
}

.hero-background {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  display: grid;
  grid-template-columns: 7fr 10fr;
  min-height: 80vh;
  max-height: 80vh;
}

.hero-background-plain {
  background-color: #211e1e;
  width: 100%;
  height: 100%;
}

.hero-background-image {
  width: 100%;
  height: 100%;
}

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

.hero-content {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  z-index: 2;
  margin-left: 7%;
  margin-right: 53%;
  background-color: #efefef;
  height: 60vh;
  padding: 3%;
  padding-top: 2%;
}

.hero-title {
  font-size: 28px;
  margin-top: 20px;
  font-weight: 600;
  color: #000;
}

.hero-date {
  color: #ff0000;
  background-color: rgba(0, 0, 0, 0.81);
  display: inline-block;
  padding: 2% 3%;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

.hero-description {
  max-width: 90%;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 400;
  color: #000;
}

.hero-read-more {
  margin-top: 10vh;
  margin-bottom: 10vh;
  display: flex;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  gap: 10px;
  align-items: center;
  transition: all 0.3s ease;
}

.hero-read-more:hover {
  color: #333;
}

.hero-read-more img {
  height: 20px;
  width: 20px;
}

/* ========== BLOGS SECTION ========== */
.blogs-section {
  padding-top: 70px;
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  padding-left: 10%;
  padding-right: 10%;
}

.blogs-header {
  margin-bottom: 50px;
}

.blogs-heading {
  font-family: Georgia, "Times New Roman", Times;
  font-size: 26px;
  font-weight: 400;
  color: #000;
  font-style: italic;
  margin-bottom: 20px;
}

.blogs-divider {
  height: 2px;
  min-height: 1px;
  background-color: #000;
  margin-bottom: 50px;
}

.blogs-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.blogs-read {
  font-weight: 600;
  font-size: 40px;
  color: #000;
}

.add-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ff0000;
  color: #000;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.add-blog-btn:hover {
  background-color: #e6c84f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-blog-btn i {
  font-size: 16px;
}

.blogs-grid-outer {
  display: grid;
  width: 100%;
}

.blogs-grid {
  width: 100%;
  margin-top: 65px;
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 3vw;
  row-gap: 4vw;
  padding-bottom: 70px;
}

.blog-image {
  aspect-ratio: 6 / 5;
  height: auto;
  width: 23vw;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
}

.blog-image img {
  aspect-ratio: 6 / 5;
  height: auto;
  width: 23vw;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-outer:hover .blog-image img {
  transform: scale(1.05);
}

.blog-title {
  margin-top: 20px;
  color: #000;
  font-size: 22px;
  font-weight: 600;
  max-width: 90%;
  line-height: 1.3;
}

.blog-content {
  margin-top: 20px;
  max-width: 90%;
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.blog-read-more {
  margin-top: 30px;
  display: flex;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  gap: 10px;
  border: none;
  background-color: #f6f6f6;
  align-items: center;
  transition: all 0.3s ease;
}

.blog-read-more:hover {
  color: #333;
}

.blog-read-more img {
  height: 20px;
  width: 20px;
}

.blogs-grid-overlay {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(246, 246, 246, 0) 60%, rgba(246, 246, 246, 1) 100%);
  display: flex;
  justify-content: center;
  align-items: end;
  padding-bottom: 70px;
}

.blogs-view-all {
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  width: 170px;
  height: 60px;
  border: none;
  font-size: 16px;
  font-family: "Poppins", Arial;
  cursor: pointer;
  transition: background-color 0.2s;
}

.blogs-view-all:hover,
.blogs-view-all:focus {
  background-color: #333;
  outline: 2px solid #ff0000;
}

/* ========== NO BLOGS STATE ========== */
.no-blogs-container {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.no-blogs-icon {
  font-size: 80px;
  color: #d1d5db;
  margin-bottom: 30px;
}

.no-blogs-title {
  font-size: 28px;
  color: #000;
  margin-bottom: 15px;
  font-weight: 600;
}

.no-blogs-description {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 30px;
}

.create-first-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ff0000;
  color: #000;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.create-first-blog-btn:hover {
  background-color: #e6c84f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 222, 89, 0.3);
}

/* ========== BLOG DELETE FUNCTIONALITY ========== */
.blog-outer {
  position: relative;
}

.blog-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-outer:hover .blog-actions {
  opacity: 1;
}

.blog-delete-btn {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-delete-btn:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

/* ========== DELETE MODAL ========== */
.delete-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.delete-modal-content {
  background-color: #fff;
  margin: 10% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.delete-modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-modal-header h3 {
  color: #dc2626;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.delete-modal-close {
  color: #9ca3af;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.delete-modal-close:hover {
  color: #374151;
}

.delete-modal-body {
  padding: 30px;
}

.delete-modal-body p {
  margin-bottom: 15px;
  color: #374151;
  font-size: 16px;
}

.delete-warning {
  color: #dc2626;
  font-weight: 500;
  font-size: 14px !important;
}

.delete-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.delete-cancel-btn {
  padding: 10px 20px;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-cancel-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

.delete-confirm-btn {
  padding: 10px 20px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delete-confirm-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO RESPONSIVE ========== */
@media (min-width: 1600px) and (max-width: 1920px) {
  .hero-title {
    font-size: 32px;
    margin-top: 40px;
  }
  .hero-date {
    font-size: 20px;
  }
  .hero-description {
    font-size: 24px;
    margin-top: 40px;
  }
  .hero-read-more {
    font-size: 24px;
  }
  .hero-read-more img {
    height: 30px;
    width: 30px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .hero-content {
    margin-top: 20px;
    margin-right: 20%;
    padding: 5%;
  }
}

@media only screen and (max-width: 767px) {
  .hero-content {
    margin-right: 7%;
    padding: 5%;
  }
  .hero-title {
    font-size: 20px;
  }
  .hero-date {
    font-size: 16px;
  }
  .hero-description {
    font-size: 18px;
  }
  .hero-read-more {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 18px;
  }
  .hero-read-more img {
    height: 15px;
    width: 15px;
  }
}

/* ========== BLOGS RESPONSIVE ========== */
@media (min-width: 1600px) and (max-width: 1920px) {
  .blogs-view-all {
    font-size: 20px;
  }
  .blog-content {
    font-size: 18px;
  }
  .blogs-read {
    font-size: 48px;
  }
  .add-blog-btn {
    font-size: 18px;
    padding: 18px 30px;
  }
}

@media only screen and (max-width: 767px) {
  .blogs-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .blogs-read {
    font-size: 32px;
  }

  .add-blog-btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .blog-image,
  .blog-image img {
    width: 80vw;
  }

  .blog-read-more {
    font-size: 16px;
  }

  .blog-read-more img {
    height: 16px;
    width: 16px;
  }

  .blog-outer {
    margin-bottom: 50px;
  }

  .no-blogs-icon {
    font-size: 60px;
  }

  .no-blogs-title {
    font-size: 24px;
  }

  .no-blogs-description {
    font-size: 14px;
  }
}

/* ========== END OF FILE ========== */
