/* --- GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%; /* Prevent elements from exceeding container width */
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  position: relative;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #07182f 0%, #0d2b4e 100%);
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- LOADER STYLES --- */
#qaruno-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 24, 47, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-bg {
  text-align: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 181, 200, 0.3);
  border-top: 4px solid #00b5c8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-brand {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.loader-msg {
  color: #00b5c8;
  font-size: 1.1rem;
  font-weight: 500;
}

/* --- COOKIE BANNER STYLES --- */
#cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 380px;
  background: rgba(7, 24, 47, 0.95);
  border: 2px solid #00b5c8;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 181, 200, 0.2);
  z-index: 10000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: none;
}

#cookie-banner.minimized {
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  bottom: 1rem;
  left: 1rem;
}

#cookie-banner.minimized .cookie-content {
  display: none;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cookie-title {
  color: #FFD700;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.cookie-close {
  background: none;
  border: none;
  color: #00b5c8;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover {
  background: rgba(0, 181, 200, 0.1);
  transform: scale(1.1);
}

.cookie-message {
  color: #cceff5;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #00b5c8;
  text-decoration: none;
  flex: 1;
  text-align: center;
}

.cookie-btn.accept {
  background: #00b5c8;
  color: white;
}

.cookie-btn.accept:hover {
  background: #008aa5;
  border-color: #008aa5;
}

.cookie-btn.settings {
  background: transparent;
  color: #00b5c8;
}

.cookie-btn.settings:hover {
  background: rgba(0, 181, 200, 0.1);
}

.cookie-icon {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #00b5c8;
  font-size: 1.5rem;
}

#cookie-banner.minimized .cookie-icon {
  display: flex;
}

/* Cookie banner mobile styles */
@media (max-width: 768px) {
  #cookie-banner {
    width: calc(100% - 2rem);
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    margin: 0 auto;
  }
  
  #cookie-banner.minimized {
    width: 50px;
    height: 50px;
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    flex: none;
  }
}

/* --- HEADER STYLES - CONSISTENT --- */
header {
  background: rgba(7, 24, 47, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- NAV LOGO WITH IMAGE + TEXT (CONSISTENT) --- */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.3rem 0;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.nav-logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #00b5c8);
  transition: width 0.3s ease;
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.nav-logo:hover .nav-logo-text {
  filter: brightness(1.2);
  transform: translateX(3px);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

/* --- NAV BUTTON STYLES - CONSISTENT --- */
nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-btn, .nav-btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1.45rem;
  font-size: 1.05rem;
  border-radius: 2rem;
  border: 2px solid #00b5c8;
  background: transparent;
  color: #00b5c8;
  margin-left: 1.15rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn:focus {
  background: rgba(0, 181, 200, 0.1);
  color: #00b5c8;
  border-color: #00b5c8;
}

.nav-btn-login {
  background: #00b5c8;
  color: #fff;
  border: 2px solid #00b5c8;
  font-weight: 700;
}

.nav-btn-login:hover, .nav-btn-login:focus {
  background: #008aa5;
  color: #fff;
  border-color: #008aa5;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: rgba(0, 181, 200, 0.1);
  border: 2px solid #00b5c8;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  color: #00b5c8;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(0, 181, 200, 0.2);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* --- BLOG HERO SECTION --- */
.blog-hero {
  background: rgba(234, 253, 255, 0.1);
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0, 181, 200, 0.2);
  width: 100%;
}

.blog-hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #cceff5;
  font-weight: 500;
}

/* --- BLOG CONTENT - KEEPING ORIGINAL BLOG STYLING --- */
.blog-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding: 1rem 0 3rem;
  width: 100%;
}

/* Blog Posts */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.blog-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 181, 200, 0.3);
}

.blog-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #cceff5;
  flex-wrap: wrap;
}

.blog-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.blog-card p {
  color: #cceff5;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Blog post content link styles */
.blog-post-content a {
    color: #00b5c8 !important;
    text-decoration: underline !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    color: #FFD700 !important;
    text-decoration: none !important;
}

.blog-post-content a:visited {
    color: #008aa5 !important;
}

/* Single post content link styles */
.single-post-content a {
    color: #00b5c8 !important;
    text-decoration: underline !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.single-post-content a:hover {
    color: #FFD700 !important;
    text-decoration: none !important;
}

.single-post-content a:visited {
    color: #008aa5 !important;
}

/* Blog link styles for dynamically created links */
.blog-link {
    color: #00b5c8 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #FFD700 !important;
    text-decoration: none !important;
}

.blog-link:visited {
    color: #008aa5 !important;
}

/* Admin buttons */
.admin-delete-btn, .admin-edit-btn {
  position: absolute;
  top: 1rem;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: none;
}

.admin-delete-btn {
  right: 1rem;
  background: #ff4757;
}

.admin-edit-btn {
  right: 4.5rem;
  background: #00b5c8;
}

.admin-delete-btn:hover {
  background: #ff2e43;
  transform: scale(1.1);
}

.admin-edit-btn:hover {
  background: #008aa5;
  transform: scale(1.1);
}

/* Single Post View */
.single-post {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.single-post-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 181, 200, 0.2);
}

.single-post-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.single-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #cceff5;
  flex-wrap: wrap;
}

.single-post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.single-post-content {
  padding: 2rem;
  line-height: 1.8;
  color: #cceff5;
  width: 100%;
}

.single-post-content p {
  margin-bottom: 1.5rem;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  color: #00b5c8;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.back-to-blog:hover {
  color: #FFD700;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.sidebar-widget h3 {
  color: #FFD700;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 181, 200, 0.2);
}

/* Categories */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.categories-list li a {
  color: #cceff5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.categories-list li a:hover {
  color: #00b5c8;
}

.categories-list li span {
  background: rgba(0, 181, 200, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  color: #00b5c8;
}

/* Recent Posts */
.recent-post {
  display: flex;
  margin-bottom: 1rem;
  gap: 0.8rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 100%;
}

.recent-post:hover {
  transform: translateX(5px);
}

.recent-post-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.recent-post-content h4 {
  font-size: 0.95rem;
  margin: 0 0 0.3rem 0;
  font-weight: 600;
  color: #fff;
}

.recent-post-content h4 a {
  color: #fff;
  text-decoration: none;
}

.recent-post-content h4 a:hover {
  color: #00b5c8;
}

.recent-post-content span {
  font-size: 0.8rem;
  color: #cceff5;
}

/* Horizontal scroll for mobile */
.scroll-container {
  display: none;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.scroll-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  width: 100%;
}

.scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.category-scroll-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.8rem 1.2rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-scroll-item:hover {
  background: rgba(0, 181, 200, 0.2);
  border-color: rgba(0, 181, 200, 0.3);
}

.category-scroll-item.active {
  background: rgba(0, 181, 200, 0.3);
  border-color: #00b5c8;
}

.recent-scroll-item {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.recent-scroll-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 181, 200, 0.3);
}

.recent-scroll-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.scroll-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.scroll-btn {
  background: rgba(0, 181, 200, 0.3);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background: #00b5c8;
}

/* Pagination */
.pagination {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  width: 100%;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.pagination a.active, 
.pagination a:hover {
  background: #00b5c8;
  color: #fff;
}

/* --- ADMIN MODAL STYLES --- */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 24, 47, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(13, 43, 78, 0.95);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 181, 200, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 181, 200, 0.2);
}

.modal-header h2 {
  color: #FFD700;
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #cceff5;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #00b5c8;
}

.blog-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 100%;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Fix dropdown text color */
.form-group select option {
  background: #fff;
  color: #000;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #cceff5;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-submit {
  background: #00b5c8;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #008aa5;
}

/* Image upload preview */
.image-upload-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border: 1px dashed #00b5c8;
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: none;
}

.upload-status {
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
  display: none;
}

.upload-status.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  display: block;
}

.upload-status.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  display: block;
}

.upload-status.progress {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  display: block;
}

/* Loading and error states */
.loading {
  text-align: center;
  padding: 2rem;
  color: #cceff5;
}

.error-message {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* --- FOOTER STYLES - CONSISTENT --- */
footer {
  background: rgba(7, 24, 47, 0.9);
  color: #fff;
  padding: 3rem 0 2rem 0;
  text-align: center;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(0, 181, 200, 0.2);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFD700;
}

/* DESKTOP: All links in one line */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #00b5c8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFD700, #00b5c8);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #FFD700;
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.95rem;
  color: #cceff5;
  margin-top: 1rem;
}

/* --- BACK TO TOP BUTTON STYLES --- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,181,200,0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255,215,0,0.4);
}

/* --- ADMIN BUTTON STYLES --- */
.admin-add-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: #00b5c8;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: none;
}

.admin-add-btn:hover {
  background: #008aa5;
  transform: scale(1.05);
}

/* --- LOGIN MODAL STYLES --- */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 24, 47, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.login-content {
  background: rgba(13, 43, 78, 0.95);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 181, 200, 0.3);
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-header h2 {
  color: #FFD700;
  margin: 0 0 0.5rem 0;
}

.login-header p {
  color: #cceff5;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.login-error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.8rem;
  border-radius: 0.5rem;
  text-align: center;
  display: none;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Search input styling */
.search-form input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.search-form input::placeholder {
  color: #cceff5;
}

/* --- MOBILE RESPONSIVE STYLES - KEEPING BLOG'S ORIGINAL BREAKPOINTS --- */
@media (max-width: 900px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar {
    order: -1;
  }
  
  .blog-hero h1 {
    font-size: 2rem;
  }
  
  .blog-hero p {
    font-size: 1.1rem;
  }
  
  .categories-list, .recent-posts-list {
    display: none;
  }
  
  .scroll-container {
    display: block;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    width: 100%;
    padding: 0 0.8rem;
    max-width: 100%;
  }
  
  /* Mobile menu styles - KEEPING BLOG'S ORIGINAL MOBILE MENU */
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 24, 47, 0.95);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    width: 100%;
  }
  
  nav.active {
    display: flex;
  }
  
  .nav-btn, .nav-btn-login {
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
    margin-left: 0;
    justify-content: center;
  }
  
  /* Header mobile layout */
  .nav-wrapper {
    flex-direction: row;
    gap: 1rem;
    width: 100%;
  }
  
  /* Mobile header logo */
  .nav-logo-img {
    width: 32px;
    height: 32px;
  }
  
  .nav-logo-text {
    font-size: 1.5rem;
  }
  
  .blog-hero {
    padding: 2.5rem 0;
  }
  
  .blog-card-img {
    height: 200px;
  }
  
  .blog-card-content {
    padding: 1.2rem;
  }
  
  .blog-card h3 {
    font-size: 1.3rem;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .sidebar-widget {
    padding: 1.2rem;
  }
  
  .sidebar-widget h3 {
    font-size: 1.2rem;
  }
  
  .modal-content, .login-content {
    padding: 1.5rem;
    width: 95%;
    margin: 0 0.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-cancel, .btn-submit {
    width: 100%;
  }
  
  .admin-add-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .admin-delete-btn, .admin-edit-btn {
    width: 35px;
    height: 35px;
    top: 0.5rem;
  }
  
  .admin-delete-btn {
    right: 0.5rem;
  }
  
  .admin-edit-btn {
    right: 3.5rem;
  }
  
  #backToTop {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 1.2rem;
    right: 1.2rem;
  }
  
  /* Footer mobile - 3x2 grid */
  footer .container {
    padding: 0 1rem;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem 0.5rem;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-links a {
    margin: 0;
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.3;
    padding: 0 0.2rem;
  }
  
  .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #00b5c8);
    transition: width 0.3s ease;
  }
  
  .footer-links a:hover::after {
    width: 100%;
  }
  
  .footer-links a:hover {
    color: #FFD700;
    transform: translateY(-2px);
  }
  
  /* Ensure all containers don't exceed viewport */
  .blog-container, .blog-posts, .sidebar, .sidebar-widget {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .scroll-wrapper {
    padding: 1rem 0.5rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .blog-hero h1 {
    font-size: 1.8rem;
  }
  
  .blog-hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-card h3 {
    font-size: 1.2rem;
  }
  
  .sidebar-widget {
    padding: 1rem;
  }
  .footer-links {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem 0.3rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
}