/* Material Design 3 Theme Styles */

:root {
    /* Custom Brand Colors */
    --primary-color: #17c3b2;
    --primary-light: #b3f0ea;
    --secondary-color: #ffcb77;
    --tertiary-color: #fe6d73;
    --surface-color: #FFFFFF;
    --surface-variant: #F5F5F5;
    --background-color: #FAFAFA;
    --on-primary: #FFFFFF;
    --on-secondary: #333333;
    --on-surface: #1C1B1F;
    --on-surface-variant: #49454F;
    --outline: #DDDDDD;
    --outline-variant: #E5E5E5;
    
    /* Spacing */
    --sidebar-width: 280px;
    --mobile-header-height: 64px;
    --container-max-width: 1200px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 28px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    border: 20px solid;
    border-image: linear-gradient(to left, #FFCB77 0%, #17C3B2 100%);
    border-image-slice: 1;
}

body {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.7;
    color: var(--on-surface);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.site {
    display: flex;
    min-height: 100vh;
    background-color: transparent; /* Make site background transparent */
}

/* Material Sidebar */
.material-sidebar {
    position: fixed;
    left: 36px;
    top: 36px;
    width: var(--sidebar-width);
    height: calc(100vh - 72px);
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Apply transition to all properties */
    box-shadow: var(--shadow-sm);
}

.material-sidebar:hover {
    box-shadow: 0 8px 24px rgba(23, 195, 178, 0.15); /* Hover shadow */
    transform: translateY(-4px); /* Hover lift effect */
}

.sidebar-header {
    padding: 24px 16px;
    border-bottom: 1px solid var(--outline-variant);
}

.site-logo img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.site-title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.site-title a {
    color: var(--on-surface);
    text-decoration: none;
}

/* Sidebar Navigation */
.sidebar-navigation {
    padding: 12px 0;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-xl);
    margin: 4px 12px;
    transition: all 0.2s ease;
}

.primary-menu > li a:hover {
    background-color: var(--surface-variant);
    color: var(--on-surface);
}

.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
    background-color: var(--tertiary-color);
    color: var(--on-primary);
    box-shadow: 0 2px 8px rgba(254, 109, 115, 0.25);
}

.primary-menu > li.menu-item-has-children.open > a {
    background-color: var(--surface-variant);
    color: var(--on-surface);
}

.primary-menu .sub-menu {
    list-style: none;
    padding-left: 16px;
    display: none;
    overflow: hidden;
}

.primary-menu .sub-menu.active {
    display: block;
}

.primary-menu .sub-menu a {
    font-size: 13px;
    padding: 10px 24px;
    background-color: transparent;
}

.primary-menu .sub-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.primary-menu .sub-menu .current-menu-item > a,
.primary-menu .sub-menu .current_page_item > a {
    background-color: rgba(254, 109, 115, 0.15);
    color: var(--tertiary-color);
    font-weight: 500;
    box-shadow: none;
}

/* Menu Toggle Icon */
.primary-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 40px;
}

.primary-menu .menu-item-has-children > a::after {
    content: '\203A';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.primary-menu .menu-item-has-children.open > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Sidebar Widgets */
.sidebar-widgets {
    padding: 24px 16px;
    border-top: 1px solid var(--outline-variant);
}

.widget {
    margin-bottom: 24px;
}

.widget-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Sidebar myIntro */
.myintroWrapper {
    border-bottom: solid 1px #efefef;
	padding-bottom:20px;
}
.myintroContainer {
	text-align:center;

}
.myintroContainer p {
	font-size:0.9rem;
}
.myintroContainer p a {
	color:var(--tertiary-color);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    height: var(--mobile-header-height);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 
                0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 999;
    align-items: center;
    padding: 0 20px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--surface-variant);
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: var(--on-surface);
    position: relative;
    display: block;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--on-surface);
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.mobile-logo {
    flex: 1;
    text-align: center;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
    margin-top: 12px;
}

.mobile-logo a {
    color: var(--on-surface);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
    background-color: transparent;
}

/* Content Wrapper */
.site-content {
    margin-left: calc(var(--sidebar-width) + 36px);
    flex: 1;
    min-height: 100vh;
    padding: 20px;
    background-color: transparent; /* Make site content background transparent */
}

.content-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for tablet and desktop */
    gap: 24px;
    margin-bottom: 40px;
}

.post-card {
    background-color: var(--surface-color); /* White background */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm); /* Subtle shadow for card effect */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.post-card:hover {
    box-shadow: 0 8px 24px rgba(23, 195, 178, 0.15); /* Hover shadow */
    transform: translateY(-4px); /* Hover lift effect */
}

.post-content {
    padding: 20px;
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2; /* 3:2 aspect ratio */
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.entry-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--on-surface);
}

.entry-title a {
    color: var(--on-surface);
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.entry-meta span {
    margin-right: 12px;
}

.entry-summary {
    font-size: 16px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    margin-bottom: 16px;
}

/* Buttons */
.read-more-btn,
.back-home-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background-color: var(--tertiary-color);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(254, 109, 115, 0.3);
    margin-bottom: 16px; /* Added margin */
}

.read-more-btn:hover,
.back-home-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(23, 195, 178, 0.4);
    transform: translateY(-2px);
}

.read-more-container {
    text-align: right;
}

/* Single Post/Page */
.single-post,
.single-page {
    padding: 20px;
}

.single-post .entry-header,
.single-page .entry-header {
    margin-bottom: 24px;
}

.single-post .entry-title,
.single-page .entry-title {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.single-post .post-thumbnail,
.single-page .page-thumbnail {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.single-post .post-thumbnail img,
.single-page .page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--on-surface);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 32px;
}

.entry-content h3 {
    font-size: 26px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: var(--tertiary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--tertiary-color);
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--on-surface-variant);
    background-color: rgba(255, 203, 119, 0.08);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
}

.entry-content code {
    background-color: var(--surface-variant);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.entry-content pre {
    background-color: var(--surface-variant);
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 24px 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* Entry Footer */
.entry-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--outline-variant);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tags-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
}

.tags a {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--surface-variant);
    color: var(--on-surface-variant);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: all 0.2s ease;
}

.tags a:hover {
    background-color: var(--secondary-color);
    color: var(--on-secondary);
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-image-slice: 1;
}

.page-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--on-surface);
    margin-bottom: 8px;
}

.archive-description {
    font-size: 16px;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: var(--surface-color);
    color: var(--on-surface-variant);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--outline-variant);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border-color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border-color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--on-surface);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 8px;
    color: var(--on-surface-variant);
}

/* 404 Page */
.error-404-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.error-404-content {
    text-align: center;
    padding: 40px;
}

.error-404-content .page-title {
    font-size: 96px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-404-content h2 {
    font-size: 32px;
    font-weight: 500;
    color: var(--on-surface);
    margin-bottom: 16px;
}

.error-404-content p {
    font-size: 16px;
    color: var(--on-surface-variant);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.footer-navigation {
    margin-bottom: 10px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    display: inline-block;
    margin: 0 10px;
}

.footer-menu a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.site-info {
    color: var(--on-surface-variant);
    font-size: 14px;
}

/* Contact Form 7 Material Design Styles */

/* Form wrapper */
.wpcf7-form {
    position: relative;
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px; /* Added padding for the form wrapper */
}

/* Form fields (text, email, textarea) */
.wpcf7-form-control-wrap {
    position: relative;
    margin-bottom: 32px;
}

.wpcf7-form-control {
    width: 100%;
    padding: 16px 12px 8px 12px;
    border: none;
    border-bottom: 1px solid var(--outline-variant);
    background-color: var(--surface-variant);
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    color: var(--on-surface);
    transition: all 0.2s ease;
}

.wpcf7-form-control:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-color);
}

/* Floating labels */
.wpcf7-form-control-wrap label {
    position: absolute;
    top: 16px;
    left: 12px;
    font-size: 16px;
    color: var(--on-surface-variant);
    pointer-events: none;
    transition: all 0.2s ease;
}

.wpcf7-form-control:focus + label,
.wpcf7-form-control:not(:placeholder-shown) + label {
    top: 4px;
    left: 12px;
    font-size: 12px;
    color: var(--primary-color);
}

/* Submit button */
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background-color: var(--tertiary-color);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(254, 109, 115, 0.3);
    width: fit-content; /* Set width to fit content */
}

.wpcf7-submit:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(23, 195, 178, 0.4);
    transform: translateY(-2px);
}

/* Two-Column Form Layout */
.two-column-form {
    display: flex;
    gap: 24px; /* Adjust the gap between columns as needed */
    margin-bottom: 24px;
}

.form-column {
    flex: 1; /* This makes each column take up equal space */
}

.full-width-column {
    flex-basis: 100%;
    margin-bottom: 24px;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    margin-top: 40px;
    padding: 30px;
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.author-avatar {
    margin-right: 30px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.author-description p {
    margin-bottom: 0;
}

/* Table of Contents (Material Design) */
.toc {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.toc h3 {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--on-surface);
}

.toc h3::before {
    content: '\e896'; /* Material Icons "list" icon */
    font-family: 'Material Icons';
    font-size: 24px;
    margin-right: 12px;
    color: var(--primary-color);
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.toc a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--on-surface-variant);
    transition: all 0.2s ease;
    border-bottom: none; /* Remove border-bottom */
}

.toc a::before {
    content: counters(toc-counter, ".") ". ";
    font-weight: 500;
    color: var(--primary-color);
}

.toc a:hover {
    background-color: var(--surface-variant);
    color: var(--on-surface);
}

.toc-level-3 {
    margin-left: 24px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .site-content {
        padding: 20px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    body {
        border-width: 12px;
        font-size: 17px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .material-sidebar {
        left: 0;
        top: 96px;
        height: calc(100vh - 110px);
        border-radius: var(--radius-lg);
        transform: translateX(calc(-100% - 16px));
        margin-left: 16px;
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .material-sidebar .sidebar-header {
        display: none;
    }
    
    .material-sidebar.active {
        transform: translateX(0);
    }
    
    .site-content {
        margin-left: 0;
        margin-top: calc(var(--mobile-header-height) + 24px);
        padding: 15px 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post,
    .single-page {
        padding: 15px 0;
    }
    
    .single-post .entry-title,
    .single-page .entry-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    body {
        border-width: 8px;
        font-size: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--secondary-color);
    color: var(--on-secondary);
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 2px;
}

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Comments Section */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--outline-variant);
}

.comments-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 32px;
    color: var(--on-surface);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: none;
    box-shadow: var(--shadow-sm);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 500;
    font-size: 16px;
    color: var(--on-surface);
}

.comment-metadata {
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.comment-metadata a {
    color: var(--on-surface-variant);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface);
}

.reply {
    margin-top: 12px;
}

.reply a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--surface-variant);
    color: var(--on-surface-variant);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reply a:hover {
    background-color: var(--primary-color);
    color: var(--on-primary);
}

.comment-list .children {
    list-style: none;
    margin-left: 40px;
    margin-top: 16px;
}

.no-comments {
    font-size: 15px;
    color: var(--on-surface-variant);
    padding: 20px;
    background-color: var(--surface-variant);
    border-radius: var(--radius-md);
    text-align: center;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: none;
    box-shadow: var(--shadow-sm);
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--on-surface);
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-family);
    background-color: var(--surface-color);
    color: var(--on-surface);
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 2px rgba(254, 109, 115, 0.2);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .form-submit {
    margin-top: 16px;
}

.comment-navigation {
    margin: 32px 0;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
    display: inline-block;
    margin-right: 16px;
}

.comment-navigation a {
    color: var(--tertiary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.comment-navigation a:hover {
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .comment-list .children {
        margin-left: 20px;
    }
    
    .comment-respond {
        padding: 20px;
    }
}

/* WordPress Block Buttons */
.wp-block-button__link,
.wp-block-button a,
.wp-element-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background-color: var(--tertiary-color) !important;
    color: var(--on-primary) !important;
    border: none !important;
    border-radius: var(--radius-xl) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(254, 109, 115, 0.3);
    margin-bottom: 16px; /* Added margin */
}

.wp-block-button__link:hover,
.wp-block-button a:hover,
.wp-element-button:hover {
    background-color: var(--primary-color) !important;
    color: var(--on-primary) !important;
    box-shadow: 0 6px 20px rgba(23, 195, 178, 0.4);
    transform: translateY(-2px);
}

/* WordPress Block Buttons - Outline Style */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline a {
    background: transparent !important;
    border: 2px solid var(--tertiary-color) !important;
    color: var(--tertiary-color) !important;
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline a:hover {
    background-color: var(--tertiary-color) !important;
    color: var(--on-primary) !important;
    box-shadow: 0 4px 12px rgba(254, 109, 115, 0.3);
}

/* WordPress Block File Button */
.wp-block-file__button {
    background-color: var(--secondary-color) !important;
    color: var(--on-secondary) !important;
    border: none !important;
    border-radius: var(--radius-xl) !important;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 203, 119, 0.3);
}

.wp-block-file__button:hover {
    background-color: var(--tertiary-color) !important;
    color: var(--on-primary) !important;
    box-shadow: 0 4px 12px rgba(254, 109, 115, 0.4);
    transform: translateY(-2px);
}

/* Menu Icons - Material Design Style */
.primary-menu a {
    position: relative;
    padding-left: 56px;
}

.primary-menu a::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* School 1 Icon - School Building */
.primary-menu .menu-item-school1 > a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z'/%3E%3C/svg%3E");
}

/* School 2 Icon - Graduation Cap */
.primary-menu .menu-item-school2 > a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E");
}

/* School 3 Icon - Book/Library */
.primary-menu .menu-item-school3 > a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 4h2v5l-1-.75L9 9V4zm9 16H6V4h1v9l3-2.25L13 13V4h5v16z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 4h2v5l-1-.75L9 9V4zm9 16H6V4h1v9l3-2.25L13 13V4h5v16z'/%3E%3C/svg%3E");
}

/* City Icon - Location City */
.primary-menu .menu-item-city > a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z'/%3E%3C/svg%3E");
}

/* Documents Icon - Description */
.primary-menu .menu-item-documents > a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

/* About Icon - Info */
.primary-menu .menu-item-about > a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

/* Contact Icon - Email */
.primary-menu .menu-item-contact > a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* Remove icons from submenu items */
.primary-menu .sub-menu a::before {
    display: none;
}

.primary-menu .sub-menu a {
    padding-left: 24px;
}

/* News Feed Item Title Styling */
.news-feed-section .entry-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--on-surface);
    background-clip: unset;
    color: var(--on-surface);
}

/* News Feed Header Title Styling */
.news-feed-section .news-feed-header .news-feed-title {
    font-style: italic;
    text-align: center; /* Centered */
    position: relative;
    /* No padding-left/right needed here, as lines will be absolute */
}

.news-feed-section .news-feed-header .news-feed-title::before,
.news-feed-section .news-feed-header .news-feed-title::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30%; /* Adjust length as needed */
    height: 1px; /* Thinner line */
    background-color: black; /* Black color */
}

.news-feed-section .news-feed-header .news-feed-title::before {
    left: 0;
}

.news-feed-section .news-feed-header .news-feed-title::after {
    right: 0;
}

/* Remove border-bottom from links that contain images */
.entry-content a:has(img) {
    border-bottom: none;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-family: var(--font-family);
    background-color: var(--surface-color);
    color: var(--on-surface);
    transition: all 0.2s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 2px rgba(254, 109, 115, 0.2);
}

.search-submit {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 195, 178, 0.25);
}

.search-submit:hover {
    background-color: var(--tertiary-color);
    box-shadow: 0 4px 12px rgba(254, 109, 115, 0.4);
    transform: translateY(-2px);
}

.contact-form-after-page,
.contact-form-after-post {
    margin-top: 40px;
}

.visually-hidden,
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.read-more-btn,
.back-home-btn,
.primary-menu a {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--tertiary-color);
    transform: translateY(-5px);
}
