/* ==========================================================
   St Joseph's College for Women - Public site styles
   Colours come from admin Settings -> Theme (CSS variables)
   ========================================================== */
:root {
  --primary: #7a1e3a;
  --accent: #c9a227;
  --dark: #3d0d1e;
  --ink: #2b2b33;
  --muted: #6c6c78;
  --cream: #faf6f0;
  --line: #ece6dc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(61, 13, 30, .08);
  --shadow-lg: 0 18px 45px rgba(61, 13, 30, .15);
}

body { font-family: 'Poppins', system-ui, sans-serif; color: var(--ink); font-size: 15.5px; line-height: 1.7; background: #fff; }
h1, h2, h3, h4, .font-serif { font-family: 'Playfair Display', Georgia, serif; color: var(--dark); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.text-primary-c { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-cream { background: var(--cream); }

/* ---------- Buttons ---------- */
.btn-primary-c { background: var(--primary); color: #fff; border: 2px solid var(--primary); border-radius: 50px; padding: .55rem 1.5rem; font-weight: 500; transition: .25s; }
.btn-primary-c:hover { background: var(--dark); border-color: var(--dark); color: #fff; transform: translateY(-2px); }
.btn-outline-c { border: 2px solid var(--primary); color: var(--primary); border-radius: 50px; padding: .5rem 1.4rem; font-weight: 500; transition: .25s; }
.btn-outline-c:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--dark); border-radius: 50px; padding: .55rem 1.5rem; font-weight: 600; border: 0; transition: .25s; }
.btn-accent:hover { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

/* ---------- Top bar & brand ---------- */
.topbar { background: var(--dark); color: #e9dfe3; font-size: 13px; padding: 7px 0; }
.topbar a { color: #e9dfe3; }
.topbar a:hover { color: var(--accent); }
.topbar-contact a { margin-right: 22px; }
.topbar-contact i { color: var(--accent); margin-right: 4px; }
.topbar-link { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.topbar-link:first-child { border-left: 0; }
.topbar-social a { margin-left: 10px; font-size: 14px; }

.brand-header { background: #fff; padding: 14px 0; border-bottom: 3px solid var(--accent); }
.brand-logo { height: 92px; width: auto; margin-right: 16px; }
.brand-logo-placeholder { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, var(--primary), var(--dark)); color: var(--accent); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; border: 3px solid var(--accent); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--primary); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--primary); font-size: clamp(1.15rem, 2.6vw, 1.9rem); }
.brand-sub { color: var(--muted); font-size: 13px; letter-spacing: .3px; }

/* ---------- Navigation ---------- */
.main-nav { background: var(--primary); padding: 0; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.main-nav .nav-link { color: #fff !important; font-weight: 500; font-size: 14.5px; padding: 15px 14px !important; position: relative; }
.main-nav .nav-link::after { content: ''; }
.main-nav .nav-link:not(.dropdown-toggle)::before, .main-nav .dropdown-toggle::before { content: ''; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px; background: var(--accent); transform: scaleX(0); transition: .25s; }
.main-nav .nav-link:hover::before, .main-nav .nav-link.active::before { transform: scaleX(1); }
.main-nav .dropdown-toggle::after { border: 0; content: '\F282'; font-family: 'bootstrap-icons'; font-size: 10px; vertical-align: middle; margin-left: 5px; }
.main-nav .dropdown-menu { border: 0; border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); padding: 8px 0; min-width: 230px; margin-top: 0; }
.main-nav .dropdown-item { padding: 9px 20px; font-size: 14px; color: var(--ink); transition: .2s; }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item.active { background: var(--cream); color: var(--primary); padding-left: 26px; }
.navbar-toggler { border: 0; box-shadow: none !important; }
@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu { display: block; animation: fadeDown .2s ease; }
}
@media (max-width: 991.98px) {
  .main-nav { padding: 6px 0; }
  .main-nav .nav-link { padding: 10px 4px !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .nav-link::before { display: none; }
  .main-nav .dropdown-menu { background: rgba(255,255,255,.06); box-shadow: none; border: 0; }
  .main-nav .dropdown-item { color: #fff; }
  .main-nav .dropdown-item:hover, .main-nav .dropdown-item.active { background: transparent; color: var(--accent); }
  .brand-logo, .brand-logo-placeholder { height: 56px; width: 56px; }
  .brand-logo { width: auto; }
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero slider ---------- */
.hero .carousel-item { height: clamp(420px, 72vh, 640px); background-size: cover; background-position: center; position: relative; }
.hero .carousel-item.no-image { background: radial-gradient(circle at 80% 20%, rgba(201,162,39,.35), transparent 40%), linear-gradient(120deg, var(--dark), var(--primary)); }
.hero .carousel-item.no-image::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.hero .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,8,16,.85) 0%, rgba(30,8,16,.45) 60%, rgba(30,8,16,.15) 100%); z-index: 1; }
.hero .caption { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 680px; color: #fff; }
.hero .caption .eyebrow { color: var(--accent); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.hero .caption h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; margin-bottom: 18px; }
.hero .caption p { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }
.hero .carousel-item.active .caption > * { animation: rise .8s ease both; }
.hero .carousel-item.active .caption > *:nth-child(2) { animation-delay: .15s; }
.hero .carousel-item.active .caption > *:nth-child(3) { animation-delay: .3s; }
.hero .carousel-item.active .caption > *:nth-child(4) { animation-delay: .45s; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; background: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }

/* ---------- News ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); position: relative; z-index: 3; }
.ticker-label { background: var(--accent); color: var(--dark); font-weight: 600; padding: 12px 22px; white-space: nowrap; font-size: 14px; }
.ticker-track { overflow: hidden; flex: 1; position: relative; }
.ticker-move { display: inline-flex; white-space: nowrap; animation: ticker 45s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--ink); padding: 12px 28px; font-size: 14px; }
.ticker-move a i { color: var(--primary); margin-right: 6px; }
.ticker-move a:hover { color: var(--primary); }
.ticker-all { padding: 12px 20px; white-space: nowrap; font-size: 14px; font-weight: 500; border-left: 1px solid var(--line); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title { margin-bottom: 45px; }
.section-title .eyebrow { display: inline-block; color: var(--primary); font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; }
.section-title .eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.section-title h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.section-title p { color: var(--muted); max-width: 640px; margin: 12px auto 0; }
.section-title.text-start p { margin-left: 0; }

/* Welcome */
.welcome-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; }
.welcome-img img { border-radius: var(--radius); width: 100%; height: 420px; object-fit: cover; }
.welcome-placeholder { height: 420px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--dark)); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 6rem; }
.welcome-badge { position: absolute; right: -15px; bottom: -20px; background: var(--accent); color: var(--dark); border-radius: var(--radius); padding: 18px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.welcome-badge strong { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; line-height: 1; }
.welcome-badge span { font-size: 13px; font-weight: 500; }
.rich-text { color: #45454f; }
.rich-text h3, .rich-text h4 { margin-top: 1.4rem; margin-bottom: .7rem; }
.rich-text ul li::marker { color: var(--primary); }
.rich-text img { border-radius: 10px; height: auto; }
.rich-text table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.rich-text table td, .rich-text table th { border: 1px solid var(--line); padding: 8px 12px; }

/* Principal card */
.principal-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-top: 4px solid var(--accent); height: 100%; }
.principal-card .photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.principal-card .photo-ph { width: 96px; height: 96px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--primary); border: 3px solid var(--accent); }
.principal-card blockquote { font-style: italic; color: #555; position: relative; padding-left: 24px; margin: 16px 0; }
.principal-card blockquote::before { content: '\201C'; position: absolute; left: -4px; top: -18px; font-size: 3.5rem; color: var(--accent); font-family: Georgia, serif; }

/* Stats */
.stats { background: linear-gradient(120deg, var(--dark), var(--primary)); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 20px 20px; }
.stat-item { text-align: center; position: relative; }
.stat-item i { font-size: 2.2rem; color: var(--accent); }
.stat-item .num { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.stat-item .lbl { opacity: .85; font-size: 14px; letter-spacing: .5px; }

/* Cards */
.card-c { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; height: 100%; display: flex; flex-direction: column; }
.card-c:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-c .card-img { height: 200px; object-fit: cover; width: 100%; }
.card-c .card-img-ph { height: 200px; background: linear-gradient(135deg, var(--primary), var(--dark)); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 3.4rem; }
.card-c .card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-c .card-body h5 { font-family: 'Playfair Display', serif; color: var(--dark); font-size: 1.2rem; margin-bottom: 8px; }
.card-c .card-body p { color: var(--muted); font-size: 14px; flex: 1; }
.card-c .more { font-weight: 500; font-size: 14px; }
.card-c .more i { transition: .2s; }
.card-c:hover .more i { transform: translateX(4px); }
.badge-c { background: rgba(122,30,58,.08); color: var(--primary); font-weight: 500; padding: 5px 12px; border-radius: 50px; font-size: 12px; }
.badge-accent { background: rgba(201,162,39,.15); color: #8a6c0c; font-weight: 500; padding: 5px 12px; border-radius: 50px; font-size: 12px; }

/* Department tile */
.dept-tile { background: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; border: 1px solid var(--line); transition: .3s; height: 100%; display: block; color: var(--ink); position: relative; overflow: hidden; }
.dept-tile::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transition: .3s; }
.dept-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.dept-tile:hover::after { transform: scaleX(1); }
.dept-tile .ic { width: 70px; height: 70px; border-radius: 50%; background: var(--cream); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 14px; transition: .3s; }
.dept-tile:hover .ic { background: var(--primary); color: var(--accent); }
.dept-tile h6 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--dark); margin-bottom: 4px; }
.dept-tile small { color: var(--muted); }

/* Course tabs */
.nav-pills-c .nav-link { border-radius: 50px; color: var(--ink); padding: 8px 22px; font-weight: 500; border: 1px solid var(--line); margin: 4px; background: #fff; }
.nav-pills-c .nav-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.course-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; height: 100%; transition: .3s; display: flex; flex-direction: column; border-left: 4px solid var(--primary); }
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-left-color: var(--accent); }
.course-card h5 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--dark); }
.course-card .meta { font-size: 13px; color: var(--muted); }
.course-card .meta i { color: var(--primary); }

/* Notice board */
.notice-board { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.notice-board .nb-head { background: var(--primary); color: #fff; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; }
.notice-board .nb-head h5 { color: #fff; margin: 0; font-size: 1.2rem; }
.notice-board .nb-head a { color: var(--accent); font-size: 13px; }
.notice-board .nb-body { max-height: 420px; overflow: auto; padding: 6px 0; flex: 1; }
.notice-item { display: flex; gap: 14px; padding: 14px 22px; border-bottom: 1px dashed var(--line); color: var(--ink); transition: .2s; }
.notice-item:hover { background: var(--cream); color: var(--primary); }
.notice-item:last-child { border-bottom: 0; }
.date-box { min-width: 56px; height: 60px; border-radius: 10px; background: var(--cream); text-align: center; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); }
.date-box .d { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; color: var(--primary); line-height: 1; }
.date-box .m { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; }
.notice-item .t { font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.notice-item .c { font-size: 12px; color: var(--muted); margin-top: 3px; }
.new-badge { background: #e63946; color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 4px; margin-left: 6px; animation: blink 1.4s infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: .45; } }

/* Portal tiles (Exam cell, IQAC ...) */
.portal-tile { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); height: 100%; transition: .3s; color: var(--ink); }
.portal-tile:hover { background: var(--primary); color: #fff; transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portal-tile .ic { min-width: 58px; height: 58px; border-radius: 14px; background: var(--cream); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; transition: .3s; }
.portal-tile:hover .ic { background: var(--accent); color: var(--dark); }
.portal-tile h6 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 4px; color: inherit; }
.portal-tile p { font-size: 13.5px; margin: 0; opacity: .8; }

/* Events */
.event-card { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); transition: .3s; color: var(--ink); margin-bottom: 14px; }
.event-card:hover { box-shadow: var(--shadow); color: var(--primary); }
.event-card .date-box { min-width: 64px; height: 70px; background: var(--primary); border: 0; }
.event-card .date-box .d { color: #fff; }
.event-card .date-box .m { color: var(--accent); }
.event-card h6 { font-size: 15px; font-weight: 600; margin-bottom: 4px; font-family: 'Poppins', sans-serif; }
.event-card small { color: var(--muted); }

/* Gallery */
.gallery-item { display: block; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--cream); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(30,8,16,.85)); color: #fff; font-size: 14px; font-weight: 500; }
.gallery-item .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary); opacity: .4; }

/* CTA */
.cta { background: linear-gradient(110deg, var(--primary), var(--dark)); border-radius: 20px; padding: 50px; color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(201,162,39,.15); }
.cta h2 { color: #fff; }

/* Page banner */
.page-banner { background: radial-gradient(circle at 85% 20%, rgba(201,162,39,.28), transparent 45%), linear-gradient(120deg, var(--dark), var(--primary)); background-size: cover; background-position: center; color: #fff; padding: 70px 0 60px; position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 8px; }
.page-banner .breadcrumb { margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255,255,255,.8); font-size: 14px; }
.page-banner .breadcrumb-item.active { color: var(--accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* Sidebar */
.side-box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin-bottom: 24px; }
.side-box h6 { background: var(--primary); color: #fff; padding: 14px 20px; margin: 0; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.side-links { list-style: none; padding: 6px 0; margin: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; color: var(--ink); font-size: 14.5px; border-left: 3px solid transparent; transition: .2s; }
.side-links a:hover, .side-links a.active { background: var(--cream); color: var(--primary); border-left-color: var(--accent); }

/* Vertical tabs for portal pages */
.v-tabs .nav-link { text-align: left; color: var(--ink); padding: 11px 20px; border-radius: 0; border-left: 3px solid transparent; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.v-tabs .nav-link:hover { background: var(--cream); color: var(--primary); }
.v-tabs .nav-link.active { background: var(--cream); color: var(--primary); border-left-color: var(--accent); font-weight: 600; }
.content-box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 32px; }

/* Document list */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list .fi { font-size: 1.7rem; }
.doc-list .dt { flex: 1; }
.doc-list .dt > span { display: block; font-weight: 500; }
.doc-list .dt .new-badge { display: inline-block; font-weight: 600; }
.doc-list .dt small { color: var(--muted); }

/* Tables */
.table-c { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.table-c table { margin: 0; }
.table-c thead th { background: var(--primary); color: #fff; font-weight: 500; font-size: 14px; border: 0; padding: 13px 16px; white-space: nowrap; }
.table-c td { padding: 13px 16px; vertical-align: middle; font-size: 14.5px; border-color: var(--line); }
.table-c tbody tr:hover { background: var(--cream); }

/* Person card */
.person-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; height: 100%; transition: .3s; }
.person-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.person-card img, .person-card .ph { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--accent); margin-bottom: 14px; }
.person-card .ph { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--primary); font-size: 2.8rem; }
.person-card h6 { font-family: 'Playfair Display', serif; font-size: 1.08rem; margin-bottom: 2px; color: var(--dark); }
.person-card .des { color: var(--primary); font-size: 13.5px; font-weight: 500; }
.person-card .qual { color: var(--muted); font-size: 13px; }

/* Forms / filters */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 28px; }
.form-control, .form-select { border-radius: 10px; border-color: #ddd5c9; padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(122,30,58,.12); }
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); display: flex; gap: 16px; height: 100%; }
.contact-info-card i { width: 50px; min-width: 50px; height: 50px; border-radius: 12px; background: var(--primary); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--line); display: block; margin-bottom: 10px; }
.pagination .page-link { color: var(--primary); border-radius: 8px !important; margin: 0 3px; border-color: var(--line); }
.pagination .active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #1e0810; color: #cdbfc4; padding-top: 70px; margin-top: 0; font-size: 14.5px; border-top: 4px solid var(--accent); }
.site-footer h6 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.site-footer h6::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--accent); }
.footer-brand { color: #fff; font-size: 1.4rem; margin-bottom: 14px; }
.footer-about { opacity: .85; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #cdbfc4; transition: .2s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: var(--accent); font-size: 1.1rem; margin-top: 2px; }
.footer-contact a { color: #cdbfc4; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; align-items: center; justify-content: center; margin-right: 8px; transition: .25s; }
.footer-social a:hover { background: var(--accent); color: var(--dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 18px 0; font-size: 13px; }
.footer-bottom a { color: #cdbfc4; }
.footer-bottom a:hover { color: var(--accent); }

.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .3s; z-index: 99; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .ticker-move { animation-duration: 120s; } }

@media (max-width: 767.98px) {
  .section { padding: 55px 0; }
  .cta { padding: 34px 24px; }
  .content-box { padding: 22px; }
  .welcome-badge { right: 10px; }
}

/* Clubs */
.club-logo { width: 110px; min-width: 110px; height: 110px; border-radius: 50%; background: var(--cream); border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 2.8rem; color: var(--primary); }
.club-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.club-card-logo { position: absolute; right: 18px; top: -34px; width: 68px; height: 68px; border-radius: 50%; object-fit: contain; background: #fff; border: 3px solid #fff; box-shadow: var(--shadow); padding: 4px; }
.year-accordion .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; overflow: hidden; margin-bottom: 12px; }
.year-accordion .accordion-button { font-weight: 600; color: var(--dark); background: #fff; }
.year-accordion .accordion-button:not(.collapsed) { background: var(--cream); color: var(--primary); box-shadow: none; }
.year-accordion .accordion-button:focus { box-shadow: none; }

/* Category buttons on portal pages (e.g. NAAC: IIQA, SSR, DVV) */
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 118px; height: 100%; padding: 18px 14px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--dark)); color: #fff; box-shadow: var(--shadow); transition: .25s; position: relative; overflow: hidden; }
.cat-tile::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.35); border-radius: calc(var(--radius) - 5px); pointer-events: none; }
.cat-tile .t { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.2; }
.cat-tile .s { font-size: 12.5px; opacity: .8; margin-top: 6px; }
.cat-tile:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--dark), var(--primary)); }
.cat-tile .n { font-size: 13.5px; font-weight: 500; opacity: .95; margin-top: 4px; line-height: 1.35; }
.cat-tile-sm { min-height: 130px; background: #fff; color: var(--dark); border: 1px solid var(--line); box-shadow: none; border-top: 4px solid var(--accent); }
.cat-tile-sm::after { display: none; }
.cat-tile-sm .t { font-size: 1.25rem; color: var(--primary); }
.cat-tile-sm .s { color: var(--muted); opacity: 1; }
.cat-tile-sm:hover { color: #fff; }
.cat-tile-sm:hover .t, .cat-tile-sm:hover .s { color: #fff; }
.tile-group-title { font-size: 1.35rem; margin: 6px 0 14px; display: flex; align-items: center; gap: 12px; }
.tile-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ticker-tag { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }

/* Keep the main menu on one line on smaller desktops / tablets in landscape */
.main-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .main-nav .nav-link { padding: 15px 7px !important; font-size: 13px; }
  .main-nav .nav-link:not(.dropdown-toggle)::before, .main-nav .dropdown-toggle::before { left: 7px; right: 7px; }
  .main-nav .dropdown-toggle::after { margin-left: 2px; }
  .main-nav .container { max-width: 100%; }
}

/* Department page tabs: About Department | Programs Offered | Syllabus | Faculty | Blog */
.dept-tabs { display: flex; flex-wrap: wrap; gap: 12px; border: 0; }
.dept-tabs .nav-link { background: var(--dark); color: #fff; border: 0; border-radius: 14px; padding: 12px 26px; font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; font-weight: 600; letter-spacing: .2px; box-shadow: 0 6px 16px rgba(0,0,0,.12); border-bottom: 4px solid transparent; transition: .25s; white-space: nowrap; }
.dept-tabs .nav-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.dept-tabs .nav-link.active { background: var(--primary); color: #fff; border-bottom-color: var(--accent); }
.dept-tabs .nav-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 575.98px) { .dept-tabs { gap: 8px; } .dept-tabs .nav-link { padding: 9px 16px; font-size: .95rem; } }
.syl-group-title { font-size: 1.05rem; color: var(--primary); margin: 18px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.syl-group-title:first-child { margin-top: 0; }

/* Readable text on theme colours (--on-* is computed from the colours chosen in Admin > Settings > Theme) */
.main-nav .nav-link, .main-nav .navbar-brand, .main-nav .navbar-toggler i { color: var(--on-primary) !important; }
@media (max-width: 991.98px) { .main-nav .dropdown-item { color: var(--on-primary); } }
.side-box h6, .notice-board .nb-head, .notice-board .nb-head h5, .table-c thead th, .ticker-tag { color: var(--on-primary); }
.btn-primary-c, .btn-primary-c:hover { color: var(--on-primary); }
.btn-primary-c:hover { color: var(--on-dark); }
.btn-accent, .ticker-label, .welcome-badge, .back-to-top { color: var(--on-accent); }
.portal-tile:hover { color: var(--on-primary); }
.dept-tabs .nav-link { background: var(--dark); color: var(--on-dark); }
.dept-tabs .nav-link:hover, .dept-tabs .nav-link.active { background: var(--primary); color: var(--on-primary); }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .main-nav .nav-link { padding: 15px 10px !important; font-size: 14px; }
  .main-nav .nav-link:not(.dropdown-toggle)::before, .main-nav .dropdown-toggle::before { left: 10px; right: 10px; }
}
.card-c .card-img-logo { height: 200px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #fff, var(--cream)); border-bottom: 1px solid var(--line); padding: 18px; }
.card-c .card-img-logo img { max-height: 100%; max-width: 75%; object-fit: contain; transition: .4s; }
.card-c:hover .card-img-logo img { transform: scale(1.06); }

/* Home page Quick Links grid + highlight banner */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.quick-link { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--dark)); color: var(--on-dark); font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.02rem; line-height: 1.25; box-shadow: var(--shadow); transition: .25s; }
.quick-link:hover { color: var(--on-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); filter: brightness(1.08); }
.highlight-banner { display: block; margin-top: 32px; padding: 20px 24px; border-radius: 16px; text-align: center; font-weight: 600; font-size: 1.1rem; background: linear-gradient(90deg, var(--primary), var(--dark)); color: var(--on-dark); box-shadow: 0 14px 34px rgba(0,0,0,.15); transition: .25s; }
.highlight-banner:hover { color: var(--on-dark); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
@media (max-width: 575.98px) { .quick-links { grid-template-columns: repeat(2, 1fr); gap: 10px; } .quick-link { font-size: .92rem; min-height: 54px; } }

/* ---------- Footer (link columns / contact band / accreditations) ---------- */
.site-footer { padding-top: 0; background: #1e0810; }
.footer-links-band { background: var(--dark); color: var(--on-dark); padding: 56px 0 40px; }
.footer-links-band h6, .footer-links-band h6 a { color: var(--on-dark); }
.footer-links-band .footer-links a { color: var(--on-dark); opacity: .85; }
.footer-links-band .footer-links a:hover { opacity: 1; color: var(--on-dark); padding-left: 4px; }
.footer-links-band h6::after { background: var(--accent); }
.footer-contact-band { background: #f8f1e1; color: #3a3446; padding: 48px 0 40px; }
.footer-contact-band h6 { color: var(--dark); font-family: 'Playfair Display', Georgia, serif; text-transform: uppercase; letter-spacing: .5px; font-size: 1.02rem; margin-bottom: 14px; padding-bottom: 0; }
.footer-contact-band h6::after { display: none; }
.footer-contact-band .footer-contact li { margin-bottom: 10px; align-items: flex-start; }
.footer-contact-band .footer-contact i { color: var(--primary); }
.footer-contact-band .footer-contact a, .footer-contact-band .footer-contact span { color: #3a3446; word-break: break-word; }
.footer-contact-band .footer-contact a:hover { color: var(--primary); }
.footer-contact-band .footer-brand { color: var(--dark); font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 700; }
.footer-logo { max-height: 150px; width: auto; }
.footer-contact-band .footer-social a { width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--dark); border: 2px solid #e6d9bd; font-size: 1.15rem; }
.footer-contact-band .footer-social a:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.footer-accreditation { background: #fff; padding: 30px 0 34px; border-top: 1px solid #eee5d3; }
.footer-accreditation h6 { color: var(--dark); font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; }
.footer-accreditation h6::after { display: none; }
.footer-accreditation img { max-width: 100%; height: auto; max-height: 170px; }
.footer-bottom { margin-top: 0; background: #1e0810; color: #cdbfc4; }

/* Lighter slider overlay: only a soft shade on the text side, photo stays bright */
.hero .overlay { background: linear-gradient(90deg, rgba(20,10,15,.50) 0%, rgba(20,10,15,.22) 45%, rgba(20,10,15,0) 75%); }
.hero .caption h2, .hero .caption p, .hero .caption .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45); }
.hero .caption .eyebrow { color: #fff; opacity: .95; }

/* ===== About pages (quality policy, facts, timeline, principals, features) ===== */
.rich-text .quality-policy { background: var(--cream); border-left: 4px solid var(--primary); border-radius: 12px; padding: 22px 26px; margin-bottom: 28px; }
.rich-text .quality-policy .qp-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.rich-text .quality-policy p { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.12rem; font-style: italic; line-height: 1.7; }
.rich-text .about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.rich-text .about-facts > div { text-align: center; padding: 18px 10px; border: 1px solid var(--line); border-radius: 12px; }
.rich-text .about-facts strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--primary); line-height: 1.1; }
.rich-text .about-facts span { font-size: 13px; color: #6c6c6c; }
@media (max-width: 575px) { .rich-text .about-facts { grid-template-columns: repeat(2, 1fr); } }
.rich-text ul.timeline { list-style: none; padding: 0 0 0 26px; margin: 0 0 24px; border-left: 2px solid var(--line); }
.rich-text ul.timeline li { position: relative; padding: 0 0 22px 10px; }
.rich-text ul.timeline li::before { content: ""; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--cream); }
.rich-text ul.timeline .tl-year { display: inline-block; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.rich-text .former-principal { text-align: center; height: 100%; }
.rich-text .former-principal img { width: 100%; aspect-ratio: 592/904; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.rich-text .former-principal h5 { font-size: 1rem; margin: 0 0 2px; }
.rich-text .former-principal span { display: block; font-size: 13px; color: #6c6c6c; margin-bottom: 6px; }
.rich-text .former-principal a { font-size: 13px; font-weight: 500; }
.rich-text ul.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rich-text ul.feature-list li { position: relative; padding: 14px 16px 14px 46px; background: var(--cream); border-radius: 10px; margin: 0; }
.rich-text ul.feature-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 16px; top: 13px; color: var(--primary); font-size: 1.1rem; }
@media (max-width: 767px) { .rich-text ul.feature-list { grid-template-columns: 1fr; } }

/* Syllabus: UG / PG sub-tabs inside the department Syllabus tab */
.syl-level-tabs { gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.syl-level-tabs .nav-link { border: 1px solid var(--line); border-radius: 50px; color: var(--primary); font-weight: 600; padding: .45rem 1.2rem; background: #fff; }
.syl-level-tabs .nav-link .badge { background: var(--cream); color: var(--primary); font-weight: 600; margin-left: 4px; }
.syl-level-tabs .nav-link.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.syl-level-tabs .nav-link.active .badge { background: rgba(255,255,255,.2); color: inherit; }
