.login-box {
    margin: 100px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    position: relative;
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.2),
      0 0 0 10px rgba(255, 255, 255, 0.15),
      0 0 0 15px rgba(255, 255, 255, 0.1),
      0 0 0 20px rgba(255, 255, 255, 0.05);
  }


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');

.branding .btc-title {
    font-size: 34px;
    font-weight: 700;
    color: #056bca;
    margin-bottom: 5px;
    letter-spacing: -0.5px; /* Inter looks great with slightly tighter spacing */
    text-align: center;
    font-family: 'Bodoni MT Condensed', sans-serif;
}
  .branding {
    width: 100%;
    background: rgba(252, 252, 252, 0.719);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 40px;
    display: inline-block;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  

  .about-bg {
    position: relative;
    padding: 80px 0;

    /* Background image */
    background-image: url("/static/img/b-dance.jpg");
    background-position: top center;
    /* better for tall dancing images */
    background-repeat: no-repeat;
    background-size: cover;
    /* responsive full coverage */
    background-attachment: scroll;
    /* FIXES all issues */
  }

  /* White blur overlay */
  .about-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(2px);
    z-index: 1;
  }

  /* All content above overlay */
  .about-bg * {
    position: relative;
    z-index: 2;
  }

  .gallery-bg {
    background: url("/static/img/weave4.png") center center / cover no-repeat fixed;
    position: relative;
    padding: 50px 0;
  }

  .gallery-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(0.5px);
    z-index: 1;
  }

  /* Bring all content above overlay */
  .gallery-bg .container,
  .gallery-bg .row,
  .gallery-bg .stat-box,
  .gallery-bg .value-card {
    position: relative;
    z-index: 2;

  }

  .event-bg {
    position: relative;
    padding: 120px 0;
    background-image: url("/static/img/Handloom.jpg");
    background-position: center top;
    /* Better framing for tall images */
    background-repeat: no-repeat;
    background-size: cover;
    /* Makes image fit screen proportionally */
    background-attachment: scroll;
    /* Avoids clipping issues on many browsers */
  }

  /* White blur overlay */
  .event-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    z-index: 1;
  }

  /* Bring content above overlay */
  .event-bg>* {
    position: relative;
    z-index: 2;
  }

  /* Bring all content above overlay */
  .event-bg .container,
  .event-bg .row,
  .event-bg .stat-box,
  .event-bg .value-card {
    position: relative;
    z-index: 2;

  }

  /* Section Header */
  .subtitle {
    color: #444;
    font-size: 16px;
    margin-top: -10px;
  }

  /* Glass Card */
  .glass-card {
    background: rgba(9, 181, 121, 0.553);
    border-radius: 18px;
    padding: 25px;
    color: #000;
    transition: .3s ease;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }

  .glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }

  /* Date Badge */
  .event-date {
    background: #0d3b66;
    color: #fff;
    border-radius: 14px;
    padding: 12px 15px;
    text-align: center;
    width: 90px;
    float: left;
    margin-right: 20px;
    font-weight: bold;
  }

  .event-date .month {
    font-size: 14px;
    opacity: 0.85;
  }

  .event-date .day {
    font-size: 32px;
    line-height: 1;
  }

  .event-date .year {
    font-size: 13px;
    opacity: 0.7;
  }

  /* Event Content */
  .event-title {
    margin-top: 10px;
    font-weight: 700;
    color: #0d3b66;
  }

  .event-desc {
    color: #333;
    line-height: 1.6;
    margin-top: 10px;
  }

  /* Event Tags */
  .event-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
  }

  /* Tag Colors */
  .academic {
    background: #0077b6;
  }

  .workshop {
    background: #ff6f00;
  }

  .arts {
    background: #6a0572;
  }

  .training {
    background: #008f39;
  }

  /* Meta Info */
  .event-meta {
    margin-top: 12px;
  }

  .meta-item {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
  }

  .meta-item i {
    margin-right: 6px;
    color: #0d3b66;
  }

  /* Buttons */
  .btn-learn-more {
    background: #0d3b66;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    display: inline-block;
    transition: .3s;
    text-decoration: none;
  }

  .btn-learn-more:hover {
    background: #092c4d;
  }

  .btn-view-all {
    background: #ffb703;
    color: black;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
  }

  .btn-view-all:hover {
    background: #e09c02;
  }

  .about-optical {
    background: rgba(255, 255, 255, 0.068);
    /* transparent white */
    backdrop-filter: blur(12px);
    /* strong optical blur */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* soft border */
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.08),
      0 0 0 10px rgba(255, 255, 255, 0.2);
    /* glow edge */

  }

  /* Title + text style */
  .stats-description {
    font-size: 16px;
    opacity: .85;
    line-height: 1.6;
  }

  /* Stats Cards */
  .stats-card {
    background: white;
    border-radius: 12px;
    text-align: center;
    padding: 25px 15px;
    transition: .3s ease;
  }

  .stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  }

  .stats-icon {
    font-size: 32px;
    color: #1c4c82;
    margin-bottom: 10px;
  }

  .stats-number {
    font-size: 28px;
    font-weight: bold;
    color: #1c4c82;
  }

  .stats-label {
    font-size: 14px;
    color: #444;
  }

  /* Gallery */
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
  }

  .gallery-item img {
    transition: .4s ease;
  }

  .gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(85%);
  }

  .gallery-caption {
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  }

  /* --- Featured Programs Background (only background transparent) --- */

  /* Glass Card */
  .glass-card {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  /* Headings */
  .section-heading {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0d3b66;
  }

  /* Paragraph styling */
  .about-text {
    text-align: justify;
    color: #000;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
  }

  /* Icon Cards */
  .value-card {
    transition: .3s ease;
  }

  .value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  }

  .value-icon {
    font-size: 36px;
    color: #0d3b66;
    margin-bottom: 10px;
  }

  /* Smooth image hover */
  .fade-img {
    transition: .4s ease;
  }

  .fade-img:hover {
    transform: scale(1.04);
    filter: brightness(90%);
  }

  #featured-programs {
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  /* BACKGROUND LAYER */
  #featured-programs::before {
    content: "";
    position: absolute;
    inset: 0;

    /* Left + Right background images */
    background-image: url("/static/img/motif1.png");

    /* repeat horizontally & vertically */
    background-repeat: repeat, repeat;

    /* left → first image, right → second image */
    background-position: left top, right top;

    /* make image smaller */
    background-size: 60px 60px;

    /* make background transparent */
    opacity: 0.12;
    /* adjust 0.1 – 0.5 */
    filter: grayscale(100%);
    z-index: -1;
    /* sits behind content */
  }

  /* Keep CONTENT above background */
  #featured-programs>* {
    position: relative;
    z-index: 2;
  }

  .btc-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #222;
  }

  

  .view-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    margin-top: 8px;
    display: inline-block;
  }

  /* ================= NEWS & EVENTS SECTION ================= */

  .news-events-bg {
    background: url("/static/img/Handloom.jpg") center / cover no-repeat;
    position: relative;
    padding: 90px 0;
  }

  .news-events-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(3px);
    z-index: 1;
  }

  .news-events-bg * {
    position: relative;
    z-index: 2;
  }

  /* Glass Card */
  .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
  }

  /* Headings */
  .section-heading {
    font-size: 34px;
    font-weight: 800;
    color: #0d3b66;
  }

  /* ================= NEWS ================= */
  .news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: .3s ease;
    height: 100%;
  }

  .news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  }

  .news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .news-content {
    padding: 16px;
  }

  .news-date {
    font-size: 13px;
    color: #777;
  }

  .news-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d3b66;
  }

  .read-more {
    font-size: 14px;
    font-weight: 600;
    color: #0d3b66;
    text-decoration: none;
  }

  /* ================= EVENTS ================= */
  .event-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    transition: .3s ease;
  }

  .timeline-item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
  }

  .timeline-date {
    width: 70px;
    height: 70px;
    background: #0d3b66;
    color: #fff;
    border-radius: 14px;
    text-align: center;
    padding-top: 10px;
    font-weight: bold;
  }

  .timeline-date span {
    font-size: 24px;
    display: block;
  }

  .timeline-date small {
    font-size: 12px;
    opacity: .85;
  }

  .timeline-content h6 {
    margin: 0;
    font-weight: 700;
    color: #0d3b66;
  }

  .timeline-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
  }

  .btn-view-all {
    background: #ffb703;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
  }

  .pattern-card {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    height: 100%;
  }

  /* Header */
  .pattern-header {
    background: #11c5f5;
    color: #000;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    font-size: 16px;
  }

  /* Image */
  .pattern-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }

  .pattern-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  /* Details */
  .pattern-details {
    background: #fff7f3;
    padding: 12px 14px;
  }

  .pattern-type {
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
  }

  /* Footer */
  .pattern-footer {
    background: #11c5f5;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
  }

  .pattern-footer i {
    margin-right: 4px;
  }

  .pattern-footer a {
    color: #000;
  }
  /* Card Styling */
.info-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* Header */
.card-header {
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  letter-spacing: 1px;
}

.news .card-header {
  background: linear-gradient(135deg, #007bff, #00c6ff);
}

.events .card-header {
  background: linear-gradient(135deg, #28a745, #8fd3f4);
}

.notices .card-header {
  background: linear-gradient(135deg, #dc3545, #ff758c);
}

/* Marquee */
.marquee-container {
    height: 180px;              /* adjust as needed */
    overflow: hidden;
    position: relative;
}

.marquee-content {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: scrollUp 15s linear infinite;
  box-shadow: inset 0 10px 8px -8px rgba(0,0,0,0.1), inset 0 -10px 8px -8px rgba(0,0,0,0.1);
  
}

.marquee-content li {
  padding: 10px;

  border-left: 4px solid #0d6efd;
  background: #f8f9fa;
  border-radius: 8px;
}

.events .marquee-content li {
  border-left-color: #28a745;
}

.notices .marquee-content li {
  border-left-color: #dc3545;
}

.marquee-content strong {
  display: block;
  font-size: 14px;
  color: #212529;
}

.marquee-content small {
  color: #6c757d;
}

/* Animation */
@keyframes scrollUp {
 0% {
        transform: translateY(100%);   /* start BELOW container */
    }
    100% {
        transform: translateY(-100%);  /* exit ABOVE container */
    }
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Mobile */
@media (max-width: 768px) {
  .marquee-container {
    height: 150px;
  }
}
  .stat-col {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}

@media (max-width: 1200px) {
  .stat-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 768px) {
  .stat-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .stat-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.stat-number {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-title {
    font-size: 0.85rem;
    opacity: 0.85;
}

 /* GRID FIX */
.stat-col {
    flex: 1 1 220px;
    max-width: 260px;
}

/* CARD */
.stat-card {
    position: relative;
    border-radius: 14px;
    padding: 18px 18px 16px;
    color: #fff;
    min-height: 135px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.2);
}

/* ICON */
.stat-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.6rem;
    opacity: 0.25;
}

/* COUNT */
.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* TITLE */
.stat-title {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* VIEW LINK */
.view-link {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.view-link:hover {
    text-decoration: underline;
}

/* SUB COUNTS */
.stat-sub {
    margin-top: 6px;
}

.stat-sub .badge {
    font-size: 0.65rem;
    padding: 4px 7px;
    border-radius: 6px;
}

/* GRADIENTS */
.bg-grad-primary {
    background: linear-gradient(135deg, #4e73df, #224abe);
}
.bg-grad-warning {
    background: linear-gradient(135deg, #f6c23e, #dda20a);
}
.bg-grad-info {
    background: linear-gradient(135deg, #36b9cc, #258391);
}
.bg-grad-success {
    background: linear-gradient(135deg, #1cc88a, #13855c);
}
.bg-grad-danger {
    background: linear-gradient(135deg, #e74a3b, #be2617);
}