:root {
	--primary-color: #B08C62;
	--primary-dark: #8D683D;
	--secondary-color: #E5C999;
	/* Course page accent aliases (override in page for blue theme) */
	--pc: #B08C62;
	--pd: #8D683D;
	--ps: #E5C999;
}

html {
    height: 100%;
    background-color: #212529; /* Match footer bg-dark to prevent white gap at bottom */
}

body {
	font-family: 'IBM Plex Sans', sans-serif;
	color: #1e293b;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

footer {
    margin-top: auto;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
	font-family: 'Playfair Display', serif;
}

.bg-gradient-soft {
	background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.course-feature-card {
	border-radius: 1rem;
	transition: transform 0.3s ease;
	border: 1px solid rgba(0,0,0,0.1);
}

.course-feature-card:hover {
	transform: translateY(-5px);
}

.timeline-item {
	position: relative;
	padding-left: 3rem;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 2px;
	background-color: var(--primary-color);
}

.timeline-item::after {
	content: '';
	position: absolute;
	left: -0.5rem;
	top: 1rem;
	height: 1rem;
	width: 1rem;
	border-radius: 50%;
	background-color: var(--primary-color);
}

.book-cover {
	box-shadow: 20px 20px 60px rgba(0,0,0,0.1),
			   -20px -20px 60px rgba(255,255,255,0.5);
	transition: transform 0.3s ease;
}

.book-cover:hover {
	transform: translateY(-10px);
}

.designer-card {
	border-radius: 1rem;
	transition: all 0.3s ease;
	overflow: hidden;
}

.designer-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.chapter-list {
	counter-reset: chapter;
}

.chapter-item {
	counter-increment: chapter;
	position: relative;
	padding-left: 3rem;
	margin-bottom: 2rem;
}

.chapter-item::before {
	content: counter(chapter, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
	color: var(--primary-color);
	opacity: 0.5;
}

.hover-primary:hover {
	color: var(--primary-color) !important;
	transition: color 0.3s ease;
}

/* Add to your existing styles */
.gallery-item {
	display: block;
	overflow: hidden;
	border-radius: 0.5rem;
}

.hover-scale {
	transition: transform 0.3s ease;
}

.hover-scale:hover {
	transform: scale(1.05);
}

/* Lightbox customization */
.ekko-lightbox {
	background-color: rgba(0, 0, 0, 0.9);
}

.ekko-lightbox .modal-content {
	background: transparent;
	border: none;
}

.ekko-lightbox .modal-header {
	border: none;
	padding: 0;
}

.ekko-lightbox .modal-body {
	padding: 0;
}

.ekko-lightbox .close {
	color: white;
	opacity: 1;
	text-shadow: none;
	font-size: 24px;
}

.ekko-lightbox-nav-overlay a {
	color: white;
	opacity: 0.8;
	text-shadow: none;
}

.ekko-lightbox-nav-overlay a:hover {
	opacity: 1;
}

/* Fullscreen Video Styling */
.video-section {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}

.fullscreen-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

.overlay-content {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
text-align: center;
}

.fullscreen-toggle-btn {
background: none;
border: none;
padding: 0;
cursor: pointer;
}

.fullscreen-icon {
width: 40px; /* Adjust icon size as needed */
height: auto;
filter: brightness(50%);
}

/* Default styling for all screens */
.gallery-row {
overflow: hidden; /* Prevent content overflow */
}

/* Restrict height only for desktop screens */
@media (min-width: 992px) { /* Bootstrap's "lg" breakpoint */
.gallery-row {
  height: 180px; /* Fixed height for desktop */
}
.gallery-row img {
  object-fit: cover; /* Ensure thumbnails fit within the restricted height */
}
}

/* Custom button styling */
.custom-button {
width: 350px; /* Set fixed width */
padding: 10px; /* Add padding around the button */
text-align: center; /* Ensure text is centered */
margin-top: 60px; /* Add top margin */
}

@media (max-width: 768px) {
  .col-md-4 {
    flex: 0 1 calc(50% - 20px); /* Two cards per row */
  }
}

@media (max-width: 576px) {
  .col-md-4 {
    flex: 0 1 calc(100% - 20px); /* One card per row */
  }
}

.position-relative {
  background: transparent; /* Ensures the background is transparent */
}

.book-cover {
  box-shadow: none !important;
}

.fourrow {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adjust spacing between cards */
  margin-top: 20px; /* Add top margin */
}

.fourcol-md-4 {
  flex: 0 1 calc(25% - 20px); /* Four cards per row */
  box-sizing: border-box; /* Include padding and borders in width calculation */
}

.btn-primary {
    background-color: #B08C62 !important;
    border-color: #B08C62 !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #9c7a53 !important; /* Optional: a slightly darker shade for hover */
    border-color: #9c7a53 !important;
}

.btn-outline-primary {
    color: #B08C62 !important;
    border-color: #B08C62 !important;
    background-color: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    color: #fff !important;
    background-color: #B08C62 !important;
    border-color: #B08C62 !important;
}

.text-primary {
  --bs-text-opacity: 1;
  color: #8D683D !important;
}

/* Navbar: visible toggler and mobile dropdowns (Courses & Language) */
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 0, 0, 0.15);
}
.nav-quick-links .nav-link {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}
.nav-quick-links .nav-link:hover {
  color: rgba(0, 0, 0, 0.8);
}
@media (max-width: 991.98px) {
  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0.25rem 0;
    border: 0;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.03);
  }
  .navbar-collapse .dropdown-item {
    padding: 0.5rem 1rem;
  }
  .navbar-collapse .nav-item.dropdown .nav-link {
    padding-right: 1rem;
  }
}

/* Footer: two-column layout on mobile/tablet */
@media (max-width: 991.98px) {
  .footer-block {
    margin-bottom: 0.5rem;
  }
  .footer-block h5 {
    font-size: 0.95rem;
  }
}
@media (min-width: 992px) {
  .footer-block:last-child .input-group {
    max-width: 100%;
  }
}

/* ========== Course page styles (shared; hero-wrap::before stays per-page) ========== */
.hero-wrap {
	background-color: #1e2532;
	min-height: 90vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero-wrap .container {
	position: relative;
	z-index: 1;
}

.hero-badge {
	display: inline-block;
	background: color-mix(in srgb, var(--pc) 25%, transparent);
	border: 1px solid color-mix(in srgb, var(--ps) 50%, transparent);
	color: var(--ps);
	border-radius: 50px;
	padding: 0.35rem 1.1rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

.hero-title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.15;
}

.hero-title span {
	color: var(--ps);
}

.hero-lead {
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.1rem;
	max-width: 520px;
}

.stat-pill {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50px;
	padding: 0.5rem 1.2rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.feat-card {
	border-radius: 1.25rem;
	border: 1px solid #e2e8f0;
	background: #fff;
	transition: transform 0.3s, box-shadow 0.3s;
	overflow: hidden;
}

.feat-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px color-mix(in srgb, var(--pc) 15%, transparent);
}

.feat-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--ps) 12%, #fff), color-mix(in srgb, var(--pc) 15%, #fff));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--pc);
	margin-bottom: 1rem;
}

.incl-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--ps) 12%, #fff);
	border: 1px solid color-mix(in srgb, var(--ps) 45%, transparent);
}

.incl-item i {
	color: var(--pc);
	font-size: 1.2rem;
}

.mod-card {
	background: #fff;
	border-radius: 1rem;
	border: 1px solid #e2e8f0;
	padding: 1.5rem 1.75rem;
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	transition: box-shadow 0.25s;
}

.mod-card:hover {
	box-shadow: 0 8px 24px color-mix(in srgb, var(--pc) 12%, transparent);
}

.mod-num {
	min-width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pc), var(--pd));
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Row containing price cards: ensure visible gap between cards */
.row:has(.price-card) {
	--bs-gutter-x: 2.7rem;
	column-gap: 2.7rem;
}

.price-card {
	min-width: 360px;
	margin-bottom: 1.5rem;
	border-radius: 1.5rem;
	border: 2px solid #e2e8f0;
	background: #fff;
	transition: transform 0.3s;
	flex-shrink: 0;
	box-sizing: border-box;
}

.price-card.featured {
	border-color: var(--pc);
	background: linear-gradient(160deg, color-mix(in srgb, var(--ps) 15%, #fff) 0%, #fff 100%);
}

.price-card:hover {
	transform: translateY(-4px);
}

.price-tag {
	font-family: 'Playfair Display', serif;
	font-size: 3rem;
	font-weight: 700;
	color: var(--pd);
}

.price-tag sup {
	font-size: 1.25rem;
	vertical-align: 0.5em;
	margin-top: 0;
}

.cta-strip {
	background: linear-gradient(135deg, #0f0c08 0%, #4a3018 100%);
}

/* Course page footer link hover */
body:has(.hero-wrap) footer a:hover {
	color: var(--pc) !important;
}

/* Course page primary buttons (override global gold when --pc is set) */
body:has(.hero-wrap) .btn-primary {
	background-color: var(--pc) !important;
	border-color: var(--pc) !important;
}
body:has(.hero-wrap) .btn-primary:hover,
body:has(.hero-wrap) .btn-primary:focus,
body:has(.hero-wrap) .btn-primary:active {
	background-color: var(--pd) !important;
	border-color: var(--pd) !important;
}
body:has(.hero-wrap) .btn-outline-primary {
	color: var(--pc) !important;
	border-color: var(--pc) !important;
}
body:has(.hero-wrap) .btn-outline-primary:hover {
	color: #fff !important;
	background-color: var(--pc) !important;
	border-color: var(--pc) !important;
}
body:has(.hero-wrap) .text-primary {
	color: var(--pc) !important;
}

/* Course slider (used on course pages) */
.course-slider {
	display: flex;
	overflow-x: auto;
	gap: 1.5rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2rem;
	margin-bottom: -1rem;
}

.course-slider::-webkit-scrollbar {
	display: none;
}

.course-slide-card {
	flex: 0 0 305px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 1.25rem;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
}

.course-slide-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-slide-card .card-img {
	height: 180px;
	background-size: cover;
	background-position: center;
}

.course-slide-card .card-body {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.course-slide-card .badge-tag {
	background: #f0f9ff;
	color: var(--pc, #0ea5e9);
	padding: 0.35rem 0.85rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.course-slide-card h3 {
	font-family: 'Playfair Display', serif;
}
/* Comparison Table Enhancements */
.comp-table-wrapper {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden !important;
    border: 1px solid #e2e8f0;
}

.comp-table {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

.comp-table thead th {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1rem !important;
    border-bottom: none !important;
    vertical-align: middle;
}

.comp-table tbody td {
    padding: 1.25rem 1.5rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0 !important;
}

.comp-table tbody tr:nth-child(even) {
    background-color: #fcfdfe !important;
}

.comp-table tbody tr:last-child td {
    border-bottom: none !important;
}

.comp-table tbody tr {
    transition: background-color 0.2s ease;
}

.comp-table tbody tr:hover {
    background-color: #f8fafc !important;
}

.comp-table .bi-check-lg {
    color: #10b981; /* Vibrant Green */
    font-weight: 800;
    font-size: 1.15rem;
}

.comp-table .bi-dash {
    color: #94a3b8; /* Muted Slate */
    font-size: 1.15rem;
}

/* Course Specific Header Colors */
.th-aesthetics { background: #B08C62 !important; color: #fff !important; }
.th-3dsmax { background: #0369a1 !important; color: #fff !important; }
.th-workflow { background: #1e293b !important; color: #fff !important; }
.th-ai { background: #0ea5e9 !important; color: #fff !important; }

/* AI Column Subtle Highlight */
.col-ai-highlight {
    background-color: rgba(240, 249, 255, 0.05) !important;
}

/* Sticky First Column for Mobile */
@media (max-width: 991px) {
    .comp-table-wrapper {
        overflow-x: auto !important;
    }
    .comp-table td:first-child, 
    .comp-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #fff;
        border-right: 2px solid #f1f5f9 !important;
    }
    .comp-table tr:hover td:first-child {
        background-color: #f8fafc;
    }
}
