/*
Theme Name: Custom Diagnostic Theme
Theme URI: https://thekroyaard.com/
Author: Sunil Kumar Patel
Description: A lightweight, custom WordPress theme built for diagnostic tests and health packages without heavy plugins or page builders.
Version: 1.0.1
Text Domain: customtheme
*/

/* --- Reset & Core Layout Styles --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
    line-height: 1.5;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* --- Header & Top Bar --- */
.site-top-bar {
    background: #f4f6f9;
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
    padding: 8px 0;
    color: #555;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.site-title a {
    color: #0056b3;
    font-size: 22px;
    font-weight: bold;
}

.main-navigation ul {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
}

.header-cta-btn {
    background: #ff6600;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

/* --- Archive & Homepage Grid Layout --- */
.archive-header-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.package-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-book-btn {
    display: block;
    text-align: center;
    background: #ff6600;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Single Test Detail Layout --- */
.test-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.test-main-content > div,
.process-steps-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.test-booking-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px;
}

.book-now-btn {
    width: 100%;
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.book-now-btn:hover {
    background: #e65c00;
}

/* --- Footer Styles --- */
.site-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 50px 0 20px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-col ul {
    line-height: 2.2;
}

.footer-col a:hover {
    color: #ffffff;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .test-hero-grid {
        grid-template-columns: 1fr !important;
    }
    
    .test-booking-sidebar {
        position: static !important;
        margin-top: 25px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .archive-header-bar {
        flex-direction: column;
        align-items: stretch;
    }
}