/* ===================================
   SECTIONS - All Homepage Sections
   Clean, WordPress Standard
   =================================== */

/* ===== HERO SECTION ===== */
.rtc-hero-premium {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.rtc-hero-premium>div {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

/* ===== TRUST STRIP ===== */
.rtc-trust-strip {
    padding: 60px 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.rtc-trust-strip>div {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.trust-item {
    text-align: center;
    padding: 20px;
}

.trust-item .icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(#0f172a, #0f172a) padding-box,
        linear-gradient(135deg, #1e38ef, #f8bb2f) border-box;
    animation: trustIconGlow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.trust-item .icon:hover {
    transform: scale(1.15) rotate(5deg);
}

.trust-item h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, #f8bb2f, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin: 10px 0;
}

.trust-item p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

@keyframes trustIconGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(30, 56, 239, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(248, 187, 47, 0.7);
    }
}

/* ===== PRODUCT CATEGORIES SECTION ===== */
.rtc-categories {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.rtc-categories .section-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FIX: Badge Overflow - ULTRA SPECIFIC to override home-neon.css */
.rtc-categories>div>div.section-badge.category-badge,
.rtc-categories .section-badge.category-badge,
section.rtc-categories .section-badge,
.rtc-categories .section-header .section-badge,
.rtc-categories .section-badge,
.rtc-categories .category-badge {
    min-height: auto !important;
    height: auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 10px 30px !important;
    margin: 0 auto 25px auto !important;
    display: block !important;
    text-align: center !important;

    /* Make text visible - Gold on dark background */
    color: #f8bb2f !important;
    background: rgba(30, 56, 239, 0.15) !important;
    border: 3px solid #1e38ef !important;
    border-radius: 50px !important;
    box-shadow: 0 0 25px rgba(30, 56, 239, 0.5) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    text-shadow: 0 0 15px rgba(248, 187, 47, 0.8) !important;

    /* Override any float/position */
    float: none !important;
    position: static !important;
}


.rtc-categories h2,
.rtc-categories .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f8bb2f;
    margin: 20px 0;
    text-align: center;
}

.rtc-categories p,
.rtc-categories .section-description {
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


/* Product Grid - ULTRA SPECIFIC for 3 columns × 2 rows */
.rtc-categories ul.products,
.rtc-categories>div>ul.products,
section.rtc-categories ul.products,
.rtc-categories .products,
ul.products.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 30px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* Remove extra container styling - only cards should have styling */
.rtc-categories>div>div:not(.section-badge):not(.section-header) {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
    width: auto !important;
}

/* Ensure only 6 items show (3×2) */
.rtc-categories ul.products li:nth-child(n+7) {
    display: none !important;
}


/* ===== CUSTOM CATEGORY CARDS ===== */
/* ===== CUSTOM CATEGORY CARDS ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        /* 1 Column on Mobile */
        gap: 20px;
    }

    .category-card .card-image {
        height: 150px;
        /* Smaller Images */
    }

    .category-card .card-content {
        padding: 15px 10px;
    }

    .category-card h3 {
        font-size: 0.95rem;
        /* Smaller Font */
        margin-bottom: 5px;
    }

    .product-count {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .explore-btn {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Force Mobile Grid for Standard Products (Overriding the Desktop !important rule above) */
@media (max-width: 768px) {

    .rtc-categories ul.products,
    .rtc-categories>div>ul.products,
    section.rtc-categories ul.products,
    .rtc-categories .products,
    ul.products.columns-3 {
        grid-template-columns: 1fr !important;
        /* Force 1 Col on Mobile */
        gap: 20px !important;
    }
}

/* Simple Card Design as requested */
.category-card {
    background: #1e293b;
    /* Dark card background */
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #f8bb2f;
    /* Gold border on hover */
}

/* Make whole card clickable usually, but link wrapper is best practice */
.card-link-wrapper {
    text-decoration: none;
    display: block;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 220px;
    /* Standard height */
    overflow: hidden;
    background: #0f172a;
    border-radius: 12px !important; /* FORCE RECTANGLE (Fixes Arch Issue) */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.card-content {
    padding: 20px;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
}

.product-count {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.explore-btn {
    display: inline-block;
    color: #f8bb2f;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.category-card:hover .explore-btn {
    border-bottom-color: #f8bb2f;
}


.category-card h3 {
    color: #f8bb2f;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: #ffd700;
}

.category-card .product-count {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.category-card .card-link {
    display: inline-block;
    color: #1e38ef;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.category-card .card-link:hover {
    color: #f8bb2f;
    text-shadow: 0 0 10px rgba(248, 187, 47, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card .card-image {
        height: 180px;
    }
}


/* ===== TRENDING PRODUCTS SECTION ===== */
.rtc-trending {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.rtc-trending .section-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Trending Badge - Visible with Gold Theme */
.rtc-trending .section-badge,
.rtc-trending .trending-badge {
    min-height: auto !important;
    height: auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 10px 30px !important;
    margin: 0 auto 25px auto !important;
    display: block !important;
    text-align: center !important;

    /* Make badge visible - Gold on dark background */
    color: #f8bb2f !important;
    background: rgba(248, 187, 47, 0.15) !important;
    border: 3px solid #f8bb2f !important;
    border-radius: 50px !important;
    box-shadow: 0 0 25px rgba(248, 187, 47, 0.5) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    text-shadow: 0 0 15px rgba(248, 187, 47, 0.8) !important;
}

.rtc-trending h2,
.rtc-trending .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 20px 0;
    text-align: center;

    /* Animated Gradient */
    background: linear-gradient(90deg, #f8bb2f, #ffd700, #1e38ef, #4361ee, #f8bb2f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}


.rtc-trending p,
.rtc-trending .section-description {
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


/* ===== WHY CHOOSE US ===== */
.rtc-why-us {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.rtc-why-us .section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Why Choose Us Badge - Visible with Blue Theme */
.rtc-why-us .section-badge,
.rtc-why-us .why-badge {
    min-height: auto !important;
    height: auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 10px 30px !important;
    margin: 0 auto 25px auto !important;
    display: block !important;
    text-align: center !important;

    /* Make badge visible - Blue theme */
    color: #1e38ef !important;
    background: rgba(30, 56, 239, 0.15) !important;
    border: 3px solid #1e38ef !important;
    border-radius: 50px !important;
    box-shadow: 0 0 25px rgba(30, 56, 239, 0.5) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    text-shadow: 0 0 15px rgba(30, 56, 239, 0.8) !important;
}

.rtc-why-us h2,
.rtc-why-us .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f8bb2f;
    margin: 20px 0;
    text-align: center;
}

.rtc-why-us .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.rtc-why-us .why-item {
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(248, 187, 47, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rtc-why-us .why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 56, 239, 0.1), rgba(248, 187, 47, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.rtc-why-us .why-item:hover::before {
    opacity: 1;
}

.rtc-why-us .why-item:hover {
    border-color: #f8bb2f;
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(248, 187, 47, 0.5);
}

.rtc-why-us .why-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e38ef, #4361ee);
    border-radius: 50%;
    border: 3px solid #f8bb2f;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.rtc-why-us .why-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.rtc-why-us .why-item h3 {
    color: #f8bb2f;
    font-size: 1.5rem;
    margin: 20px 0 15px;
    position: relative;
    z-index: 1;
}

.rtc-why-us .why-item p {
    color: #94a3b8;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}



/* ===== TESTIMONIALS ===== */
.rtc-testimonials {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    overflow: hidden;
}

/* Hide old slider to prevent conflicts */
.testimonials-slider,
.elementor-widget-testimonial-carousel {
    display: none !important;
}

/* Ensure new slider is visible and overrides any potential hidden states */
.testimonials-slider-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 400px;
}

.testimonial-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    /* Force relative to override absolute from JS */
    height: auto !important;
}

.rtc-testimonials .section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Testimonials Badge - Visible with Green Theme */
.rtc-testimonials .section-badge,
.rtc-testimonials .testimonial-badge {
    min-height: auto !important;
    height: auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 10px 30px !important;
    margin: 0 auto 25px auto !important;
    display: block !important;
    text-align: center !important;

    /* Make badge visible - Green theme */
    color: #00e5ff !important;
    background: rgba(0, 229, 255, 0.15) !important;
    border: 3px solid #00e5ff !important;
    border-radius: 50px !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.8) !important;
}

.rtc-testimonials h2,
.rtc-testimonials .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f8bb2f;
    margin: 20px 0;
    text-align: center;
}

/* Slider Grid Layout */
.testimonials-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.testimonials-track-container {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    /* 3 cards visible */
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    min-width: 300px;
}

.testimonial-card:hover {
    border-color: #f8bb2f;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: #00e5ff;
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-card .client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f8bb2f;
    object-fit: cover;
}

.testimonial-card .client-details h4 {
    color: #f8bb2f;
    margin: 0;
    font-size: 1.1rem;
}

.testimonial-card .client-details span {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        /* 2 cards */
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        /* 1 card */
    }
}

/* ===== SECTION HEADERS (GLOBAL) ===== */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(135deg, #f8bb2f, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin: 20px 0;
}

.section-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

    .rtc-categories ul.products,
    .rtc-why-us .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rtc-hero-premium {
        min-height: 500px;
        padding: 60px 20px;
    }

    .rtc-trust-strip>div {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .trust-item .icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .rtc-categories ul.products,
    .rtc-why-us .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rtc-categories,
    .rtc-why-us,
    .rtc-testimonials {
        padding: 60px 20px;
    }
}

/* ===== FOOTER ===== */
.rtc-footer,
.site-footer,
.ast-footer-wrap {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-top: 3px solid #1e38ef;
}

/* Footer Logo - White with Gold Glow - SPECIFIC TARGETING */
.rtc-footer img[src*="logo-royal-tech"],
.rtc-footer img[src*="logo"],
.rtc-footer .custom-logo,
.rtc-footer .footer-logo,
.site-footer img,
.ast-footer-wrap img,
.footer-widget img {
    filter: brightness(0) invert(1) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 20px rgba(248, 187, 47, 0.5) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    animation: footerLogoGlow 3s ease-in-out infinite !important;
}

@keyframes footerLogoGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(248, 187, 47, 0.5);
    }

    50% {
        box-shadow: 0 0 35px rgba(248, 187, 47, 0.9);
    }
}

.rtc-footer img[src*="logo-royal-tech"]:hover,
.rtc-footer img[src*="logo"]:hover,
.site-footer img:hover,
.footer-widget img:hover {
    filter: brightness(0) invert(1) !important;
    box-shadow: 0 0 40px rgba(248, 187, 47, 1) !important;
    transform: scale(1.1) !important;
    animation: none !important;
}


/* Footer Text */
.rtc-footer,
.rtc-footer p,
.rtc-footer a,
.site-footer,
.site-footer p,
.site-footer a,
.ast-footer-wrap {
    color: #cbd5e1;
}

.rtc-footer a:hover,
.site-footer a:hover {
    color: #f8bb2f;
    text-shadow: 0 0 10px rgba(248, 187, 47, 0.5);
}