/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-color: #20bdbe;
  --primary-hover: rgba(32, 189, 190, 0.9);
  --primary-light: rgba(32, 189, 190, 0.1);

  /* Background Colors */
  --background-light: #ffffff;
  --background-gray: #f3f4f6;
  --surface-card: #ffffff;

  /* Text Colors */
  --text-main: #111827;
  --text-secondary: #64748b;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Border Colors */
  --border-light: #e5e7eb;
  --border-gray: #d1d5db;

  /* Status Colors */
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #20bdbe;

  /* Utility Colors */
  --light-color: #f9fafb;
  --dark-color: #111827;
  --white: #ffffff;
  --black: #000000;

  /* Font Families */
  --font-family-display: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-body: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-sans: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-serif: Georgia, "Times New Roman", Times, serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 4px 6px rgba(32, 189, 190, 0.3);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 2rem;
  --radius-full: 9999px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-family-body);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-light);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

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

/* Dropdown menu styles */
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.navbar-nav .dropdown-item.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* Dropdown toggle styles */
.navbar-nav .dropdown-toggle::after {
  display: none;
}

.navbar-nav .dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.navbar-nav .dropdown.show .dropdown-toggle i {
  transform: rotate(180deg);
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .navbar-nav .dropdown-item {
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: rgba(0, 0, 0, 0.55);
  }

  .navbar-nav .dropdown-item:hover {
    background-color: transparent;
    color: var(--primary-color);
  }
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.site-main {
  padding: 0;
}

.post-item .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.post-item .card-img-top {
  overflow: hidden;
}

.post-item .card-img-top img {
  transition: transform 0.3s ease;
}

.post-item .card:hover .card-img-top img {
  transform: scale(1.05);
}

.entry-meta {
  font-size: 0.9rem;
}

.entry-meta i {
  margin-right: 0.25rem;
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

.widget {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

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

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget ul li a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #ccc;
  text-decoration: underline;
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */

.pagination {
  justify-content: center;
  margin-top: 2rem;
}

.page-numbers {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  color: var(--primary-color);
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .site-main {
    padding: 0;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .widget {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .post-item .card-body {
    padding: 1rem;
  }

  .entry-meta {
    font-size: 0.8rem;
  }

  .entry-meta span {
    display: block;
    margin-bottom: 0.25rem;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

/* ==========================================================================
   Custom Components
   ========================================================================== */

.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.card {
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==========================================================================
   Header Styles - CYNO Theme
   ========================================================================== */

/* Fixed Header với WordPress Admin Bar */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Khi có WP Admin Bar */
.admin-bar header.site-header {
  top: 32px;
}

/* Mobile admin bar */
@media screen and (max-width: 782px) {
  .admin-bar header.site-header {
    top: 46px;
  }
}

/* Header spacer */
.header-spacer {
  height: 60px;
}

.admin-bar .header-spacer {
  height: 92px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header-spacer {
    height: 106px;
  }
}

/* Navbar Menu Styling */
.navbar-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151 !important;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: color 0.2s;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #20bdbe !important;
  text-decoration: none;
}

.btn-primary-custom {
  background-color: #20bdbe;
  border-color: #20bdbe;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.015em;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(32, 189, 190, 0.3);
}

.btn-primary-custom:hover {
  background-color: rgba(32, 189, 190, 0.9);
  border-color: rgba(32, 189, 190, 0.9);
  color: white;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #111827 !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #20bdbe !important;
}

.brand-icon {
  font-size: 2rem;
  color: #20bdbe;
}

.navbar-scrolled {
  background-color: rgba(248, 249, 250, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Frontpage Styles - CYNO Theme
   ========================================================================== */

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
  background: linear-gradient(
    rgba(15, 26, 26, 0.85) 0%,
    rgba(15, 26, 26, 0.95) 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(32, 189, 190, 0.2) 0%,
    transparent 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.btn-hero-primary {
  background-color: #20bdbe;
  border-color: #20bdbe;
  color: white;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(32, 189, 190, 0.4);
  transition: transform 0.2s;
}

.btn-hero-primary:hover {
  background-color: #20bdbe;
  border-color: #20bdbe;
  color: white;
  transform: scale(1.05);
}

.btn-hero-secondary {
  background-color: white;
  border-color: white;
  color: #111827;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-hero-secondary:hover {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
  color: #111827;
}

/* Channel Cards */
.channel-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(32, 189, 190, 0.2);
}

.channel-image {
  position: relative;
  padding-bottom: 56.25%;
  background-size: cover;
  background-position: center;
}

.channel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.channel-card:hover .channel-overlay {
  opacity: 1;
}

.btn-subscribe {
  background-color: #cc0000;
  border-color: #cc0000;
  color: white;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(204, 0, 0, 0.2);
}

.btn-subscribe:hover {
  background-color: #ff0000;
  border-color: #ff0000;
  color: white;
}

/* About Section */
.about-section {
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-border {
  border-left: 4px solid #20bdbe;
  padding-left: 1rem;
}

.about-image {
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

/* Team Cards */
.team-card {
  border-radius: 1rem;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.team-card:hover {
  border-color: rgba(32, 189, 190, 0.3);
  box-shadow: 0 20px 25px -5px rgba(32, 189, 190, 0.1);
}

.team-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #20bdbe;
  padding: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Animation Styles
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

#scroll-to-top {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* ==========================================================================
   Contact Section Styles
   ========================================================================== */

.contact-info-card,
.contact-form-card {
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.contact-info-card:hover,
.contact-form-card:hover {
  box-shadow: 0 20px 25px -5px rgba(32, 189, 190, 0.1);
}

.contact-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item a:hover {
  color: var(--primary-color) !important;
}

.contact-social .btn {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.contact-social .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-policies a {
  transition: all 0.2s;
  padding: 0.25rem 0;
}

.contact-policies a:hover {
  color: var(--primary-color) !important;
  padding-left: 0.5rem;
}

.contact-form .form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(32, 189, 190, 0.1);
}

.contact-form .form-label {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.contact-form button[type="submit"] {
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(32, 189, 190, 0.3);
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(32, 189, 190, 0.4);
}

#form-message {
  border-radius: 0.5rem;
  padding: 1rem;
  display: none;
}

#form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

#form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Responsive */
@media (max-width: 991px) {
  .contact-info-card {
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .navbar,
  .site-footer,
  .btn,
  .pagination {
    display: none;
  }

  .site-main {
    padding: 0;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}
