/* ----------------------------------------------------
   LOAD INTER FONT (HEAVY WEIGHTS)
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

/* ----------------------------------------------------
   GLOBAL (NEWS STYLE)
---------------------------------------------------- */
body {
    background-color: #f8f9fa;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #002147 !important;
    font-weight: 400;
}

/* ----------------------------------------------------
   RESPONSIVE MEDIA FIX
---------------------------------------------------- */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------
   NAVBAR
---------------------------------------------------- */
.navbar-brand {
    font-size: 32px;
    font-weight: 900 !important;
    color: #002147 !important;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
    font-size: 1rem;
    color: #002147 !important;
}

/* ----------------------------------------------------
   LISTS & LINKS
---------------------------------------------------- */
.list-group-item {
    padding: 16px 16px;
    border-color: #ddd;
    font-size: 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.list-group-item a {
    text-decoration: none;
    color: inherit !important;
    font-weight: 900 !important;
}

.list-group-item a:hover {
    text-decoration: underline;
    color: #003b7a !important;
}

/* ----------------------------------------------------
   POST COUNTER BADGE
---------------------------------------------------- */
.post-counter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900 !important;
    margin-right: 12px;
    font-size: 18px;
}

/* ----------------------------------------------------
   SLIDE TOGGLE
---------------------------------------------------- */
.slide-toggle {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.slide-toggle.open {
    max-height: 2000px;
}

/* ----------------------------------------------------
   FLOATING CREATE POST BUTTON (MOBILE)
---------------------------------------------------- */
@media (max-width: 768px) {
    #floatingCreatePost {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        border-radius: 50%;
        padding: 18px 20px;
        font-size: 26px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        cursor: pointer;
        touch-action: manipulation;
        font-weight: 900 !important;
        color: #fff !important;
    }
}

/* ----------------------------------------------------
   STICKY SIDEBAR
---------------------------------------------------- */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

@media (max-width: 768px) {
    .sticky-sidebar {
        position: static !important;
        top: auto !important;
    }
}

/* ----------------------------------------------------
   POST TITLE
---------------------------------------------------- */
.post-title {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 900 !important;
    font-size: 16px;
    line-height: 1.35;
    color: #002147 !important;
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

.post-title:hover {
    text-decoration: underline;
    color: #003b7a !important;
}

/* ----------------------------------------------------
   POST EXCERPT
---------------------------------------------------- */
.post-excerpt {
    font-family: "Inter", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.55;
    color: #002147 !important;
    font-weight: 800 !important;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .post-excerpt {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}

/* ----------------------------------------------------
   CATEGORY + TRENDING BUTTONS
---------------------------------------------------- */
#toggleCategoriesBtn,
#toggleTrendingBtn {
    font-size: 20px;
    font-weight: 900 !important;
    color: #003b7a !important;
    cursor: pointer;
}

/* ----------------------------------------------------
   EMOJI PICKER
---------------------------------------------------- */
.emoji-picker {
    display: none;
    max-height: 200px;
    overflow: auto;
    position: absolute;
    z-index: 99999;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
}

.emoji-btn {
    font-size: 26px;
    padding: 6px 8px;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 900 !important;
    color: #470000 !important;
}

/* ----------------------------------------------------
   COLOR FIXES
---------------------------------------------------- */
#trendingWrapper .list-group-item,
#trendingWrapper .list-group-item a,
#trendingWrapper .list-group-item .small {
    color: hsl(340, 5%, 25%) !important;
}

#postsList .list-group-item,
#postsList .list-group-item a,
#postsList .list-group-item .small {
    color: #002147 !important;
}

#categoriesWrapper .list-group-item,
#categoriesWrapper .list-group-item a,
#categoriesWrapper .list-group-item .small {
    color: hsl(17, 86%, 40%) !important;
}

.hot-today-wrapper .list-group-item,
.hot-today-wrapper .list-group-item a,
.hot-today-wrapper .list-group-item .small {
    color: #002147 !important;
}

/* ----------------------------------------------------
   HOMEPAGE BANNER (FIXED)
---------------------------------------------------- */
.homepage-banner {
  width: 100%;
  height: 128px; /* fixed height for stability */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  border-radius: 6px;
}

.homepage-banner img,
.homepage-banner video {
  width: 100%; /* fill container width */
  height: 100%; /* match fixed height */
   margin-top: 0 !important;
  padding-top: 0 !important;
  display: block;
  object-fit: contain; /* show full image without cropping */
}


/* ----------------------------------------------------
   CAROUSEL FIX
---------------------------------------------------- */
#featuredCarousel {
    height: 380px !important;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    #featuredCarousel {
        height: 240px !important;
    }
}

#featuredCarousel .carousel-inner,
#featuredCarousel .carousel-item {
    height: 100% !important;
    transition: none !important;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ----------------------------------------------------
   SIDEBAR LIST FIX
---------------------------------------------------- */
.sidebar li,
.sidebar li a,
.sidebar ul li a,
.categories li a,
.trending li a,
.hot-today li a {
    line-height: 1.1 !important;
    display: block;
    margin-bottom: 2px !important;
}

@media (max-width: 768px) {
    .sidebar li a {
        line-height: 1.4 !important;
        font-size: 16px !important;
    }
}

img.logo {
  max-width: 100%;
  height: auto;
}


.navbar-brand img {
    max-height: 55px;
    height: auto;
    width: auto;
}

@media (max-width: 480px) {
    .navbar-brand img {
        max-height: 48px;
    }
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content,
.post-content p,
.post-content * {
    font-size: 1.1rem !important;
    line-height: 1.9 !important;
    font-weight: 600;
}


@media (min-width: 768px) {
    .post-content {
        font-size: 1.1rem;
        line-height: 1.85;
    }
}

/* Fix all mobile overflow inside post content */
.post-content,
.post-content * {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Fix images */
.post-content img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Fix iframes (YouTube, TikTok, Twitter, etc.) */
.post-content iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Fix videos */
.post-content video {
    width: 100% !important;
    height: auto !important;
}

/* Emergency: stop page from sliding sideways */
html, body {
    overflow-x: hidden !important;
}


