/* IdeaMAX CMS - Local Theme Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #48bb78;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #2d3748;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    color: var(--bg-color);
    background: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-logo a {
    text-decoration: none;
    display: inline-block;
}

.site-logo .logo-image {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.site-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Sub Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.sub-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Main Content */
.site-main {
    min-height: calc(100vh - var(--header-height) - 100px);
}

/* Mobile Submenu Toggle (only visible on mobile) */
.mobile-submenu-toggle {
    display: none;
}

/* Content with Sidebar Layout - Only for blog and single post pages */
body.blog .content-with-sidebar,
body.single-post .content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

body.blog .content-area,
body.single-post .content-area {
    min-width: 0;
}

body.blog .sidebar,
body.single-post .sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 992px) {
    body.blog .content-with-sidebar,
    body.single-post .content-with-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Widgets */
.sidebar .widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.sidebar .widget h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

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

.sidebar .widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.sidebar .widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Page Wrapper */
.page-wrapper,
.post-wrapper {
    max-width: 100%;
}

/* Page/Post Header */
.page-header,
.post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
}

.page-title,
.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-excerpt {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Area */
.content-area {
    margin: 0 auto;
    padding-right: 30px;
}

.page-content,
.single-post {
    background: var(--bg-color);
}

.page-body {
    line-height: 1.8;
    font-size: 1.125rem;
}

/* Featured Image */
.page-featured-image,
.article-featured-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.page-featured-image img,
.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Code */
code {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

pre {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

pre code {
    background: none;
    padding: 0;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: var(--bg-light);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.post-card:hover .post-title {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--bg-dark), #1a202c);
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.footer-widget p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 2rem; }
.p-4 { padding: 3rem; }

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.error-404 a {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.error-404 a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Homepage Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Latest Posts Section */
.latest-posts {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.no-posts-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-posts h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.no-posts p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Child Pages Grid */
.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
}

.child-page-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}



.child-page-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.child-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.child-page-card:hover .child-page-image img {
    transform: scale(1.05);
}

.child-page-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    font-size: 3rem;
    color: var(--text-muted);
}

.child-page-title {
    padding: 1.25rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    line-height: 1.4;
    transition: var(--transition);
}

.child-page-card:hover .child-page-title {
    color: var(--primary-color);
}

.footer-widget img {
    width:100%;
}

.homepage-header {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://airfryers.bg/uploads/images/2025/10/nay-dobrite-ear-frayari-airfryers-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.homepage-header .page-title {
    color:#fff;
}

@media(max-width:480px) {.homepage-header {
    height:auto;
}}

@media(min-width:1000px) {
    .has-submenu::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }
}