* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Bricolage Grotesque", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

/* Custom css */
.d-inline-block {
	display: inline-block!important;
}
.d-block {
	display: block!important;
}
.d-none {
	display: none!important;
}
.position-relative {
	position: relative;
}
.position-absolute {
	position: absolute;
}
.position-nr1 {
	right: -5px;
}
.position-nr2 {
	right: -10px;
}
.position-nr3 {
	right: -15px;
}
.position-nr4 {
	right: -20px;
}
.position-nr5 {
	right: -25px;
}
.position-nr6 {
	right: -30px;
}
.position-r0 {
	right: 0;
}
.position-r1 {
	right: 5px;
}
.position-r2 {
	right: 10px;
}
.position-r3 {
	right: 15px;
}
.position-r4 {
	right: 20px;
}
.position-r5 {
	right: 25px;
}
.position-r6 {
	right: 30px;
}
.position-nb1 {
	bottom: -5px;
}
.position-nb2 {
	bottom: -10px;
}
.position-nb3 {
	bottom: -15px;
}
.position-nb4 {
	bottom: -20px;
}
.position-nb5 {
	bottom: -25px;
}
.position-nb6 {
	bottom: -30px;
}
.position-b0 {
	bottom: 0;
}
.position-b1 {
	bottom: 5px;
}
.position-b2 {
	bottom: 10px;
}
.position-b3 {
	bottom: 15px;
}
.position-b4 {
	bottom: 20px;
}
.position-b5 {
	bottom: 25px;
}
.position-b6 {
	bottom: 30px;
}
.z-1 {
	z-index: 1;
}
.z-2 {
	z-index: 2;
}
.w-10 {
	width: 10%!important;
}
.w-25 {
	width: 25%!important;
}
.w-80 {
	width: 80%!important;
}
.justify-content-start {
	display: flex!important;
	justify-content: start!important;
}
.justify-content-center {
	display: flex!important;
	justify-content: center!important;
}
.gap-0 {
	gap: 0px!important;
}
.gap-1 {
	gap: 0.5rem!important;
}
a.col-2 {
	text-decoration: none!important;
}
h1, h2 {
	font-size: 3rem;
	line-height: 1.2;
}
.hr {
	clear: both;
	border-bottom: 1px solid var(--border-color);
}
.fs-1, .fs-2,
.fs-3, .fs-4, .fs-5 {
    color: var(--text-color)!important;
}
.fs-1 {
    font-size: 0.5rem!important;
	line-height: 1.5!important;
}
.fs-2 {
    font-size: 1.5rem!important;
	line-height: 1.3!important;
}
.fs-3 {
    font-size: 2rem!important;
	line-height: 1.3!important;
}
.fs-4 {
    font-size: 3rem!important;
	line-height: 1.2!important;
}
.fs-5 {
    font-size: 4rem!important;
	line-height: 1.2!important;
}
.fw-bold {
	font-weight: bold!important;
}
.fw-normal {
	font-weight: normal!important;
}
.fw-100 {
	font-weight: 100!important;
}
.fw-200 {
	font-weight: 200!important;
}
.fw-300 {
	font-weight: 300!important;
}
.fw-400 {
	font-weight: 400!important;
}
.fw-500 {
	font-weight: 500!important;
}
.light-text {	
	color: var(--text-secondary)!important;
}
.w-100 {
	width: 100%!important;
}
.pt-5 {
	padding-top: 30px!important;
}
.mt-n1 {
	margin-top: -20px!important;
}
.mt-1 {
	margin-top: 10px!important;
}
.mt-2 {
	margin-top: 15px!important;
}
.mt-3 {
	margin-top: 20px!important;
}
.mt-4 {
	margin-top: 25px!important;
}
.mt-5 {
	margin-top: 30px!important;
}
.mt-6 {
	margin-top: 35px!important;
}
.mb-n1 {
	margin-bottom: -20px!important;
}
.mb-n2 {
	margin-bottom: -30px!important;
}
.mb-n3 {
	margin-bottom: -40px!important;
}
.mb-n4 {
	margin-bottom: -50px!important;
}
.mb-n5 {
	margin-bottom: -60px!important;
}
.mb-1 {
	margin-bottom: 10px!important;
}
.mb-2 {
	margin-bottom: 15px!important;
}
.mb-3 {
	margin-bottom: 20px!important;
}
.mb-4 {
	margin-bottom: 25px!important;
}
.mb-5 {
	margin-bottom: 30px!important;
}
.mb-6 {
	margin-bottom: 35px!important;
}
.ml-n1 {
	margin-left: -20px!important;
}
.ml-1 {
	margin-left: 10px!important;
}
.ml-2 {
	margin-left: 15px!important;
}
.ml-3 {
	margin-left: 20px!important;
}
.ml-4 {
	margin-left: 25px!important;
}
.ml-5 {
	margin-left: 30px!important;
}
.ml-6 {
	margin-left: 35px!important;
}
.mr-n1 {
	margin-right: -20px!important;
}
.mr-1 {
	margin-right: 10px!important;
}
.mr-2 {
	margin-right: 15px!important;
}
.mr-3 {
	margin-right: 20px!important;
}
.mr-4 {
	margin-right: 25px!important;
}
.mr-5 {
	margin-right: 30px!important;
}
.mr-6 {
	margin-right: 35px!important;
}
.p-0 {
	padding: 0px!important;
}
.p-1 {
	padding: 5px!important;
}
.p-2 {
	padding: 10px!important;
}
.p-3 {
	padding: 15px!important;
}
.p-4 {
	padding: 20px!important;
}
.pt-2 {
	padding-top: 10px!important;
}
.pt-3 {
	padding-top: 20px!important;
}
.pt-4 {
	padding-top: 30px!important;
}
.pt-5 {
	padding-top: 40px!important;
}
.pt-6 {
	padding-top: 60px!important;
}
.py-0 {
	padding-top: 0px!important;
	padding-bottom: 0px!important;
}
.py-1 {
	padding-top: 5px!important;
	padding-bottom: 5px!important;
}
.py-2 {
	padding-top: 10px!important;
	padding-bottom: 10px!important;
}
.py-3 {
	padding-top: 20px!important;
	padding-bottom: 20px!important;
}
.py-4 {
	padding-top: 30px!important;
	padding-bottom: 30px!important;
}
.py-5 {
	padding-top: 40px!important;
	padding-bottom: 40px!important;
}
.py-6 {
	padding-top: 50px!important;
	padding-bottom: 50px!important;
}
.btn-transparent {
	background: transparent!important;
}
.bg-s1 {
	background: #FDEDED!important;
}
.bg-s2 {
	background: #F5F0CD!important;
}
.bg-s3 {
	background: #DFF2EB!important;
}
.bg-s4 {
	background: #CFFFE2!important;
}
.bg-s1 h1, .bg-s2 h1, .bg-s3 h1, .bg-s4 h1,
.bg-s1 h2, .bg-s2 h2, .bg-s3 h2, .bg-s4 h2,
.bg-s1 h3, .bg-s2 h3, .bg-s3 h3, .bg-s4 h3,
.bg-s1 h4, .bg-s2 h4, .bg-s3 h4, .bg-s4 h4,
.bg-s1 h5, .bg-s2 h5, .bg-s3 h5, .bg-s4 h5,
.bg-s1 h6, .bg-s2 h6, .bg-s3 h6, .bg-s4 h6,
.bg-s1 p, .bg-s2 p, .bg-s3 p, .bg-s4 p {
	color: #333333!important;
}
h3.fs-3 {
	font-size: 1.5rem!important;
}
p.fs-2 {
	font-weight: normal;
	font-size: 1.2rem!important;
}
.card h3 {
	line-height: 1.2;
	margin-bottom: 10px;
}
/* Image */
.auto-img {
	margin: 20px auto;
	width: 100%!important;
	border-radius: 20px;
}

img {
  width: 100%;
}

.ql-video {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.related-post {
	margin-top: 50px;
}
.related-post h3,
.related-post h4 {
	font-size: 1.5rem!important;
	line-height: 1.2;
	color: var(--text-color);
}
.related-post h5 {
	margin-top: 20px;
	font-size: 1rem;
	font-weight: normal!important;
	color: var(--text-secondary)!important;
}

input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--nav-bdr);
    color: var(--text-color);
    font-size: 0.9rem;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
}
/* Solid and Gradient Backgrounds */
.gradient-tag {
  padding: 2px 10px;
  font-size: 0.8rem!important;
  line-height: 1.2!important;
  font-weight: normal!important;
  text-transform: uppercase;
  color: #000000!important;
  background-image: linear-gradient(to right, #c7d9f2, #b3d9f2, #b3ecf2, #b3f2ec, #d9f2d9);
  border-radius: 20px;
}

.gradient-text {
  background-image: linear-gradient(to right, #500bb7, #5a39b1, #2678b3, #099cb5, #00a7b5);
  background: -webkit-linear-gradient(to right, #500bb7, #5a39b1, #2678b3, #099cb5, #00a7b5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient {
  background-image: linear-gradient(to right, #87b3e6 0%, #b3e6b3 100%);
}

.bg-gradient1 {
	background-image: linear-gradient( 135deg, #b3fff5 10%, #f6a3d2 100%);
}

.bg-gradient1 h2,
.bg-gradient1 i,
.bg-gradient1 p {
	color: #333333;
}

.bg-black {
  background: #000000;
}

/* Group Button style */
.btn-group {
  margin: 20px auto;
  padding: 0;
  background: transparent;
  text-decoration: none;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-group i,
.btn-group span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #ffffff;
  height: 40px;
  transition: all 0.3s ease;
}

.btn-group span {
  padding: 0 20px;
  border-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-group i {
  margin-left: -2px;
  width: 40px;
  border-radius: 20px 50% 50% 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-group:hover i,
.btn-group:hover span {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-group:hover i::after,
.btn-group:hover span::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 0.6s ease-out;
  pointer-events: none;
  z-index: -1;
}

.btn-group i,
.btn-group span {
  position: relative;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.btn-group:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
}

/* Default button */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	white-space: nowrap;
	font-family: inherit;
}

.btn-sm {
	padding: 8px 16px;
	font-size: 0.9rem;
}

.btn-lg {
	padding: 25px;
	font-size: 1rem;
}

.btn:hover {
	background: #0056b3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn:active {
	transform: translateY(0);
}

.btn-nav {
	height: 36px;
}

.btn:disabled,
.btn-group:disabled i,
.btn-group:disabled span {
  background: var(--text-secondary);
  transform: none;
  box-shadow: none;
}

/* Gradient Animation for hero H1 text */
.gradient-text.animated {
    background-size: 400% 400%;
	animation: gradientAnimation 12s linear infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating hero animation (smoother) */
@keyframes heroFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(40px, 60px);
  }
  50% {
    transform: translate(-40px, 80px);
  }
  75% {
    transform: translate(60px, -40px);
  }
}

/* Reset default list styles */
ul,
ol {
  margin: 1em 0;
  padding-left: 2em;
  font-size: 1rem;
  line-height: 1.6;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 2em;
}

li {
  margin-bottom: 0.4em;
}

ol li {
  padding-left: 0.25em;
  text-indent: 0;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    align-items: start;
	gap: 3rem;
}

.main {
	/* Prevents horizontally overflow from long content(text) */
    min-width: 0;
}

.aside {
    position: sticky;
    top: 80px; /* 60px navbar + 20px spacing */
    overflow: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    line-height: 60;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--nav-bdr);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    height: 60px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    flex-shrink: 0;
}

.nav-left a {
    display: flex;
    align-items: center;
    height: 100%;
}

#hamburger,
.hamburger {
	display: none;
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger:hover {
    background-color: var(--border-color);
}

.brand-logo {
    max-height: 30px;
    height: auto;
    width: auto;
    display: block;
}

#brand-logo-mobile {
    display: none;
}
#brand-logo {
    display: inline-block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    line-height: 1;
}

.nav-link:hover {
    color: var(--text-color);
}

/* Right side navigation controls */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    height: 100%;
    flex-shrink: 0;
}

.nav-right a.btn {
	line-height: 0!important;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

/* Important links container */
.imp-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.imp-links.hidden {
    display: none !important;
}

.imp-links.visible {
    display: flex !important;
}

/* User Avatar Dropdown - NEW */
.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
    background: var(--card-bg);
}

.user-avatar:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Avatar Dropdown Menu */
.avatar-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-avatar-container:hover .avatar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 0.9rem;
    min-height: auto; /* Add this */
    line-height: 1.4; /* Add this */
}

.dropdown-menu-item i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    width: 20px;
    height: 20px; /* Add explicit height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Add this to prevent icon from shrinking */
}

.dropdown-menu-item:hover {
    background: var(--border-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Settings Modal - NEW */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--card-bg);
    position: relative;
    z-index: 1;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--accent-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 140px);
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section:last-child {
    margin-bottom: 0;
    border-top: 1px solid var(--border-color);
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section-title i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-info {
    flex: 1;
}

.settings-item-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.settings-item-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.settings-item-control {
    margin-left: 16px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: var(--accent-color);
}

/* Disabled state */
.toggle-switch[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-switch[disabled]:hover {
    border-color: transparent;
}

.toggle-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-switch-thumb {
    transform: translateX(24px);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background: var(--card-bg);
}

/* Custom Size Modal - ENHANCED */
.modal-overlay.secondary {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.secondary .modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    height: 85vh;
}

.modal-overlay.secondary .modal-header {
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.modal-overlay.secondary .modal-title {
    grid-column: 1;
    grid-row: 1;
}

.modal-overlay.secondary .modal-close {
    grid-column: 2;
    grid-row: 1;
}

.modal-overlay.secondary .fixed-input-container {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
}

.modal-overlay.secondary .modal-body {
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    flex: 1;
}

/* Left Panel - List */
.modal-panel-left {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    background: var(--card-bg);
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-list-item {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-list-item:hover {
    background: var(--border-color);
}

.modal-list-item.active {
    background: var(--accent-color)!important;
    color: white!important;
}

.modal-list-item i {
    font-size: 1.1rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-list-item img {
    width: 25px;
	height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-panel-right .image-card {
	padding: 20px;
	text-align: center;
	cursor: pointer;
}

.modal-panel-right .image-card-body {
	width: 100%;
	height: 100px;
	border-radius: 8px;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.modal-panel-right .image-card-image {
	margin-bottom: -20px;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.modal-panel-right .subtitle {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;            /* turn into flex container */
    align-items: center;      /* vertical alignment */
    justify-content: center;  /* horizontal alignment */
    gap: 6px;                 /* spacing between img and text */
}
.image-in-text {
    width: 20px !important;
    height: 20px !important;
    display: block;           /* doesn't need inline-block inside flex */
}

.canvas-size-value {
	font-size: 0.75rem;
	color: var(--text-secondary);
}

.modal-list-item-text {
    flex: 1;
}

.modal-list-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.modal-list-item-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Right Panel - Content */
.modal-panel-right {
    overflow-y: auto;
    padding: 24px;
    background: var(--nav-bg);
}

.modal-panel-content {
    display: none;
}

.modal-panel-content.active {
    display: block;
}

/* Horizontal Swiper for Mobile */
.modal-list-swiper {
    display: none;
}

.modal-list-swiper .swiper-slide {
    width: auto;
}

/* Search Bar Styles */
.search-bar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 16px;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: all 0.3s ease;
}

.search-bar.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
}

.search-bar.visible {
    display: flex !important;
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.9rem;
    width: 100%;
    padding: 4px 5px;
    border-radius: 10px!important;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-bar #clear-search {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    margin-top: 3px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-bar #clear-search:hover {
    color: var(--text-color);
    background-color: var(--border-color);
}

/* Off-screen Menu */
.off-screen-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.off-screen-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.menu-header a.logo {
	font-size: 2rem;
	font-weight: bold;
	text-decoration: none;
	color: var(--text-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close-menu:hover {
    background-color: var(--border-color);
}

.menu-links {
    display: flex;
	overflow: auto;
    flex-direction: column;
    gap: 0rem;
	padding: 0;
    list-style: none;
}

.menu-links .nav-link {
	display: block;
	margin: 0;
	padding: 20px;
    font-size: 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.menu-links .nav-link:hover {
    background-color: var(--border-color);
}

.menu-auth-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    overflow: hidden;
	background-image: 
	linear-gradient(var(--grid) 2px, transparent 2px),
	linear-gradient(90deg, var(--grid) 2px, transparent 2px),
	linear-gradient(var(--grid) 1px, transparent 1px),
	linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	
	background-size: 
	80px 80px,
	80px 80px,  
	20px 20px,
	20px 20px;
	
	background-position: 
	0 0,
	0 0,
	0 0,
	0 0;
}

.hero {
    position: relative;
    z-index: 10;
    padding: 8rem 2rem 4rem;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
	padding-top: 60px;
}

.hero-text {
    width: 85%;
	margin: 0 auto;
	text-align: center;
}

.hero-image {
	position: absolute;
	bottom: 0;
	right: 0;
    width: 40%;
	height: auto;
}

#hero-blur-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-blur-circle {
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: heroFloat 20s infinite ease-in-out;
}

#hero-blur1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #ff00ff;
    top: 10%;
    left: 2%;
    animation-delay: 0s;
}

#hero-blur2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: #ffff00;
    bottom: 10%;
    left: 15%;
    animation-delay: -7s;
}

#hero-blur3 {
    position: absolute;
    width: 450px;
    height: 450px;
    background: #00fdff;
    top: 5%;
    right: 0;
    animation-delay: -14s;
}

.hero-text h1 {
    font-size: 5rem!important;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .subtitle {
    font-size: 1.1rem;
	font-weight: normal!important;
    color: var(--text-color);
    margin-top: -10px;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Avatar Status */
.stats-card {
    position: relative;
	width: 50%;
}
.profile-avatars {
    display: flex;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 16px;
    position: relative;
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.avatar:not(:first-child) {
    margin-left: -10px;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stats-inline {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-left: 12px;
}
.stats-number {
    display: none;
}
.stats-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}
.stats-card {
    animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.avatar {
    transition: transform 0.2s ease;
}
.avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
}

/* Section Styles */
.section,
.footer {
    max-width: 100%;
    margin: 0 auto;
}
.inner-section {
    padding: 4rem 1rem!important;
    max-width: 80%;
    margin: 0 auto;
}
.footer .inner-section {
    padding: 1rem!important;
}
.inner-section.post {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: var(--card-bg);
}
.inner-section.img {
    padding: 0!important;
}
.inner-section.img img {
    width: 100%;
	margin-bottom: -8px!important;
}
.title-header,
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	width: 100%;
}
.section-header h1,
.section-header h2,
.section-header h3,
.section-header p {
	margin: 0 auto;
	text-align: center;
}
.section-header h2 {
	font-size: 2rem;
	width: 60%;
}
.section-header {
    margin-top: 4rem!important;
    margin-bottom: 6rem!important;
}

.footer .section-header {
    margin-top: 3rem!important;
    margin-bottom: 3rem!important;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.right-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.right-link:hover {
    text-decoration: underline;
}

/* Card */
.card {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

a.card {
    text-decoration: none;
}
a.card h1,
a.card h2,
a.card h3,
a.card h4,
a.card h5,
a.card h6,
a.card p {
    color: var(--text-color);
}

.card img {
    border-radius: 5.5px;
}

.card::before,
.card::after {
  content: none!important;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Row/Columns having no gaps */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0px!important;
  justify-content: center;
  box-sizing: border-box;
}
.row-center {
  align-items: center;
}

.row .col,
.row .col-2,
.row .col-3,
.row .col-4,
.row .col-5,
.row .col-6 {
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

.row .col {
  flex: 0 0 calc(80% - 1rem);
}

/* 6 Columns - Desktop: 6, Tablet: 4, Mobile: 2, XS: 1 */
.row .col-6 {
  flex: 0 0 calc(16.666% - 1.25rem);
}

/* 5 Columns - Desktop: 5, Tablet: 3, Mobile: 2, XS: 1 */
.row .col-5 {
  flex: 0 0 calc(20% - 1.2rem);
}

/* 4 Columns - Desktop: 4, Tablet: 3, Mobile: 2, XS: 1 */
.row .col-4 {
  flex: 0 0 calc(25% - 1.125rem);
}

.row .col-3 {
  flex: 0 0 calc(33.3333% - 1rem);
}

.row .col-2 {
  display: flex;
  flex: 0 0 calc(50% - 0.75rem);
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.clear-vl::before,
.clear-vl::after,
.clear-hl::before,
.clear-hl::after {
  content: none!important;
}

/* Vertical line separators for columns */
.row .col-3::after,
.row .col-4::after,
.row .col-5::after,
.row .col-6::after {
  content: '';
  position: absolute;
  top: 0;
  right: -0.75rem;
  width: 1px;
  height: 100%;
  background-color: var(--border-color);
}

.row .col-3:last-child::after,
.row .col-4:last-child::after,
.row .col-5:last-child::after,
.row .col-6:last-child::after {
  content: none;
}

.row .col-2:nth-child(odd)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -0.75rem;
  width: 1px;
  height: 100%;
  background-color: var(--border-color);
}
.row .col-2:last-child::after {
  content: none;
}

.row .col-2:last-child::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
}

.row-reverse-desktop {
  flex-direction: row-reverse;
}

.row .col-2:nth-child(even) {
  flex-direction: row-reverse;
}

.row .col-2:nth-child(odd):last-child {
  flex: 0 0 100%;
}

/* Box */
.box {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
	overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

a.box {
	text-decoration: none;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.8;
    z-index: 1;
}

.box-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.box.random-gradient,
.box.random-gradient.more-templates-slide {
	max-height: 260px;
    height: 260px;
}

.box-header {
	display: flex;
	padding: 15px;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.box-header i {
	margin-right: 10px;
	font-size: 1.5rem;
}

.box-logo {
    width: 20px;
    height: 20px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.box-title {
	margin-top: 0px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    transition: color 0.3s ease;
    flex: 1;
}

.image-icon {
	width: 30px;
	background: #ffffff;
	border: solid 2px #ffffff;
	border-radius: 50%;
}

.box-title span {
	display: block;
	margin-left: 35px;
	margin-top: -30px;
}

.box-description {
	margin-left: 35px;
	margin-bottom: 16px;
	font-size: 14px;
	opacity: 0.9;
	font-weight: normal;
	line-height: 1.4;
	flex: 1;
	transition: color 0.3s ease;
}

.box-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-top: auto;
}

/* Swiper Navigation buttons */
.swiper-wrapper {
	margin-bottom: 20px;
	padding: 20px 10px;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    border: none;
    outline: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev i,
.swiper-button-next i {
    font-size: 20px;
    color: #333;
}

.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.swiper-button-disabled:hover {
    transform: translateY(-50%) scale(1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    display: none;
}

/* More Templates Slide */
.more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.more-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.more-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.more-text p {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

/* Blog */
.res-img {
	max-width: 100%;
	width: 100%;
	object-fit: cover;
}

.content {
	max-width: 100%;
	width: 100%;
}

.half-content .res-img {
	max-width: 50%!important;
}

.half-content .content {
	max-width: 50%!important;
}

.half-content h1,
.half-content h2,
.half-content h3,
.half-content h4,
.half-content h5,
.half-content h6 {
	display: inline-block !important;
	font-size: 1.2rem !important;
	line-height: 1.2 !important;
	font-weight: bold !important;
}
.half-content p {
	font-size: 1rem !important;
	line-height: 1.2 !important;
}
.half-content p.blog-date {
	font-size: 0.8rem !important;
	line-height: 1 !important;
}

.blog-tags {
	display: inline-block;
    margin-top: 0.5rem;
}

.blog-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 500;
}

.tag {
	transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-tags .tag {
    margin: 0.2rem 0.1rem;
	background: var(--accent-color);
	color: white;
    padding: 3px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: normal;
	text-decoration: none;
}

.blog-date,
.blog-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-date {
	margin: 0.4rem auto;
}

/* Blog and Pages */
.post-section {
	margin: 0 auto;
	width: 75%;
}
.post-section img {
	margin: 20px auto;
	width: 100%;
	border-radius: 5px;
}
.post-section h1,
.post-section h2,
.post-section h3,
.post-section h4,
.post-section h5,
.post-section h6 {
	margin-top: 30px;
	margin-bottom: 10px;
}
.post-section p:not(.half-content p) {
	margin-bottom: 20px;
	font-size: 18px;
    line-height: 1.45;
}
.post-section .date {
	margin-left: 10px;
	color: var(--text-secondary);
}
.post-section a {
	color: var(--accent-color);
}
.post-section .tags {
	margin-top: 30px;
}
.post-section .tag {
	display: inline-block;
	margin: 5px 3px;
	padding: 5px 10px;
	color: white;
	background: var(--accent-color);
	text-decoration: none;
	border-radius: 5px;
}

/* Info List */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.6;
}

.info-list li:last-child {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
}

.info-list strong {
  margin-right: 5px;
}

/* Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-block;
    padding: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-color);
}

.footer p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* reCAPTCHA notice styling */
.recaptcha-notice {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.recaptcha-notice a {
    color: var(--accent-color);
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--nav-bdr);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Legal Links */
.legal-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--text-secondary);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

/* Toast Base Styles */
.toast {
    min-width: 320px;
    max-width: 400px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
    margin-top: -80px;
}

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: white;
}

.toast.success .toast-icon {
    background: var(--success-color);
}

.toast.error .toast-icon {
    background: var(--error-color);
}

.toast.warning .toast-icon {
    background: var(--warning-color);
}

.toast.info .toast-icon {
    background: var(--info-color);
}

/* Toast Content */
.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #1f2937);
    margin: 0;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--border-color, #e5e7eb);
    color: var(--text-color, #1f2937);
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    transform-origin: left;
    animation: toast-progress linear forwards;
}

.toast.success .toast-progress {
    background: var(--success-color);
}

.toast.error .toast-progress {
    background: var(--error-color);
}

.toast.warning .toast-progress {
    background: var(--warning-color);
}

.toast.info .toast-progress {
    background: var(--info-color);
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Left Border Accent */
.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}

.toast.success::before {
    background: var(--success-color);
}

.toast.error::before {
    background: var(--error-color);
}

.toast.warning::before {
    background: var(--warning-color);
}

.toast.info::before {
    background: var(--info-color);
}

/* Sponsored Wrapper */
.sponsored-grid-wrapper.mob-fixed:not(.main .sponsored-grid-wrapper.mob-fixed) {
	margin-top: 20px;
}
.sponsored-grid-wrapper p {
	margin: 0;
	padding: 0;
	font-size: 0.75rem!important;
	line-height: 1.3;
	color: var(--text-secondary);
}
.sponsored-grid-wrapper p:not(p.sponsored-info, .main .sponsored-grid-wrapper p) {
	text-align: center;
}
/* Main Sponsored Grid Container */
.sponsored-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, max-content));
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 3rem;
	margin-bottom: 0;
	padding: 0;
}

.sponsored-grid:not(.main .sponsored-grid) {
	margin-top: 7px;
}

.main .sponsored-grid {
	margin-top: -1rem;
	grid-template-columns: repeat(2, 1fr);
}

/* Sponsored Card */
.sponsored-card:not(.template-item.sponsored-card) {
    display: none;
    justify-content: center;
	align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: inherit;
    opacity: 0;
	text-align: left;
    will-change: transform, opacity;
}

.sponsored-card.visible:not(.template-item.visible.sponsored-card) {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.sidebar-widget .sponsored-card.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.sponsored-card.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.sponsored-card:hover:not(.template-item.sponsored-card)  {
    transform: translateY(-2px);    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

/* Image Container */
.sponsored-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsored-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Area */
.sponsored-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sponsored-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0!important;
    font-size: 1.2rem!important;
    line-height: 1!important;
}

.sponsored-grid-wrapper.mob-fixed .sponsored-title {
    font-size: 0.8rem!important;
}

.sponsored-info {
    font-size: 0.65rem!important;
    color: var(--text-secondary);
    margin: 0!important;
    line-height: 1.2!important;
}

.sponsored-info strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Hero sponsored */
.hero-content .sponsored-grid {
    grid-template-columns: repeat(auto-fit, minmax(55px, max-content));
    gap: 0.5rem;
}
.hero-content .sponsored-card.visible {
    margin: 0 auto;
    display: flex !important;
    width: 55px;
    height: 55px;
    padding: 0.4rem;
    animation: fadeIn 0.5s ease forwards;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.hero-content .sponsored-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.hero-content .sponsored-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* On hover, expand the card and show content */
.hero-content .sponsored-card:hover {
    width: auto;
    z-index: 10; /* Bring to front so it doesn't get cut off */
}
.hero-content .sponsored-card:hover .sponsored-content {
    display: flex;
    opacity: 1;
    min-width: 150px;
    animation: fadeIn 0.3s ease forwards;
}

/* Sidebar Widget */
.sidebar-widget {
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    position: relative;
}
	
.sidebar-widget .sponsored-grid:not(.template-item.sponsored-card) {
	margin-bottom: 20px!important;
}

.sidebar-widget .sponsored-card:not(.template-item.sponsored-card) {
    display: none;
    width: 100%;
    padding: 0;
	margin-top: -15px;
    margin-bottom: 0.75rem;
}

.sidebar-widget .sponsored-card:last-child:not(.template-item.sponsored-card) {
    margin-bottom: 0;
}

.sidebar-widget .sponsored-img {
    width: 100%;
    height: 150px;
    border-radius: 6px 6px 0 0;
}

.sidebar-widget .sponsored-content {
    width: 100%;
    padding: 0 0.75rem;
}

.sidebar-widget .sponsored-title {
    font-size: 0.9rem;
	margin-top: 10px!important;
	margin-bottom: 3px;
}

.sidebar-widget .sponsored-info {
    font-size: 0.95rem!important;
	line-height: 1.2!important;	
	margin-bottom: 10px!important;	
}

/* ::START: User dashboard */
/* Dashboard top Section */
.dashboard-main-box {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    margin-top: 90px;
    padding: 2rem;
    border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dashboard-main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-main-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.dashboard-main-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag-button {
    padding: 0.5rem 1.2rem;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.tag-button:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.dashboard-search {
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
}

.dashboard-search input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dashboard-search input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-search .search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.section-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-actions h2 {
    margin: 0;
    font-size: 1.5rem;
}

.dashboard-content-box {
	margin: 1.5rem auto;
	padding-top: 20px!important;
	padding-bottom: 0px!important;
	border-radius: 10px;
	border: solid 1px var(--border-color);
	background: var(--bg-color);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.delete-mode-btn {
    padding: 0.6rem 1.2rem;
    background: var(--text-secondary);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.delete-mode-btn:hover {
    background: var(--error-color);
    transform: translateY(-2px);
}

.delete-mode-btn.active {
    background: #dc3545;
}

.delete-selected-btn {
    padding: 0.6rem 1.2rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: none;
    transition: all 0.3s ease;
}

.delete-selected-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* DELETE PANEL STYLES - ADDED FOR DELETE FUNCTIONALITY */
.delete-panel {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: bottom 0.3s ease;
    max-width: 90%;
    flex-wrap: wrap;
}

.delete-panel.show {
    bottom: 20px;
}

.delete-panel-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.delete-panel-icon {
    width: 40px;
    height: 40px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.delete-panel-text {
    display: flex;
    flex-direction: column;
}

.delete-panel-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.delete-panel-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.delete-panel-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.delete-panel-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.delete-panel-btn-cancel {
    background: var(--border-color);
    color: var(--text-color);
}

.delete-panel-btn-cancel:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.delete-panel-btn-delete {
    background: #dc3545;
    color: white;
}

.delete-panel-btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* CONFIRM DELETE MODAL STYLES */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.confirm-modal-overlay.active {
    display: flex;
}

.confirm-modal {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.confirm-modal-icon {
    width: 50px;
    height: 50px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.confirm-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.confirm-modal-body {
    margin-bottom: 1.5rem;
}

.confirm-modal-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.confirm-modal-warning {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.confirm-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.confirm-modal-btn-cancel {
    background: var(--border-color);
    color: var(--text-color);
}

.confirm-modal-btn-cancel:hover {
    background: var(--text-secondary);
}

.confirm-modal-btn-delete {
    background: #dc3545;
    color: white;
}

.confirm-modal-btn-delete:hover {
    background: #c82333;
}

/* Base Grid Container - 5 columns for large screens */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grid-item {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.grid-item:hover {
    transform: translateY(-4px);
}

.grid-item.selected {
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.item-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    z-index: 10;
    cursor: pointer;
    display: none;
}

.delete-mode .item-checkbox {
    display: block;
}

/* FIXED HEIGHT IMAGE CONTAINER - 150px with padding */
.item-image-wrapper {
    width: 100%;
    height: 130px;
    padding: 15px;
    overflow: hidden;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
}

/* Image with object-fit to maintain aspect ratio */
.item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.item-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Custom Size Input Styles */
.custom-size-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.custom-size-input {
    flex: 1;
}

.custom-size-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.custom-size-input input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.custom-size-input input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.size-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.size-preset {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.size-preset:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.size-preset.active {
    border-color: var(--accent-color);
    background: rgba(0, 123, 255, 0.1);
}

.size-preset-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.size-preset-dimensions {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Template Card Selection Styles */
.template-card.selected {
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.template-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-2px);
}

/* Image Card Gradient Styles */
.image-card-body {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Search Clear Button Styles */
.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-secondary);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-clear-btn:hover {
    background: var(--error-color);
    transform: translateY(-50%) scale(1.1);
}

.search-clear-btn.show {
    display: flex;
}

/* Search Results Panel Styles */
.search-results-panel {
    display: none;
}

.search-results-panel.active {
    display: block;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.search-results-grid::-webkit-scrollbar {
    width: 6px;
}

.search-results-grid::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.search-results-grid::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.search-results-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.search-result-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item.selected {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.search-result-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.search-result-content {
    padding: 0.75rem;
}

.search-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.search-result-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.search-result-size {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.load-more-search-results {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
}

.load-more-search-results-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.load-more-search-results-btn:hover {
    background: #0056b3;
}

.load-more-search-results-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* Custom Size Validation Styles */
.custom-size-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.custom-size-error.show {
    display: block;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.loading-spinner {
    padding: 2rem;
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}/* ::END:: User dashboard */

/* ::START: Sidebar ADs Feature Cards */
.sidebar-cards-wrapper {
    width: 100%;
    margin: 0 auto 2rem;
    position: relative;
}

.sidebar-cards-grid {
    display: grid;
    gap: 0.85rem;
}

/* Default: Desktop - 2 rows, 1 column, horizontal layout */
.sidebar-cards-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}

.sidebar-feature-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: inherit;
}

.sidebar-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.sidebar-feature-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-feature-card:hover .sidebar-feature-image img {
    transform: scale(1.05);
}

.sidebar-feature-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0!important;
    margin-bottom: 3px!important;
    line-height: 1!important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-feature-description {
    font-size: 0.85rem!important;
    color: var(--text-secondary);
    margin: 0!important;
    line-height: 1.1!important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}/* ::END: Sidebar ADs Feature Cards */

/* Responsive Design */
@media (max-width: 1024px) {
	/* Main Layout */
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .aside {
        position: static;
        top: auto;
        margin-top: 1rem;
    }
    
    .main {
        order: 1;
    }
    
    .aside {
        order: 2;
    }
	
	/* Hero section */
    .hero-text h1 {
        font-size: 3.5rem!important;
    }
    
    .inner-section {
        max-width: 90%;
    }
	
	.section-header h2 {
		width: 70%;
	}
    
    .post-section {
        width: 85%;
    }
	
	.row-reverse-desktop {
		flex-direction: row;
	}
    
    /* 6 Columns - Tablet: 4 columns */
    .row .col-6 {
        flex: 0 0 calc(25% - 1.125rem);
    }
    
    /* 5 Columns - Tablet: 3 columns */
    .row .col-5 {
        flex: 0 0 calc(33.333% - 1rem);
    }
    
    /* 4 Columns - Tablet: 3 columns */
    .row .col-4 {
        flex: 0 0 calc(33.333% - 1rem);
    }
    
    /* Remove vertical lines for tablet view */
    .row .col-4:nth-child(3n)::after,
    .row .col-5:nth-child(3n)::after,
    .row .col-6:nth-child(4n)::after {
        content: none;
    }
    
    /* Add horizontal lines for new rows */
    .row .col-4:nth-child(n+4)::before,
    .row .col-5:nth-child(n+4)::before,
    .row .col-6:nth-child(n+5)::before {
        content: '';
        position: absolute;
        top: -0.75rem;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--border-color);
    }

    /* Tablet Custom Modal */
    .modal-overlay.secondary .modal-content {
        width: 98%;
        height: 90vh;
    }
    
    .modal-overlay.secondary .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .modal-panel-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-y: visible;
        overflow-x: hidden;
        max-height: none;
    }
    
    .modal-list {
        display: none;
    }
    
    .modal-list-swiper {
        display: block;
        padding: 16px 20px;
    }
    
    .modal-list-swiper .swiper-slide {
        width: auto;
    }
    
    .modal-list-swiper .modal-list-item {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px 16px;
        white-space: nowrap;
        display: flex;
		justify-content: center;
        align-items: center;
        gap: 8px;
        background: var(--card-bg);
    }
    
    .modal-list-swiper .modal-list-item i {
        font-size: 1rem;
    }
    
    .modal-list-swiper .modal-list-item span {
        font-size: 0.85rem;
    }
    
    .modal-panel-right {
        padding: 20px;
        overflow-y: auto;
    }
	
	/* ADs */	
    .sponsored-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
	
	.main .sponsored-grid {
		grid-template-columns: repeat(3, 1fr);
	}
    
    .sponsored-card:not(.template-item.sponsored-card) {
        padding: 0.55rem;
    }
    
    .sponsored-img {
        width: 38px;
        height: 38px;
    }
    
    .sponsored-title {
        font-size: 0.78rem;
    }
    
    .sidebar-widget {
        width: 100%;
        max-width: 600px;
    }
    
    .sidebar-widget .sponsored-content {
        padding: 0.65rem;
    }
    
    .sidebar-widget .sponsored-title {
        font-size: 0.85rem;
    }
    
    .sidebar-widget .sponsored-info {
        font-size: 0.7rem;
    }
	
	/* User Dashboard */	
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .item-image-wrapper {
        height: 150px;
        padding: 8px;
    }
	
	/* Sidebar ADs Feature cards */	
    .sidebar-cards-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 1rem auto 2rem;
    }
    
    .sidebar-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .sidebar-feature-card {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        text-align: center;
    }
    
    .sidebar-feature-image {
        width: 100%;
        height: 120px;
    }
    
    .sidebar-feature-content {
        width: 100%;
    }
    
    .sidebar-feature-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .sidebar-feature-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    /* Tablet: Show both image and content for hero sponsored cards */
    .hero-content .sponsored-card.visible {
        width: auto !important;
        display: flex !important;
        padding: 0.55rem !important;
        gap: 0.5rem !important;
        animation: fadeIn 0.5s ease forwards;
    }
    
    .hero-content .sponsored-img {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }
    
    .hero-content .sponsored-content {
        display: flex !important;
        opacity: 1 !important;
        min-width: 0 !important;
        animation: none !important;
    }
    
    .hero-content .sponsored-title {
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content .sponsored-info {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
    
    /* Remove hover effect that expands the card */
    .hero-content .sponsored-card:hover {
        width: auto !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
	/* Main Layout */
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .main {
        order: 1;
    }
    
    .aside {
        position: static;
        top: auto;
        margin-top: 1rem;
        order: 2;
    }
	
	/* NavBar */
    #hamburger,
	.hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .search-bar {
        min-width: 250px;
        right: 10px;
    }

    .nav-right .btn-nav:first-of-type {
        display: none;
    }
	
    .hero-content {
		padding-top: 0px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
	
	.hero-text {
		width: 100%;
	}
	
    .hero-text h1 {
        font-size: 2.5rem;
    }
	
	.section-header h2 {
		width: 80%;
	}
	
	.stats-card {
		margin: 0 auto;
		width: 100%;
	}
	
	.profile-avatars {
		justify-content: center
	}

    .hero-image {
        display: none;
    }
	
	.post-section h1 {
		font-size: 2.5em;
		line-height: 1.3;
	}
	
	.hero.inner-section {
		padding-top: 10rem;
	}
	
	.inner-section {
		max-width: 90%;
	}
	
	.post-section {
		width: 90%;
	}

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

	.row-reverse-desktop {
		flex-direction: column;
	}
	
	/* 6 Columns - Mobile: 2 columns */
    .row .col-6 {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    /* 5 Columns - Mobile: 2 columns */
    .row .col-5 {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    /* 4 Columns - Mobile: 2 columns */
    .row .col-4 {
        flex: 0 0 calc(50% - 0.75rem);
    }
	
	.row .col-3:nth-child(1),
	.row .col-3:nth-child(2) {		
		flex: 0 0 calc(50% - 1rem);
	}
	.row .col-3:nth-child(3) {
		flex: 0 0 100%;
	}
	
	.row .col-3:nth-child(2)::after {
		content: none;
	}
	
	.row .col-3:nth-child(3)::before {
		content: '';
		position: absolute;
		top: -0.75rem;
		left: 0;
		width: 100%;
		height: 1px;
		background-color: var(--border-color);
	}
	
	.row .col-2 {
		flex: 0 0 100%;
		flex-direction: row;
		padding: 10px;
		align-items: flex-start;
	}
	
	.row .col-2:nth-child(odd)::after {
		content: none;
	}
	
	.row .col-2:not(:first-child)::before {
		content: '';
		position: absolute;
		top: -0.75rem;
		left: 0;
		width: 100%;
		height: 1px;
		background-color: var(--border-color);
	}
	
	.row .col-2:nth-child(odd):last-child {
		flex: 0 0 100%;
	}
	
	.row .col {
		flex: 0 0 95%;
	}
    
    /* Remove vertical lines for mobile view */
    .row .col-4::after,
    .row .col-5::after,
    .row .col-6::after {
        content: none;
    }
    
    /* Add horizontal lines for new rows in mobile */
    .row .col-4:nth-child(n+3)::before,
    .row .col-5:nth-child(n+3)::before,
    .row .col-6:nth-child(n+3)::before,
    .row .col-3:nth-child(n+3)::before {
        content: '';
        position: absolute;
        top: -0.75rem;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--border-color);
    }
    
    /* Mobile Custom Modal */
    .modal-overlay.secondary .modal-content {
        width: 98%;
        height: 90vh;
    }
    
    .modal-overlay.secondary .modal-header {
        padding: 12px 16px;
    }
    
    .modal-overlay.secondary .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-overlay.secondary .fixed-input-container input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .modal-overlay.secondary .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .modal-panel-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-y: visible;
        overflow-x: hidden;
        max-height: none;
    }
    
    .modal-list {
        display: none;
    }
    
    .modal-list-swiper {
        display: block;
        padding: 12px 16px;
    }
    
    .modal-list-swiper .modal-list-item {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px 16px;
        white-space: nowrap;
        display: flex;
		justify-content: center;
        align-items: center;
        gap: 8px;
        background: var(--card-bg);
        font-size: 0.85rem;
    }
    
    .modal-list-swiper .modal-list-item i {
        font-size: 1.1rem;
    }
    
    .modal-panel-right {
        padding: 16px;
        overflow-y: auto;
    }
    
    .modal-panel-content .row {
        gap: 1rem;
    }
    
    .modal-panel-content .col-3 {
        flex: 0 0 100%;
        padding: 0;
    }
    
    .modal-panel-content .card {
        margin-bottom: 0;
    }
	
	/* Sponsored Section Styles */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }/* Match with body footer padding */
	.sponsored-grid-wrapper.mob-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
		height: 80px;/* Match with body footer padding */
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--bg-color);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99;
    }
	
    .sponsored-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.75rem;
    }
	
	.main .sponsored-grid {
		grid-template-columns: repeat(2, 1fr);
	}
    
    .sidebar-widget {
        width: 100%;
        max-width: 400px;
    }
	
	.sponsored-grid-wrapper.mob-fixed p:not(.sponsored-info) {
		font-size: 0.65rem!important;
	}
    
    .sponsored-card:not(.template-item.sponsored-card) {
        padding: 0.55rem;
        gap: 0.75rem!important;
    }
    
    .sponsored-img {
        width: 40px!important;
        height: 40px!important;
    }
    
    .sponsored-title {
        font-size: 0.95rem!important;
		line-height: 1.5!important;
		margin-bottom: -2px;
    }
	
	.sponsored-info {
        font-size: 0.75rem!important;
		line-height: 1.2!important;
    }
	
	/* :: Start:: User Dashboard */	
    .dashboard-main-box {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .dashboard-main-title {
        font-size: 1.8rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .item-image-wrapper {
        height: 150px;
        padding: 8px;
    }
    
    .item-content {
        padding: 0.75rem;
    }
    
    .item-title {
        font-size: 0.9rem;
    }
    
    .item-meta {
        font-size: 0.8rem;
    }
    
    /* Mobile Delete Panel - Full Width */
    .delete-panel {
        width: 95%;
        max-width: 95%;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .delete-panel-info {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    
    .delete-panel-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .delete-panel-btn {
        flex: 1;
        text-align: center;
        margin: 0 0.25rem;
    }
    
    .confirm-modal-footer {
        flex-direction: column;
    }
    
    .confirm-modal-btn {
        width: 100%;
    }
    
    .custom-size-inputs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .size-presets {
        grid-template-columns: 1fr;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
    }
	
	/* Sidebar ADs Feature cards */
	.sidebar-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, auto);
        gap: 0.75rem;
    }
    
    .sidebar-feature-card {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        text-align: center;
    }
    
    .sidebar-feature-image {
        width: 100%;
        height: 140px;
    }
    
    .sidebar-feature-content {
        width: 100%;
    }
    
    .sidebar-feature-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .sidebar-feature-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    /* Mobile: Show both image and content for hero sponsored cards */
    .hero-content .sponsored-card.visible {
        width: inherit !important;
        display: flex !important;
        padding: 1.85rem 0.55rem!important;
        gap: 0.75rem!important;
        animation: fadeIn 0.5s ease forwards;
    }
    
    .hero-content .sponsored-img {
        width: 45px !important;
        height: 45px !important;
        flex-shrink: 0;
    }
    
    .hero-content .sponsored-content {
        display: flex !important;
        opacity: 1 !important;
        min-width: 0 !important;
        animation: none !important;
    }
    
    .hero-content .sponsored-title {
        font-size: 0.95rem!important;
		line-height: 1.5!important;
    }
    
    .hero-content .sponsored-info {
        font-size: 0.75rem!important;
		line-height: 1.2!important;
    }
    
    /* Remove hover effect that expands the card */
    .hero-content .sponsored-card:hover {
        width: auto !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
	.mt-n1 {
		margin-top: 20px!important;
	}
	
	/* NavBar */
    .navbar {
         padding: 0;
    }
	
    .nav-container {
        padding: 0 0.75rem;
    }

    .hamburger {
        padding: 0.5rem;
        height: 40px;
        width: 40px;
        font-size: 1.3rem;
    }
	
	#brand-logo {
		display: none;
	}
	
	#brand-logo-mobile {
		display: inline-block;
	}

    .search-bar {
        min-width: 100wh;
        right: 5px;
    }

    .theme-toggle {
        min-width: 35px;
        min-height: 35px;
        font-size: 1rem;
    }

    .nav-right .btn-nav:first-of-type {
        display: none;
    }

	.hero.inner-section {
		padding-top: 6rem!important;
		padding-left: 15px!important;
		padding-right: 15px!important;
	}
	
	.section-header h2 {
		width: 100%;
	}
	
	.inner-section {
		max-width: 97%;
		padding: 10px 5px!important;
	}
	
	.inner-section.post {
		padding-top: 1rem;
		padding-bottom: 1rem;
    }
	
	.post-section {
		width: 97%;
		padding: 10px;
	}
	
	.inner-section .section-header {
		padding: 20px 10px!important;
		margin-bottom: 0px!important;
	}
	
	h1,
	.hero-text h1 {
        font-size: 2.5rem!important;
		line-height: 1.1;
	}

    .hero-text h1 {
		margin-bottom: 30px!important;
    }

    .hero-text {
        margin-top: 50px!important;
    }
	
	.hero-text a,
	.subtitle {
		margin-bottom: 30px!important;
	}
	
	h2,
	.subtitle {
		font-size: 1.5rem!important;
		line-height: 1.3;
	}
	
	h3,
	h3.fs-3 {
		font-size: 1.4rem!important;
		line-height: 1;
	}
	
	p, p.fs-2,
	.post-section p {
		font-size: 1.3rem!important;
		line-height: 1.2!important;
	}
	
	p.blog-date {
		margin-top: 20px;
	}

    .hero-image {
        display: none;
    }
	
	.row {
		gap: 0!important;
	}
	
	/* 6 Columns - XS: 1 column */
    .row .col-6 {
        flex: 0 0 100%!important;
    }
    
    /* 5 Columns - Mobile: 2 columns */
    .row .col-5 {
        flex: 0 0 calc(50% - 0.75rem);
		margin: 5px auto;
    }	
	.card:not(.row .col-5 .card) {
		margin-bottom: 20px!important;
	}
	.row .col-5 .card h3 {
		font-weight: bold!important;
		margin-bottom: 20px!important;
		line-height: 1.3;
	}	
	.row .col-5 .card p.canvas-size-value {
		margin-top: -25px!important;
	}
    
    /* 4 Columns - XS: 1 column */
    .row .col-4 {
        flex: 0 0 100%!important;
    }
	
	.row .col-3 {
		flex: 0 0 100%!important;
		margin-bottom: 20px;
	}
	
	.row .col-3::before {
		content: none;
	}
	
	.row .col-3:not(:first-child)::before {
		content: '';
		position: absolute;
		top: -0.75rem;
		left: 0;
		width: 100%;
		height: 1px;
		background-color: var(--border-color);
	}
	
	.row .col-2 {
		flex: 0 0 100%;
		flex-direction: column;
		text-align: center;
		align-items: center;
	}
	
	.row .col-2 .content {
		width: 100%;
		text-align: left;
	}
	
	.row .col-2:nth-child(even) {
		flex-direction: column;
	}
	
	.row .col-2::after {
		content: none;
	}
	
	.row .col-2:not(:first-child)::before {
		content: '';
		position: absolute;
		top: -0.75rem;
		left: 0;
		width: 100%;
		height: 1px;
		background-color: var(--border-color);
	}
	
	.contact-form {
		padding: 20px;
	}
    
    /* Remove all vertical lines for extra small screens */
    .row .col-2::after,
    .row .col-3::after,
    .row .col-4::after,
    .row .col-5::after,
    .row .col-6::after {
        content: none;
    }
    
    /* Add horizontal lines for all items except first */
    .row .col-2:not(:first-child)::before,
    .row .col-3:not(:first-child)::before,
    .row .col-4:not(:first-child)::before,
    .row .col-5:not(:first-child)::before,
    .row .col-6:not(:first-child)::before {
        content: '';
        position: absolute;
        top: -0.75rem;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--border-color);
    }

	.half-content .res-img {
		max-width: 100%!important;
	}
	
	.half-content .content {
		max-width: 100%!important;
	}
    
    /* Mobile dropdown menu adjustments */
    .avatar-dropdown {
        right: -10px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
        max-height: calc(85vh - 130px);
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    /* Mobile Custom Modal Adjustments */
    .modal-overlay.secondary .modal-content {
        width: 100%;
        height: 95vh;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-overlay.secondary .modal-title {
        font-size: 1rem;
    }
    
    .modal-overlay.secondary .fixed-input-container input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .modal-overlay.secondary .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .modal-panel-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .modal-list {
        display: none;
    }
    
    .modal-list-swiper {
        display: block;
        padding: 10px 12px;
    }
    
    .modal-list-swiper .modal-list-item {
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 8px 12px;
        white-space: nowrap;
        display: flex;
        align-items: center;
		justify-content: center;
        gap: 6px;
        background: var(--card-bg);
        font-size: 0.8rem;
    }
    
    .modal-list-swiper .modal-list-item i {
        font-size: 1rem;
    }
    
    .modal-panel-right {
        padding: 12px;
        overflow-y: auto;
    }
    
    .modal-panel-content h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .modal-panel-content .row {
        gap: 0.75rem;
    }
    
    .modal-panel-content .col-3 {
        flex: 0 0 100%;
        padding: 0;
    }
    
    .modal-panel-content .card {
        padding: 15px;
        margin-bottom: 0;
    }
    
    .modal-panel-content .card > div:first-child {
        height: 120px !important;
        margin-bottom: 10px !important;
    }
    
    .modal-panel-content .card h5 {
        font-size: 0.85rem !important;
    }
    
    .modal-panel-content .card p {
        font-size: 0.7rem !important;
    }
    
    .modal-overlay.secondary .modal-footer {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .modal-overlay.secondary .modal-footer .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
	
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
	
	/* Sponsored Section Styles */
    body {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }/* Match with body footer padding */
	.sponsored-grid-wrapper.mob-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
		height: 90px;/* Match with body footer padding */
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--bg-color);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99;
    }
	
	.sponsored-grid-wrapper.mob-fixed p:not(.sponsored-info) {
		font-size: 0.65rem!important;
	}
		
    .sponsored-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0 0.5rem;
    }
	
	.main .sponsored-grid {
		grid-template-columns: repeat(2, 1fr);
	}
    
    .sponsored-card:not(.template-item.sponsored-card) {
        padding: 0.55rem;
        gap: 0.75rem!important;
    }
    
    .sponsored-img {
        width: 50px!important;
        height: 50px!important;
    }
    
    .sponsored-title {
        font-size: 0.95rem!important;
		line-height: 1.5!important;
		margin-bottom: -2px;
    }
	
	.sponsored-info {
        font-size: 0.75rem!important;
		line-height: 1.2!important;
    }
	
	/* Project action buttons on user dashboard */
	#cancel-custom-size,
	#apply-custom-size {
		padding-top: 15px!important;
		padding-bottom: 15px!important;
	}
	
	/* :: Start:: User Dashboard */	
	.dashboard-main-box {
		margin: 3rem auto;
		margin-top: 35px;
		margin-bottom: 120px;
		padding: 3rem 1rem;
		border-radius: 0px;
	}
	
	.dashboard-main-title {
		font-size: 1.5rem;
		line-height: 1;
	}
	
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .item-image-wrapper {
        height: 150px;
        padding: 6px;
    }
    
    .item-content {
        padding: 0.75rem;
    }
    
    .item-title {
        font-size: 0.85rem;
    }
    
    .item-meta {
        font-size: 0.75rem;
    }
    
    /* Mobile Delete Panel Adjustments */
    .delete-panel {
        width: 98%;
        max-width: 98%;
        padding: 0.75rem;
    }

	.delete-panel.show {
		bottom: 70px;
	}
    
    .delete-panel-info {
        gap: 0.75rem;
    }
    
    .delete-panel-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .delete-panel-actions {
        gap: 0.5rem;
    }
    
    .delete-panel-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
	
	/* Sidebar ADs Feature cards */
	.sidebar-cards-wrapper {
        padding: 0.25rem;
        margin: 1rem auto 1.5rem;
    }
    
    .sidebar-cards-grid {
        gap: 0.5rem;
    }
    
    .sidebar-feature-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .sidebar-feature-image {
        height: 120px;
    }
    
    .sidebar-feature-title {
        font-size: 0.9rem;
    }
    
    .sidebar-feature-description {
        font-size: 0.8rem;
    }
	
    /* Extra Small: Show both image and content for hero sponsored cards */
    .hero-content .sponsored-card.visible {
        width: inherit !important;
        display: flex !important;
        padding: 2rem 0.55rem!important;
        gap: 0.75rem!important;
        animation: fadeIn 0.5s ease forwards;
    }
    
    .hero-content .sponsored-img {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }
    
    .hero-content .sponsored-content {
        display: flex !important;
        opacity: 1 !important;
        min-width: 0 !important;
        animation: none !important;
    }
    
    .hero-content .sponsored-title {
        font-size: 0.95rem!important;
		line-height: 1.5!important;
		margin-bottom: -2px;
    }
    
    .hero-content .sponsored-info {
        font-size: 0.75rem!important;
		line-height: 1.2!important;
    }
    
    /* Remove hover effect that expands the card */
    .hero-content .sponsored-card:hover {
        width: auto !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Extra–Extra Small Devices (≤ 360px) */
@media (max-width: 360px) {	
	.mt-n1 {
		margin-top: 20px!important;
	}
		
	/* Sponsored Section Styles */
    body {
        padding-bottom: calc(95px + env(safe-area-inset-bottom));
    }/* Match with body footer padding */
	.sponsored-grid-wrapper.mob-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
		height: 95px;/* Match with body footer padding */
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--bg-color);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99;
    }
	
	.sponsored-grid-wrapper.mob-fixed p:not(.sponsored-info) {
		font-size: 0.65rem!important;
	}
		
    .sponsored-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0 0.5rem;
    }
	
	.main .sponsored-grid {
		grid-template-columns: repeat(1, 1fr);
	}
    
    .sponsored-card:not(.template-item.sponsored-card) {
        padding: 0.55rem;
        gap: 0.75rem!important;
    }
    
    .sponsored-img {
        width: 50px!important;
        height: 50px!important;
    }
    
    .sponsored-title {
        font-size: 0.95rem!important;
		line-height: 1.5!important;
		margin-bottom: -2px;
    }
	
	.sponsored-info,
	.main .sponsored-info {
        font-size: 0.75rem!important;
		line-height: 1.2!important;
    }
   
   .sidebar-widget {
       padding: 0.6rem;
   }
   
   .sidebar-widget .sponsored-content {
       padding: 0.5rem;
   }
   
   .sidebar-widget .sponsored-title {
       font-size: 0.7rem;
   }
   
   .sidebar-widget .sponsored-info {
       font-size: 0.6rem;
   }
   
   .sidebar-widget .sponsored-img {
       height: 120px;
   }
    
    /* 5 Columns - Mobile: 2 columns */
    .row .col-5 {
        flex: 0 0 calc(50% - 0.75rem);
    }
	
	.card:not(.row .col-5 .card) {
		margin-bottom: 20px!important;
	}
	
	/* :: Start:: User Dashboard */
	.dashboard-main-box {
		margin: 3rem auto;
		margin-top: 35px;
		margin-bottom: 120px;
		padding: 3rem 1rem;
		border-radius: 0px;
	}
	
	.dashboard-main-title {
		font-size: 1.5rem;
		line-height: 1;
	}
	
    .item-image-wrapper {
        height: 150px;
        padding: 8px;
    }
    
    /* Extra Small Mobile Delete Panel */
    .delete-panel {
        width: 99%;
        max-width: 99%;
    }
    
    .delete-panel-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .delete-panel-btn {
        width: 100%;
        margin: 0;
    }
	
    /* Extra-Extra Small: Show both image and content for hero sponsored cards */
    .hero-content .sponsored-card.visible {
        width: inherit !important;
        display: flex !important;
        padding: 2rem 0.55rem!important;
        gap: 0.75rem!important;
        animation: fadeIn 0.5s ease forwards;
    }
    
    .hero-content .sponsored-img {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }
    
    .hero-content .sponsored-content {
        display: flex !important;
        opacity: 1 !important;
        min-width: 0 !important;
        animation: none !important;
    }
    
    .hero-content .sponsored-title {
        font-size: 0.95rem!important;
		line-height: 1.5!important;
		margin-bottom: -2px;
    }
    
    .hero-content .sponsored-info {
        font-size: 0.75rem!important;
		line-height: 1.2!important;
    }
    
    /* Remove hover effect that expands the card */
    .hero-content .sponsored-card:hover {
        width: auto !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
	/*
    .grid-container {
        grid-template-columns: 1fr;
    } 
	
	.main .sponsored-grid {
		grid-template-columns: repeat(1, 1fr);
	}   
    .section-actions {
        flex-direction: column;
        align-items: flex-start;
    }    
    .action-buttons {
        width: 100%;
        justify-content: flex-start;
    }*/
}
