/* Quotation Styling */
.quote-text {
position: relative;
font-style: italic;
font-size: 1.1rem;
line-height: 1.9;
padding: 1.5rem 2rem;
color: #333;
max-width: 900px;
margin: auto;
text-align: center;
}

.quote-text::before,
.quote-text::after {
position: absolute;
font-family: Georgia, serif;
font-size: 60px;
color: #1e2be5ff;
opacity: 0.25;
line-height: 1;
}

.quote-text::before {
content: "“";
top: -15px;
left: 10px;
}

.quote-text::after {
content: "”";
bottom: -10px;
right: 10px;
}


/* overlay layout */
  #loading-overlay {
    position: fixed;              /* covers viewport to avoid layout shifts */
    inset: 0;                     /* top:0 right:0 bottom:0 left:0 */
    display: none;                /* hidden by default */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    pointer-events: none;         /* allow clicks to pass when hidden */
  }
  #loading-overlay[aria-hidden="false"] {
    display: flex;
    pointer-events: auto;         /* block interaction while visible */
  }

  .loading-box {
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-width: 220px;
  }

  /* simple spinner_sub */
  .spinner_sub_sub {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.12);
    border-top-color: rgba(0,0,0,0.65);
    animation: spin 0.9s linear infinite;
    flex: 0 0 28px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .loading-text {
    font-size: 0.95rem;
    line-height: 1;
    color: #1a1a1a;
    max-width: 40ch;
  }

  /* small responsive tweak so overlay doesn't cover important UI on small screens */
  @media (max-width: 480px) {
    .loading-box { min-width: 160px; padding: .75rem; gap:.5rem; }
    .loading-text { font-size: .9rem; }
  }
/* Intro Section */
section.intro {
font-size: 1.05rem;
line-height: 1.8;
text-align: justify;
}

/* Reduce spacing between intro and SDG grid */
section.intro {
padding: 1.5rem 0 1rem 0; /* smaller bottom padding */
}

/* Correct SDG Grid Spacing */
section.goal_sec {
background: #f8f9fa;
padding: 2rem 0; /* give breathing space */
margin-top: 0 !important; /* ensure it's not overlapped */
position: relative;
z-index: 1; /* bring above any banner overlay */
}

/* SDG Grid */
.goal_sec {
background: #f8f9fa;
}
.goal_sec_box {
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
border-radius: 8px;
overflow: hidden;
}
.goal_sec_box img {
width: 100%;
border-radius: 8px;
}
.goal_sec_box:hover {
transform: translateY(-6px);
box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* About SDGs Section */
.sdgs_main_sec {
padding: 3rem 0;
background-color: #fff;
}
.sdgs_main_sec h2 {
color: #0f3db8;
font-weight: 700;
margin-bottom: 1rem;
}
.sdgs_main_sec p {
text-align: justify;
margin-bottom: 1rem;
font-size: 1.05rem;
}

/* Container */
.annual_main_sec {
padding: 60px 0;
background: #fff;
}

/* Title */
.annual_main_title h2 {
font-size: 26px;
color: #000;
font-weight: 600;
border-bottom: 2px dotted #0f3db8;
display: inline-block;
padding-bottom: 5px;
margin-bottom: 30px;
}

/* Link wrapper */
.annual_report_link {
text-decoration: none;
}

/* Report Box */
.annual_report_box {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
background: #f8f8f8;
border: 2px solid transparent;
border-radius: 14px;
padding: 20px 30px;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image */
.annual_report_box img {
max-width: 150px;
height: auto;
display: block;
}

/* Year Text */
.annual_year_text {
color: #d71920;
font-weight: 700;
font-size: 20px;
margin: 0;
}

/* Hover lift */
.annual_report_box:hover {
transform: translateY(-6px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Left and right border animation */
.annual_report_box::before,
.annual_report_box::after {
content: "";
position: absolute;
top: 10%;
bottom: 10%;
width: 3px;
background: #e51e25;
transform: scaleY(0);
transition: transform 0.4s ease;
border-radius: 2px;
}

.annual_report_box::before {
left: 0;
transform-origin: top;
}

.annual_report_box::after {
right: 0;
transform-origin: bottom;
}

.annual_report_box:hover::before {
transform: scaleY(1);
}

.annual_report_box:hover::after {
transform: scaleY(1);
transition-delay: 0.15s;
}

/* Responsive */
@media (max-width: 576px) {
.annual_report_box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
}
}

.heading h2 {
font-size: 26px;
color: #000;
font-weight: 600;
border-bottom: 2px dotted #0f3db8;
display: inline-block;
padding-bottom: 5px;
margin-bottom: 30px;
padding-left:10px;
}
.sdgs_main_sec h2 {
color: #0f3db8;
font-weight: 700;
margin-bottom: 1rem;
}
.annual_main_title h2 {
font-size: 26px;
color: #000;
font-weight: 600;
border-bottom: 2px dotted #0f3db8;
display: inline-block;
padding-bottom: 5px;
margin-bottom: 30px;
}
.table-bg{
    background-color: #f1f1f1;
    color: #000;
}
.table-bg:hover{
    background-color: #c7d6ff;
    color: #000;
}
tbody>tr:hover{
    background-color: #c7d6ff !important;
    color: #000 !important;
}
.admission_contact {
white-space: nowrap;
}
.admission_contact_heading {
padding-left: .25rem;
font-size:16px bold!important ;
}
.admission_contact_heading a{
background-color: #0f3db8 !important;
color:white !important;
padding:.4rem;
border-radius: 25px;
padding-left:.7rem;
padding-right:.7rem;
}
.bg-color{
    background-color: #dcf1fe;
}
.event-grid {
margin-top: 10px;
}
.event-card {
display: block;
text-decoration: none;
color: #000;
background: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
transition: all 0.3s ease;
border: 1px solid #d3d3d3; /* Light grey border */
}
.event-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.event-thumb img {
width: 100%;
height: 250px;
object-fit: cover;
}
.event-content {
padding: 15px;
background-color: #f5f7ff;
}
.event-content h5 {
font-size: 16px;
font-weight: 600;
color: #0f3db8;
}
@media (max-width: 767px) {
.event-thumb img {
    height: 200px;
}
}

/* ===== Added CSS Fixes ===== */
/* Make the Events heading area centered and shorter */
.heading {
    text-align: left;
    margin-left: 5%; /* optional: small indent from the left edge */
}

.heading h2 {
    border-bottom: 2px dotted #0f3db8;
    padding: 0 10px 5px 10px;
    margin: 30px 0;   /* ✅ removed auto to align left */
    display: inline-block;
}

/* Shorten the "2024-2025" bar width and center it */
.heading-info {
    text-align: center;
    padding: 20px 0;
}

.heading-info h1 {
    background-color: #0f3db8;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    width: 90%;              /* ✅ make it 80% width */
    padding: 12px 0;         /* increase padding for height */
    border-radius: 6px;
    margin: 0 auto;
    text-align: center;
}
/* ==== Equal-height event cards ==== */
.event-grid .col-md-4,
.event-grid .col-sm-6 {
    display: flex;              /* make each column a flex container */
}

.event-card {
    display: flex;              /* card itself is flex */
    flex-direction: column;
    height: 100%;               /* fill full column height */
}

.event-thumb {
    flex: 0 0 auto;             /* image keeps its fixed height */
}

.event-content {
    flex: 1 1 auto;             /* content stretches to fill */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#posts .no-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #555;
}
.event-grid .col-md-4,
.event-grid .col-sm-6 {
    margin-bottom: 30px;   /* increase or decrease as needed */
}