/* ----------------------------------------------------------------
	Shared modern look for inner pages (scoped to body.site-modern)
	page banners, forms, buttons, cards, tables, tabs
-----------------------------------------------------------------*/

body.site-modern {
	--pm-ink: #0f2a3d;
	--pm-text: #4a5b69;
	--pm-primary: #0a7ea4;
	--pm-primary-dark: #0b4f6c;
	--pm-navy: #0a2a3c;
	--pm-accent: #d4a24c;
	--pm-accent-dark: #b8872f;
	--pm-bg: #f5f9fb;
	--pm-line: #e3ecf1;
	--pm-shadow: 0 10px 30px rgba(15, 42, 61, .08);
	--pm-shadow-lg: 0 18px 44px rgba(15, 42, 61, .16);
	color: var(--pm-text);
}

/* ---------- Page banner (#page-title) ---------- */
body.site-modern #page-title {
	position: relative;
	padding: 62px 0 58px !important;
	background:
		radial-gradient(circle at 88% 12%, rgba(212, 162, 76, .22), transparent 45%),
		linear-gradient(120deg, #072232 0%, var(--pm-navy) 50%, #0b4f6c 100%) !important;
	border: 0 !important;
	overflow: hidden;
}
body.site-modern #page-title::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url('../assets/images/icon-pattern.jpg') repeat;
	opacity: .05;
	pointer-events: none;
}
body.site-modern #page-title .container { position: relative; z-index: 1; text-align: center; }
body.site-modern #page-title h1 {
	margin: 0;
	color: #fff !important;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}
body.site-modern #page-title h1 + span {
	display: block;
	margin-top: 10px;
	color: #cfe3ee !important;
	font-size: 16px;
	font-weight: 400;
}
body.site-modern #page-title .breadcrumb {
	position: static !important;
	transform: none !important;
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 18px 0 0;
	padding: 0;
	background: transparent;
	font-size: 13px;
}
body.site-modern #page-title .breadcrumb a { color: var(--pm-accent); }
body.site-modern #page-title .breadcrumb-item.active,
body.site-modern #page-title .breadcrumb-item + .breadcrumb-item::before { color: #cfe3ee; }

/* ---------- Page body ---------- */
body.site-modern #content { background: var(--pm-bg); }
body.site-modern #content .content-wrap { padding-top: 56px; padding-bottom: 64px; }
body.site-modern #content h1,
body.site-modern #content h2,
body.site-modern #content h3,
body.site-modern #content h4 { color: var(--pm-ink); }
body.site-modern #content a { transition: color .2s; }
body.site-modern .heading-block h3 { font-weight: 700; }
body.site-modern .heading-block::after { background: var(--pm-accent); }

/* ---------- Buttons ---------- */
body.site-modern #content .button,
body.site-modern #content button.button,
body.site-modern #content input[type="submit"].button {
	border-radius: 50px;
	font-weight: 600;
	letter-spacing: .4px;
	text-transform: none;
	text-shadow: none;
	transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
body.site-modern #content .button:not(.button-border):not(.button-white):not(.button-light):not(.button-reveal) {
	background: var(--pm-primary);
	color: #fff;
	box-shadow: 0 8px 20px rgba(10, 126, 164, .28);
}
body.site-modern #content .button:not(.button-border):not(.button-white):not(.button-light):hover {
	background: var(--pm-navy) !important;
	transform: translateY(-2px);
}
body.site-modern #content .button.button-3d { border-bottom: 0; }
body.site-modern #content .button.button-border { border-color: var(--pm-primary); color: var(--pm-primary); }
body.site-modern #content .button.button-border:hover { background: var(--pm-primary); color: #fff; }

/* ---------- Forms ---------- */
body.site-modern #content label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #4a5b69;
	margin-bottom: 8px;
}
body.site-modern #content .sm-form-control,
body.site-modern #content .form-control,
body.site-modern #content select.form-control,
body.site-modern #content .form-group input[type="text"],
body.site-modern #content .form-group input[type="email"],
body.site-modern #content .form-group input[type="password"],
body.site-modern #content .form-group input[type="tel"],
body.site-modern #content .form-group input[type="number"],
body.site-modern #content .form-group textarea,
body.site-modern #content .form-group select {
	height: auto;
	min-height: 50px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--pm-ink);
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 12px;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
body.site-modern #content textarea.sm-form-control,
body.site-modern #content textarea.form-control { min-height: 130px; line-height: 1.7; }
body.site-modern #content .sm-form-control:focus,
body.site-modern #content .form-control:focus,
body.site-modern #content .form-group input:focus,
body.site-modern #content .form-group textarea:focus,
body.site-modern #content .form-group select:focus {
	outline: 0;
	border-color: var(--pm-primary);
	box-shadow: 0 0 0 4px rgba(10, 126, 164, .12);
}
body.site-modern #content .error { color: #d9534f; }

/* ---------- Cards, wells, tabs ---------- */
body.site-modern #content .card {
	border: 1px solid var(--pm-line);
	border-radius: 18px;
	box-shadow: var(--pm-shadow);
	overflow: hidden;
}
body.site-modern #content .well,
body.site-modern #content .widget { color: var(--pm-text); }
body.site-modern #content .nav-tabs { border-bottom: 1px solid var(--pm-line); }
body.site-modern #content .nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; color: var(--pm-text); font-weight: 600; }
body.site-modern #content .nav-tabs .nav-link.active { color: var(--pm-primary-dark); border-bottom-color: var(--pm-accent); background: transparent; }

/* ---------- Tables ---------- */
body.site-modern #content .table-responsive,
body.site-modern #content .cart,
body.site-modern #content table.table { background: #fff; }
body.site-modern #content table.table,
body.site-modern #content table.cart {
	border: 1px solid var(--pm-line);
	border-radius: 14px;
	overflow: hidden;
}
body.site-modern #content table thead th {
	background: var(--pm-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: 0;
	padding: 14px 16px;
}
body.site-modern #content table td { border-color: var(--pm-line); vertical-align: middle; }
body.site-modern #content table tbody tr:hover { background: #fbfdfe; }

/* ---------- Alerts & badges ---------- */
body.site-modern #content .alert { border: 0; border-radius: 12px; }
body.site-modern #content .badge-primary { background: var(--pm-primary); }

/* ---------- Pagination ---------- */
body.site-modern .pagination .page-link { border-radius: 50px; margin: 0 3px; border: 1px solid var(--pm-line); color: var(--pm-ink); }
body.site-modern .pagination .active .page-link { background: var(--pm-navy); border-color: var(--pm-navy); color: #fff; }

/* ---------- Rupee sign when the icon font is not available ---------- */
body.site-modern .fa-rupee { font-style: normal; }
body.site-modern .fa-rupee::before { content: "\20B9"; font-family: inherit; font-weight: 700; margin-right: 1px; }

@media (max-width: 767px) {
	body.site-modern #page-title { padding: 46px 0 42px !important; }
	body.site-modern #content .content-wrap { padding-top: 36px; padding-bottom: 44px; }
}

/* ---------- Course cards (courses page) ---------- */
body.site-modern #content .course-card {
	border: 1px solid var(--pm-line) !important;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--pm-shadow);
	overflow: hidden;
	transition: transform .3s, box-shadow .3s;
}
body.site-modern #content .course-card:hover { transform: translateY(-8px); box-shadow: var(--pm-shadow-lg); }
body.site-modern #content .course-card .card-img-top { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
body.site-modern #content .course-card:hover .card-img-top { transform: scale(1.05); }
body.site-modern #content .course-card > a { display: block; overflow: hidden; }
body.site-modern #content .course-card .card-body { min-height: 0 !important; padding: 24px 24px 12px; font-size: 14px; color: var(--pm-text); line-height: 2; }
body.site-modern #content .course-card .card-title { font-size: 17px !important; line-height: 1.4; margin-bottom: 8px !important; }
body.site-modern #content .course-card .card-title a { color: var(--pm-ink); }
body.site-modern #content .course-card .card-title a:hover { color: var(--pm-primary); }
body.site-modern #content .course-card .card-title-sub { font-size: 11.5px; letter-spacing: 1.4px; margin-bottom: 10px !important; }
body.site-modern #content .course-card .card-title-sub a { color: var(--pm-accent-dark) !important; font-weight: 600; }
body.site-modern #content .course-card ins { text-decoration: none; font-weight: 700; color: var(--pm-primary-dark); font-size: 16px; }
body.site-modern #content .course-card .card-footer { background: #fff !important; border: 0; padding: 8px 24px 24px !important; }
body.site-modern #content .course-card .card-footer .button { width: 100%; margin: 0; }

/* ---------- Page numbers ---------- */
body.site-modern #content .btn.pbt {
	min-width: 46px;
	height: 46px;
	line-height: 32px;
	margin: 4px 3px;
	padding: 6px 18px;
	border-radius: 50px;
	border: 1px solid var(--pm-line);
	background: #fff;
	color: var(--pm-ink);
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--pm-shadow);
	transition: background .25s, color .25s, transform .25s;
}
body.site-modern #content .btn.pbt:hover { background: var(--pm-accent); border-color: var(--pm-accent); color: var(--pm-navy); transform: translateY(-2px); }
body.site-modern #content .btn.pbt.disabled { opacity: 1; background: var(--pm-navy); border-color: var(--pm-navy); color: #fff; pointer-events: none; }

/* Banner titles written as h2 / long titles */
body.site-modern #page-title h2,
body.site-modern #page-title h3,
body.site-modern #page-title h4 {
	margin: 0;
	color: #fff !important;
	font-size: clamp(24px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

/* ---------- Single product / course / book detail ---------- */
body.site-modern #content .single-product .product > .row {
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 22px;
	box-shadow: var(--pm-shadow);
	margin: 0;
	padding: 34px 20px;
}
body.site-modern #content .single-product .product-image { border-radius: 16px; overflow: hidden; box-shadow: var(--pm-shadow); }
body.site-modern #content .single-product .product-image img { border-radius: 16px; }
body.site-modern #content .single-product .product-desc { color: var(--pm-text); line-height: 1.85; }
body.site-modern #content .single-product .product-price h3 { font-size: 24px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; color: var(--pm-ink); }
body.site-modern #content .single-product .product-price ins { display: inline-block; text-decoration: none; font-size: 28px; font-weight: 700; color: var(--pm-primary-dark); }
body.site-modern #content .single-product .product-price del { color: #8a99a5; margin-right: 10px; }
body.site-modern #content .single-product .line { border-top: 1px solid var(--pm-line); margin: 20px 0; }
body.site-modern #content .single-product form.cart { margin-bottom: 6px; }
body.site-modern #content .single-product .button { padding: 0 30px; height: 48px; line-height: 48px; }
body.site-modern #content .single-product .iconlist { margin-top: 18px; padding: 0; }
body.site-modern #content .single-product .iconlist li {
	list-style: none;
	margin-bottom: 8px;
	padding: 11px 16px;
	background: var(--pm-bg);
	border-radius: 12px;
	color: var(--pm-ink);
}
body.site-modern #content .single-product .iconlist li i { color: var(--pm-accent-dark); margin-right: 8px; }
body.site-modern #content .single-product .feature-box h3 { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pm-ink); }
body.site-modern #content .single-product .divider { margin: 22px 0; }
body.site-modern #content .single-product .divider i { color: var(--pm-accent); }
body.site-modern #content .single-product .col-md-3 > a img { border-radius: 10px; background: #fff; padding: 6px 8px; border: 1px solid var(--pm-line); }

/* Theme gradient buttons -> one consistent look */
body.site-modern #content .button[class*="gradient-"] { background-image: none !important; background-color: var(--pm-primary) !important; color: #fff !important; }
body.site-modern #content .button[class*="gradient-"]:hover { background-color: var(--pm-navy) !important; }

/* ---------- Download tiles ---------- */
body.site-modern #content #shop .product .grid-inner {
	height: 100%;
	padding: 28px 18px 24px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 18px;
	box-shadow: var(--pm-shadow);
	transition: transform .3s, box-shadow .3s, border-color .3s;
}
body.site-modern #content #shop .product .grid-inner:hover { transform: translateY(-8px); box-shadow: var(--pm-shadow-lg); border-color: rgba(212, 162, 76, .6); }
body.site-modern #content #shop .product .product-image { max-width: 96px; margin: 0 auto 16px; }
body.site-modern #content #shop .product .product-image img { transition: transform .4s; }
body.site-modern #content #shop .product .grid-inner:hover .product-image img { transform: scale(1.08); }
body.site-modern #content #shop .product .product-title h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
body.site-modern #content #shop .product .product-title a { color: var(--pm-ink); }
body.site-modern #content #shop .product .product-title a:hover { color: var(--pm-primary); }

/* ---------- Announcements ---------- */
body.site-modern #content .row.align-items-stretch > .col-padding { padding: 56px 20px 64px; }
body.site-modern #content .row.align-items-stretch > .col-padding > div { max-width: 920px; margin: 0 auto; }
body.site-modern #content .row.align-items-stretch .heading-block { margin-bottom: 30px; }
body.site-modern #content .row.align-items-stretch .heading-block h3 { font-size: 28px; }
body.site-modern #content .brd {
	position: relative;
	margin-bottom: 22px;
	padding: 26px 30px 26px 34px !important;
	background: #fff;
	border: 1px solid var(--pm-line) !important;
	border-radius: 16px !important;
	box-shadow: var(--pm-shadow) !important;
	overflow: hidden;
	transition: transform .3s, box-shadow .3s;
}
body.site-modern #content .brd::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--pm-accent), var(--pm-primary));
}
body.site-modern #content .brd:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow-lg) !important; }
body.site-modern #content .brd .entry-title h2 { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.45; }
body.site-modern #content .brd .entry-title a { color: var(--pm-ink); }
body.site-modern #content .brd .entry-meta ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; }
body.site-modern #content .brd .entry-meta li { font-size: 13px; color: #7b8c99; }
body.site-modern #content .brd .entry-meta li::before { display: none; }
body.site-modern #content .brd .entry-meta i { color: var(--pm-accent-dark); margin-right: 6px; }
body.site-modern #content .brd .entry-content { color: var(--pm-text); line-height: 1.85; }
body.site-modern #content .brd + br { display: none; }
body.site-modern #content a.button.disabled { background: var(--pm-navy) !important; box-shadow: none; opacity: 1; }

/* ---------- Auth / form pages (signup, forgot & reset password) ---------- */
body.site-modern #content { background-image: none !important; }
body.site-modern #content .container > .row:has(> [class*="col-lg-"] > .card.shadow) { justify-content: center; }
body.site-modern #content .container > .row:has(> [class*="col-lg-"] > .card.shadow) > .col-lg-4 { display: none; }
body.site-modern #content .container > .row:has(> [class*="col-lg-"] > .card.shadow) > [class*="col-lg-"] { flex: 0 0 100%; max-width: 660px; }
body.site-modern #content .card.shadow {
	border: 1px solid var(--pm-line);
	border-top: 5px solid var(--pm-accent);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--pm-shadow-lg) !important;
}
body.site-modern #content .card.shadow .card-body { padding: 36px 40px 40px; }
body.site-modern #content .card.shadow .card-title {
	margin: 0 0 26px !important;
	padding-bottom: 0 !important;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--pm-ink);
}
body.site-modern #content .card.shadow .card-title::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--pm-accent); margin-top: 14px; }
body.site-modern #content .card.shadow label { text-transform: uppercase !important; }
body.site-modern #content .card.shadow .alert-danger { background: #fdecea; color: #a94442; padding: 14px 18px; list-style: none; }
body.site-modern #content .card.shadow .alert-danger li { list-style: none; }
body.site-modern #content .card.shadow a { color: var(--pm-primary); font-weight: 600; }
body.site-modern #content .card.shadow a:hover { color: var(--pm-accent-dark); }

/* Bootstrap primary buttons in page content */
body.site-modern #content .btn-primary {
	height: 50px;
	padding: 0 34px;
	border: 0;
	border-radius: 50px;
	background: var(--pm-primary);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .4px;
	box-shadow: 0 8px 20px rgba(10, 126, 164, .28);
	transition: transform .25s, background .25s, box-shadow .25s;
}
body.site-modern #content .btn-primary:hover { background: var(--pm-navy); transform: translateY(-2px); }
@media (max-width: 575px) { body.site-modern #content .card.shadow .card-body { padding: 26px 22px 30px; } }

/* ---------- Account area side menu ---------- */
body.site-modern #content .list-group {
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 18px;
	box-shadow: var(--pm-shadow);
	overflow: hidden;
}
body.site-modern #content .list-group-item {
	padding: 16px 22px;
	border: 0;
	border-bottom: 1px solid var(--pm-line);
	border-left: 4px solid transparent;
	border-radius: 0 !important;
	color: var(--pm-ink);
	font-size: 14.5px;
	font-weight: 500;
	transition: background .25s, color .25s, border-color .25s, padding .25s;
}
body.site-modern #content .list-group-item:last-child { border-bottom: 0; }
body.site-modern #content .list-group-item i { color: var(--pm-accent-dark); font-size: 16px; }
body.site-modern #content .list-group-item-action:hover { background: #fbf9f4; color: var(--pm-primary-dark); padding-left: 26px; }
body.site-modern #content .list-group-item.active {
	background: var(--pm-navy);
	border-color: var(--pm-accent);
	color: #fff;
}
body.site-modern #content .list-group-item.active i { color: var(--pm-accent); }

/* Section headings inside content (profile, orders, etc.) */
body.site-modern #content .heading-block { margin-bottom: 26px; }
body.site-modern #content .heading-block h3 { color: var(--pm-ink); }
body.site-modern #content .heading-block span { color: var(--pm-text); }
body.site-modern #content .alert-success { background: #e7f6ee; color: #1b7a49; }
body.site-modern #content .alert-danger { background: #fdecea; color: #a94442; }
body.site-modern #content .btn-warning { border-radius: 50px; font-weight: 600; }
