/*
Theme Name: Teno
Description: Custom WordPress theme with advanced Customizer options, hero slider, 5-column service boxes, About Box section, and Testimonials management.
Version: 1.4.0
Author: Chatblue
*/

/* ==========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

/* ==========================================
   2. SITE LAYOUT STYLES (FULL-WIDTH VS BOXED)
   ========================================== */
.site-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-wrapper.layout-boxed {
    max-width: 1320px;
    margin: 40px auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================
   3. SITE HEADER
   ========================================== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #e1e4e8;
    position: relative;
    z-index: 100;
}

.site-logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

.site-logo h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
}

/* Navigation Menu */
.site-nav ul {
    display: flex;
    gap: 25px;
}

.site-nav a {
    font-weight: 500;
    color: #4a5568;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #0073aa;
}

/* Header Action Buttons (No Hover) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.header-btn:hover {
    transform: none;
}

.btn-custom-1 {
    background-color: #0073aa;
    color: #fff;
}
.btn-custom-1:hover {
    background-color: #0073aa;
}

.btn-custom-2 {
    background-color: #008cc9;
    color: #fff;
}
.btn-custom-2:hover {
    background-color: #008cc9;
}

.btn-custom-3 {
    background-color: #005177;
    color: #fff;
}
.btn-custom-3:hover {
    background-color: #005177;
}

.btn-custom-logout {
    background-color: #e53e3e;
    color: #fff;
}
.btn-custom-logout:hover {
    background-color: #e53e3e;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================
   4. HERO SLIDER: STATIC BG & ROTATING TEXT
   ========================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
}

.hero-slider-section.slider-layout-boxed {
    max-width: 1200px;
    margin: 30px auto 0;
    border-radius: 8px;
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    background-color: #1a202c;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-text-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slide-content-item {
    position: absolute;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: #000000;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.slide-content-item:first-of-type,
.slide-content-item.active-text {
    opacity: 1;
    visibility: visible;
}

.slide-content-item h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 700;
    line-height: 1.2;
}

.slide-content-item .slide-desc-wrapper {
    margin-top: 10px;
}

.slide-content-item p {
    font-size: 1.15rem;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

.slide-btn-wrapper {
    margin-top: 25px;
}

/* Slider Action Button (No Hover) */
.slide-action-btn {
    display: inline-block;
    background-color: #0073aa !important;
    color: #fff !important;
    border: 2px solid #0073aa;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
}

.slide-action-btn:hover {
    background-color: #0073aa !important;
    border-color: #0073aa !important;
    transform: none;
    color: #fff !important;
}

/* ==========================================
   5. SERVICE BOXES SECTION (5-COLUMN GRID)
   ========================================== */
.home-content-area {
    padding: 80px 0;
}

.service-boxes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.service-box {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    color: #0073aa;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f0f4f8;
    border-radius: 50%;
}

.service-box h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #2d3748;
}

.service-box p {
    font-size: 0.95rem;
    color: #718096;
}

/* ==========================================
   6. FRONT PAGE ABOUT BOX (IMAGE LEFT, TEXT RIGHT)
   ========================================== */
.home-about-box {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 50px;
    margin-top: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.about-box-image-col {
    flex: 1;
    width: 100%;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.about-img-placeholder {
    width: 100%;
    height: 300px;
    background: #edf2f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 3rem;
}

.about-box-text-col {
    flex: 1;
}

.about-box-text-col h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.about-box-text-col p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* About Action Button (No Hover) */
.about-action-btn {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.about-action-btn:hover {
    background-color: #0073aa;
    transform: none;
    color: #fff;
}

/* ==========================================
   7. USER REVIEW / TESTIMONIAL BOX WITH AVATAR
   ========================================== */
.user-review-box-single {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 45px 40px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.review-avatar-wrapper {
    margin-bottom: 18px;
}

.review-avatar-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.user-review-box-single .review-stars {
    color: #f6ad55;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.user-review-box-single .review-quote p {
    font-size: 1.35rem;
    font-style: italic;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

.user-review-box-single .review-author-name {
    font-size: 1.15rem;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-review-box-single .review-author-role {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    display: block;
}

/* ==========================================
   8. SITE FOOTER
   ========================================== */
.site-footer {
    background-color: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    font-size: 0.9rem;
}

/* ==========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .service-boxes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 15px;
    }

    .site-nav.toggled {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 15px;
        background: #f8fafc;
        padding: 15px;
        border-radius: 6px;
    }

    .service-boxes-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .slide-content-item h2 {
        font-size: 2rem;
    }
    
    .slide-content-item p {
        font-size: 1rem;
    }

    .home-about-box {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        margin-top: 35px;
    }

    .about-box-text-col h2 {
        font-size: 1.6rem;
    }

    .user-review-box-single {
        padding: 30px 20px;
        margin-top: 35px;
    }
    
    .user-review-box-single .review-quote p {
        font-size: 1.1rem;
    }
    
    /* ==========================================
   5-COLUMN BOXED FRONT PAGE BLOG STYLES
   ========================================== */
.front-page-blog-section,
.unboxed-blog-section {
    padding: 60px 0;
    width: 100%;
}

.front-page-blog-section .section-header-title,
.unboxed-blog-section .section-header-title {
    text-align: center;
    margin-bottom: 35px;
}

.front-page-blog-section .section-header-title h2,
.unboxed-blog-section .section-header-title h2 {
    font-size: 2rem;
    color: #1a202c;
    font-weight: 700;
}

/* 5-Column Grid Layout */
.front-page-blog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Responsive adjustment for tablets and mobile */
@media (max-width: 1200px) {
    .front-page-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .front-page-blog-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Boxed Blog Card Design */
.home-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.home-blog-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.home-blog-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-blog-meta {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 6px;
}

.home-blog-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.home-blog-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-blog-title a:hover {
    color: #3182ce;
}

.home-blog-excerpt {
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.home-blog-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3182ce;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.home-blog-read-more:hover {
    color: #2b6cb0;
}
}