/* CSS Variables for Color Scheme */
:root {
    --primary-yellow: #FFD166;
    --secondary-pink: #FF8FA3;
    --accent-green: #06D6A0;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --black: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    color: var(--accent-green);
    font-size: 1.8rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.search-input {
    border: none;
    background: none;
    outline: none;
    padding: 0.25rem;
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.subscribe-btn {
    background: var(--primary-yellow);
    color: var(--black);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background: #FFC440;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-pink) 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: var(--white);
    color: var(--accent-green);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.8;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-gray);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    min-height: 200px;
}

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

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-text {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: auto;
}

.card-tag {
    background: var(--primary-yellow);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Grid Layouts */
.news-grid,
.guides-grid,
.moments-grid,
.products-grid,
.stories-grid,
#consultation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Mobile optimizations for ID selectors */
@media (max-width: 768px) {
    #news-grid,
    #guides-grid,
    #moments-grid,
    #consultation-grid,
    #stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Category Buttons */
.guides-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--accent-green);
    color: var(--white);
}

/* Product Card Styles */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--primary-yellow);
}

.product-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-primary:hover {
    background: #05B888;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--medium-gray);
    color: var(--white);
}

/* Section CTAs */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    background: var(--accent-green);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: #05B888;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--secondary-pink) 0%, var(--primary-yellow) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.newsletter-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    background: var(--accent-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: #05B888;
}

/* Footer Styles */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-green);
}

.contact-btn {
    display: inline-block;
    background: var(--accent-green);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.contact-btn:hover {
    background: #05B888;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: var(--medium-gray);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-gray);
}

.modal-input {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.modal-input:focus {
    border-color: var(--accent-green);
}

.modal-submit-btn {
    width: 100%;
    background: var(--accent-green);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.modal-submit-btn:hover {
    background: #05B888;
}

/* Card Mobile Optimizations */
@media (max-width: 768px) {
    .news-grid,
    .guides-grid,
    .moments-grid,
    .consultation-grid,
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .card {
        margin-bottom: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .card-image {
        height: 120px;
        border-radius: 12px 12px 0 0;
    }
    
    .card-content {
        padding: 0.8rem;
    }
    
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.4rem;
    }
    
    .card-text {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        min-height: 3.2rem;
    }
    
    .card-meta {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
    
    .tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        margin-bottom: 0.2rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        min-height: 32px;
    }
    
    /* Product card mobile */
    .product-image {
        height: 120px;
    }
    
    .product-content {
        padding: 0.8rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Category buttons mobile */
    .guides-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 200px;
    }
    
    /* Grid gaps for mobile */
    .news-grid,
    .guides-grid,
    .moments-grid,
    .products-grid,
    .stories-grid,
    .consultation-grid {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 160px;
        min-height: 160px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
}

/* Expert Guides Mobile Optimizations */
@media (max-width: 768px) {
    .guides-section {
        padding: 3rem 1rem;
    }
    
    .guides-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .guides-title {
        font-size: 1.5rem;
    }
    
    .guides-subtitle {
        font-size: 1rem;
    }
    
    .guides-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }
    
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .guide-card {
        margin: 0;
    }
    
    .guide-card .card-image {
        height: 120px;
    }
    
    .guide-card .card-content {
        padding: 1.2rem;
    }
    
    .guide-card .card-title {
        font-size: 1.1rem;
    }
    
    .guide-card .card-text {
        font-size: 0.85rem;
    }
    
    .guide-card .card-meta {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .guides-section {
        padding: 2rem 1rem;
    }
    
    .guides-title {
        font-size: 1.25rem;
    }
    
    .guides-subtitle {
        font-size: 0.9rem;
    }
    
    .guide-card .card-image {
        height: 160px;
    }
    
    .guide-card .card-content {
        padding: 1rem;
    }
    
    .guide-card .card-title {
        font-size: 1rem;
    }
    
    .guide-card .card-text {
        font-size: 0.8rem;
    }
}

/* Cute Moments Mobile Optimizations */
@media (max-width: 768px) {
    .moments-section {
        padding: 3rem 1rem;
    }
    
    .moments-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .moments-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .moments-subtitle {
        font-size: 1rem;
    }
    
    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .moment-card {
        margin: 0;
    }
    
    .moment-card .card-image {
        height: 120px;
    }
    
    .moment-card .card-content {
        padding: 1.2rem;
    }
    
    .moment-card .card-title {
        font-size: 1.1rem;
    }
    
    .moment-card .card-text {
        font-size: 0.85rem;
    }
    
    .moment-card .card-meta {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .moment-card .moment-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .moment-card .btn-primary,
    .moment-card .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .moments-section {
        padding: 2rem 1rem;
    }
    
    .moments-title {
        font-size: 1.25rem;
    }
    
    .moments-subtitle {
        font-size: 0.9rem;
    }
    
    .moment-card .card-image {
        height: 180px;
    }
    
    .moment-card .card-content {
        padding: 1rem;
    }
    
    .moment-card .card-title {
        font-size: 1rem;
    }
    
    .moment-card .card-text {
        font-size: 0.8rem;
    }
}

/* Consultation Section Mobile Optimizations */
@media (max-width: 768px) {
    .consultation-section {
        padding: 3rem 1rem;
    }
    
    .consultation-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .consultation-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .consultation-subtitle {
        font-size: 1rem;
    }
    
    .consultation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .consultation-card {
        margin: 0;
    }
    
    .consultation-card .card-image {
        height: 120px;
    }
    
    .consultation-card .card-content {
        padding: 1.2rem;
    }
    
    .consultation-card .card-title {
        font-size: 1.1rem;
    }
    
    .consultation-card .card-text {
        font-size: 0.85rem;
    }
    
    .consultation-card .card-meta {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .consultation-card .card-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .consultation-card .btn-primary,
    .consultation-card .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Consultation form mobile */
    .consultation-form {
        padding: 1.5rem;
        margin: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .consultation-section {
        padding: 2rem 1rem;
    }
    
    .consultation-title {
        font-size: 1.25rem;
    }
    
    .consultation-subtitle {
        font-size: 0.9rem;
    }
    
    .consultation-card .card-image {
        height: 160px;
    }
    
    .consultation-card .card-content {
        padding: 1rem;
    }
    
    .consultation-card .card-title {
        font-size: 1rem;
    }
    
    .consultation-card .card-text {
        font-size: 0.8rem;
    }
    
    .consultation-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.85rem;
        padding: 0.7rem;
    }
}

/* Dog Stories Mobile Optimizations */
@media (max-width: 768px) {
    .dog-stories {
        padding: 3rem 1rem;
    }
    
    .stories-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .stories-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stories-subtitle {
        font-size: 1rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .story-card {
        margin: 0;
    }
    
    .story-card .card-image {
        height: 120px;
    }
    
    .story-card .card-content {
        padding: 1.2rem;
    }
    
    .story-card .card-title {
        font-size: 1.1rem;
    }
    
    .story-card .card-text {
        font-size: 0.85rem;
    }
    
    .story-card .card-meta {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .story-card .card-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .story-card .btn-primary,
    .story-card .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Story modal mobile */
    .story-modal .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
    
    .story-modal .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .story-modal .modal-title {
        font-size: 1.25rem;
    }
    
    .story-modal .modal-body {
        padding: 1rem 0;
    }
    
    .story-modal .story-content {
        font-size: 0.9rem;
    }
    
    .story-modal .story-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .story-modal .story-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .dog-stories {
        padding: 2rem 1rem;
    }
    
    .stories-title {
        font-size: 1.25rem;
    }
    
    .stories-subtitle {
        font-size: 0.9rem;
    }
    
    .story-card .card-image {
        height: 180px;
    }
    
    .story-card .card-content {
        padding: 1rem;
    }
    
    .story-card .card-title {
        font-size: 1rem;
    }
    
    .story-card .card-text {
        font-size: 0.8rem;
    }
    
    .story-modal .modal-content {
        padding: 1rem;
    }
    
    .story-modal .modal-title {
        font-size: 1.1rem;
    }
    
    .story-modal .story-image {
        height: 160px;
    }
}

/* Newsletter Form Mobile Optimizations */
@media (max-width: 768px) {
    .newsletter {
        padding: 40px 0;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        max-width: 90%;
    }
    
    .newsletter-input {
        width: 100%;
        padding: 0.8rem;
        font-size: 16px;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 0.8rem;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .newsletter-input {
        font-size: 16px;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
}

/* Footer Mobile Optimizations */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }
    
    .footer-section ul {
        padding: 0;
        list-style: none;
    }
    
    .footer-section li {
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .social-links li {
        margin: 0 0.5rem;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-bottom: 0;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.85rem;
    }
    
    .newsletter-form {
        max-width: 250px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 1rem 1rem 0;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 80%;
        height: 100vh;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        padding: 80px 20px 20px;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    /* Hero section mobile optimization */
    .hero {
        padding: 100px 0 60px;
        margin-top: 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* Section spacing for mobile */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Grid layouts for mobile */
    .news-grid,
    .guides-grid,
    .moments-grid,
    .products-grid,
    .stories-grid,
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    /* Card optimization for mobile */
    .news-card,
    .guide-card,
    .moment-card,
    .product-card,
    .story-card,
    .consultation-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    /* Newsletter section mobile */
    .newsletter {
        padding: 50px 0;
    }
    
    .newsletter-content {
        padding: 0 15px;
        text-align: center;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .newsletter-input {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer mobile optimization */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 0 15px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .cta-button,
    .newsletter-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .newsletter-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Ultra small devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .nav-logo h1 {
        font-size: 1.4rem;
    }
    
    .news-grid,
    .guides-grid,
    .moments-grid,
    .consultation-grid,
    .stories-grid,
    #news-grid,
    #guides-grid,
    #moments-grid,
    #consultation-grid,
    #stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 0.3rem;
    }
    
    .card {
        border-radius: 10px;
    }
    
    .card-image {
        height: 100px;
        border-radius: 10px 10px 0 0;
    }
    
    .card-content {
        padding: 0.6rem;
    }
    
    .card-title {
        font-size: 0.8rem;
        min-height: 2.1rem;
        -webkit-line-clamp: 2;
    }
    
    .card-text {
        font-size: 0.7rem;
        min-height: 2.8rem;
        -webkit-line-clamp: 3;
        margin-bottom: 0.4rem;
    }
    
    .card-meta {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }
    
    .tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        margin-bottom: 0.15rem;
    }
    
    .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        min-height: 28px;
    }
    
    .product-image {
        height: 100px;
    }
    
    .product-content {
        padding: 0.6rem;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .product-actions {
        gap: 0.4rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        max-width: 160px;
    }
}

/* Enhanced Story Modal Styles */
.story-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green) #f0f0f0;
}

.story-form::-webkit-scrollbar {
    width: 8px;
}

.story-form::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.story-form::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

.story-form::-webkit-scrollbar-thumb:hover {
    background: #05B888;
}

.story-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 20px 20px 0 0;
}

.story-form h2 {
    color: var(--dark-gray);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.story-form h2::after {
    content: '🐕';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(-50%); }
    40% { transform: translateY(-60%); }
    60% { transform: translateY(-55%); }
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1), 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff6b6b;
    background-color: #fff5f5;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.char-counter {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-align: right;
    margin-top: 0.5rem;
}

.file-upload-wrapper {
    margin-top: 0.5rem;
}

.file-upload-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: var(--dark-gray);
}

.file-upload-btn:hover {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, #e8f5f3, #d8f0eb);
}

.upload-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn {
    background: #f8f9fa;
    color: var(--dark-gray);
    border: 2px solid #e9ecef;
}

.cancel-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.submit-story-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, #05B888 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
}

.submit-story-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-story-btn:hover::before {
    left: 100%;
}

.submit-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.submit-story-btn:active {
    transform: translateY(0);
}

.submit-story-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    font-weight: 600;
}

.btn-icon {
    font-size: 1.2rem;
}

.form-validation {
    color: var(--accent-green);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Enhanced close button for story modal */
.story-form .close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--medium-gray);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.story-form .close:hover {
    color: var(--dark-gray);
    background: var(--white);
    border-color: var(--accent-green);
    transform: rotate(90deg) scale(1.1);
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #ff6b6b;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #51cf66;
}

/* Responsive story form */
@media (max-width: 768px) {
    .story-form {
        padding: 2rem;
        margin: 1rem;
    }
    
    .story-form h2 {
        font-size: 1.8rem;
    }
    
    .story-form h2::after {
        right: -30px;
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}