/*
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%;
    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);
    backdrop-filter: blur(8px);
    border-radius: 0 !important;
    font-size: 11px;
    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: 13px;
    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);
    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: 12px;
    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;
}
