/* CIJ Brand Colors */
:root {
  --cij-primary: #29166F;
  --cij-secondary: #0093DD;
  --cij-tertiary: #DEDEDC;
}

/* General Reset */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 2px solid var(--cij-tertiary);
}

header .brand-text .title {
  color: var(--cij-primary);
  font-weight: bold;
  font-size: 20px;
}

header .brand-text .subtitle {
  color: var(--cij-secondary);
  font-weight: bold;
  font-size: 20px;
}

/* Navbar */
.navbar {
  background-color: #fff !important;
}

.navbar-nav .nav-link {
  color: var(--cij-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--cij-secondary);
}

.dropdown-menu {
  border-radius: 0;
  border: 1px solid var(--cij-tertiary);
}

.dropdown-item:hover {
  background-color: var(--cij-primary);
  color: #fff;
}
.cij-navbar {
  border-bottom: 2px solid var(--cij-primary); /* #29166F */
}
/* Social Icons */
header .social-icons a {
  color: var(--cij-secondary);
  font-size: 18px;
  transition: color 0.3s ease;
}

header .social-icons a:hover {
  color: var(--cij-primary);
}

/* Dark overlay for readability */
.carousel-caption {
  background: rgba(0, 0, 0, 0.55);
  padding: 30px;
  border-radius: 8px;
}

/* Custom CIJ Button */
.btn-cij-primary {
  background-color: var(--cij-primary);
  color: #fff;
  border: none;
}

.btn-cij-primary:hover {
  background-color: var(--cij-secondary);
  color: #fff;
}

/* Carousel height consistency */
.carousel-item img {
  height: 85vh;
  object-fit: cover;
}
/* CIJ Outline Button */
.btn-outline-secondary {
  border: 1px solid var(--cij-primary);
  color: var(--cij-primary);
}

.btn-outline-secondary:hover {
  background-color: var(--cij-primary);
  color: #fff;
}
/* Card Base */
.cij-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 4px solid var(--cij-primary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cij-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Header Tag */
.cij-card-header {
  background: var(--cij-primary);
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  font-size: 14px;
}

/* Image Overlay */
.cij-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 22, 111, 0.7); /* CIJ primary overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.position-relative:hover .cij-overlay {
  opacity: 1;
}
/* Author Cards */
.author-card {
  background: #fff;
  padding: 20px;
  border-left: 4px solid var(--cij-secondary);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.author-card h5 {
  margin-bottom: 10px;
  color: var(--cij-primary);
}

.author-card p {
  font-size: 14px;
  margin-bottom: 10px;
}

.author-card a {
  color: var(--cij-secondary);
  font-weight: 500;
  text-decoration: none;
}

.author-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
/* Card Styling */
.cij-service-card {
  background: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-top: 4px solid var(--cij-primary);
}

.cij-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Icon Box */
.icon-box {
  font-size: 40px;
  color: var(--cij-secondary);
}

/* Button */
.btn-outline-cij {
  border: 1px solid var(--cij-primary);
  color: var(--cij-primary);
}

.btn-outline-cij:hover {
  background-color: var(--cij-primary);
  color: #fff;
}
/* Testimonial Card */
.cij-testimonial {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  position: relative;
}

/* Quote styling */
.cij-testimonial p {
  font-style: italic;
  color: #555;
}

/* Carousel controls color fix */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--cij-primary);
  border-radius: 50%;
}
.testimonial-img {
  width: 100%;
  max-width: 600px;
  height: 400px;          /* keeps 600x400 ratio feel */
  object-fit: cover;      /* prevents distortion */
  border-radius: 6px;     /* soft corners */
}
/* Footer */
footer {
  background-color: var(--cij-primary);
  color: #fff;
}

footer a {
  color: var(--cij-secondary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* FAQ Styling */
.accordion-button {
  font-weight: 500;
  color: var(--cij-primary);
}

.accordion-button:not(.collapsed) {
  background-color: var(--cij-tertiary);
  color: var(--cij-primary);
}

.accordion-body {
  font-size: 15px;
  line-height: 1.6;
}
.accordion {
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border: 1px solid #dee2e6;
}

.accordion-button {
  background-color: #f8f9fa;
}
/* About Page Enhancements */
.border {
  border-color: var(--cij-tertiary) !important;
}

.btn-primary {
  background-color: var(--cij-primary);
  border-color: var(--cij-primary);
}

.btn-primary:hover {
  background-color: var(--cij-secondary);
  border-color: var(--cij-secondary);
}

.btn-outline-primary {
  color: var(--cij-primary);
  border-color: var(--cij-primary);
}

.btn-outline-primary:hover {
  background-color: var(--cij-primary);
  color: #fff;
}
/* Journal Slider */
.journal-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.journal-track {
  display: flex;
  animation: scrollJournals 25s linear infinite;
}

.journal-item img {
  height: 160px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Animation */
@keyframes scrollJournals {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Investor Page Enhancements */
.border {
  border-color: var(--cij-tertiary) !important;
}

h3 {
  font-weight: 600;
}

.btn-light {
  color: var(--cij-primary);
  font-weight: 500;
}

.btn-light:hover {
  background-color: var(--cij-secondary);
  color: #fff;
}
/* Open Books Page Enhancements */
.border {
  border-color: var(--cij-tertiary) !important;
}

h3, h4, h5 {
  font-weight: 600;
}
/* Partnership Page Enhancements */
.border {
  border-color: var(--cij-tertiary) !important;
}

h4 {
  font-weight: 600;
}

.btn-light {
  color: var(--cij-primary);
  font-weight: 500;
}

.btn-light:hover {
  background-color: var(--cij-secondary);
  color: #fff;
}
/* Impact Report Page */
.border {
  border-color: var(--cij-tertiary) !important;
}

h3 {
  font-weight: 600;
}

.btn-light {
  color: var(--cij-primary);
  font-weight: 500;
}

.btn-light:hover {
  background-color: var(--cij-secondary);
  color: #fff;
}
/* Testimonial Page */
.border {
  border-color: var(--cij-tertiary) !important;
}

.fst-italic {
  font-size: 15.5px;
  line-height: 1.6;
}

h3 {
  font-weight: 600;
}

.btn-light {
  color: var(--cij-primary);
  font-weight: 500;
}

.btn-light:hover {
  background-color: var(--cij-secondary);
  color: #fff;
}
/* Testimonial Slider */
#testimonialCarousel {
  max-width: 900px;
  margin: auto;
}

#testimonialCarousel p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 60% 60%;
}
/* Announcement Page */
.border {
  border-color: var(--cij-tertiary) !important;
}

h5 {
  font-weight: 600;
}

.small {
  font-size: 13px;
}
/* Press Page Enhancements */
.border {
  border-color: var(--cij-tertiary) !important;
}

h5 {
  font-weight: 600;
}

a.fw-bold {
  text-decoration: none;
}

a.fw-bold:hover {
  text-decoration: underline;
}
/* Conferences Page */
.border {
  border-color: var(--cij-tertiary) !important;
}

h6 {
  font-weight: 600;
}

ul li {
  margin-bottom: 5px;
}
/* Education Page Enhancements */
.border {
  border-color: var(--cij-tertiary) !important;
}

h6 {
  font-weight: 600;
}

a.fw-bold {
  text-decoration: none;
}

a.fw-bold:hover {
  text-decoration: underline;
}
/* Downloads Page */
.list-group-item {
  border-color: var(--cij-tertiary);
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

h3 {
  font-weight: 600;
}
section h4 {
  border-left: 4px solid var(--cij-secondary);
  padding-left: 10px;
}
/* Floating WhatsApp */
.whatsapp-float img {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}
