
:root {
  --primary-color: #800000;
  --secondary-color: #f5e5e5;
  --accent-color: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--accent-color);
}

a {
  text-decoration: none;
}

.footer-bg {
  background: var(--primary-color);
}


.text-primary, 
a:hover {
  color: var(--primary-color) !important;
}

.header-top {
  background: var(--primary-color);
  color: var(--accent-color);
  font-size: 0.9rem;
  padding: 5px 0;
  position: relative;
}

.header-top i {
  font-size: 1rem;
}

.header-top .badge {
  font-size: 0.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  background: var(--secondary-color);
  color: var(--primary-color);
}

.navbar {
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  background: var(--accent-color);
}

.navbar-brand span {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.navbar-brand small {
  font-size: 0.8rem;
  line-height: 1;
  color: var(--secondary-color);
}

.light-bg {
  background: var(--secondary-color); /* light theme bg */
  
}

.sdg-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.75rem;
}

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

.sdg-card img {
  height: 120px;
  object-fit: contain;
}


/* Make menu items smaller */
.navbar-nav .nav-link {
  font-size: 0.85rem; 
  padding: 0.4rem 0.8rem; 
  color: var(--primary-color);
}

.navbar-nav .nav-link:hover {
  background: var(--secondary-color);
  border-radius: 0.25rem;
}

/* Slider */
.carousel-inner img {
  width: 100%;
}

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

/* Feature Cards */
.feature-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Image container with subtle zoom effect */
.card-img-container {
  overflow: hidden;
}

.card-img-container img {
  transition: transform 0.4s ease;
}

.feature-card:hover .card-img-container img {
  transform: scale(1.05);
}

/* Theme button */
.btn-theme {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-theme-light {
  background-color: var(--light-color);
  color: var(--accent-color);
  border-radius: 50px;

  border-width: 1.5px;
  border-style: solid;
  border-color: var(--primary-color);

  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}


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



/* Feature Icon */
.feature-icon {
  color: var(--primary-color);
}

/* News Ticker */
.news-ticker {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.news-items {
  display: flex;
  flex-direction: column;
  animation: scrollUp 15s linear infinite;
}

.news-ticker:hover .news-items {
  animation-play-state: paused;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: var(--accent-color);
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.news-item:hover {
  background-color: var(--secondary-color);
  transform: translateX(5px);
}

/* Infinite scroll animation */
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* 4 Pillars Cards */
.pillar-link {
  text-decoration: none;
  color: inherit;
  position: relative; /* ensures z-index works */
}

.pillar-card {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s;
  overflow: hidden;
  z-index: 0; /* default */
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease;
}

.pillar-card h5,
.pillar-card p {
  position: relative;
  z-index: 1;
}

.pillar-link:hover .pillar-card {
  transform: scale(1.05);
  z-index: 9999; /* bring to front */
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.pillar-link:hover .pillar-card::before {
  background: rgba(128, 0, 0, 0.6); /* mehroon overlay */
}

.container-class { 
  position: relative; 
  z-index: 0; 
}

/* Team */
.team-member img {
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.05);
}

.team-member {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.team-img {
  object-fit: cover;
  height: 350px;
  width: 100%;
  border-bottom: 3px solid var(--primary-color);
}

.team-btn {
  border-radius: 0.5rem;
  background: var(--primary-color);
  color: var(--accent-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-btn:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.card-footer span {
  transition: color 0.3s ease;
  cursor: pointer;
}

.card-footer span:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--accent-color);
  
}

.footer a {
  color: var(--secondary-color);
}

.footer a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.credit-footer {
  font-size: 0.9rem;
  background: var(--secondary-color); /* light mehroon */
  color: var(--primary-color);        /* mehroon text */
}

.review-card {
  min-height: 320px; /* adjust based on content */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Scrollable boxes */
.scrollable {
  max-height: 320px;
  overflow-y: auto;
}



.cta-btn {
  font-size: 1.2rem;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-btn:hover {
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

.acn-btn {
  font-size: 1.0rem;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-btn:hover {
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

.stats-box {
		text-align: center;
		padding: 30px 20px;
		border-radius: var(--border-radius);
		background-color: white;
		box-shadow: var(--shadow);
		height: 100%;
		transition: all 0.3s ease;
		}
		.stats-box:hover {
		transform: translateY(-5px);
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
		}
		.stats-number {
		font-size: 2.5rem;
		font-weight: 700;
		color: var(--primary-color);
		margin-bottom: 10px;
		}
		.stats-label {
		font-size: 1rem;
		color: var(--dark-color);
		text-transform: uppercase;
		letter-spacing: 1px;
		}
		.activity-card {
		border-left: 4px solid var(--primary-color);
		}
		.activity-icon {
		font-size: 2rem;
		color: var(--primary-color);
		margin-bottom: 15px;
		}
		.event-card {
		border-top: 4px solid var(--secondary-color);
		}
		.event-date {
		display: inline-block;
		background-color: var(--primary-color);
		color: white;
		padding: 10px 15px;
		border-radius: var(--border-radius);
		text-align: center;
		margin-bottom: 15px;
		}
		.event-day {
		font-size: 1.5rem;
		font-weight: 700;
		display: block;
		}
		.event-month {
		font-size: 0.9rem;
		text-transform: uppercase;
		display: block;
		}
		.gallery-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 15px;
		margin-top: 30px;
		}
		.gallery-item {
		border-radius: var(--border-radius);
		overflow: hidden;
		height: 200px;
		position: relative;
		cursor: pointer;
		}
		.gallery-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s ease;
		}
		.gallery-item:hover img {
		transform: scale(1.1);
		}
		.gallery-overlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(44, 90, 160, 0.7);
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		transition: opacity 0.3s ease;
		}
		.gallery-item:hover .gallery-overlay {
		opacity: 1;
		}
		.gallery-overlay i {
		color: white;
		font-size: 2rem;
		}
		.testimonial-card {
		background-color: white;
		padding: 30px;
		border-radius: var(--border-radius);
		box-shadow: var(--shadow);
		position: relative;
		margin-top: 40px;
		}
		.testimonial-card:before {
		content: '"';
		position: absolute;
		top: -30px;
		left: 30px;
		font-size: 5rem;
		color: var(--primary-color);
		opacity: 0.2;
		font-family: serif;
		}
		
		
		.student-img {
		width: 80px;
		height: 80px;
		border-radius: 50%;
		object-fit: cover;
		margin-right: 20px;
		border: 3px solid var(--light-color);
		box-shadow: var(--shadow);
		}


.color-blue { color: #308CDB !important; }
.color-red { color: #dc3545 !important; }
.color-green { color: #28a745 !important; }
.color-yellow { color: #ffc107 !important; }
.color-orange { color: #fd7e14 !important; }
.color-purple { color: #6f42c1 !important; }
.color-pink { color: #e83e8c !important; }
.color-teal { color: #20c997 !important; }
.color-cyan { color: #17a2b8 !important; }
.color-gray { color: #6c757d !important; }
.color-dark { color: #343a40 !important; }
.color-black { color: #000 !important; }
.color-white { color: #fff !important; }

/* Background Colors */
.bg-blue { background-color: #007bff; }
.bg-red { background-color: #dc3545; }
.bg-green { background-color: #28a745; }
.bg-yellow { background-color: #ffc107; }
.bg-orange { background-color: #fd7e14; }
.bg-purple { background-color: #6f42c1; }
.bg-pink { background-color: #e83e8c; }
.bg-teal { background-color: #20c997; }
.bg-cyan { background-color: #17a2b8; }
.bg-gray { background-color: #6c757d; }
.bg-dark { background-color: #343a40; }
.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }

/* Optional hover versions */
.bg-blue:hover { background-color: #0056b3; }
.bg-red:hover { background-color: #a71d2a; }
.bg-green:hover { background-color: #1e7e34; }
.bg-yellow:hover { background-color: #d39e00; }
