/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #006064;
    --primary-dark: #004d40;
    --secondary-color: #1a237e;
    --text-color: #1a1a2e;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
}

.site-title a {
    color: var(--primary-color);
}

.site-description {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.primary-menu li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 15px;
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.primary-menu li a:hover::after,
.primary-menu li.current-menu-item a::after {
    width: 100%;
}

.primary-menu li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px 10px;
}

.header-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    width: 350px;
    z-index: 50;
}

/* ============================================
   ADVANCED SEARCH
   ============================================ */
.advanced-search-wrapper {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.advanced-search-form .search-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.advanced-search-form .search-field {
    flex: 1;
    min-width: 180px;
}

.advanced-search-form input,
.advanced-search-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.advanced-search-form input:focus,
.advanced-search-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,96,100,0.1);
}

.advanced-search-form .search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.advanced-search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card-thumbnail {
    overflow: hidden;
}

.post-card-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-card .entry-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.post-card .entry-title a {
    color: var(--text-color);
}

.post-card .entry-title a:hover {
    color: var(--primary-color);
}

.post-card .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-card .entry-meta i {
    margin-right: 4px;
}

.post-card .entry-summary {
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.post-card .read-more i {
    transition: var(--transition);
}

.post-card .read-more:hover i {
    transform: translateX(5px);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post .entry-header {
    margin-bottom: 25px;
}

.single-post .entry-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.single-post .entry-meta i {
    margin-right: 5px;
}

.single-post .post-thumbnail {
    margin: 20px 0 30px;
}

.single-post .post-thumbnail img {
    border-radius: var(--radius);
    width: 100%;
}

.single-post .entry-content {
    font-size: 17px;
    line-height: 1.8;
}

.single-post .entry-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
}

.single-post .entry-content h3 {
    font-size: 22px;
    margin: 25px 0 12px;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 20px 20px;
}

.single-post .entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.content-wrapper .main-content {
    flex: 1;
    min-width: 0;
}

.content-wrapper .widget-area {
    flex: 0 0 320px;
}

.widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-color);
    color: rgba(255,255,255,0.8);
    margin-top: 50px;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    padding: 6px 0;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-widget ul li a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    font-size: 14px;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-menu li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-menu li a:hover {
    color: #fff;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 8px;
}

/* ============================================
   SCREEN READER
   ============================================ */
.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 !important;
}

.screen-reader-text:focus {
    background: var(--bg-white);
    clip: auto !important;
    clip-path: none;
    color: var(--text-color);
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
}

.comment-metadata {
    font-size: 13px;
    color: var(--text-light);
}

.comment-content {
    margin-left: 55px;
}

.reply {
    margin-left: 55px;
    margin-top: 10px;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-family);
}

.comment-form textarea {
    height: 150px;
}

.comment-form .submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover {
    background: var(--primary-dark);
}