:root {
    --bs-purple: #6f42c1;
    --bs-light-black: #212529;
}

/* Custom Purple Color */
.bg-purple {
    background-color: var(--bs-purple);
}

.btn-purple {
    background-color: var(--bs-purple);
    color: white;
}

.btn-outline-purple {
    border-color: var(--bs-purple);
    color: var(--bs-purple);
}

.btn-outline-purple:hover {
    background-color: var(--bs-purple);
    color: white;
}

.text-purple {
    color: var(--bs-purple);
}

/* Body and Typography */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
}

a {
    color: black;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: white;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Section Headers */
.section-header h2 {
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--bs-primary);
}


/* .views-view-responsive-grid__item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.views-view-responsive-grid__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
} */

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

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

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Testimonials */
.testimonial-card .card-text {
    font-style: italic;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--bs-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: auto;
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.views-view-responsive-grid__item-inner {
    display: flex;
    flex-direction: column;
  }
  .views-view-responsive-grid__item-inner > .card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  .card-body {
    padding: 1.5rem;    
    flex: 1 1 auto;
    flex-direction: column;
  }
  .card-body > .mt-auto {
    margin-top: auto;
  }

  /* Main Content Container */
main[role="main"] {
    padding: 2rem 0 0 0;
    flex: 1;
  }
  
  /* Breadcrumb Styles */
  .region-breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.875rem;
  }
  
  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
  }
  
  .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 0.5rem;
    color: #6c757d;
  }
  
  .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
  }
  
  .breadcrumb-item a:hover {
    text-decoration: underline;
  }
  
  /* Page Title Styles */
  .block-page-title-block h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: #212529;
  }
  
  /* Content Area */
  .region-content {
    margin-top: 1.5rem;
  }
  
  /* Node/Page Content Styles */
  /* .node {
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
  } */
  
  .node__content {
    line-height: 1.7;
    color: #212529;
  }
  
  .field--name-body p {
    margin-bottom: 1.25rem;
  }
  
  /* Views Listing Container */
.view-whatsapp-ai {
    margin: 2rem 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  }
  
  /* View Header */
  .view-header {
    font-size: 1.25rem;
    color: #128C7E; /* WhatsApp green */
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Grid Layout */
  .views-view-responsive-grid {
    /* gap: 1.5rem; */
    padding: 0.5rem; /* Prevents card shadow clipping */
  }
  
  /* Card Styles */
  .view-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .view-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  
  /* Card Content */  
  .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2d3436;
  }
  
  .card-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(#25D366, #25D366);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
  }
  
  .card-title a:hover {
    color: #128C7E;
    background-size: 100% 2px;
  }
  
  .card-text {
    color: #636e72;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
  }
  
  /* Tags */
  .card-tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f2f5;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #2d3436;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .card-tag:hover {
    background-color: #dfe6e9;
    color: #128C7E;
  }
  
  /* Button */
  .card-action {
    margin-top: auto;
  }
  
  .btn-whatsapp {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
  }
  
  .btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(18, 140, 126, 0.2);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 992px) {
    .views-view-responsive-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .view-header {
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
    }
    
    .card-title {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 576px) {
    .views-view-responsive-grid {
      grid-template-columns: 1fr;
    }
    
    .card-body {
      padding: 1.25rem;
    }
    
    .btn-whatsapp {
      width: 100%;
    }
  }
  
  /* Empty State */
  .view-empty {
    text-align: center;
    padding: 2rem;
    color: #636e72;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
  }

  /* Responsive Adjustments */
  @media (max-width: 767.98px) {
    .block-page-title-block h1 {
      font-size: 1.75rem;
    }
    
    .node {
      padding: 1rem;
    }
  }
  
  @media (max-width: 575.98px) {
    .block-page-title-block h1 {
      font-size: 1.5rem;
    }
    
    .breadcrumb {
      font-size: 0.8125rem;
    }
  }


.views-view-responsive-grid__item {
  --views-responsive-grid--layout-gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Base styles for all .more-link buttons */
.more-link {
  padding: 0.25rem 0.5rem;
  float: right;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
              border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.more-link a {
  text-transform: capitalize;
  text-decoration: none;
}

/* #misc-section (yellow) */
#misc-section .more-link {
  color: #ffc107;
  border: 1px solid #ffc107;
}
#misc-section .more-link a {
  color: #ffc107;
}
#misc-section .more-link:hover {
  background-color: #ffc107;
  border-color: #ffc107;
}
#misc-section .more-link a:hover {
  color: #fff;
}

/* #whatsapp-section (green) */
#whatsapp-section .more-link {
  color: #198754;
  border: 1px solid #198754;
}
#whatsapp-section .more-link a {
  color: #198754;
}
#whatsapp-section .more-link:hover {
  background-color: #198754;
  border-color: #198754;
}
#whatsapp-section .more-link a:hover {
  color: #fff;
}

/* #mobile-section (purple) */
#mobile-section .more-link {
  color: #6f42c1;
  border: 1px solid #6f42c1;
}
#mobile-section .more-link a {
  color: #6f42c1;
}
#mobile-section .more-link:hover {
  background-color: #6f42c1;
  border-color: #6f42c1;
}
#mobile-section .more-link a:hover {
  color: #fff;
}

/* #meta-section (blue) */
#meta-section .more-link {
  color: #0d6efd;
  border: 1px solid #0d6efd;
}
#meta-section .more-link a {
  color: #0d6efd;
}
#meta-section .more-link:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
}
#meta-section .more-link a:hover {
  color: #fff;
}

/* #google-section (red) */
#google-section .more-link {
  color: #dc3545;
  border: 1px solid #dc3545;
}
#google-section .more-link a {
  color: #dc3545;
}
#google-section .more-link:hover {
  background-color: #dc3545;
  border-color: #dc3545;
}
#google-section .more-link a:hover {
  color: #fff;
}

/* Featured Article Button */
.featured-article-more a {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background-color: #0b5ed7;
  border: 1px solid #0a58ca;
  border-radius: 0.25rem;
  text-transform: capitalize;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
              border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.featured-article-more a:hover {
  color: #fff;
}

.animate__animated {
  --animate-duration: 1s;
}

/* .view-featured-articles .more-link a:hover, */

footer {
  margin-top: 5rem;
}

.path-frontpage footer {
  margin-top: 0;
}

.path-featured-articles #block-aiinsightshub-page-title,
.path-featured-articles .view-header p {
 text-align: center;
}

.views-view-responsive-grid__item {
  margin-bottom: 1rem;
}

.tags-category a {
	--bs-badge-padding-x: 0.65em;
	--bs-badge-padding-y: 0.35em;
	--bs-badge-font-size: 0.75em;
	--bs-badge-font-weight: 700;
	--bs-badge-color: #fff;
	--bs-badge-border-radius: var(--bs-border-radius);
	display: inline-block;
	padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
	font-size: var(--bs-badge-font-size);
	font-weight: var(--bs-badge-font-weight);
	line-height: 1;
	color: var(--bs-badge-color);
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: var(--bs-badge-border-radius);
	--bs-bg-opacity: 1;
	background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
	font-weight: 500;
	padding: 5px 10px;
}

/* Main Content Container */
main[role="main"] {
  padding: 2rem 0 0 0;
  background-color: #f8f9fa;
}


/* Breadcrumb Navigation */
.region-breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  background-color: transparent;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  display: inline-block;
  padding-right: 0.5rem;
  color: #6c757d;
}

.breadcrumb-item a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Article Container */
.node--type-article,
.node--type-page {
  background: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Article Meta */
.node__meta {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 0.875rem;
}

.node__submitted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.node__submitted time {
  font-weight: 500;
  color: #495057;
}

/* Article Content */
.node__content {
  line-height: 1.7;
  color: #212529;
}

.field--name-body {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.field--name-body p {
  margin-bottom: 1.25rem;
}

/* Tags Field */
.field--name-field-tags {
  margin: 1.5rem 0;
}

.field__label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field__item a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  color: #0d6efd;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.field__item a:hover {
  background-color: #e9ecef;
  color: #0a58ca;
}

/* Badge Label */
.field--name-field-badge-label {
  margin: 1.5rem 0;
}

.field--name-field-badge-label .field__item {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #dc3545;
  color: white;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Comments Section */
.comment-wrapper {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

/* Login to Comment Link */
.node__links {
  margin: 1.5rem 0;
}

.node__links .links.inline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.node__links .links.inline li {
  display: inline;
}

.node__links .links.inline a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.node__links .links.inline a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .path-node .block-page-title-block h1 {
    font-size: 1.75rem;
  }
  
  .node--type-article {
    padding: 1.5rem;
  }
  
  .field--name-body {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .path-node .block-page-title-block h1 {
    font-size: 1.5rem;
  }
  
  .node--type-article {
    padding: 1rem;
  }
  
  .node__submitted {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Title Container */
.path-node .block-page-title-block {
  position: relative;
}

/* Main Title */
.path-node .block-page-title-block h1 {
  font-size: 2rem;
  font-weight: 400;
  color: #202124;
  line-height: 1.3;
  margin: 0;
  padding: 0.5rem 0;
  position: relative;
}

/* Google-themed Underline */
.path-node .block-page-title-block h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
  border-radius: 3px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .path-node .block-page-title-block h1 {
    font-size: 2.5rem;
    font-weight: 300;
  }
  
  .path-node .block-page-title-block h1::after {
    width: 5rem;
    height: 4px;
  }
}

@media (min-width: 992px) {
  .path-node .block-page-title-block h1 {
    font-size: 2.75rem;
  }
}

/* Page Title Block Container */
.path-node #block-aiinsightshub-page-title {
  padding-left: 1.75rem;  
  position: relative;
  background-color: #fff;  
}

/* Main Title Styling */
.path-node #block-aiinsightshub-page-title h1 {
  font-size: 1.25rem;
  font-weight: 400;
  /* Google's dark gray */
  /* color: #202124; */
  line-height: 1.3;
  margin: 0;
  padding: 0.75rem 0;
  position: relative;
  display: inline-block;
}

/* Google-Inspired Accent Underline */
.path-node #block-aiinsightshub-page-title h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    #4285F4 0%, /* Google blue */
    #34A853 33%, /* Google green */
    #FBBC05 66%, /* Google yellow */
    #EA4335 100% /* Google red */
  );
  border-radius: 2px;
}

/* Title Text Field */
.path-node #block-aiinsightshub-page-title .field--name-title {
  display: inline-block;
  padding-right: 1rem;
  background-color: #fff; /* Creates gap between text and underline */
  position: relative;
  z-index: 1;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .path-node #block-aiinsightshub-page-title h1 {
    font-size: 1.75rem;
    font-weight: 300;
  }
}

@media (min-width: 992px) {
  .path-node #block-aiinsightshub-page-title h1 {
    font-size: 2rem;
  }
}

.path-frontpage article {
  display: none;
}

/* --- Form Elements --- */
.user-login-form .form-item {
  margin-bottom: 1.2rem;
}

.user-login-form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  color: #555;
}

.user-login-form input.form-control {
  padding: 0.75rem 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.user-login-form input.form-control:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- Submit Button --- */
#edit-submit.btn,
#edit-preview.btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

#edit-actions{
  display: flex;
}

/* --- Tabs (e.g., Log in, Reset Password) --- */
.tabs-wrapper {
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: #555;
  transition: border-color 0.2s ease;
}

.nav-tabs .nav-link.active {
  font-weight: 600;
  border-color: #0d6efd;
  color: #0d6efd;
}

/* --- Container layout --- */
.path-user-anonymous .container {
  padding: 2rem 1rem;
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .path-user main .container {
    padding: 1.5rem 1rem;
  }

}

.path-search main .container {
  padding: 2rem 1rem;
  margin: 0 auto;
  background-color: #fff;
}



/* --- Search Form --- */
main form.search-form {
  gap: 1rem;
  margin-bottom: 2rem;
}

main .search-form label {
  font-weight: 500;
  color: #555;
}

main .form-search {
  padding: 0.75rem 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}

main .form-search:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.path-search main #edit-submit.btn {
  padding: 0.8rem 1.2rem;
  font-weight: 500;
  font-size: 1rem;
  width: 20%;
}

main .form-type-search {
  width: 75%;
}

main .search-help-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #0d6efd;
}

/* --- Search Results Section --- */
main .path-search  h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- Search Result Item --- */
main .search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}

main .search-results li {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background-color: #fafafa;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

main .search-results li:hover {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

main .search-result__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

main .search-result__title a {
  text-decoration: none;
  color: #0d6efd;
}

main .search-result__title a:hover {
  text-decoration: underline;
}

main .search-result__snippet-info p {
  margin: 0.3rem 0;
  color: #444;
  font-size: 0.95rem;
}

main .search-result__info {
  font-size: 0.85rem;
  color: #888;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  main form.search-form {
    flex-direction: column;
  }

  main .form-search,
  .path-search main  #edit-submit {
    width: 100%;
  }
}
