/*
Theme Name: Tinh Cầu Web Design
Theme URI: https://tinhcau.vn
Author: Tinh Cầu Team
Author URI: https://tinhcau.vn
Description: Theme WordPress tối ưu cho công ty thiết kế web, sử dụng Tailwind CSS CDN.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tinhcau
*/

body {
}

/* a.relative.h-full {
    border-radius: 10px 10px 0 0 !important;
} */

/* Global 8px Border Radius for Buttons, Cards, and Boxes */

button,
.btn,
a.button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
}

/* Form Elements */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
}

/* Cards and Boxes */

.card,
.box,
.panel,
.widget,
.container-box,
[class*="card"],
[class*="box"] {
}

/* Images in cards/boxes */

.card img,
.box img,
[class*="card"] img {
}

/* ========================================
   PROJECT CARD - NEW DESIGN (BEM)
   ======================================== */

.project-card-wrapper {
  height: 100%;
}

.project-card {
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: none;
  border-color: #023AB1;
  transform: none;
}

/* Image Section */

.project-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.project-card__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.08);
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.project-card__placeholder .material-icons {
  font-size: 64px;
}

/* Overlay */

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

/* Category Badge */

.project-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 0 !important;
  font-size: 14px;
  font-weight: 700;
  color: #023AB1;
  box-shadow: none;
  z-index: 10;
}

.project-card__badge .material-icons {
  font-size: 14px;
}

/* Hover Actions */

.project-card__actions {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}

.project-card:hover .project-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.project-card__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 0 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.project-card__btn .material-icons {
  font-size: 16px;
}

.project-card__btn--primary {
  background: #023AB1;
  color: #ffffff;
}

.project-card__btn--primary:hover {
  background: #ffffff;
  color: #023AB1;
  transform: none;
  box-shadow: none;
}

.project-card__btn--secondary {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card__btn--secondary:hover {
  background: #ffffff;
  color: #023AB1;
  border-color: #ffffff;
  transform: none;
}

/* Content Section */

.project-card__content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
}

.project-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-card__title a:hover {
  color: #023AB1;
}

.project-card__excerpt {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  flex: 1;
}

/* Meta Info */

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #94a3b8;
}

.project-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-card__meta-item .material-icons {
  font-size: 14px;
}

/* Stretched Link - Makes the entire parent container clickable */

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
  cursor: pointer;
}

/* Ensure other links inside the card are above the stretched link */

.stretched-link ~ * a,
.stretched-link ~ * button {
  position: relative;
  z-index: 2;
}

/* ========================================
   MODERN GRADIENT BACKGROUNDS
   ======================================== */

/* Light Gradient - Primary Color */

.bg-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

/* Subtle Blue Gradient */

.bg-gradient-blue {
  background: linear-gradient(135deg, #f8fafc 0%, rgba(2, 58, 177, 0.03) 50%, #f8fafc 100%);
}

/* Soft Gradient */

.bg-gradient-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Radial Gradient - Subtle */

.bg-gradient-radial {
  background: radial-gradient(circle at 50% 50%, rgba(2, 58, 177, 0.02) 0%, #ffffff 100%);
}

/* Hero Cards - 2x2 Grid on Desktop, Swiper on Mobile */

@media (min-width: 1024px) {
  .hero-cards-container {
    transform: none !important;
  }

  .hero-cards-wrapper {
    transform: none !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    height: auto !important;
    /* Override Swiper height */
    box-sizing: border-box !important;
  }

  .hero-cards-wrapper .swiper-slide {
    width: auto !important;
    height: auto !important;
    /* Override Swiper slide height */
    margin: 0 !important;
  }

  /* Ensure link fills the slide */

  .hero-cards-wrapper .swiper-slide a {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 !important;
    /* Remove border radius */
  }

  /* Also remove border radius for icon containers inside cards */

  .hero-cards-wrapper .swiper-slide a > div.flex > div.w-14 {
    border-radius: 0 !important;
  }
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.tinhcau-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background-color: #f8fafc;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.tinhcau-pagination a.page-numbers:hover {
  background-color: #023AB1;
  color: #ffffff;
  border-color: #023AB1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(2, 58, 177, 0.25);
}

.tinhcau-pagination .current {
  background-color: #023AB1;
  color: #ffffff;
  border-color: #023AB1;
  pointer-events: none;
  box-shadow: 0 4px 12px -2px rgba(2, 58, 177, 0.25);
}

.tinhcau-pagination .dots {
  background-color: transparent;
  color: #94a3b8;
  border: none;
  padding: 0 4px;
}

/* ========================================
   PROSE TYPOGRAPHY STYLES (Content Formatting)
   ======================================== */

.prose {
  color: #334155;
  line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #0f172a;
  font-weight: 800;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h1 {
  font-size: 2.25em;
  margin-top: 0;
}

.prose h2 {
  font-size: 1.75em;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.5em;
}

.prose h3 {
  font-size: 1.5em;
}

.prose h4 {
  font-size: 1.25em;
}

.prose a {
  color: #023AB1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s;
}

.prose a:hover {
  color: #ff7301;
  text-decoration-color: #ff7301;
}

.prose p {
  margin-bottom: 1.25em;
  font-weight: 400;
  font-size: 1.05rem;
}

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

.prose ul {
  list-style-type: disc;
}

.prose ul li, .prose ol li {
  margin-bottom: 0.5em;
  display: list-item;
}

.prose ol {
  list-style-type: decimal;
}

.prose img {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  margin: 2rem auto;
  display: block;
  height: auto;
  max-width: 100%;
}

.prose blockquote {
  border-left: 4px solid #023AB1;
  background: #f8fafc;
  padding: 1.5em;
  margin: 2em 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #475569;
}

.prose code {
  background: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #ec4899;
}

.prose pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2em 0;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.prose table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  margin: 2em 0;
}

.prose th, .prose td {
  padding: 0.75em;
  border-bottom: 1px solid #e2e8f0;
}

.prose th {
  font-weight: bold;
  background: #f8fafc;
}

.prose strong, .prose b {
  font-weight: bold;
  color: #0f172a;
}

