/**
 * T20 CCL Component Styles
 * Version: 1.3.0 (WPBakery & Breadcrumbs Fix)
 */

/* Top Helpline Bar */
.t20-topbar {
  background-color: var(--ccl-navy-900);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.t20-topbar .t20-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t20-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.t20-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.t20-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
}

.t20-topbar-item a {
  color: var(--ccl-gold-400);
  font-weight: 600;
  text-decoration: none;
}

.t20-topbar-item a:hover {
  color: #FFFFFF;
}

/* Main Site Header - Strict Flex Alignment */
.t20-header {
  background-color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--ccl-border-light);
}

.t20-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.t20-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ccl-navy-900);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.t20-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.t20-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.t20-logo-title {
  font-weight: 900;
  color: var(--ccl-navy-900);
  font-size: 1.25rem;
}

.t20-logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ccl-green-600);
}

/* Primary Navigation Menu Container */
.t20-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  margin: 0 16px;
}

.t20-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* Top-level menu items */
.t20-menu > li {
  margin: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 76px;
}

.t20-menu > li > a {
  color: var(--ccl-text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 10px;
  line-height: 1.2;
  border-radius: 6px;
  transition: all var(--ccl-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.t20-menu > li:hover > a,
.t20-menu > li.current-menu-item > a,
.t20-menu > li.current-menu-ancestor > a {
  color: var(--ccl-green-600);
  background-color: rgba(30, 168, 77, 0.08);
}

/* Dropdown Caret for Parents */
.t20-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.t20-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Desktop Dropdown Sub-Menus */
.t20-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: #FFFFFF;
  border: 1px solid var(--ccl-border-light);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  flex-direction: column;
  z-index: 1005;
}

/* Show dropdown on hover or focus */
.t20-menu li.menu-item-has-children:hover > .sub-menu,
.t20-menu li.menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

/* Sub-menu items */
.t20-menu .sub-menu li {
  width: 100%;
  margin: 0;
  display: block;
}

.t20-menu .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.35;
  white-space: normal;
  border-radius: 0;
  transition: background-color var(--ccl-transition-fast), color var(--ccl-transition-fast);
  text-decoration: none;
}

.t20-menu .sub-menu a:hover,
.t20-menu .sub-menu .current-menu-item > a {
  background-color: var(--ccl-green-50);
  color: var(--ccl-green-700);
  font-weight: 600;
}

.t20-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Menu Hamburger Button */
.t20-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--ccl-border-light);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--ccl-navy-900);
  transition: background-color var(--ccl-transition-fast);
}

.t20-menu-toggle:hover {
  background-color: var(--ccl-gray-100);
}

.t20-menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Hero Section with Authentic Cricket Background */
.t20-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 26, 43, 0.94) 0%, rgba(13, 43, 74, 0.88) 60%, rgba(11, 59, 54, 0.92) 100%),
              url('https://t20ccl.com/wp-content/uploads/2021/01/ccl-trial.jpg') center center / cover no-repeat;
  color: #FFFFFF;
  padding: 80px 0 70px;
  overflow: hidden;
}

.t20-hero-content {
  max-width: 820px;
}

.t20-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(230, 161, 0, 0.18);
  border: 1px solid rgba(230, 161, 0, 0.4);
  color: var(--ccl-gold-400);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.t20-hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.t20-hero-title span {
  color: var(--ccl-gold-400);
  display: inline-block;
}

.t20-hero-lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 32px;
  max-width: 720px;
}

.t20-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.t20-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.t20-stat-box {
  border-left: 2px solid var(--ccl-gold-400);
  padding-left: 14px;
}

.t20-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.t20-stat-label {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 4px;
}

/* Real Media Photography Showcase */
.t20-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.t20-gallery-card {
  background: #FFFFFF;
  border-radius: var(--ccl-radius-lg);
  overflow: hidden;
  box-shadow: var(--ccl-shadow-sm);
  border: 1px solid var(--ccl-border-light);
  transition: transform var(--ccl-transition-normal), box-shadow var(--ccl-transition-normal);
  display: flex;
  flex-direction: column;
}

.t20-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ccl-shadow-md);
}

.t20-gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: var(--ccl-navy-900);
}

.t20-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.t20-gallery-card:hover .t20-gallery-img {
  transform: scale(1.05);
}

.t20-gallery-content {
  padding: 16px;
  flex: 1;
}

.t20-gallery-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ccl-navy-900);
  margin-bottom: 6px;
}

.t20-gallery-desc {
  font-size: 0.85rem;
  color: var(--ccl-text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* YouTube Video Section */
.t20-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.t20-video-card {
  background: #FFFFFF;
  border-radius: var(--ccl-radius-lg);
  overflow: hidden;
  box-shadow: var(--ccl-shadow-sm);
  border: 1px solid var(--ccl-border-light);
  display: flex;
  flex-direction: column;
}

.t20-video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000000;
}

.t20-video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.t20-video-info {
  padding: 16px;
}

.t20-video-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ccl-navy-900);
  margin: 0 0 4px 0;
}

.t20-video-meta {
  font-size: 0.82rem;
  color: var(--ccl-text-muted);
}

/* Payment CTA Button Wrapper */
.t20-payment-cta-wrap {
  text-align: center;
  margin: 28px 0;
}

/* Shortcode Grid Row / Columns */
.t20-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.t20-col {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.t20-col-full {
  width: 100%;
}

.t20-col-half {
  width: 50%;
}

.t20-col-third {
  width: 33.333%;
}

.t20-col-quarter {
  width: 25%;
}

@media (max-width: 767px) {
  .t20-col-half,
  .t20-col-third,
  .t20-col-quarter {
    width: 100%;
  }
}

/* Sections & Grids */
.t20-section {
  padding: 65px 0;
}

.t20-section-light {
  background-color: #FFFFFF;
}

.t20-section-gray {
  background-color: #F8FAFC;
  border-top: 1px solid var(--ccl-border-light);
  border-bottom: 1px solid var(--ccl-border-light);
}

.t20-section-dark {
  background-color: var(--ccl-navy-900);
  color: #FFFFFF;
}

.t20-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.t20-section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0A7A53;
  background-color: #ECFDF5;
  border: 1px solid #34D399;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.t20-section-dark .t20-section-tag {
  color: var(--ccl-gold-400);
  background-color: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}

.t20-section-header h2 {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #071A2B !important;
  margin-bottom: 12px;
  line-height: 1.2;
}

.t20-section-dark .t20-section-header h2 {
  color: #FFFFFF !important;
}

.t20-section-subtitle {
  font-size: 1.05rem;
  color: #334155 !important;
  line-height: 1.6;
}

.t20-section-dark .t20-section-subtitle {
  color: #94A3B8 !important;
}

/* Trial Hubs Grid */
.t20-trials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.t20-trial-card {
  background-color: #FFFFFF;
  border: 1px solid var(--ccl-border-light);
  border-radius: var(--ccl-radius-lg);
  padding: 24px;
  box-shadow: var(--ccl-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform var(--ccl-transition-normal), box-shadow var(--ccl-transition-normal);
}

.t20-trial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ccl-shadow-md);
  border-color: var(--ccl-green-400);
}

.t20-trial-badge {
  display: inline-block;
  background-color: var(--ccl-green-50);
  color: var(--ccl-green-700);
  border: 1px solid var(--ccl-green-400);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.t20-trial-city {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ccl-navy-900);
  margin-bottom: 4px;
}

.t20-trial-state {
  font-size: 0.88rem;
  color: var(--ccl-text-muted);
}

.t20-trial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--ccl-border-light);
  border-bottom: 1px solid var(--ccl-border-light);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.t20-trial-meta-item span {
  display: block;
  color: var(--ccl-text-muted);
  font-size: 0.75rem;
}

.t20-trial-meta-item strong {
  color: var(--ccl-navy-900);
  font-size: 0.95rem;
}

/* 4-Stage Pathway */
.t20-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.t20-step-card {
  background-color: #FFFFFF;
  border: 1px solid var(--ccl-border-light);
  border-radius: var(--ccl-radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--ccl-shadow-sm);
  position: relative;
}

.t20-step-number {
  width: 48px;
  height: 48px;
  background-color: var(--ccl-navy-900);
  color: var(--ccl-gold-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto 18px;
}

.t20-step-card h3 {
  font-size: 1.15rem;
  color: var(--ccl-navy-900);
  margin-bottom: 10px;
}

.t20-step-card p {
  font-size: 0.9rem;
  color: var(--ccl-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Roles Grid */
.t20-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.t20-role-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ccl-radius-lg);
  padding: 24px;
  text-align: center;
}

.t20-role-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.t20-role-card h3 {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.t20-role-card p {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Accordion */
.t20-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t20-faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--ccl-border-light);
  border-radius: var(--ccl-radius-md);
  overflow: hidden;
}

.t20-faq-question {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ccl-navy-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t20-faq-icon {
  font-size: 1.3rem;
  color: var(--ccl-green-600);
  transition: transform var(--ccl-transition-fast);
}

.t20-faq-item.active .t20-faq-icon {
  transform: rotate(45deg);
}

.t20-faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ccl-text-secondary);
}

.t20-faq-item.active .t20-faq-answer {
  display: block;
}

/* High Contrast Breadcrumbs */
.ccl-breadcrumb-nav {
  padding: 16px 0 12px;
}

.ccl-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 8px 16px;
  margin: 0;
  font-size: 0.88rem;
  background-color: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
}

.ccl-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ccl-breadcrumb-item + .ccl-breadcrumb-item::before {
  content: '›';
  color: #64748B;
  font-size: 1rem;
  font-weight: 700;
}

.ccl-breadcrumb-item a {
  color: #0A7A53;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ccl-breadcrumb-item a:hover {
  color: #0E9F6E;
  text-decoration: underline;
}

.ccl-breadcrumb-item.ccl-current {
  color: #071A2B;
  font-weight: 800;
}

/* Footer */
.t20-footer {
  background-color: #061320;
  color: #94A3B8;
  padding: 60px 0 30px;
  border-top: 3px solid var(--ccl-green-600);
}

.t20-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.t20-footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.t20-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.t20-footer-col li {
  margin-bottom: 10px;
}

.t20-footer-col a {
  color: #94A3B8;
  transition: color var(--ccl-transition-fast);
  text-decoration: none;
}

.t20-footer-col a:hover {
  color: var(--ccl-gold-400);
}

.t20-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #94A3B8;
}

.t20-footer-contact-item a {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.t20-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748B;
}

.t20-footer-legal-links {
  display: flex;
  gap: 20px;
}

.t20-footer-legal-links a {
  color: #64748B;
  text-decoration: none;
}

.t20-footer-legal-links a:hover {
  color: #CBD5E1;
}

/* Mobile Bottom Sticky Bar */
.t20-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--ccl-navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.t20-mobile-bar-inner {
  display: flex;
  gap: 12px;
}

.t20-mobile-bar-btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--ccl-radius-md);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.t20-mobile-btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.t20-mobile-btn-register {
  background-color: var(--ccl-green-500);
  color: var(--ccl-navy-900);
}
