/* === Base Styles ============================================= */
:root {
    --ice-primary: #e8f6f3;
    --ice-secondary: #a3e4d7;
    --ice-tertiary: #76d7c4;
    --ice-accent: #48c9b0;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --gradient-main: linear-gradient(45deg, var(--ice-primary), var(--ice-secondary), var(--ice-tertiary));
    --gradient-accent: linear-gradient(135deg, var(--ice-tertiary), var(--ice-accent));
    --gradient-animated: linear-gradient(-45deg, var(--ice-primary), var(--ice-secondary), var(--ice-tertiary), var(--ice-accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gradient-main);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
    padding-top: 80px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fluid Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 500; }
p { font-size: clamp(1rem, 2vw, 1.1rem); }

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ice-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    color: var(--ice-accent);
    margin-right: 0.5rem;
    animation: logoSpin 20s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--ice-accent);
    background: rgba(72, 201, 176, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ice-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.custom-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    width: 30px;
    height: 30px;
}

.toggler-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--ice-accent);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Footer Styles */
.main-footer {
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
    color: var(--text-dark);
    position: relative;
    margin-top: 4rem;
}

.footer-content {
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-section {
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-icon {
    font-size: 2.5rem;
    color: var(--ice-accent);
    margin-right: 0.75rem;
}

.footer-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--ice-accent);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--ice-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.footer-link::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--ice-accent);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--ice-accent);
    padding-left: 1.5rem;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright-text {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;

}

.footer-bottom-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--ice-accent);
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ice-accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(72, 201, 176, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--ice-tertiary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 201, 176, 0.4);
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .footer-content {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    body {
        padding-top: 70px;
        padding-bottom: 100px;
    }
}

/* Header scroll effect */
@media (min-width: 769px) {
    .navbar-collapse {
        flex-grow: 0;
    }
}

.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 201, 176, 0.2);
}

/* Hero Section with Wave */
.hero-section {
    min-height: 70vh;
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    padding: 2rem 0;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* Mosaic Grid Layout */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.mosaic-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0; /* Square base */
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Mix Geometry Shapes */
.mosaic-item:nth-child(1) { border-radius: 0; } /* Square */
.mosaic-item:nth-child(2) { border-radius: 50%; } /* Circle */
.mosaic-item:nth-child(3) { border-radius: 16px; } /* Rounded */
.mosaic-item:nth-child(4) { border-radius: 16px 0 16px 0; } /* Asymmetric */
.mosaic-item:nth-child(5) { border-radius: 8px; } /* Soft rounded */
.mosaic-item:nth-child(6) { border-radius: 0 16px 0 16px; } /* Diagonal */

.mosaic-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

/* Cards with different sizes */
.card-large { grid-column: span 2; }
.card-tall { grid-row: span 2; }

/* Sections */
.section {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.5);
}

/* Gradient Text Effects */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 10s ease infinite;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--ice-tertiary);
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(72, 201, 176, 0.2);
    border-color: var(--ice-accent);
}

/* Buttons */
.btn-ice {
    background: var(--gradient-accent);
    border: none;
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-ice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-ice:hover::before {
    width: 300px;
    height: 300px;
}

.btn-ice:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(72, 201, 176, 0.3);
}

/* Stats Counter */
.stats-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    margin: 1rem 0;
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ice-accent);
    display: block;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: var(--gradient-accent);
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large, .card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* Additional CSS for JavaScript effects */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.nav-item.active {
    background: var(--ice-accent);
    color: white !important;
}

/* WordPress Specific Styles */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.post-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(72, 201, 176, 0.2);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-item h3 {
    font-size: 1.125rem;
    margin: 1rem;
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-item h3 a:hover {
    color: var(--ice-accent);
}

.post-item p {
    margin: 0 1rem 1.25rem;
    color: var(--text-dark);
    opacity: 0.8;
    flex: 1 0 auto;
}

.post-item > a:last-of-type {
    align-self: flex-start;
    margin: 0 1rem 1.25rem;
    background: var(--ice-accent);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: background 0.2s ease-in-out;
}

.post-item > a:last-of-type:hover {
    background: var(--ice-tertiary);
    transform: translateY(-2px);
}

/* Pagination */
nav.pagination {
    display: flex;

    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--ice-secondary);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--ice-accent);
    color: #fff;
    border-color: var(--ice-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 201, 176, 0.2);
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    backdrop-filter: blur(10px);
}

.breadcrumbs a {
    color: var(--ice-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--text-dark);
}

.breadcrumbs span {
    color: var(--text-dark);
}

/* Single Page/Post Content */
.page-content {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-content .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.page-content h1 {
    font-size: 1.75rem;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    color: var(--text-dark);
    text-align: center;
}

.page-content .content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    opacity: 0.9;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 3rem 1rem;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--ice-accent);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-page h2 {
    margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    .mosaic-item {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
    
    .breadcrumbs {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .page-content h1 {
        font-size: 1.35rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
}

/* === Homepage Specific Styles ====================== */

/* Hero Section Styles */
.homepage .hero-section {
    min-height: 80vh;
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.homepage .hero-content {
    z-index: 2;
    position: relative;
}

.homepage .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.homepage .hero-excerpt {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.homepage .hero-featured-image {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(72, 201, 176, 0.3);
    transition: transform 0.3s ease;
    max-height: 400px;
    object-fit: cover;
}

.homepage .hero-image:hover .hero-featured-image {
    transform: scale(1.05);
}

/* Random Posts Grid */
.homepage .random-posts {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.6);
}

.homepage .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.homepage .post-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.homepage .post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(72, 201, 176, 0.2);
}

.homepage .post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.homepage .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.homepage .post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.homepage .post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.homepage .post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.homepage .post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.homepage .post-title a:hover {
    color: var(--ice-accent);
}

.homepage .post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    flex-grow: 1;
}

.homepage .read-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--ice-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.homepage .read-more-link:hover {
    color: var(--ice-tertiary);
    transform: translateX(5px);
}

/* Contact Info Styles */
.contact-info {
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--ice-accent);
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.contact-details span {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .homepage .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .homepage .hero-content .row {
        flex-direction: column-reverse;
    }
    
    .homepage .hero-image {
        margin-bottom: 2rem;
    }
    
    .homepage .post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .homepage .post-thumbnail {
        height: 180px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .homepage .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .homepage .post-content {
        padding: 1rem;
    }
    
    .homepage .post-thumbnail {
        height: 160px;
    }
}

/* WordPress Core Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    max-width: 96%;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 5px;
}

.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 !important;
    width: 1px;
    word-wrap: normal !important;
}
}