:root {
  --primary-color: #0f2b5c; /* Deep Navy from Logo */
  --secondary-color: #2d4a8a; /* Medium Slate Blue from Logo */
  --accent-blue: #00adef; /* Bright Cyan from Logo */
  --accent-red: #ed1c24; /* Vibrant Red from Logo */
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --bg-light: #ffffff;
  --bg-gray: #f4f7f6;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

/* Custom Utilities */
.text-primary-custom { color: var(--primary-color) !important; }
.text-accent-red { color: var(--accent-red) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-gray-custom { background-color: var(--bg-gray) !important; }

/* ============================
   Header Top Bar
   ============================ */
.header-top-bar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a7a 100%);
  padding: 8px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(0, 173, 239, 0.3);
  position: relative;
  z-index: 1031;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-bar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.3px;
}

.top-bar-contact i {
  color: var(--accent-red);
  font-size: 0.78rem;
}

.top-bar-social {
  display: flex;
  gap: 6px;
}

.top-bar-social a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.72rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-social a:hover {
  background-color: var(--accent-red);
  transform: translateY(-2px) scale(1.1);
  border-color: var(--accent-red);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.4);
}

/* ============================
   Navbar Settings
   ============================ */
.navbar {
  padding: 12px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 1030;
}

.navbar-brand img {
  height: 50px;
}

/* AmaderBarirPujo Logo (Right Side) */
.navbar-brand-right {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: auto;
  padding: 2px 0;
  transition: all 0.3s ease;
}

.navbar-brand-right img {
  height: 75px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand-right:hover img {
  transform: scale(1.05);
}

/* Responsive: header top bar */
@media (max-width: 991.98px) {
  .header-top-bar {
    display: none;
  }

  .navbar-brand-right {
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 8px;
    justify-content: center;
  }

  .navbar-brand-right img {
    height: 40px;
  }
}

.nav-link {
  font-weight: 600;
  color: var(--primary-color) !important;
  margin: 0 5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.455em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-item {
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-gray);
  color: var(--accent-red);
  padding-left: 25px;
}

/* CTA Button */
.btn-cta {
  background-color: var(--accent-red);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
}

.btn-cta:hover {
  background-color: #cc0000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
}

.carousel-item {
  height: 85vh;
  min-height: 600px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 42, 90, 0.8), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 10;
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Padding */
.section-padding {
  padding: 80px 0;
}

/* Section Headers */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-red);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title.text-start::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* About Section */
.about-img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.about-img::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent-blue);
  border-radius: 20px;
  z-index: -1;
}

/* Work Areas Cards */
.work-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 15px;
}

.work-card:hover::before {
  height: 100%;
}

.work-card:hover {
  transform: translateY(-10px);
}

.work-card:hover h4, .work-card:hover p {
  color: white !important;
}

.work-icon-box {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 191, 255, 0.1);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
}

.work-card:hover .work-icon-box {
  background-color: white;
  color: var(--primary-color);
}

/* Causes Section */
.cause-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.cause-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.cause-img-wrap {
  position: relative;
  overflow: hidden;
}

.cause-img-wrap img {
  transition: all 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.cause-card:hover .cause-img-wrap img {
  transform: scale(1.1);
}

.cause-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-red);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.cause-body {
  padding: 25px;
}

/* Gallery Section */
.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
  display: block;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 42, 90, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-icon {
  color: white;
  font-size: 2rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-icon {
  transform: translateY(0);
}

/* Footer Section */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0 0 0;
}

.footer-widget h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--accent-red);
  bottom: 0;
  left: 0;
}

.footer-logo {
  max-height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-contact-info li {
  display: flex;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info i {
  color: var(--accent-red);
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-red);
  transform: translateX(5px);
}

.recent-post {
  display: flex;
  margin-bottom: 15px;
}

.recent-post img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 15px;
}

.recent-post-content h5 {
  font-size: 0.9rem;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.recent-post-content h5 a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
  color: var(--accent-red);
}

.recent-post-content span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  background-color: #0e1836;
  padding: 20px 0;
  margin-top: 50px;
}

.copyright-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-red);
  transform: translateY(-3px);
}

/* Page Header */
.page-header {
  padding: 120px 0 80px;
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(26, 42, 90, 0.9), rgba(26, 42, 90, 0.9)), url('../images/hero_culture.png');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: white;
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-nav li {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb-nav li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav li a:hover {
  color: var(--accent-red);
}

.breadcrumb-nav li + li::before {
  content: "/";
  padding: 0 10px;
  color: rgba(255,255,255,0.5);
}

/* Back to Top Button Styling */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-red);
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(237, 28, 36, 0.4);
  transition: var(--transition-smooth);
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
  color: white;
  box-shadow: 0 6px 20px rgba(15, 43, 92, 0.4);
}
