body {
  font-family: "Poppins", sans-serif;
  color: #333333;
  background: #ffffff;
}

.bg-dark {
  background-color: #23282d !important;
  color: #ffffff !important;
}

.section-light {
  padding: 60px 0;
  background: #f8f9fa;
}

.section-dark {
  padding: 60px 0;
  background: #343a40;
  color: #ffffff;
}

.hero {
  background: url("images/hero-bg.jpeg") no-repeat center center/cover;
  height: 100vh;
  position: relative;
}

.about-hero {
  background: url("images/about.jpg") no-repeat center center/cover;
  height: 50vh;
  position: relative;
}

.box {
  color: darkgray;
  margin: 10px 10px 20px 20px;
  font-size: 13px;
}

.box p {
  color: white;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #ff9800;
}

.btn-accent {
  background-color: #ff9800;
  border-color: #ff9800;
  color: #23282d;
}

.btn-accent:hover {
  background-color: #ff9800;
  border-color: #ff9800;
}

h1,
h2 {
  font-weight: 700;
}

.log {
  background-color: #23282d;
  color: white;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.log:hover {
  transform: translateY(-10px);
  background-color: #ff9800;
  cursor: pointer;
}

.logs {
  color: black;
}

.logs:hover {
  color: white;
  transform: translateY(-10px);
  background-color: #ff9800;
  cursor: pointer;
}

.about-card,
.services-card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.about-card:hover,
.services-card:hover {
  transform: translateY(-10px);
  background-color: gray;
  cursor: pointer;
  color: black;
}

.staff-card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  background-color: #f8f9fa;
  color: #333333;
}

.clickable-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
.clickable-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.project-img {
  cursor: pointer;
  transition: opacity 0.3s;
}

.project-img:hover {
  opacity: 0.8;
}

.stats {
  color: #ff9800;
  font-weight: 700;
}

#formFeedback .alert {
  padding: 10px;
  border-radius: 5px;
}

#formFeedback .alert-success {
  background-color: #d4edda;
  color: #155724;
}

#formFeedback .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

#submitButton .spinner-border {
  margin-left: 10px;
  vertical-align: middle;
}

#submitButton:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.news-card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
  transform: scale(1.05);
}

.news-card .card-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card .card-text {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

.news-card .btn-accent {
  font-weight: 500;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.news-card .card-body {
  padding: 1.5rem;
}

#adminPanel {
  padding: 60px 0;
}

#adminPostsContainer .card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#adminPostsContainer .card:hover {
  transform: translateY(-5px);
}

#adminPostsContainer .card-img-top {
  height: 150px;
  object-fit: cover;
}

#adminPostsContainer .card-body {
  padding: 1rem;
}

#adminPostsContainer .btn {
  font-size: 0.9em;
  margin: 5px;
}

#newsModal .modal-body {
  padding: 1.5rem;
}

#newsModal .modal-title {
  color: #333;
  font-weight: 600;
}

#newsModal .img-fluid {
  max-height: 300px;
  object-fit: cover;
  border-radius: 5px;
}

#newsModalMessage {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

#postImage {
  padding: 0.375rem 0.75rem;
}

#adminPostsContainer .card-img-top {
  max-height: 150px;
}

#newsContainer .news-card,
#latestNewsContainer .news-card {
  cursor: pointer;
}

#loginFeedback .alert {
  padding: 10px;
  border-radius: 5px;
}

#loginFeedback .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

#newsContainer .news-card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

#newsContainer .news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#newsContainer .news-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#newsContainer .news-card:hover .card-img-top {
  transform: scale(1.05);
}

footer > p:hover {
  color: #ff9800;
  cursor: pointer;
}

[data-aos] {
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Mobile adjustments for hero section */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 36px !important;
    padding-top: 100px !important;
  }
  .hero h2 {
    font-size: 30px !important;
  }

  .hero h6 {
    font-size: 24px !important;
  }

  .hero p {
    font-size: 14px;
  }

  .about-hero {
    height: 30vh;
  }

  .about-hero p {
    font-size: 14px !important;
    padding-top: 80px !important;
  }
}

/* Mobile navigation */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #23282d;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
  }

  .navbar-nav {
    text-align: center;
  }

  .nav-item {
    margin: 5px 0;
  }
}

/* Mobile section padding */
@media (max-width: 768px) {
  .section-light,
  .section-dark {
    padding: 40px 0;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Mobile card adjustments */
@media (max-width: 768px) {
  .log,
  .logs,
  .about-card,
  .services-card,
  .news-card {
    margin-bottom: 20px;
  }

  .card-img-top {
    height: 180px !important;
  }

  .news-card .card-img-top {
    height: 150px !important;
  }
}

/* Mobile text adjustments */
@media (max-width: 576px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-text {
    font-size: 14px;
  }
}

/* Mobile image gallery */
@media (max-width: 768px) {
  .row.g-4 {
    gap: 15px !important;
  }

  .col-md-4,
  .col-md-3,
  .col-md-6 {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Mobile form adjustments */
@media (max-width: 576px) {
  .form-control {
    font-size: 14px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Mobile modal adjustments */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 10px;
  }

  .modal-body {
    padding: 15px;
  }

  #newsModal .img-fluid {
    max-height: 200px;
  }
}

/* Mobile table adjustments */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
  }
}

/* Hide transform effects on mobile for better performance */
@media (max-width: 768px) {
  .log:hover,
  .logs:hover,
  .about-card:hover,
  .services-card:hover,
  .news-card:hover,
  .clickable-card:hover {
    transform: none;
  }

  .news-card:hover .card-img-top {
    transform: none;
  }
}

/* Mobile footer adjustments */
@media (max-width: 576px) {
  footer {
    font-size: 12px;
    padding: 15px 0 !important;
  }
}

/* Mobile specific carousel adjustments */
@media (max-width: 768px) {
  .carousel-item img {
    height: auto !important;
    max-height: 250px;
  }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  .btn,
  .nav-link,
  a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .modal.show #userModalCEO .modal-body img {
    max-height: 50px !important;
    width: auto !important;
    object-fit: cover !important;
  }
}

/* Mobile responsiveness for projects page */
@media (max-width: 768px) {
  /* Make cards full width on mobile */
  #projects .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }

  /* Override fixed inline image heights */
  #projects img {
    height: auto !important; /* ignore fixed height */
    max-height: 250px; /* prevent huge images */
    width: 100%; /* ensure full card width */
    object-fit: cover; /* keep aspect ratio */
  }

  /* Modal image scaling */
  #projectModal .modal-body img {
    max-height: 70vh !important;
    width: 100%;
    object-fit: contain;
  }
}
