:root {
  --fixed-section-height: 420px; /* change this value as you need */
}

/* New green theme */
.theme-title {
  color: #3a9611;
}

.btn-outline-theme {
  border-color: #3a9611;
  color: #3a9611;
}
.btn-outline-theme:hover {
  background-color: #3a9611;
  color: #fff;
}

.institute-section {
  background-color: #ffffff;
  border-top: 1px solid #c8e6c9;
}
.institute-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}
.institute-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Equal height for carousel and notice board */
.school-carousel,
.notice-board {
  height: var(--fixed-section-height);
  min-height: var(--fixed-section-height);
  max-height: var(--fixed-section-height);
}

/* Ensure carousel items stretch fully */
.school-carousel .carousel-inner,
.school-carousel .carousel-item {
  height: 100%;
}

/* Make carousel images fill area without distortion */
.school-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Notice Board Container */
.notice-board {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
}

/* Header */
.notice-header {
  background: linear-gradient(to right, #3a9611, #a7e75d);
  padding: 12px 15px;
}
.notice-header h5 {
  margin: 0;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Notice List */
.notice-body {
  padding: 15px;
  height: calc(var(--fixed-section-height) - 54px);
  overflow-y: auto;
}
.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notice-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eaeaea;
}
.notice-list li:last-child {
  border-bottom: none;
}

/* Date Style */
.notice-date {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  margin-right: 6px;
}

/* Notice Title Link */
.notice-title {
  text-decoration: none;
  font-weight: 500;
  color: #0a2e57;
  transition: color 0.2s;
}
.notice-title:hover {
  color: #3a9611;
  text-decoration: underline;
}

/* Empty State */
.no-notice {
  color: #999;
  text-align: center;
  padding: 15px;
}

.list-group-item a {
  color: #3a9611;
  text-decoration: none;
}
.list-group-item a:hover {
  text-decoration: underline;
}

.section-divider {
  position: relative;
  text-align: center;
}

.divider-bar {
  height: 60px;
  background: linear-gradient(to right, #3a9611, #a7e75d);
}

.divider-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 10px 20px;
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

/* height fix using your existing variable */
@media (min-width: 768px){
  .fixed-height-custom {
    min-height: var(--fixed-section-height);
  }
}

.link-card-accent{
  position: relative;
  overflow: hidden;
}

.links-header{
  padding: 14px 16px;
  background: linear-gradient(to right, #3a9611, #a7e75d);
  color: #fff;
}

.link-list-modern .list-group-item{
  border: none;
  background: transparent;
}

.link-list-modern .list-group-item a{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease, background .25s ease;
}

.link-list-modern .icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f3f6f0;
  border-radius: 8px;
  font-size: 18px;
}

.link-list-modern .list-group-item:hover a{
  color: #fff;
  background: linear-gradient(90deg, #3a9611, #a7e75d);
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(58,150,17,0.12);
}

.custom-close-btn:hover {
  background-color: red !important;
  color: #fff !important;
}


/* Add these styles to your homepage.css file */

/* Updated Welcome Button - keep your existing style */
.btn-welcome {
  border: none;
  background: linear-gradient(90deg, #3a9611, #a7e75d);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-welcome:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58,150,17,0.3);
  color: #fff !important;
  text-decoration: none;
}

.btn-welcome:focus,
.btn-welcome:active {
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(58,150,17,0.5);
  outline: none;
}

/* Override Bootstrap primary button to match your design */
.btn-primary {
  border: none;
  background: linear-gradient(90deg, #3a9611, #a7e75d);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58,150,17,0.3);
  color: #fff !important;
  background: linear-gradient(90deg, #3a9611, #a7e75d);
  border-color: transparent;
}

.btn-primary:focus,
.btn-primary:active {
  color: #fff !important;
  background: linear-gradient(90deg, #3a9611, #a7e75d) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(58,150,17,0.5) !important;
  transform: translateY(-2px);
}

/* Small button variant */
.btn-sm.btn-primary,
.btn-sm.btn-welcome {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Secondary button to match theme */
.btn-secondary {
  border: none;
  background: linear-gradient(90deg, #6c757d, #9ca3af);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108,117,125,0.3);
  color: #fff !important;
  background: linear-gradient(90deg, #6c757d, #9ca3af);
  border-color: transparent;
}

.btn-secondary:focus,
.btn-secondary:active {
  color: #fff !important;
  background: linear-gradient(90deg, #6c757d, #9ca3af) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(108,117,125,0.5) !important;
  transform: translateY(-2px);
}

/* Modal close button enhancement */
.btn-close {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-close:hover {
  transform: scale(1.1);
  background-color: rgba(255, 0, 0, 0.1);
}

/* Ensure all buttons have consistent styling */
button,
.btn {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Carousel control buttons enhancement */
.carousel-control-prev,
.carousel-control-next {
  transition: transform 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  transform: scale(1.1);
}

/* Fix for button focus states */
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(58, 150, 17, 0.25);
}