/* ===================================================================
   site.css
   Dr. Ganpatrao Deshmukh Mahavidyalaya Sangola — Professional Theme
   Brand palette: Red / Yellow / Black
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
	--brand-red: #C8102E;
	--brand-red-dark: #9c0c29;
	--brand-red-light: #E63950;
	--brand-yellow: #FFB81C;
	--brand-yellow-soft: #FFF3D6;
	--brand-black: #14161A;
	--brand-black-soft: #1F2127;
	--text-light: #FFFAF5;
	--text-dark: #2b2b2b;
	--text-muted: #6b7280;
	--surface: #ffffff;
	--bg-page: #F3F4F6;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 2px 8px rgba(20,22,26,0.08);
	--shadow-md: 0 8px 24px rgba(20,22,26,0.12);
	--shadow-lg: 0 16px 40px rgba(20,22,26,0.16);
}

* { box-sizing: border-box; }

body {
	font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
	background: var(--bg-page);
	color: var(--text-dark);
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.panel-heading, .navbar-brand {
	font-family: 'Poppins', 'Segoe UI', sans-serif;
}

a { transition: color .15s ease, background-color .15s ease, transform .15s ease; }

/* ===================== NAVBAR ===================== */
.navbar-inverse {
	background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
	background-image: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
	border: none;
	box-shadow: var(--shadow-md);
	min-height: 64px;
}
.navbar-inverse .navbar-brand {
	color: var(--brand-yellow);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .3px;
	display: flex;
	align-items: center;
	height: 64px;
}
.navbar-inverse .navbar-brand:hover { color: #FFFFFF; }
.navbar-inverse .navbar-nav>li>a {
	color: var(--text-light);
	font-weight: 500;
	font-size: 14.5px;
	padding-top: 22px;
	padding-bottom: 22px;
}
.navbar-inverse .navbar-nav>li>a:hover,
.navbar-inverse .navbar-nav>li>a:focus { color: var(--brand-yellow); background-color: rgba(0,0,0,0.15); }
.navbar-inverse .navbar-nav>.active>a,
.navbar-inverse .navbar-nav>.open>a {
	background-color: rgba(0,0,0,0.2);
	color: var(--brand-yellow);
}
.dropdown-menu {
	background-color: #FFFFFF;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	border: none;
	overflow: hidden;
	padding: 6px;
	margin-top: 8px;
}
.dropdown-menu>li>a {
	color: var(--text-dark);
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
}
.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus { background-color: var(--brand-yellow-soft); color: var(--brand-red-dark); }

/* ===================== HERO / ADMISSION STRIP ===================== */
.admission-strip {
	background: linear-gradient(90deg, var(--brand-black) 0%, var(--brand-black-soft) 100%);
	color: var(--brand-yellow);
	font-size: 17px;
	padding: 13px 20px;
	letter-spacing: .3px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	font-weight: 500;
	margin: 14px 0 0 0;
	position: relative;
	overflow: hidden;
}
.admission-strip::before {
	content: "📢";
	margin-right: 8px;
}
.admission-strip a { color: var(--brand-yellow); font-weight: 700; text-decoration: none; }
.admission-strip a:hover { color: #FFFFFF; }

/* ===================== LAYOUT WRAPPERS ===================== */
.container-floud {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ===================== CAROUSEL ===================== */
#myCarousel {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	margin-top: 18px;
}
#myCarousel .carousel-indicators {
	bottom: 14px;
}
#myCarousel .carousel-indicators li {
	background-color: rgba(255,255,255,0.55);
	border-color: transparent;
	width: 9px;
	height: 9px;
}
#myCarousel .carousel-indicators .active {
	background-color: var(--brand-yellow);
	width: 11px;
	height: 11px;
}
.carousel-control.left, .carousel-control.right {
	background-image: none;
	opacity: 0;
	transition: opacity .2s;
	width: 60px;
}
#myCarousel:hover .carousel-control { opacity: 1; }
.carousel-control .glyphicon {
	background: rgba(0,0,0,0.35);
	border-radius: 50%;
	width: 42px;
	height: 42px;
	line-height: 42px;
	top: 45%;
}

#myCarousel1 {
	border-radius: var(--radius);
	overflow: hidden;
}

/* ===================== PANELS / CARDS ===================== */
.panel.hed {
	border: none;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	margin-bottom: 22px;
	background: var(--surface);
	transition: box-shadow .2s ease;
}
.panel.hed:hover { box-shadow: var(--shadow-md); }

.panel-danger.hed .panel-heading {
	background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
	color: var(--text-light);
	border: none;
	font-size: 17px;
	font-weight: 600;
	padding: 16px 18px;
	letter-spacing: .2px;
}
.panel-primary.hed .panel-heading {
	background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-black-soft) 100%);
	color: var(--brand-yellow);
	border: none;
	font-size: 17px;
	font-weight: 600;
	padding: 16px 18px;
	letter-spacing: .2px;
}
.panel-body { background-color: var(--surface); padding: 18px; }

/* ===================== UPDATES TABLE ===================== */
.table.table-striped.table-dark {
	margin-bottom: 0;
	color: var(--text-dark);
	background-color: transparent;
	border-collapse: separate;
	border-spacing: 0 8px;
}
.table.table-striped.table-dark th {
	background-color: transparent;
	color: var(--text-muted);
	border-top: none;
	border-bottom: 2px solid #eee;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .6px;
	font-weight: 600;
	padding-bottom: 10px;
}
.table.table-striped.table-dark tbody tr {
	background-color: #FAFAFA;
}
.table.table-striped.table-dark tbody tr:nth-of-type(odd) { background-color: #FAFAFA; }
.table.table-striped.table-dark tbody tr:hover { background-color: var(--brand-yellow-soft); }
.table.table-striped.table-dark td {
	padding: 12px 14px;
	border-top: none;
	font-size: 14.5px;
	vertical-align: middle;
	border-radius: 8px;
}
.table.table-striped.table-dark td:first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.table.table-striped.table-dark td:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); text-align: right; white-space: nowrap; }

.table .btn-warning {
	background-color: var(--brand-yellow);
	border-color: var(--brand-yellow);
	color: var(--brand-black);
	font-weight: 600;
	font-size: 13px;
	border-radius: 999px;
	padding: 6px 16px;
	box-shadow: var(--shadow-sm);
}
.table .btn-warning:hover { background-color: #e6a000; border-color: #e6a000; transform: translateY(-1px); }

/* ---------- notice highlight ---------- */
.blink {
	background-color: var(--brand-yellow-soft);
	color: var(--brand-red-dark);
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	display: inline-block;
	font-size: 13px;
	animation: pulse-soft 2.2s ease-in-out infinite;
}
@keyframes pulse-soft {
	0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0.0); }
	50% { box-shadow: 0 0 0 5px rgba(200,16,46,0.14); }
}

/* ===================== NEWS & EVENTS LIST ===================== */
.panel-primary.hed .panel-body a {
	color: var(--text-dark);
	font-weight: 500;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
	display: inline-block;
	padding: 2px 0;
	border-bottom: 1px dashed transparent;
}
.panel-primary.hed .panel-body a:hover {
	color: var(--brand-red);
	border-bottom-color: var(--brand-red);
}

/* ===================== FOUNDER CARD ===================== */
.img-circle {
	border: 4px solid var(--brand-yellow);
	box-shadow: var(--shadow-md);
	width: 130px;
	height: 130px;
	object-fit: cover;
}

/* ===================== TOPPERS CARD ===================== */
.card {
	box-shadow: var(--shadow-sm);
	transition: 0.25s ease;
	width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card span {
	display: block;
	text-align: center;
	padding: 10px;
	background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-black-soft) 100%);
	color: var(--brand-yellow);
	font-weight: 600;
	font-size: 14px;
}

/* ===================== READ MORE BUTTON ===================== */
.panel-body .btn-primary {
	background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
	border: none;
	border-radius: 999px;
	font-weight: 600;
	padding: 8px 22px;
	box-shadow: var(--shadow-sm);
}
.panel-body .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===================== SOCIAL ICONS ===================== */
.social-network.social-circle { display: flex; justify-content: center; margin: 0; padding: 0; }
.social-network.social-circle li { list-style: none; }
.social-network.social-circle li a {
	background-color: var(--brand-black);
	color: var(--brand-yellow);
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
	font-size: 18px;
}
.social-network.social-circle li a:hover {
	background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
	color: #fff;
	transform: translateY(-2px);
}

/* ===================== MODAL ===================== */
.modal-content { border-radius: var(--radius); overflow: hidden; border: none; box-shadow: var(--shadow-lg); }
.modal-header {
	background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
	color: var(--text-light);
	border: none;
	padding: 18px 20px;
}
.modal-header .close { color: var(--text-light); opacity: .9; }
.modal-title { color: var(--brand-yellow); font-weight: 600; }
.modal-body { padding: 22px; max-height: 70vh; overflow-y: auto; }
.modal-body a { color: var(--text-dark); font-size: 14px; }
.modal-body a:hover { color: var(--brand-red); }
.modal-footer { border-top: 1px solid #eee; }

/* ===================== FOUNDER PANEL HEADING (blank) ===================== */
.panel-danger.hed .panel-heading:empty,
.panel-danger.hed .panel-heading center:empty { display: none; }

/* ===================== FOOTER ===================== */
.wrapper.row5 {
	background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-black-soft) 100%) !important;
	color: var(--text-light);
	padding: 20px 0;
	margin-top: 32px !important;
}
#copyright { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
#copyright a { color: var(--brand-yellow); text-decoration: none; }
#copyright a:hover { text-decoration: underline; }

/* ===================== BACK TO TOP ===================== */
#backtotop {
	background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
	color: #fff;
	box-shadow: var(--shadow-lg);
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
}
#backtotop:hover { transform: translateY(-2px); }

/* ===================== GENERAL SPACING ===================== */
img { border-radius: 6px 6px 0 0; }
.col-md-8, .col-md-4 { padding-left: 10px; padding-right: 10px; }

@media (max-width: 991px) {
	.col-md-8, .col-md-4 { padding-left: 15px; padding-right: 15px; }
}

/* ===================== NEWS POPUP MODAL ===================== */
.news-popup-dialog {
	max-width: 480px;
	margin: 30px auto;
}
.news-popup-content {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: none;
	box-shadow: var(--shadow-lg);
	position: relative;
	background: #fff;
}
.news-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 10;
	color: #fff;
	opacity: 1;
	background: rgba(0,0,0,0.55);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 30px;
	text-shadow: none;
	border: none;
}
.news-popup-close:hover { background: var(--brand-red); color: #fff; opacity: 1; }

#newsPopupCarousel .item img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 82vh;
	object-fit: contain;
	background: #fff;
}
#newsPopupCarousel .carousel-indicators {
	bottom: 10px;
}
#newsPopupCarousel .carousel-indicators li {
	background-color: rgba(255,255,255,0.7);
	border: 1px solid rgba(0,0,0,0.2);
	width: 9px;
	height: 9px;
}
#newsPopupCarousel .carousel-indicators .active {
	background-color: var(--brand-yellow);
	width: 11px;
	height: 11px;
}
#newsPopupCarousel .carousel-control {
	width: 50px;
	opacity: 0;
	transition: opacity .2s;
	background-image: none;
}
#newsPopupCarousel:hover .carousel-control { opacity: 1; }
#newsPopupCarousel .carousel-control .glyphicon {
	background: rgba(0,0,0,0.45);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	line-height: 36px;
	top: 45%;
}

@media (max-width: 600px) {
	.news-popup-dialog { max-width: 94%; margin: 18px auto; }
	#newsPopupCarousel .item img { max-height: 78vh; }
}


	.admission-strip { font-size: 14.5px; padding: 11px 14px; }
	.panel-danger.hed .panel-heading,
	.panel-primary.hed .panel-heading { font-size: 15px; padding: 13px 14px; }
	.navbar-inverse .navbar-brand { font-size: 16px; }
	.table.table-striped.table-dark td { font-size: 13px; padding: 10px; }
}