/* ==========================================================================
   DENTALREADS FORCE OVERRIDE CSS (NUCLEAR OPTION)
   ========================================================================== */

/* 1. GLOBAL RESET & VARIABLES */
:root {
    --dr-navy: #0a192f !important;
    --dr-blue: #0056b3 !important;
    --dr-teal: #00a8a8 !important;
    --dr-gold: #f0b429 !important;
    --dr-white: #ffffff !important;
}

body.page-template-page-home-dental {
    background-color: #f8f9fa !important;
}

/* Force Hide WoodMart Default Title/Content on Homepage */
body.page-template-page-home-dental .page-title,
body.page-template-page-home-dental .entry-content > .vc_row,
body.page-template-page-home-dental .woodmart-entry-content {
    display: none !important;
}

/* Container Utility */
.dr-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   1. HERO SECTION (FORCED)
   ========================================================================== */
.dr-hero {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%) !important;
    padding: 100px 0 !important;
    overflow: hidden !important;
    position: relative !important;
    min-height: 80vh !important;
    display: flex !important;
    align-items: center !important;
}

.dr-hero__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    align-items: center !important;
    width: 100% !important;
}

/* Typography Fixes */
.dr-hero__title {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    margin: 20px 0 !important;
    color: var(--dr-navy) !important;
    font-weight: 800 !important;
    font-family: 'Playfair Display', serif !important; /* Ensure this font is loaded or remove for system default */
}

.dr-hero__desc {
    font-size: 1.25rem !important;
    color: #555 !important;
    margin-bottom: 30px !important;
    max-width: 500px !important;
}

/* Buttons Reset */
.dr-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 32px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: none !important; /* Override WoodMart uppercase */
    letter-spacing: 0 !important; /* Override WoodMart spacing */
}

.dr-btn--primary {
    background: var(--dr-blue) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.4) !important;
}

.dr-btn--primary:hover {
    background: #004494 !important;
    transform: translateY(-3px) !important;
    color: #fff !important;
}

.dr-btn--outline {
    background: transparent !important;
    color: var(--dr-navy) !important;
    border: 2px solid var(--dr-navy) !important;
}

.dr-btn--outline:hover {
    background: var(--dr-navy) !important;
    color: #fff !important;
}

/* Stats */
.dr-hero__stats {
    display: flex !important;
    gap: 40px !important;
    margin-top: 50px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}

.stat__num {
    display: block !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--dr-navy) !important;
}

.stat__label {
    font-size: 0.9rem !important;
    color: #666 !important;
    text-transform: uppercase !important;
}

/* Hero Visual */
.dr-hero__image-wrapper {
    width: 100% !important;
    height: 500px !important;
    background: url('https://placehold.co/600x500/0056b3/ffffff?text=DentalReads+Hero') center/cover no-repeat !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
    position: relative !important;
}

/* Floating Cards Animation */
.dr-hero__float-card {
    position: absolute !important;
    background: #fff !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    z-index: 10 !important;
    animation: float 3s ease-in-out infinite !important;
}

.card-1 { top: 20% !important; right: -20px !important; }
.card-2 { bottom: 20% !important; left: -20px !important; animation-delay: 1.5s !important; }

@keyframes float {
    0% { transform: translateY(0px) !important; }
    50% { transform: translateY(-10px) !important; }
    100% { transform: translateY(0px) !important; }
}

/* ==========================================================================
   2. TRUST BAR (FORCED)
   ========================================================================== */
.dr-trustbar {
    padding: 50px 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
}

.dr-trustbar p {
    text-align: center !important;
    color: #888 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 0.8rem !important;
}

.dr-trustbar__logos {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    opacity: 0.5 !important;
    filter: grayscale(100%) !important;
}

/* ==========================================================================
   3. COURSE GRID (FORCED)
   ========================================================================== */
.dr-featured {
    padding: 100px 0 !important;
    background: #f8f9fa !important;
}

.dr-section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 50px !important;
}

.dr-section-header .dr-title {
    font-size: 2.5rem !important;
    color: var(--dr-navy) !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.dr-course-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

/* Product Card Reset */
.dr-course-card {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid #eee !important;
    box-shadow: none !important; /* Reset WoodMart shadow */
}

.dr-course-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Card Image */
.dr-card__image {
    position: relative !important;
    height: 200px !important;
    overflow: hidden !important;
    background: #eee !important;
}

.dr-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.dr-course-card:hover .dr-card__image img {
    transform: scale(1.1) !important;
}

/* Card Content */
.dr-card__content {
    padding: 20px !important;
}

.dr-card__category {
    font-size: 0.75rem !important;
    color: var(--dr-teal) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.dr-card__title {
    font-size: 1.1rem !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.dr-card__title a {
    color: var(--dr-navy) !important;
    text-decoration: none !important;
}

.dr-card__meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    color: #888 !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.dr-card__footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.dr-card__price {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--dr-blue) !important;
}

/* Small Button in Card */
.dr-btn--sm {
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    background: var(--dr-navy) !important;
    color: #fff !important;
    border-radius: 4px !important;
}

.dr-btn--sm:hover {
    background: var(--dr-blue) !important;
    color: #fff !important;
}

/* ==========================================================================
   4. RESPONSIVE FIXES
   ========================================================================== */
@media (max-width: 1024px) {
    .dr-course-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .dr-hero__grid { grid-template-columns: 1fr !important; text-align: center !important; }
    .dr-hero__content { order: 2 !important; }
    .dr-hero__visual { order: 1 !important; }
    .dr-hero__desc { max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
    .dr-hero__actions { display: inline-block !important; }
    .dr-hero__stats { justify-content: center !important; }
}

@media (max-width: 768px) {
    .dr-course-grid { grid-template-columns: 1fr !important; }
    .dr-hero__title { font-size: 2rem !important; }
    .dr-section-header { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
}