/* --------------------------------------------------
   1. Font Awesome
-------------------------------------------------- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* --------------------------------------------------
   2. Global & Reset
-------------------------------------------------- */
html {
    box-sizing: border-box;
}

body {
    background-color: beige !important;
    margin: 0;
    padding: 0;
    min-height: 100%;           /* allows scrolling with content */
    overflow-x: hidden;          /* prevent horizontal scroll */
    overflow-y: auto;            /* vertical scroll allowed */
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Add margin-top to content so header + advert doesn't overlap */
.main-content {
    margin-top: 120px; /* adjust according to combined header + advert height */
}

/* --------------------------------------------------
   3. Post Box, Comments, Replies
-------------------------------------------------- */
.post-box {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 5px;
  background: #fff;
}

.comment {
  margin-top: 10px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 5px;
}

.reply {
  margin-left: 20px;
  padding: 8px;
  background: #eef;
  border-radius: 5px;
}

.comment-form {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.comment-form input,
.comment-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
}

.comment-btn,
.reply-btn {
  margin-top: 8px;
  background: #2fb44b;
  border: none;
  color: white;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.comment-btn:hover,
.reply-btn:hover {
  background: #24963a;
}

/* --------------------------------------------------
   Header Top & Custom Header
-------------------------------------------------- */
.header-top,
.custom-header {
  width: 100%;
  padding: 0.5rem 10px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Desktop layout */
@media (min-width: 769px) {
  .header-top .header-inner {
    display: flex;
    justify-content: space-between; /* contact left, post+icons right */
    align-items: center;
  }

  .about-social-group {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .header-link {
    background: #f8f8f8;
    border-radius: 5px;
    padding: 5px 12px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid red; /* red border on desktop */
    color: #000;
  }

  .social-icons a {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border: 1px solid red; /* red border on desktop */
    color: #007BFF;
    transition: color 0.3s ease, background 0.3s ease;
    margin-right: 5px; /* small gap between icons */
  }

  .social-icons a:hover {
    color: red;
    background: #ffe5e5;
  }
}

/* Mobile layout (<769px) */
@media (max-width: 768px) {
  .header-top .header-inner {
    display: flex;
    justify-content: space-between; /* spread items evenly */
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap; /* keep single line */
  }

  .header-link,
  #openAuthModal,
  .social-icons a {
    background: #007BFF;        /* blue background */
    color: red;                  /* red text/icons */
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    text-align: center;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;             /* prevent shrinking */
    font-size: 0.85rem;
  }

  /* Icons and strong text inside header-link */
.header-link i,
.header-link strong,
.social-icons a i,
#openAuthModal{
    color: white;       /* icon and strong text color */
    margin-right: 3px;  /* space between icon and text */
}


  #openAuthModal {
    padding: 0.25rem 0.5rem;
  }

  .about-social-group {
    display: flex;
    gap: 5px;                    /* small gap between button and icons */
    align-items: center;
  }
  
  .social-icons {         /* darker blue on hover */
    gap: 5px;
  }

  .social-icons a:hover {
    background: #0056b3;         /* darker blue on hover */
    gap: 5px;
    color: red;
  }
}

/* Extra small screens (<360px) */
@media (max-width: 360px) {
  .header-link,
  #openAuthModal,
  .social-icons a {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .social-icons a {
    width: 22px;
    height: 22px;
  }
}

.gradient-title {
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: center;       /* center vertically if needed */
    width: 100%;
}

.gradient-title h2 {
    flex: 1;                  /* stretch the heading */
    text-align: center;       /* optional, or justify */
    margin: 0;
}
/* ---------------------------------- */
/* HEADER TEXT SLIDE ANIMATION */
/* ---------------------------------- */
.header-animated-text {
    position: relative;
    max-width: 1100px;
    margin: 8px auto 0 auto;
    height: 40px;
    overflow: hidden;
    text-align: center;

    /* Vintage serif typography */
    font-family: "Times New Roman", Georgia, "Libre Baskerville", serif;
    font-size: 1.05rem;          /* increased size */
    font-weight: 600;
    line-height: 1.5;
}

/* Animated paragraphs */
.header-animated-text p {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    padding: 0 16px;

    /* ðŸŽ¨ Vintage Gradient Text */
    background: linear-gradient(
        135deg,
        #F01B1B 0%,     /* dominant red */
        #F01B1B 45%,
        #b54545 60%,
        #3FA8DE 85%,
        #3FA8DE 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Visible paragraph */
.header-animated-text p.active {
    opacity: 1;
    transform: translateY(0);
}

/* Leaving paragraph */
.header-animated-text p.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* ---------------------------------- */
/* MOBILE (Phones) – FULL VISIBILITY */
/* ---------------------------------- */
@media (max-width: 576px) {

    .header-animated-text {
        height: 78px;              /* enough for 3 lines */
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .header-animated-text p {
        padding: 0 12px;

        /* Allow more lines on mobile */
        -webkit-line-clamp: 3;
        line-clamp: 3;

        /* Better wrapping */
        word-break: break-word;
        white-space: normal;
    }
}


/* --------------------------------------------------
   5. Advert Container
-------------------------------------------------- */
.advert-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;                /* do not fix height */
  overflow-x: hidden;          /* prevent horizontal scroll */
  overflow-y: visible;
}

.gallery-item img {
  max-width: 100%;             /* responsive images */
  height: auto;
  display: block;
  object-fit: contain;
}

#currentDate,
#currentTime {
  background-color: #007BFF;
  color: #fff;
  display: inline-block;
  padding: .5rem 1rem;
  margin-bottom: .5rem;
  border: 1px solid red;
}

/* --------------------------------------------------
   6. Cards & Layout
-------------------------------------------------- */
.card {
  border-radius: 0;
  margin-bottom: 0.5rem; /* reduce spacing between cards */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 280px;   /* fixed height for all cards */
  overflow: hidden; /* cut extra content if too tall */
}


.card-img-top {
  width: 100%;
  height: 200px; 
  object-fit: cover; /* crop neatly */
  margin-bottom: 0.4rem; /* tighten spacing below image */
}

.card-body {
  padding: 0.5rem;  /* compact padding */
}

.card-body h5 {
  font-size: 0.9rem;   /* smaller title */
  margin-bottom: 0.3rem;
}

.card-body ul {
  margin: 0 0 0.3rem 0; /* no extra spacing */
  padding: 0;
}

.card-body ul li {
  font-size: 0.75rem; /* tiny date text */
}

.card-body .btn-sm {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem; /* compact buttons */
}

/* Hover effect */
.hover-shadow:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}


.preview-text {
  max-height: 120px;
  overflow: hidden;
}

/* ---------------- Reaction Bar ---------------- */
.reaction-bar {
    display: flex;
    gap: 6px; /* space between buttons */
    justify-content: space-between;
    margin-top: 0.5rem;
    flex-wrap: nowrap; /* stay in one row */
}

.reaction-bar .btn {
    flex: 1 1 0; /* equal width, scale */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px; /* pill shape */
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    min-width: 60px; /* touch-friendly */
    gap: 4px; /* space between emoji and count */
    cursor: pointer;
    white-space: nowrap;
}

/* Hover effect */
.reaction-bar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Button colors */
.reaction-bar .like-btn {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.reaction-bar .dislike-btn {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.reaction-bar .comment-btn {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.reaction-bar .share-btn {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .reaction-bar {
        gap: 4px; /* smaller spacing */
    }

    .reaction-bar .btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.6rem;
    }
}

.btn-group {
  display: flex;
  gap: 5px;
}

.gradient-title {
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFFFF10, #3FA8DE30);
  box-shadow: 0 0 15px rgba(63,168,222,0.3);
}

.gradient-title .section-title {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #3FA8DE, #F01B1B, #000000, #FFFFFF);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --------------------------------------------------
   7. Navbar
-------------------------------------------------- */
.navbar {
  margin-top: 0.5px;
  margin-bottom: 0;
  font-weight: bold;
  padding: 10px;
  margin: 20px 0;
  background-color: #007BFF;
}

.navbar-nav {
  flex-wrap: wrap; /* wrap items if too wide */
}

.navbar-nav .nav-link {
  padding: 0px;
  font-size: 1rem;
  color: #fff !important;
}

.navbar-nav .nav-link:hover {
  color: red !important;
}

.navbar-toggler {
  display: none;
  border: 2px solid #FFF;
  background-color: black;
  color: #FFF;
}

/* Small screens navbar */
@media (max-width: 992px) {
  .navbar {
    background-color: #fff;
  }
  .navbar .nav-link {
    color: #000 !important;
  }
  .navbar-toggler {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    padding: 5px 10px;
    position: relative; /* prevent fixed overlap */
    top: auto;
    right: auto;
    z-index: 1000;
    margin-top: 10px;
  }
  .navbar-toggler:hover {
    background-color: red;
  }
}

/* --------------------------------------------------
   8. Search Box
-------------------------------------------------- */
.search-box {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 1rem 0;
}

/* --------------------------------------------------
   9. Back to Top
-------------------------------------------------- */
.back-to-top-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.back-to-top {
  display: none;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 50%;
  transition: background-color .3s ease;
}

.back-to-top:hover {
  background-color: #444;
}

.back-to-top i {
  font-size: 1.5rem;
}

textarea {
  width: 100%;
  min-height: 50px;
  max-height: 150px;
  resize: both;
  padding: .5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button,
.reply-button {
  margin-top: .5rem;
  padding: .5rem 1rem;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .3s ease;
}

button:hover,
.reply-button:hover {
  background-color: #0056b3;
}

.comment-reply-wrapper {
  margin-top: .5rem;
}

/* --------------------------------------------------
   10. Responsive adjustments
-------------------------------------------------- */
@media (max-width: 768px) {
  .advert-container {
    height: auto; /* responsive height */
  }

  .gallery-item img {
    height: auto;
    max-width: 100%;
  }

  .custom-header,
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small screen navbar styles */
@media screen and (max-width: 992px) {
  .category-menu-container,
  .search-box {
      display: block;
  }

  .category-menu-container:hover {
      display: block;
  }
}

/* Sidebar & Footer */
.sidebar-card ul li img {
    border: 1px solid red !important;
    border-radius: 4px !important;
}

.sidebar-card ul li a {
    font-size: 14px;
    line-height: 1.2;
}

.sidebar-card h5 {
    font-size: 16px;
    margin-bottom: 0;
}

.bg-footer {
  background-color: #007BFF;
  color: white;
  font-size: 0.9rem;
}

.bg-footer p,
.bg-footer ul,
.bg-footer li {
  margin-bottom: 0;
  line-height: 1.4;
}

.bg-footer a {
  color: #ffffff;
  text-decoration: none;
}

.bg-footer a:hover {
  text-decoration: underline;
}

.text-white {
  color: white;
}
.text-white:hover {
  color: red;
}

.text-decoration-none {
  text-decoration: none;
}

.comment-modal {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}
