/*--------------------------------------------------------------
# Debabrat Bhuyan College - iLanding Pro theme layer
# Loaded after assets/ilanding/css/main.css
# Part 1: header / footer / home page
# Part 2: compatibility styles for existing inner-page content
--------------------------------------------------------------*/

:root {
  --db-navy: #2d465e;
  --db-soft: #f3f9ff;
  --db-border: #e3ecf7;
  --db-radius: 16px;
  --db-shadow: 0 10px 30px rgba(13, 131, 253, 0.08);
}

body { overflow-x: hidden; }
img { max-width: 100%; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header { padding: 0 0 14px 0; flex-direction: column; display: block; }

.db-topbar {
  background: var(--db-navy);
  color: #dbe7f5;
  font-size: 13px;
  font-family: var(--nav-font);
  height: 38px;
  margin-bottom: 12px;
  transition: all 0.4s;
  overflow: hidden;
}
.db-topbar .container-xl { height: 38px; }
.db-topbar-contact span { margin-right: 24px; white-space: nowrap; }
.db-topbar-contact i { color: #8fc4ff; margin-right: 6px; }
.db-topbar a { color: #fff; }
.db-topbar a:hover { color: #8fc4ff; }
.db-topbar-login {
  background: var(--accent-color);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 500;
}
.db-topbar-login:hover { background: #fff; color: var(--accent-color) !important; }

.scrolled .db-topbar { height: 0; margin-bottom: 0; }
.scrolled .header { padding-top: 10px; }

.header .header-container { min-height: 66px; }
.header .logo img { max-height: 52px; width: auto; margin-right: 0; }

@media (min-width: 1200px) {
  .navmenu a, .navmenu a:focus { padding: 18px 12px; font-size: 15px; font-weight: 500; }
  .navmenu .dropdown ul { border-radius: 12px; }
  .navmenu .dropdown ul li { min-width: 230px; }
  /* nested menus (Departments, Cell & Committees) open to the right */
  .navmenu .dropdown .dropdown ul { left: 100%; }
  .navmenu .dropdown .dropdown:hover > ul { left: 100%; }
  .navmenu .dropdown .dropdown > a i { transform: rotate(-90deg); }
}

@media (max-width: 1199px) {
  .header .logo img { max-height: 42px; }
  .navmenu ul { max-height: calc(100vh - 110px); }
}
@media (max-width: 767px) {
  .header { padding-top: 10px; }
}

/* Admission highlight (modern replacement of blinking text) */
.db-nav-admission > a span { color: #e8461f; font-weight: 700; display: inline-flex; align-items: center; }
.db-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8461f; margin-right: 7px; position: relative; display: inline-block;
}
.db-pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #e8461f; animation: dbPulse 1.6s ease-out infinite;
}
@keyframes dbPulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.db-btn, .btn.btn-primary.db-btn {
  background: var(--accent-color); border: 0; color: #fff;
  border-radius: 50px; padding: 10px 26px; font-weight: 500;
}
.db-btn:hover { background: color-mix(in srgb, var(--accent-color), #000 12%); color: #fff; }
.db-btn-outline {
  border: 1px solid var(--accent-color); color: var(--accent-color);
  border-radius: 50px; padding: 7px 22px; font-size: 14px; font-weight: 500;
}
.db-btn-outline:hover { background: var(--accent-color); color: #fff; }

/*--------------------------------------------------------------
# Home - Hero
--------------------------------------------------------------*/
.hero { padding-top: 190px; }
@media (max-width: 767px) { .hero { padding-top: 120px; } }
.hero .hero-content h1 { font-size: 3rem; }
@media (max-width: 575px) { .hero .hero-content h1 { font-size: 2.2rem; } }
.db-hero-sub { font-size: 1.05rem; color: var(--db-navy); margin-bottom: 12px; }
.hero .hero-content p { text-align: justify; }

.db-hero-slider { border-radius: 24px; overflow: hidden; box-shadow: 0 25px 50px rgba(13, 131, 253, .18); background: #fff; }
.db-hero-slider .swiper-slide { position: relative; aspect-ratio: 16 / 10; background: #e9f2fd; }
.db-hero-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.db-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 50px 24px 34px; color: #fff; font-family: var(--heading-font);
  font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(to top, rgba(10, 25, 47, .85), rgba(10, 25, 47, 0));
}
.db-hero-slider .swiper-pagination-bullet { background: #fff; opacity: .6; }
.db-hero-slider .swiper-pagination-bullet-active { opacity: 1; background: var(--accent-color); }
.db-hero-slider .swiper-button-next, .db-hero-slider .swiper-button-prev {
  color: #fff; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0, 0, 0, .25); backdrop-filter: blur(4px);
}
.db-hero-slider .swiper-button-next::after, .db-hero-slider .swiper-button-prev::after { font-size: 16px; font-weight: 700; }

/* Important Notice strip */
.db-announce {
  display: flex; align-items: stretch; background: #fff; border-radius: 50px;
  box-shadow: var(--db-shadow); overflow: hidden; border: 1px solid var(--db-border);
  position: relative; z-index: 2;
}
.db-announce-label {
  background: linear-gradient(-180deg, #ff7e31, #e62c03); color: #fff; font-weight: 600;
  padding: 12px 22px; white-space: nowrap; font-family: var(--nav-font); font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.db-announce-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.db-announce-move { white-space: nowrap; padding-left: 100%; animation: dbTicker 18s linear infinite; }
.db-announce-track:hover .db-announce-move { animation-play-state: paused; }
.db-announce-move a { color: #d6290a; font-weight: 600; }
@keyframes dbTicker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 575px) { .db-announce-label { padding: 10px 14px; font-size: 13px; } }

/*--------------------------------------------------------------
# Home - Vision / Mission
--------------------------------------------------------------*/
.features-cards .feature-box { border-radius: var(--db-radius); padding: 34px; }
.features-cards .feature-box p { text-align: justify; margin-bottom: 10px; }
.db-more { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }

/*--------------------------------------------------------------
# Home - Panels (Notice board, News)
--------------------------------------------------------------*/
.db-panel {
  background: #fff; border-radius: var(--db-radius); padding: 26px;
  box-shadow: var(--db-shadow); border: 1px solid var(--db-border);
}
.db-panel-head { border-bottom: 1px solid var(--db-border); margin-bottom: 16px; padding-bottom: 12px; }
.db-panel-head h3 { font-size: 1.35rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.db-panel-head h3 i { color: var(--accent-color); }

.db-notice-window { height: 380px; overflow: hidden; position: relative; }
.db-notice-window::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
}
.db-notice-list { list-style: none; padding: 0; margin: 0; }
.db-notice-list li { border-bottom: 1px dashed var(--db-border); }
.db-notice-list li a { display: flex; gap: 12px; padding: 11px 4px; color: var(--default-color); align-items: flex-start; }
.db-notice-list li a:hover { background: var(--db-soft); color: var(--accent-color); border-radius: 8px; }
.db-notice-date {
  flex: 0 0 auto; background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.db-notice-title { font-size: 15px; line-height: 1.45; }
.db-new {
  background: #e62c03; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; margin-left: 4px; animation: dbNewBlink 1.4s ease-in-out infinite;
}
@keyframes dbNewBlink { 50% { opacity: .45; } }

.db-news-item {
  display: flex; gap: 16px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--db-border); margin-bottom: 14px; transition: .3s;
}
.db-news-item:hover { border-color: var(--accent-color); box-shadow: var(--db-shadow); transform: translateY(-2px); }
.db-news-icon {
  flex: 0 0 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 90%); color: var(--accent-color); font-size: 22px;
}
.db-news-item h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.db-news-item h4 a { color: var(--heading-color); }
.db-news-item h4 a:hover { color: var(--accent-color); }
.db-news-item p { margin: 0; font-size: 13px; color: #6c7a89; }

/*--------------------------------------------------------------
# Home - Principal
--------------------------------------------------------------*/
.db-principal-photo { display: inline-block; padding: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-color), #8fc4ff); }
.db-principal-photo img { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; display: block; }
.db-principal-role { color: var(--accent-color); font-weight: 600; margin-bottom: 14px; }
.about .about-description { text-align: justify; }

/*--------------------------------------------------------------
# Home - Events
--------------------------------------------------------------*/
.db-event-card {
  min-height: 300px; border-radius: var(--db-radius); background-size: cover; background-position: center;
  position: relative; overflow: hidden; display: flex; align-items: flex-end; box-shadow: var(--db-shadow);
}
.db-event-text {
  width: 100%; color: #fff; padding: 60px 24px 22px; font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(to top, rgba(10, 25, 47, .85), rgba(10, 25, 47, 0));
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer .footer-about .logo span { font-size: 24px; }
.footer .footer-map h4 { font-size: 16px; font-weight: bold; position: relative; padding-bottom: 12px; }
.db-map { border-radius: 14px; overflow: hidden; box-shadow: var(--db-shadow); }
.db-map iframe { display: block; }
.footer .copyright { border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); padding: 20px 0; }
.footer .copyright p { margin: 0; }
.db-counter { vertical-align: middle; height: 20px; }

/*==============================================================
# PART 2 - Compatibility for existing inner-page content
# (content_*.php files are used as they are)
==============================================================*/

/* Page title / breadcrumbs (all inner pages) */
section.breadcrumbs {
  padding: 200px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 93%) 0%, var(--db-soft) 60%, #fff 100%);
  position: relative;
}
section.breadcrumbs::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent-color), transparent 90%), transparent 40%);
}
section.breadcrumbs .container { display: flex; flex-direction: column-reverse; align-items: center; position: relative; }
section.breadcrumbs h2 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
section.breadcrumbs ol {
  display: flex; flex-wrap: wrap; list-style: none; justify-content: center;
  padding: 8px 20px; margin: 0; font-size: 15px; background: #fff; border-radius: 50px; box-shadow: var(--db-shadow);
}
section.breadcrumbs ol li + li { padding-left: 10px; }
section.breadcrumbs ol li + li::before { content: "/"; display: inline-block; padding-right: 10px; color: #a3b1c2; }
@media (max-width: 767px) {
  section.breadcrumbs { padding: 130px 0 40px; }
  section.breadcrumbs h2 { font-size: 28px; }
}

/* content wrapper spacing (pages without a <section> after breadcrumbs) */
.db-page > .container, .db-page > main > .container { padding-top: 40px; padding-bottom: 40px; }
.inner-page main#main { padding-bottom: 20px; }

/* Generic section title variants used in pages */
.section-title h3 { font-size: 28px; font-weight: 700; padding-bottom: 16px; position: relative; }
.section-title h3::after {
  content: ""; position: absolute; width: 50px; height: 3px; background: var(--accent-color);
  left: 0; right: 0; bottom: 0; margin: auto;
}
.section-bg { --background-color: var(--db-soft); background-color: var(--db-soft); }

/* Blog / entry (About, Principal, Library, Notice archive ...) */
.blog .entries { margin-bottom: 20px; }
.blog .entry {
  background: #fff; padding: 34px; margin-bottom: 30px; border-radius: var(--db-radius);
  box-shadow: var(--db-shadow); border: 1px solid var(--db-border); overflow: hidden;
}
.blog .entry .entry-img { max-height: 520px; margin: -34px -34px 24px; overflow: hidden; }
.blog .entry .entry-img img { width: 100%; object-fit: cover; }
.blog .entry .entry-title { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.blog .entry .entry-title a { color: var(--heading-color); }
.blog .entry .entry-content { line-height: 1.8; }
.blog .entry .entry-content h3 { font-size: 22px; margin-top: 26px; font-weight: 700; }
.blog .entry .entry-content blockquote { border-left: 4px solid var(--accent-color); padding: 16px 22px; background: var(--db-soft); border-radius: 8px; }
.blog .entry .entry-content .read-more a {
  display: inline-block; background: var(--accent-color); color: #fff; padding: 6px 20px; border-radius: 50px; font-size: 14px;
}
.blog .sidebar { padding: 26px; background: #fff; border-radius: var(--db-radius); box-shadow: var(--db-shadow); }
.blog .sidebar .sidebar-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.blog .sidebar .sidebar-item { margin-bottom: 26px; }
@media (max-width: 575px) {
  .blog .entry { padding: 22px; }
  .blog .entry .entry-img { margin: -22px -22px 20px; }
}

/* Team / faculty cards (department & staff pages) */
.team { padding: 50px 0; }
.team .member {
  margin-bottom: 26px; overflow: hidden; border-radius: var(--db-radius); background: #fff;
  box-shadow: var(--db-shadow); width: 100%; transition: .3s; border: 1px solid var(--db-border);
}
.team .member:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(13, 131, 253, .15); }
.team .member .member-img { position: relative; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--db-soft); }
.team .member .member-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team .member .social {
  position: absolute; left: 0; bottom: 20px; right: 0; opacity: 0; transition: .3s; text-align: center;
}
.team .member .social a {
  transition: .3s; color: var(--heading-color); margin: 0 3px; border-radius: 50%; width: 36px; height: 36px;
  background: rgba(255, 255, 255, .9); display: inline-flex; align-items: center; justify-content: center;
}
.team .member .social a:hover { color: #fff; background: var(--accent-color); }
.team .member:hover .social { opacity: 1; bottom: 15px; }
.team .member .member-info { padding: 20px 15px; text-align: center; }
.team .member .member-info h4 { font-weight: 700; margin-bottom: 6px; font-size: 18px; }
.team .member .member-info span { display: block; font-size: 13px; color: #6c7a89; line-height: 1.6; word-break: break-word; }
.team .member .member-info p { font-size: 14px; margin: 8px 0 0; }

/* Portfolio / gallery grids (Gallery, Paper cuttings, Snapshots) */
.portfolio .portfolio-container { row-gap: 24px; }
.portfolio .portfolio-item { margin-bottom: 0; }
.portfolio-item { position: relative; }
.portfolio-item > img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--db-radius); display: block;
}
.portfolio-item .portfolio-info {
  position: absolute; left: calc(var(--bs-gutter-x) * .5 + 12px); right: calc(var(--bs-gutter-x) * .5 + 12px); bottom: 12px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px); padding: 12px 56px 12px 16px;
  border-radius: 12px; opacity: 0; transform: translateY(10px); transition: .3s; z-index: 3;
}
.portfolio-item:hover .portfolio-info { opacity: 1; transform: none; }
@media (hover: none) { .portfolio-item .portfolio-info { opacity: 1; transform: none; } }
.portfolio-item .portfolio-info h4 { font-size: 15px; font-weight: 700; margin: 0; color: var(--heading-color); }
.portfolio-item .portfolio-info p { font-size: 13px; margin: 2px 0 0; color: #6c7a89; }
.portfolio-item .portfolio-info .preview-link,
.portfolio-item .portfolio-info .details-link {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: #fff; font-size: 18px;
}
.portfolio-item .portfolio-info .details-link { display: none; }
.portfolio-item .portfolio-info .preview-link:hover { background: var(--heading-color); }

/* FAQ / collapsible lists (College Events) */
.faq .faq-list { padding: 0 60px; }
@media (max-width: 991px) { .faq .faq-list { padding: 0; } }
.faq .faq-list ul { padding: 0; list-style: none; }
.faq .faq-list li {
  padding: 18px 22px; margin-bottom: 14px; background: #fff; border-radius: 12px;
  box-shadow: var(--db-shadow); border: 1px solid var(--db-border);
}
.faq .faq-list a { display: block; position: relative; font-size: 17px; font-weight: 600; padding-right: 30px; cursor: pointer; color: var(--heading-color); }
.faq .faq-list .icon-show, .faq .faq-list .icon-close { font-size: 24px; position: absolute; right: 0; top: -2px; }
.faq .faq-list p { margin: 12px 0 0; }
.faq .faq-list .icon-show { display: none; }
.faq .faq-list a.collapsed { color: var(--heading-color); }
.faq .faq-list a.collapsed:hover { color: var(--accent-color); }
.faq .faq-list a.collapsed .icon-show { display: inline-block; }
.faq .faq-list a.collapsed .icon-close { display: none; }

/* Icon boxes / info boxes / more buttons used inside some pages */
.icon-box, .info-box {
  background: #fff; padding: 26px; border-radius: var(--db-radius); box-shadow: var(--db-shadow);
  border: 1px solid var(--db-border); margin-bottom: 20px; width: 100%;
}
.icon-box i, .info-box i { font-size: 32px; color: var(--accent-color); }
.icon-box h4, .info-box h3 { font-size: 20px; font-weight: 700; margin: 10px 0; }
.more-btn {
  display: inline-block; background: var(--accent-color); color: #fff; padding: 7px 24px;
  border-radius: 50px; font-size: 14px; transition: .3s;
}
.more-btn:hover { color: #fff; background: color-mix(in srgb, var(--accent-color), #000 12%); }
.circular--square { border-radius: 50%; margin: 0 20px 12px 0; }

/* Tables inside pages: keep page styles, make them scroll on phones */
.db-page table { max-width: 100%; }
.db-page .table-responsive { border-radius: 12px; }
@media (max-width: 767px) {
  .db-page .container > table, .db-page .entry-content > table { display: block; overflow-x: auto; }
}

/* Old button helpers kept for any page that still uses them */
.button-18, .button-17, .button-13 {
  background: var(--accent-color); color: #fff; border: 0; border-radius: 50px; padding: 8px 22px; font-weight: 500;
}
.button-18 a, .button-17 a, .button-13 a { color: #fff; }

/* keep small arrow inside Read More links on feature cards */
.features-cards .feature-box .db-more i { font-size: 15px; display: inline; margin: 0; color: inherit; line-height: 1; }

/*--------------------------------------------------------------
# Admission Notification page (dynamic list)
--------------------------------------------------------------*/
.db-adm-intro { font-size: 16px; margin-bottom: 22px; text-align: justify; }
.db-adm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.db-adm-list li a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--db-border); background: #fff; color: var(--heading-color); transition: .25s;
}
.db-adm-list li a:hover { border-color: var(--accent-color); box-shadow: var(--db-shadow); transform: translateY(-2px); }
.db-adm-icon {
  flex: 0 0 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 90%); color: var(--accent-color); font-size: 22px;
}
.db-adm-text { flex: 1; min-width: 0; }
.db-adm-title { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; word-break: break-word; }
.db-adm-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; font-size: 13px; color: #6c7a89; }
.db-adm-tag { background: var(--db-soft); border: 1px solid var(--db-border); padding: 0 8px; border-radius: 6px; font-weight: 600; font-size: 11px; line-height: 20px; }
.db-adm-go { color: #b6c3d3; font-size: 18px; transition: .25s; }
.db-adm-list li a:hover .db-adm-go { color: var(--accent-color); transform: translateX(3px); }
