/* =========================================================
   Bago City College – Main Stylesheet
   Colors: Navy #0d1b5e  |  Gold #f5c200
   ========================================================= */

/* ----- CSS Variables ----- */
:root {
  --bcc-primary:      #0d1b5e;
  --bcc-primary-dark: #070f3d;
  --bcc-primary-soft: #1b2f86;
  --bcc-gold:         #f5c200;
  --bcc-gold-dark:    #d4a800;
  --bcc-light:        #f5f7ff;
  --bcc-white:        #ffffff;
  --bcc-text:         #17203a;
  --bcc-text-muted:   #5d6788;
  --bcc-border:       #dce2f3;
  --bcc-shadow:       0 20px 50px rgba(8, 23, 88, .12);
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  color: var(--bcc-text);
  background: radial-gradient(circle at 8% -10%, #e5ecff 0%, #f9fbff 38%, #ffffff 100%);
  line-height: 1.55;
}

html, body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .2px;
}

.container {
  max-width: 1160px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.bcc-navbar {
  background: linear-gradient(90deg, #0b1754 0%, #122677 50%, #0b1754 100%) !important;
  padding: 11px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.bcc-navbar .navbar-brand {
  color: var(--bcc-gold) !important;
  font-weight: 700;
  font-size: 1.28rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bcc-navbar .navbar-toggler {
  border: 1px solid rgba(245, 194, 0, .65);
  background: rgba(255, 255, 255, .06);
  padding: 6px 9px;
}

.bcc-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 .18rem rgba(245, 194, 0, .35);
}

.bcc-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245,194,0,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.bcc-navbar .brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  padding: 2px;
}

.bcc-navbar .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 600;
  font-size: .88rem;
  padding: 8px 13px !important;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.bcc-navbar .nav-link:hover,
.bcc-navbar .nav-link.active {
  color: var(--bcc-gold) !important;
  background: rgba(255,255,255,.07);
}

.btn-login {
  border: 2px solid var(--bcc-gold) !important;
  border-radius: 999px !important;
  padding: 5px 20px !important;
  font-weight: 600;
  transition: all .2s;
}
.btn-login:hover {
  background-color: var(--bcc-gold) !important;
  color: var(--bcc-primary) !important;
}

.btn-records {
  border: 1px solid rgba(255, 255, 255, .45) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: .82rem !important;
  font-weight: 600;
  color: #fff !important;
  transition: all .2s;
}

.btn-records:hover {
  background: rgba(255, 255, 255, .12) !important;
  color: var(--bcc-gold) !important;
  border-color: var(--bcc-gold) !important;
}

.records-middleview-page {
  background: linear-gradient(180deg, #eef3ff 0%, #f9fbff 100%);
  min-height: 70vh;
}

.records-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(12, 24, 78, .12);
  border: 1px solid #e2e8fb;
  padding: 24px;
}

.records-icon {
  font-size: 2.3rem;
  color: var(--bcc-primary);
}

.records-title {
  color: var(--bcc-primary);
  font-weight: 700;
  font-size: 1.85rem;
}

.records-subtitle {
  color: var(--bcc-text-muted);
}

.records-alert {
  background: #fff8e8;
  border: 1px solid #f5d174;
  border-left: 4px solid var(--bcc-gold-dark);
  border-radius: 10px;
  padding: 14px 16px;
  color: #51400c;
  line-height: 1.6;
}

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.bcc-carousel .carousel-item { height: 460px; }
.bcc-carousel {
  padding: 16px;
  background: linear-gradient(135deg, rgba(12, 26, 91, .8), rgba(18, 45, 140, .55));
  overflow: hidden;
}
.bcc-carousel .carousel-inner {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--bcc-shadow);
}
.bcc-carousel .carousel-item {
  position: relative;
}
.bcc-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-placeholder {
  height: 460px;
  background: radial-gradient(circle at 30% 30%, #3156d8 0%, #0d1b5e 55%, #060e36 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.carousel-placeholder-news {
  background:
    radial-gradient(circle at 24% 35%, rgba(65, 108, 255, .55) 0%, rgba(65,108,255,0) 42%),
    radial-gradient(circle at 84% 15%, rgba(255, 204, 0, .14) 0%, rgba(255,204,0,0) 30%),
    linear-gradient(115deg, #142b85 0%, #0d1b5e 58%, #050d3a 100%);
}

.bcc-carousel .carousel-caption {
  background: rgba(7,16,74,.74);
  backdrop-filter: blur(4px);
  border-left: 5px solid var(--bcc-gold);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  text-align: left;
  bottom: 40px;
  left: clamp(16px, 4.5vw, 80px);
  right: auto;
  width: min(58rem, calc(100% - 32px));
  max-width: calc(100% - 32px);
  z-index: 2;
}
.bcc-carousel .carousel-caption .badge-feature {
  background: var(--bcc-gold);
  color: var(--bcc-primary);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.bcc-carousel .carousel-caption h5 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.bcc-carousel .carousel-caption p {
  font-size: .95rem;
  opacity: .9;
  margin: 0;
}
.bcc-carousel .carousel-control-prev,
.bcc-carousel .carousel-control-next {
  width: 48px;
}
.bcc-carousel .carousel-control-prev-icon,
.bcc-carousel .carousel-control-next-icon {
  background-color: rgba(0,0,0,.45);
  border-radius: 50%;
  padding: 18px;
  background-size: 50%;
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-heading { position: relative; margin-bottom: 1.5rem; }
.section-heading h2 {
  color: var(--bcc-primary);
  font-weight: 700;
  font-size: 2rem;
  padding-bottom: 12px;
  margin-bottom: 0;
}
.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 55px; height: 4px;
  background: var(--bcc-gold);
  border-radius: 2px;
}
.section-heading.centered h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.welcome-band {
  margin-top: -8px;
  padding: 0 0 20px;
}

.welcome-band-inner {
  background: linear-gradient(95deg, #0d1b5e 0%, #1f3ea7 45%, #17318b 100%);
  color: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--bcc-shadow);
  border: 1px solid rgba(255,255,255,.15);
}

.welcome-kicker {
  color: #ffd95e;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: .72rem;
  font-weight: 700;
}

.welcome-band-inner h3 {
  font-size: 1.5rem;
}

.welcome-band-inner p {
  color: rgba(255,255,255,.82);
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   ADMIN / MAYOR MESSAGES
   ========================================================= */
.admin-message-section {
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
  padding: 72px 0;
}

.admin-profile-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--bcc-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 5px solid var(--bcc-gold);
}
.admin-profile-card .admin-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bcc-gold);
  margin-bottom: 16px;
}
.admin-profile-card .admin-photo-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--bcc-primary);
  color: var(--bcc-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid var(--bcc-gold);
  margin-bottom: 16px;
}
.admin-profile-card h4 {
  color: var(--bcc-primary);
  font-weight: 700;
  margin-bottom: 4px;
}
.admin-profile-card .admin-role {
  color: var(--bcc-gold-dark);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}
.admin-profile-card .admin-message-text {
  font-style: italic;
  line-height: 1.8;
  font-size: .98rem;
  color: var(--bcc-text);
  border-top: 1px solid var(--bcc-border);
  padding-top: 16px;
  margin-top: auto;
}

/* =========================================================
   NEWS SECTION
   ========================================================= */
.news-section { padding: 65px 0; }

.news-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0,0,0,.08);
  transition: transform .22s, box-shadow .22s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.news-card .card-img-top {
  height: 230px;
  object-fit: cover;
}
.card-img-placeholder {
  height: 230px;
  background: linear-gradient(135deg, var(--bcc-primary) 0%, #2142b5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bcc-gold);
  font-size: 3rem;
}
.card-category {
  display: inline-block;
  background: var(--bcc-gold);
  color: var(--bcc-primary);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 4px;
}
.news-card .card-title {
  color: var(--bcc-primary);
  font-weight: 700;
  font-size: 1.08rem;
}
.card-date { font-size: .81rem; color: var(--bcc-text-muted); }
.btn-read-more {
  color: var(--bcc-primary);
  font-weight: 600;
  font-size: .83rem;
  text-decoration: none;
  border-bottom: 2px solid var(--bcc-gold);
  padding-bottom: 1px;
  transition: color .2s;
}
.btn-read-more:hover { color: var(--bcc-gold-dark); }

/* =========================================================
   EVENTS & CALENDAR SECTION
   ========================================================= */
.events-calendar-section {
  background: linear-gradient(180deg, #edf2ff 0%, #f8faff 100%);
  padding: 65px 0;
}

.split-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e4e9f7;
  box-shadow: 0 8px 30px rgba(10, 26, 88, .08);
  padding: 22px;
  height: 100%;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bcc-border);
}
.event-item:last-child { border-bottom: none; }

.event-date-badge {
  min-width: 56px;
  background: linear-gradient(160deg, #0d1b5e 0%, #2746b3 100%);
  color: white;
  text-align: center;
  border-radius: 10px;
  padding: 8px 5px;
  flex-shrink: 0;
}
.event-date-badge .date-day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-badge .date-month { font-size: .63rem; text-transform: uppercase; letter-spacing: .8px; opacity: .85; }

.event-info h6 { color: var(--bcc-primary); font-weight: 600; margin-bottom: 4px; }
.event-meta { font-size: .78rem; color: var(--bcc-text-muted); }

.calendar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--bcc-border);
}
.calendar-item:last-child { border-bottom: none; }

.calendar-type-badge {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.calendar-type-badge.academic   { background:#dbeafe; color:#1d4ed8; }
.calendar-type-badge.holiday    { background:#fce7f3; color:#9d174d; }
.calendar-type-badge.exam       { background:#f3e8ff; color:#6d28d9; }
.calendar-type-badge.event      { background:#dcfce7; color:#166534; }
.calendar-type-badge.enrollment { background:#fef9c3; color:#854d0e; }
.calendar-type-badge.graduation { background:#ffedd5; color:#c2410c; }

/* =========================================================
   NOTICE BOARD
   ========================================================= */
.notice-wall-section {
  background: linear-gradient(180deg, #081347 0%, #0d1b5e 100%);
  padding: 65px 0;
}
.notice-wall-section .section-heading h2 { color: white; }
.notice-wall-section .section-heading h2::after { background: var(--bcc-gold); }

.notice-item {
  background: rgba(255,255,255,.07);
  border-left: 4px solid var(--bcc-gold);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
  height: 100%;
  transition: background .2s;
}
.notice-item:hover { background: rgba(255,255,255,.14); }
.notice-item.high-priority {
  border-left-color: #ff5c5c;
  background: rgba(255,92,92,.1);
}
.notice-item h6 { color: var(--bcc-gold); font-weight: 600; margin-bottom: 5px; }
.notice-item p  { color: rgba(255,255,255,.86); font-size: .9rem; margin: 0; }
.notice-item .notice-date { font-size: .73rem; color: rgba(255,255,255,.5); margin-top: 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.bcc-footer {
  background: #070f3d;
  color: rgba(255,255,255,.82);
  padding: 60px 0 0;
}
.footer-logo-text {
  color: var(--bcc-gold);
  font-size: 1.15rem;
  font-weight: 700;
}
.footer-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  padding: 2px;
}
.footer-about { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 10px; }

.bcc-footer h6 {
  color: var(--bcc-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .8rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(245,194,0,.35);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
  font-size: .87rem;
}
.footer-contact-item i { color: var(--bcc-gold); margin-top: 2px; flex-shrink: 0; }

.footer-fb-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .87rem;
  transition: color .2s;
}
.footer-fb-link:hover { color: var(--bcc-gold); }
.footer-fb-link .bi-facebook { color: #4a90e2; font-size: 1.1rem; }
.footer-fb-link .bi-messenger { color: #00b2ff; font-size: 1.1rem; }

.bcc-footer-bottom {
  background: rgba(0,0,0,.25);
  text-align: center;
  padding: 15px 0;
  margin-top: 45px;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.bcc-footer-bottom a { color: var(--bcc-gold); text-decoration: none; }

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header {
  background: linear-gradient(135deg, var(--bcc-primary) 0%, #1a3a9f 100%);
  color: white;
  padding: 40px 0;
  margin-bottom: 0;
}
.page-header h1 { font-size: 1.9rem; font-weight: 700; color: white; margin-bottom: 4px; }
.page-header p  { color: rgba(255,255,255,.7); margin: 0; }

/* Breadcrumb */
.bcc-breadcrumb { background: var(--bcc-primary); padding: 10px 0; }
.bcc-breadcrumb .breadcrumb { margin: 0; }
.bcc-breadcrumb .breadcrumb-item a { color: var(--bcc-gold); text-decoration: none; }
.bcc-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.65); }
.bcc-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-bcc-primary {
  background: linear-gradient(135deg, #0d1b5e 0%, #1f3ea7 100%);
  color: white;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform .2s, box-shadow .2s;
}
.btn-bcc-primary:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(9, 22, 80, .28);
}

.btn-bcc-gold {
  background: var(--bcc-gold);
  color: var(--bcc-primary);
  border: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform .2s, box-shadow .2s;
}
.btn-bcc-gold:hover {
  background: var(--bcc-gold-dark);
  color: var(--bcc-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(245, 194, 0, .28);
}

.btn-outline-light {
  border-radius: 999px;
  padding: 10px 18px;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.text-bcc-primary { color: var(--bcc-primary) !important; }
.text-bcc-gold    { color: var(--bcc-gold) !important; }
.bg-bcc-primary   { background-color: var(--bcc-primary) !important; }
.bg-bcc-gold      { background-color: var(--bcc-gold) !important; }

.bcc-pagination .page-link { color: var(--bcc-primary); }
.bcc-pagination .page-item.active .page-link {
  background: var(--bcc-primary);
  border-color: var(--bcc-primary);
}

/* Article content */
.article-content { font-size: .97rem; line-height: 1.85; }

/* Subtle page-load reveal */
.news-section,
.admin-message-section,
.events-calendar-section,
.notice-wall-section {
  animation: sectionReveal .65s ease both;
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .bcc-carousel .carousel-item { height: 260px; }
  .carousel-placeholder         { height: 260px; }
  .bcc-carousel { padding: 10px; }
  .bcc-carousel .carousel-inner { border-radius: 14px; }
  .bcc-carousel .carousel-caption {
    left: 5%; right: 5%; max-width: 90%;
    bottom: 20px;
  }
  .bcc-carousel .carousel-caption h5 { font-size: 1rem; }
  .welcome-band { padding-bottom: 10px; }
  .welcome-band-inner {
    padding: 16px;
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .welcome-band-inner h3 { font-size: 1.18rem; }
  .admin-message-section { padding: 40px 0; }
  .news-section, .events-calendar-section { padding: 40px 0; }
  .split-panel { padding: 16px; }
  .news-card .card-img-top,
  .card-img-placeholder { height: 200px; }
}

@media (max-width: 1200px) {
  .bcc-carousel .carousel-caption {
    width: min(42rem, calc(100% - 24px));
    max-width: calc(100% - 24px);
    left: 12px;
  }
}

@media (max-width: 991.98px) {
  .bcc-navbar .navbar-nav .nav-records-item {
    order: 1;
  }

  .bcc-navbar .navbar-nav .nav-home-item {
    order: 2;
  }
}
