/* =======================================================================
Template Name: Youtubers
Author:  SmartEye Technologies
Author URI: www.smarteyeapps.com
Version: 1.0
coder name:Prabin Raja
Description: This Template is created for Youtubers
======================================================================= */

/* ===================================== CSS Custom Properties ================================== */
:root {
  /* Color Palette */
  --color-primary: #1563eb;
  --color-secondary: #8119f5;
  --color-accent: #863dd9;
  --color-success: #51be78;
  --color-background: #f5f8fc;
  --color-surface: #ffffff;
  --color-text-primary: #666565;
  --color-text-secondary: #6A6A6A;
  --color-border: #ccccccc4;
  --color-placeholder: #747f8a;
  
  /* Typography */
  --font-family-primary: "Poppins", sans-serif;
  --font-family-secondary: "Montserrat", "Arimo", sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing & Layout */
  --sidebar-width: 260px;
  --border-radius: 0.25rem;
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xs: 0 8px 6px -6px rgba(0, 0, 0, 0.13);
  --shadow-sidebar: 0 2px 6px 0 rgba(218, 218, 253, 0.65), 0 2px 6px 0 rgba(206, 206, 238, 0.54);
  
  /* Responsive Breakpoints */
  --breakpoint-sm: 576px;
  --breakpoint-md: 767px;
  --breakpoint-lg: 991px;
  --breakpoint-xl: 1170px;
}

/* ===================================== Import Variables ================================== */
@import url(https://fonts.googleapis.com/css?family=Montserrat:300,400,600,700);
@import url(https://fonts.googleapis.com/css?family=Arimo:300,400,400italic,600,700,700italic);

/* ===================================== Basic CSS ==================================== */
* {
  margin: 0px;
  padding: 0px;
  list-style: none;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  outline: none;
  color: #444;
  transition: color 0.3s ease;
}

a:hover {
  color: #444;
}

ul {
  margin-bottom: 0;
  padding-left: 0;
}

a:hover,
a:focus,
input,
textarea {
  text-decoration: none;
  outline: none;
}

.center {
  text-align: center;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.cp {
  cursor: pointer;
}

html, body {
  height: 100%;
  font-family: var(--font-family-primary);
  scroll-behavior: smooth;
}

p {
  margin-bottom: 0px;
  width: 100%;
  line-height: 1.6;
}

.no-padding {
  padding: 0px;
}

.no-margin {
  margin: 0px;
}

.hid {
  display: none;
}

.top-mar {
  margin-top: 15px;
}

.h-100 {
  height: 100%;
}

::placeholder {
  color: var(--color-placeholder) !important;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  opacity: 0.5 !important;
}

.container-fluid {
  padding: 0px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  line-height: 1.3;
}

body {
  background-color: var(--color-background) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--color-text-secondary);
  overflow-x: hidden;
}

/* ===================================== Component Styles ==================================== */
.section-title {
  padding: min(5%, 30px);
  margin: 0px;
  margin-bottom: 20px;
}

@media screen and (max-width: 767px) {
  .section-title {
    padding: min(3%, 15px);
  }
}

.section-title h2 {
  width: 100%;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-title p {
  max-width: min(850px, 90%);
  text-align: center;
  float: none;
  margin: auto;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  margin-top: clamp(6px, 1.5vw, 12px);
}

.section-title span {
  float: right;
  font-style: italic;
}

.inner-title {
  padding: min(3%, 20px);
  padding-left: 0px;
  margin: 0px;
  margin-bottom: 10px;
  padding-bottom: 0px;
  border-bottom: 1px solid var(--color-border);
  display: block;
  padding-right: 0px;
}

.inner-title h2 {
  width: 100%;
  text-align: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 10px;
  margin-bottom: 0px;
  width: min(300px, 100%);
}

.inner-title p {
  width: 100%;
  text-align: center;
}

.inner-title .btn {
  float: right;
  margin-top: -38px;
  font-weight: var(--font-weight-semibold);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
}

.page-nav {
  background-size: 100%;
  padding: clamp(30px, 8vw, 68px);
  text-align: center;
  background-color: #eaeaea;
}

.page-nav ul {
  float: none;
  margin: auto;
}

@media screen and (max-width: 992px) {
  .page-nav {
    background-size: auto;
  }
}

@media screen and (max-width: 767px) {
  .page-nav {
    padding-top: 200px;
    padding-bottom: 40px;
  }
}

@media screen and (max-width: 356px) {
  .page-nav {
    padding-top: 200px;
    padding-bottom: 40px;
  }
}

.page-nav h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  width: 100%;
  font-weight: var(--font-weight-bold);
  color: #444;
}

.page-nav ul li {
  float: left;
  margin-right: 10px;
  margin-top: 10px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: var(--font-weight-semibold);
  color: #444;
}

.page-nav ul li i {
  width: 30px;
  text-align: center;
  color: #444;
}

.page-nav ul li a {
  color: #444;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: var(--font-weight-semibold);
}

/* ===================================== Button Styles ==================================== */
.btn-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
  transition: all 0.3s ease;
}

.btn-success:hover,
.btn-success:active,
.btn-success:focus {
  background-color: var(--color-success) !important;
  border-color: var(--color-success) !important;
  transform: translateY(-1px);
}

.btn-success:focus {
  box-shadow: 0 0 0 0.2rem rgba(81, 190, 120, 0.25) !important;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-1px);
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(21, 99, 235, 0.25) !important;
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-1px);
}

.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(21, 99, 235, 0.25) !important;
}

.btn-light {
  background-color: #FFF;
  color: #3F3F3F;
}

.collapse.show {
  display: block !important;
}

/* ===================================== Form Styles ==================================== */
.form-control {
  background-color: #F8F8F8;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #FFF;
  border-color: #CCC;
  box-shadow: 0 0 0 0.2rem rgba(204, 204, 204, 0.25);
}

.form-control:focus {
  box-shadow: none;
  border: 1px solid #CCC;
}

/* ===================================== Layout & Container ==================================== */
.container {
  max-width: var(--breakpoint-xl);
}

@media screen and (max-width: 575px) {
  .container {
    padding: 10px 15px;
  }
}

/* ===================================== Utility Classes ==================================== */
.fw-md {
  font-weight: var(--font-weight-semibold);
}

.fw-sm {
  font-weight: var(--font-weight-medium);
}

.big-padding {
  padding: min(5%, 50px);
}

@media screen and (max-width: 940px) {
  .big-padding {
    padding: min(4%, 30px) min(2%, 10px);
  }
}

.bggray {
  background-color: #F7F5F4 !important;
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-xs {
  box-shadow: var(--shadow-xs);
}

.truncate-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 42px;
  overflow: hidden;
  line-height: 21px;
}

.truncate-4 {
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  height: 82px;
  overflow: hidden;
  line-height: 21px;
}

.truncate-6 {
  display: -webkit-box !important;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  height: 130px;
  overflow: hidden;
  line-height: 21px;
}

.rtable {
  max-width: 500px;
  float: none;
  margin: auto;
}

.rtable tr td {
  padding: 5px;
}

.fs-7 {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.fs-8 {
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
}

.sticky {
  position: sticky;
}

.bg-gray {
  background: rgba(217, 217, 217, 0.25);
}

.btn-xs {
  padding: 2px 8px;
  font-size: 0.875rem;
  border-radius: 0.2rem;
}

.btn-xs i {
  font-size: 16px;
}

@media screen and (max-width: 767px) {
  .bordernosm {
    border: 0px !important;
  }
}

.h400 {
  height: 400px;
  overflow: auto;
}

.sticky-top-90 {
  position: sticky;
  top: 85px;
  z-index: 1020;
}

.fs-9 {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
}

.fs-55 {
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.mt-25 {
  margin-top: 11px;
}

.width-fit {
  width: fit-content;
}

.text-justify {
  text-align: justify;
}

.fw-semi {
  font-weight: var(--font-weight-semibold);
}

.w-45 {
  width: 45%;
}

/* ===================================== Sidebar & Navigation ==================================== */
.head {
  position: fixed;
  background-color: var(--color-surface);
  width: var(--sidebar-width);
  height: 100dvh;
  box-shadow: var(--shadow-sidebar);
  z-index: 1000;
  transition: all 0.3s ease;
}

@media screen and (max-width: 991px) {
  .head {
    position: relative;
    width: 100%;
    height: auto;
  }
}

.head .logo {
  padding: min(3%, 15px);
}

.head .logo img {
  max-width: 250px;
  height: auto;
}

@media screen and (max-width: 991px) {
  .head .logo {
    padding: 20px 15px;
  }
}

.head .navcol {
  padding-top: 15px;
}

.head .navcol ul li {
  padding: 14px 30px;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  transition: all 0.3s ease;
}

.head .navcol ul li:hover {
  background-color: rgba(21, 99, 235, 0.1);
}

.head .navbar-toggler {
  float: right;
  margin-top: 10px;
  padding-right: 0px;
  border: none;
  background: transparent;
}

.head .navbar-toggler i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-text-primary);
}

/* ===================================== Main Content Area ==================================== */
.main-content {
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
}

@media screen and (max-width: 991px) {
  .main-content {
    margin-left: 0px;
  }
}

/* ===================================== Profile & Content Styles ==================================== */
.profile-head img {
  max-width: min(270px, 100%);
  height: auto;
  border-radius: var(--border-radius);
}

.sit {
  background-color: #F8F8F8;
}

.ratfac {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}

/* ===================================== Responsive Design Enhancements ==================================== */
@media (max-width: 768px) {
  .head .navcol ul li {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .inner-title h2 {
    width: 100%;
    text-align: center;
  }
  
  .inner-title .btn {
    float: none;
    margin-top: 15px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .head .logo img {
    max-width: 200px;
  }
  
  .section-title {
    padding: 15px 10px;
  }
  
  .truncate-2,
  .truncate-4,
  .truncate-6 {
    -webkit-line-clamp: 3;
    height: auto;
    max-height: 63px;
  }
}

/* ===================================== Dark Mode Support (Optional) ==================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #1a1a1a;
    --color-surface: #2d2d2d;
    --color-text-primary: #ffffff;
    --color-text-secondary: #e0e0e0;
  }
}

/* ===================================== Print Styles ==================================== */
@media print {
  .head {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .btn {
    display: none;
  }
}

/* ===================================== Accessibility Improvements ==================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-text-primary: #000000;
    --color-text-secondary: #000000;
  }
}

/* ===================================== Custom Scrollbar ==================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}