/*
=========================================
--- Santosh Raut Home Automation - Main Stylesheet ---
=========================================

TABLE OF CONTENTS
1.  :root Variables
2.  Global & Base Styles
3.  Layout & Container
4.  Header & Navigation
5.  Mobile Menu
6.  Breadcrumbs
7.  Footer
8.  Hero & Page Titles
9.  Buttons & Forms
10. Cards & Page Content
11. Homepage Sections
12. Solution Page (List & Single)
13. Blog Page (List & Single)
14. FAQ Page
15. Sidebar & Modules
16. Utility Classes (Back to Top, Notices)
17. Admin: Login Page
18. Admin: Main Layout
19. Admin: Dashboard
20. Admin: CRUD & Forms
21. Responsive (Mobile)

=========================================
*/

/* 1. :root Variables
========================================= */
:root {
    --primary-color: #007aff; /* A bright, modern tech blue */
    --secondary-color: #00bfff; /* A vibrant cyan for gradients */
    --dark-color: #1a1a2e; /* A very dark, deep blue for text/backgrounds */
    --body-bg: #f4f7fa; /* Light gray background */
    --card-bg: #ffffff; /* White for cards */
    --card-bg-glass: rgba(255, 255, 255, 0.7); /* Frosted glass effect */
    --gray-color: #f0f0f5;
    --border-color: #e0e0e6;
    --text-color: #333;
    --text-light: #555;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 2. Global & Base Styles
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.frontend-body {
    font-family: var(--font-sans);
    margin: 0;
    padding-top: 80px; /* Leave space for sticky header */
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-top: 0; margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border-color); margin: 2rem 0; }

/* 3. Layout & Container
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: -10px;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.section-cta {
    text-align: center;
    margin-top: 30px;
}

/* 4. Header & Navigation
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--card-bg-glass);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    text-decoration: none;
}
.logo .logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: block;
    line-height: 1;
}
.logo .tagline {
    font-size: 0.8rem;
    color: var(--text-light);
}

.main-nav {
    display: block; /* Show on desktop */
}
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav li {
    margin-left: 30px;
}
.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a.active {
    color: var(--primary-color);
}

/* 5. Mobile Menu
========================================= */
.mobile-menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Must be above header */
}
.mobile-menu-toggle i {
    width: 28px;
    height: 28px;
    color: var(--dark-color);
}

.mobile-menu-overlay {
    display: none; /* THIS IS THE CRITICAL FIX */
    position: fixed;
    top: 80px; /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--card-bg-glass);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    z-index: 999;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}
/* This class is added by JS */
.mobile-menu-overlay.open {
    display: block; /* Make it visible */
    opacity: 1; /* Show when open */
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.mobile-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.5rem;
}

body.mobile-menu-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

/* 6. Breadcrumbs
========================================= */
.breadcrumb-bar {
    background: var(--gray-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-bar a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-bar a:hover {
    text-decoration: underline;
}

.breadcrumb-bar span {
    color: #555; /* Color for the current, non-linked page */
}

.breadcrumb-bar span,
.breadcrumb-bar a {
    margin: 0 5px;
}

.breadcrumb-bar a:first-child {
    margin-left: 0;
}

.breadcrumb-bar span:last-child {
    margin-right: 0;
}


/* 7. Footer
========================================= */
.site-footer {
    background: #1a253c; /* Lighter "midnight blue" color */
    color: #f0f0f5;
    padding: 50px 0;
    margin-top: 50px;
}
.site-footer .container {
    display: grid;
    /* 4-column layout */
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}
.site-footer a {
    color: #fff;
}
.site-footer strong {
    color: #fff;
    margin-bottom: 15px;
    display: block;
    font-size: 1.1rem;
}
.site-footer .logo .logo-main {
    color: #fff;
}
.site-footer .logo .tagline {
    color: var(--secondary-color);
}
.site-footer #footer-col-main p {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 15px;
}
.footer-nav-social {
    margin-top: 20px;
}
.footer-nav-social ul {
    display: flex;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 0;
}
.footer-nav-social a {
    display: block;
    padding: 5px;
    color: #fff;
    transition: color 0.3s ease;
}
.footer-nav-social a:hover {
    color: var(--secondary-color);
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-link-list a {
    text-decoration: none;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.footer-link-list a:hover {
    color: #fff;
}
.footer-link-list .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}


/* 8. Hero & Page Titles
========================================= */
.hero-gradient {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: #fff;
}
.hero-gradient h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
}
.hero-gradient .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}
.title-hr {
    border: 0;
    border-top: 3px solid var(--primary-color);
    width: 80px;
    margin-bottom: 30px;
    opacity: 1;
}
h1 + .title-hr {
    margin-left: 0;
}

/* 9. Buttons & Forms
========================================= */
.button-primary, .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3); /* Softer, more modern shadow */
    transition: all 0.3s ease;
}
.button-primary:hover, .btn-primary:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    text-decoration: none;
    background: var(--gray-color);
    box-shadow: var(--shadow-md);
}

.button-primary .icon,
.btn-secondary .icon {
    width: 20px;
    height: 20px;
}

/* --- Forms --- */
.user-auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.layout-grid-sidebar .main-content .user-auth-form,
.layout-grid-sidebar .main-content .page-content {
    max-width: 100%;
    margin: 0;
}

.glass-card {
    background: var(--card-bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.user-auth-form.glass-card {
    max-width: 450px;
    padding: 30px;
    border-radius: 12px;
}
.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-switch-link {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--gray-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fdfdff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,122,255,0.1);
}

/* Input with Icon */
.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 20px;
    height: 20px;
}
.input-icon-wrapper input {
    padding-left: 55px;
}


/* Captcha */
.captcha-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: var(--gray-color);
    padding: 15px;
    border-radius: 8px;
}
.captcha-box label {
    width: 100%;
    margin-bottom: 5px;
}
.captcha-box img {
    border-radius: 8px;
    border: 1px solid #ccc;
}
.captcha-box input {
    flex: 1;
    min-width: 150px;
    background: #fff;
}
.captcha-refresh-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.captcha-refresh-btn:hover {
    background: var(--gray-color);
    border-color: #aaa;
}
.captcha-refresh-btn i {
    width: 22px;
    height: 22px;
    color: var(--text-color);
}


/* 10. Cards & Page Content
========================================= */
.page-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.page-content h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.page-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.page-content ul, .page-content ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}
.page-content li {
    margin-bottom: 0.5rem;
}
.page-content .icon-list {
    list-style: none;
    padding-left: 0;
}
.page-content .icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1rem; /* Slightly smaller to prevent wrap */
    margin-bottom: 15px;
}
.icon-list-icon {
    flex-shrink: 0;
    width: 24px; /* Slightly smaller */
    height: 24px;
    color: var(--primary-color);
    stroke-width: 2.5;
    margin-top: 3px;
}

/* 11. Homepage Sections
========================================= */
#feature-icons {
    padding-top: 50px;
    padding-bottom: 30px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    stroke-width: 2;
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.feature-item p {
    color: var(--text-light);
}

#home-about .page-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#featured-solutions {
    background: var(--gray-color);
    padding-top: 50px;
    padding-bottom: 50px;
}

#latest-posts {
    padding-top: 50px;
    padding-bottom: 50px;
}
.blog-list-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.blog-card-minimal {
    display: block;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}
.blog-card-minimal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}
.blog-card-minimal h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}
.blog-card-minimal .post-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}
.blog-card-minimal p {
    color: var(--text-color);
}
.blog-card-minimal .read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.blog-card-minimal .read-more .icon {
    width: 18px;
    height: 18px;
}


/* 12. Solution Page (List & Single)
========================================= */

/* --- List View --- */
.solution-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.solution-card-new {
    background: var(--card-bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.solution-card-new:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.solution-card-new:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-play-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}
.card-play-button i {
    width: 24px;
    height: 24px;
    margin-left: 3px; /* Center play icon */
}
.card-play-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes footer stick to bottom */
}
.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.card-content h3 a {
    text-decoration: none;
    color: var(--dark-color);
}
.card-content h3 a:hover {
    color: var(--primary-color);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes 'read more' down */
}
.card-content .read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.card-content .read-more .icon {
    width: 18px; height: 18px;
}

/* --- Single View --- */
.solution-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: #000;
}
.solution-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.solution-costs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.cost-box {
    background: var(--gray-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.cost-box .cost-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--primary-color);
}
.cost-box strong {
    display: block;
    color: var(--dark-color);
    font-size: 1rem;
}
.cost-box span {
    color: var(--text-light);
    font-weight: 500;
}

.solution-description {
    margin-top: 30px;
    padding: 0;
    background: none;
    box-shadow: none;
}
.solution-description h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}


/* 13. Blog Page (List & Single)
========================================= */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.blog-list-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.blog-list-item h2 {
    margin-bottom: 10px;
}
.blog-list-item h2 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}
.blog-list-item h2 a:hover {
    color: var(--primary-color);
}
.post-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}
.post-meta .icon {
    width: 18px; height: 18px;
}
.blog-list-item .read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}
.blog-list-item .read-more .icon {
    width: 18px; height: 18px;
}

.blog-post .post-content {
    font-size: 1.1rem;
}
.blog-post .post-content img {
    border-radius: 12px;
    margin: 20px 0;
}
.post-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.post-share h3 {
    margin-bottom: 15px;
}
.share-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: opacity 0.3s ease;
}
.share-btn:hover { opacity: 0.8; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.email { background: #777; }


/* 14. FAQ Page
========================================= */
.faq-accordion {
    max-width: 100%; /* Changed from 800px */
}
.faq-accordion.page-content {
    padding: 15px;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}
.faq-question strong {
    color: var(--primary-color);
    margin-right: 10px;
}
.faq-question .faq-toggle {
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 15px;
}
.faq-permalink {
    margin-left: auto;
    padding: 0 10px;
    color: var(--text-light);
}
.faq-permalink:hover {
    color: var(--primary-color);
}
.faq-permalink i {
    width: 20px;
    height: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 25px;
}
.faq-item.open .faq-answer {
    max-height: 500px; /* Arbitrary large height */
    padding: 0 25px 20px 25px;
    border-top: 1px solid var(--border-color);
}
.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-submit-box {
    margin-top: 30px;
}
.faq-submit-box.page-content {
    padding: 30px;
}
.faq-single-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 15. Sidebar & Modules
========================================= */
.layout-grid-sidebar {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first */
    gap: 30px;
}
.single-solution-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.sidebar-sticky-content {
    position: sticky;
    top: 100px; /* 80px header + 20px margin */
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.sidebar-module {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.sidebar-module h3 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sidebar-cta-box {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: #fff;
    text-align: center;
}
.sidebar-cta-box h3 {
    color: #fff;
    border-bottom: 0;
}
.sidebar-cta-box .cta-icon {
    width: 50px;
    height: 50px;
    stroke-width: 1.5;
    margin-bottom: 10px;
}

.other-solutions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.other-solution-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 5px;
}
.other-solution-item:hover {
    background: var(--gray-color);
    color: var(--primary-color);
}
.other-solution-item img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.other-solution-item span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}
.other-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.other-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 5px;
}
.other-post-item:hover {
    background: var(--gray-color);
    color: var(--primary-color);
}
.other-post-item .icon-list-icon {
    flex-shrink: 0; /* Prevents icon from shrinking */
    width: 24px;
    height: 24px;
}
.other-post-item span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}
.sidebar-content .page-content {
    box-shadow: none;
    border: none;
    padding: 0;
}
.contact-details .icon-list-icon {
    margin-top: 5px;
}
.contact-details strong {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 2px;
    display: block; /* Ensures email/phone are on new lines */
}
.contact-details a {
    text-decoration: none;
    color: var(--primary-color);
}
.contact-details div {
    /* Fixes the text overflow */
    overflow-wrap: break-word;
    word-break: break-all;
}


/* 16. Utility Classes
========================================= */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 500;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--dark-color);
}

.notice {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 20px;
}
.notice.success {
    background: #e6f7ec;
    border: 1px solid #b7e1cd;
    color: #2b744a;
}
.notice.error {
    background: #fdecea;
    border: 1px solid #f9c6c6;
    color: #a62626;
}
.warning {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    color: #665200;
    padding: 10px 15px;
    border-radius: 8px;
}

/*
=========================================
--- ADMIN STYLES ---
=========================================
*/

/* 17. Admin: Login Page
========================================= */
.admin-login-body {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-login-box {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.admin-login-header {
    background: rgba(255, 255, 255, 0.2);
    padding: 25px 30px;
    text-align: center;
}
.admin-login-header h2 {
    color: var(--dark-color);
    margin: 0;
}
.admin-login-header span {
    font-weight: 500;
    color: var(--text-light);
}

.admin-login-form {
    padding: 30px;
}
.admin-login-form .form-group input {
    background: #fff;
}
.admin-login-button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.admin-login-button:hover {
    background: var(--dark-color);
}

.login-error {
    color: #8c0000;
    background: rgba(255, 182, 193, 0.8);
    border: 1px solid #8c0000;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}
.login-success {
    color: #005200;
    background: rgba(144, 238, 144, 0.8);
    border: 1px solid #005200;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* 18. Admin: Main Layout
========================================= */
body.admin-body {
    background: var(--gray-color);
    padding-top: 0; /* Override frontend style */
    color: var(--text-color);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark-color);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}
.admin-sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-sidebar-header h3 {
    color: #fff;
    margin: 0;
}
.admin-sidebar-header span {
    color: var(--secondary-color);
    font-weight: 500;
}

.admin-nav {
    flex-grow: 1;
    overflow-y: auto;
}
.admin-nav ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}
.admin-nav a {
    display: block;
    padding: 15px 25px;
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.admin-nav li.active a {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-left-color: var(--primary-color);
}

.admin-main-content {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.admin-top-bar {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}
.admin-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.admin-top-bar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}
.admin-top-bar-user span {
    font-weight: 500;
    color: var(--text-light);
}
.admin-view-site-btn {
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}
.admin-logout-btn {
    font-weight: 500;
    color: var(--error-color);
    text-decoration: none;
}

.admin-page-content {
    padding: 30px;
    flex-grow: 1;
}

.admin-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* 19. Admin: Dashboard
========================================= */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.stat-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}
.stat-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 5px 0 15px 0;
}
.stat-box a {
    text-decoration: none;
    font-weight: 600;
}

/* 20. Admin: CRUD & Forms
========================================= */
.admin-panel {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-header-actions h1 {
    margin: 0;
}

.crud-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.crud-table th, .crud-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.crud-table th {
    background: var(--gray-color);
    font-weight: 600;
    color: var(--dark-color);
}
.crud-table tr:hover {
    background: #fcfcfc;
}
.action-links a {
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
}
.btn-edit { color: var(--primary-color); }
.btn-delete { color: var(--error-color); }
.btn-approve { color: var(--success-color); }

.admin-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.admin-tabs a {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transform: translateY(2px);
}
.admin-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.notification-bubble {
    background: var(--error-color);
    color: #fff;
    border-radius: 50%;
    padding: 0px 6px;
    font-size: 0.8rem;
    display: inline-block;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: -12px;
}
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.form-inline .form-group {
    margin-bottom: 0;
}

/* 21. Responsive (Mobile)
========================================= */

/* --- Desktop Sidebar Layout --- */
@media (min-width: 901px) {
    /* This is the critical code that creates the 2-column layout */
    .layout-grid-sidebar {
        /* 2/3 and 1/3 column layout for desktop */
        grid-template-columns: 2fr 1fr;
    }
    .single-solution-layout {
        /* 2/3 and 1/3 column layout for desktop */
        grid-template-columns: 2fr 1fr;
    }
}


/* --- Tablet & Mobile --- */
@media (max-width: 900px) {
    /* This handles the mobile menu */
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    /*
    .mobile-menu-overlay {
        display: block; 
    }
    */
    /* The line above was the bug and has been removed. */
    /* The base style .mobile-menu-overlay (display: none) */
    /* and the JS-toggled .open class (display: block) */
    /* will now correctly control the menu. */


    /* Stack layout grids on tablet */
    .layout-grid-sidebar,
    .single-solution-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-sticky-content {
        position: static;
    }

    /* Stack other grids */
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .blog-list-minimal {
        grid-template-columns: 1fr;
    }
    .site-footer .container {
        /* On tablet, go to 2 columns */
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .footer-nav-social ul {
        justify-content: flex-start;
    }
    .footer-link-list a {
        justify-content: flex-start;
    }
    
    /* --- Admin Mobile --- */
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 280px;
        transform: translateX(-280px);
        z-index: 1000;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main-content {
        margin-left: 0;
        width: 100%;
    }
    .admin-menu-toggle {
        display: block;
    }
    .admin-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        display: none;
    }
    .admin-menu-overlay.open {
        display: block;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .hero-gradient h1 { font-size: 2.5rem; }
    .hero-gradient .subtitle { font-size: 1.1rem; }
    .solution-costs { grid-template-columns: 1fr; }
    .admin-top-bar-user span {
        display: none;
    }
    .site-footer .container {
        /* On mobile, stack to 1 column */
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav-social ul {
        justify-content: center;
    }
    .footer-link-list a {
        justify-content: center;
    }
}

.logo-image {
    max-width: 14vw;
    min-width: 200px;
    height: auto;
    margin: 0px;
    padding: 0px;
    margin-bottom: -25px;
    margin-top: -20px;
}