/* ==========================================================================
   IBB Modern UI Overrides + Utilities (from raselemran.css keep-list)
   File: public/frontend/styles/ibb-modern.css
   Load AFTER: main_styles.css, responsive.css, (optional) raselemran.css
   ========================================================================== */

/* -----------------------------
   Design tokens
------------------------------ */
:root{
  --ibb-primary:#0b5d4f;
  --ibb-primary-2:#0f766e;
  --ibb-accent:#f59e0b;

  --ibb-bg:#f6f8fb;
  --ibb-text:#0f172a;
  --ibb-muted:#64748b;

  --ibb-card:#ffffff;
  --ibb-border:#e5e7eb;

  --ibb-radius:16px;
  --ibb-radius-lg:22px;

  --ibb-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --ibb-shadow-2: 0 14px 34px rgba(2, 6, 23, 0.12);
}

/* -----------------------------
   Global base
------------------------------ */
html, body{ height:100%; }
body{
  background: var(--ibb-bg);
  color: var(--ibb-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: var(--ibb-primary-2); }
a:hover{ color: var(--ibb-primary); text-decoration: none; }

.super_container{ background: var(--ibb-bg); }

.page_section{ padding: 56px 0; }
.section_title h1{
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ibb-text);
}
.section_title p{ color: var(--ibb-muted); }

/* Bootstrap alignment polish */
.container{ max-width: 1200px; }
@media (min-width: 1400px){
  .container{ max-width: 1240px; }
}

/* -----------------------------
   Header / Nav (CSS only)
   Works with your existing JS that toggles .header.scrolled
------------------------------ */
.header{
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,0.85);
}
.header.scrolled{ box-shadow: var(--ibb-shadow); }

.logo_container, .logo, .logo a{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.logo img{ height: 44px; width: auto; }

/* Main nav links (covers common template classes) */
.main_nav ul li a,
.main_nav_item a{
  font-weight: 800;
  color: var(--ibb-text) !important;
  opacity: 0.88;
  transition: opacity .15s ease, color .15s ease;
}
.main_nav ul li a:hover,
.main_nav_item a:hover{
  opacity: 1;
  color: var(--ibb-primary-2) !important;
}
.main_nav ul li.active > a,
.main_nav_item.active a{
  opacity: 1;
  color: var(--ibb-primary-2) !important;
}

/* Right-side header buttons (Online Application / E-learning / Journal) */
.header_side a,
.header_side .btn,
.header_side button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,118,110,0.22);
  background: rgba(15,118,110,0.10);
  color: var(--ibb-primary-2) !important;
  font-weight: 900;
  text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.header_side a:hover,
.header_side .btn:hover,
.header_side button:hover{
  transform: translateY(-1px);
  background: rgba(15,118,110,0.16);
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}

/* Mobile hamburger */
.hamburger_container i,
.hamburger_container svg{
  color: var(--ibb-text) !important;
}

/* -----------------------------
   Notice marquee (your existing .notice_marquee + .shrink)
------------------------------ */
.notice_marquee{
  background: linear-gradient(90deg, var(--ibb-primary), var(--ibb-primary-2)) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}
.notice_marquee a{
  color:#fff !important;
  font-weight: 900;
}
.notice_marquee.shrink{ box-shadow: var(--ibb-shadow-2); }

/* -----------------------------
   Buttons
------------------------------ */
.btn{
  border-radius: 12px;
  font-weight: 900;
}
.btn-sm{
  border-radius: 10px;
  font-weight: 900;
}
.btn-success{
  background: var(--ibb-primary-2) !important;
  border-color: var(--ibb-primary-2) !important;
}
.btn-success:hover{
  background: var(--ibb-primary) !important;
  border-color: var(--ibb-primary) !important;
}
.btn-outline-info{
  border-radius: 12px;
  font-weight: 900;
}

/* -----------------------------
   Cards / Tables
------------------------------ */
.card{
  border-radius: var(--ibb-radius);
  border: 1px solid var(--ibb-border);
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
}
.card-header{
  border-top-left-radius: var(--ibb-radius) !important;
  border-top-right-radius: var(--ibb-radius) !important;
}
.table thead th{
  background: #f1f5f9;
  border-color: var(--ibb-border) !important;
  color: var(--ibb-text);
  font-weight: 900;
}
.table td, .table th{ vertical-align: middle; }

/* -----------------------------
   WELCOME: Slider LEFT + Notice RIGHT
   (applies when you use the new grid layout)
------------------------------ */
/* Push the hero block below the fixed header + notice marquee */
.hero_slider_container.ibb-hero-grid{
  margin-top: 150px;   /* adjust: 140–170 depending on your header+marquee height */
  padding: 18px 0 0;
}

/* Mobile */
@media (max-width: 991px){
  .hero_slider_container.ibb-hero-grid{
    margin-top: 130px; /* adjust if needed */
  }
}


/* If old overlay .current still exists inside new grid, hide it */
.hero_slider_container.ibb-hero-grid .current{
  display: none !important;
}

/* Slider card */
.ibb-hero{
  position: relative;
  border-radius: var(--ibb-radius-lg);
  overflow: hidden;
  box-shadow: var(--ibb-shadow);
  background: #0b1220;
  min-height: 520px;
}
.hero_slide{ position: relative; }
.hero_slide_img{
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(1.05);
}

/* Overlay text */
.hero_slide_overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(
    90deg,
    rgba(2,6,23,0.82) 0%,
    rgba(2,6,23,0.22) 60%,
    rgba(2,6,23,0.12) 100%
  );
}
.hero_slide_content{ max-width: 720px; }

.ibb-hero-kicker{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 13px;
}
.slider_title{
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing:-0.03em;
  line-height:1.05;
  font-size: clamp(28px, 3vw, 44px);
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.ibb-hero-sub{
  margin-top: 10px;
  color: rgba(255,255,255,0.86);
  font-size: 15px;
  max-width: 640px;
}

/* Slider arrows */
.hero_slider_left, .hero_slider_right{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#fff;
  font-size: 26px;
  z-index: 5;
  user-select:none;
}
.hero_slider_left{ left: 14px; }
.hero_slider_right{ right: 14px; }

/* Notice card (RIGHT column) */
.ibb-notice-card{
  border-radius: 18px;
  background: var(--ibb-card);
  border: 1px solid var(--ibb-border);
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
  overflow: hidden;
  height: 520px;              /* match hero height */
  display: flex;
  flex-direction: column;
}
.ibb-notice-card-header{
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--ibb-primary), var(--ibb-primary-2));
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.ibb-notice-card-header h4{
  margin:0;
  font-weight: 900;
  font-size: 15px;
}
.ibb-notice-badge{
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  background: rgba(245,158,11,0.22);
  border: 1px solid rgba(245,158,11,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
}
.ibb-notice-card-body{
  padding: 12px 16px 14px;
  overflow: auto;
}
.ibb-notice-list-dark{ list-style:none; padding:0; margin:0; }
.ibb-notice-list-dark li{
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.ibb-notice-list-dark li:last-child{ border-bottom:none; }
.ibb-notice-list-dark a{
  color: var(--ibb-text);
  text-decoration:none;
  font-weight: 800;
  line-height: 1.35;
}
.ibb-notice-list-dark a:hover{ text-decoration: underline; }

/* -----------------------------
   Hero boxes (Exam Portal / Learning / Journal)
------------------------------ */
.hero_boxes{ padding: 18px 0 0; }

.hero_box{
  border-radius: var(--ibb-radius);
  background: linear-gradient(90deg, var(--ibb-primary), var(--ibb-primary-2));
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
  padding: 18px;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero_box:hover{
  transform: translateY(-2px);
  box-shadow: var(--ibb-shadow-2);
}

/* Make the whole box clickable and aligned */
.hero_box > a{
  color: #fff !important;
  text-decoration: none !important;
  display:flex;
  gap: 12px;
  width: 100%;
}
.hero_box .svg{
  width: 44px;
  height: 44px;
}
.hero_box_title{
  margin:0;
  font-weight: 900;
  font-size: 18px;
}
.hero_box_content span{
  color: rgba(255,255,255,0.88) !important;
  font-size: 13px;
  line-height: 1.35;
}
.hero_box_link{
  display:inline-flex;
  margin-top: 10px;
  font-weight: 900;
  color: #fff;
  opacity: 0.95;
}

/* -----------------------------
   Right-side DG/Secretary cards (your dotted border cards)
------------------------------ */
.card[style*="dotted"]{
  border: 1px solid var(--ibb-border) !important;
}
.card[style*="dotted"] .card-body img{
  border-radius: 18px;
  object-fit: cover;
}

/* -----------------------------
   Counter section
------------------------------ */
.stats i{
  font-size: 26px;
  color: var(--ibb-primary-2) !important;
}
.stats .counting{
  font-size: 28px;
  font-weight: 900;
  margin-top: 6px;
}
.stats h5{
  margin-top: 8px;
  font-weight: 900;
  font-size: 12px;
  color: var(--ibb-muted);
  letter-spacing: .06em;
}

/* -----------------------------
   Testimonials / Members section
------------------------------ */
.testimonials.page_section{
  border-radius: 18px;
  background: #0b1220;
  color: #fff;
}
.testimonials .section_title h1{
  color:#fff;
  font-weight: 900;
}
.testimonial_image img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.18);
}
.testimonial_name{
  margin-top: 10px;
  font-weight: 900;
}

/* -----------------------------
   Footer (safe polish)
------------------------------ */
.footer{
  background: #0b1220 !important;
  color: rgba(255,255,255,0.88) !important;
}
.footer a{ color: rgba(255,255,255,0.92) !important; }
.footer a:hover{ color: #fff !important; }

/* ==========================================================================
   Utilities migrated from raselemran.css (KEEP-IF-USED set)
   ========================================================================== */

/* 1) Scroll wrapper used by notices table (your blade uses .table-scroll-wrapper) */
.table-scroll-wrapper{
  max-height: 500px;
  overflow-y: auto;
}

/* 2) Label pill */
.labell{
  padding: 6px 15px;
  background: #D6002A;
  color: #FFF;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 999px;
}

/* 3) Ripple animation helper */
.ripple{
  position: relative;
  overflow: hidden;
}
.ripple:after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, .5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}
@keyframes ripple {
  0% { transform: scale(0, 0); opacity: 1; }
  20%{ transform: scale(25, 25); opacity: 1; }
  100%{ opacity: 0; transform: scale(40, 40); }
}
.ripple::after{
  animation: ripple 1.5s ease-out infinite;
}

/* 4) Notice bar + marquee styling (only affects if you use .notice-bar + <marquee>) */
.notice-bar{
  display: flex;
  align-items: center;
  background-color: #002b55;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
}
.notice-label{
  flex-shrink: 0;
  background-color: #ff0000;
  color: #fff;
  padding: 10px 20px;
  font-weight: 900;
  text-transform: uppercase;
}
.notice-bar marquee{
  flex: 1;
  margin-left: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
}
.notice-bar marquee a{
  color: #00ffcc;
  text-decoration: underline;
  margin: 0 15px;
  font-weight: 900;
}
.notice-bar marquee a:hover{
  color: #ffcc00;
}

/* -----------------------------
   Responsive
------------------------------ */
@media (max-width: 991px){
  .ibb-hero{ border-radius: 16px; min-height: auto; }
  .hero_slide_img{ height: 420px; }
  .ibb-notice-card{ height: auto; margin-top: 14px; }
}

@media (max-width: 576px){
  .hero_slide_overlay{ padding: 16px; }
  .slider_title{ font-size: 28px; }
  .notice-bar{ font-size: 14px; }
  .notice-label{ padding: 8px 12px; }
  .notice-bar marquee{ margin-left: 12px; }
}

/* Hide notice marquee completely */
.notice_marquee,
.notice-bar,
.notice-label {
  display: none !important;
}

/* Vibrant "Published Notices" title */
.ibb-notice-card-header h4{
  color: var(--ibb-accent) !important;   /* gold accent */
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Published Notices: make each notice look like a bordered card */
.ibb-notice-list-dark li{
  border: 2px solid var(--ibb-border) !important;
  border-left: 4px solid rgba(15,118,110,0.55) !important; /* accent */
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
  background: #fbfdff;
  box-shadow: 0 6px 16px rgba(2,6,23,0.04);
}

/* Remove the old dashed divider (if still applied) */
.ibb-notice-list-dark li{
  border-bottom: none !important;
}

/* Hover polish */
.ibb-notice-list-dark li:hover{
  border-color: rgba(15,118,110,0.35) !important;
  border-left-color: var(--ibb-primary-2) !important;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
  transform: translateY(-1px);
  transition: all .15s ease;
}

/* Slight spacing between items (no crowding) */
.ibb-notice-list-dark{ padding: 4px 0; }

/* --- FIX: remove gap between green top bar and header --- */

/* hard reset any old spacing */
.header{ margin-top: 0 !important; }
.header.scrolled{ margin-top: 0 !important; }

/* keep both fixed */
.top-contact-bar{
  position: fixed !important;
  top: 0 !important;
  left: 0; right: 0;
  width: 100%;
  z-index: 4000;
  margin: 0 !important;
}

/* place header directly under the green bar */
:root{ --ibb-topbar-h: 36px; }  /* adjust slightly if needed */

.header,
.header.scrolled{
  top: var(--ibb-topbar-h) !important;
  z-index: 3500;
}




