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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    overflow-wrap: anywhere; /* prevent long strings from forcing overflow */
    word-break: break-word;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #68d391, #4fd1c7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

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

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f0fff4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e6fffa, #f0fff4);
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dog-placeholder {
    background: linear-gradient(135deg, #fed7d7, #fbb6ce);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dog-placeholder i {
    font-size: 4rem;
    color: #d69e2e;
    margin-bottom: 1rem;
}

.dog-placeholder p {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

/* Ad Space */
.ad-space {
    padding: 2rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px dashed #cbd5e0;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    color: #718096;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Introduction Section */
.introduction {
    padding: 80px 0;
    background-color: #ffffff;
}

.introduction h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 3rem;
}

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

.intro-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.intro-card i {
    font-size: 2.5rem;
    color: #48bb78;
    margin-bottom: 1rem;
}

.intro-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.intro-card p {
    color: #718096;
    line-height: 1.7;
}

/* Nutrition Guide Section */
.nutrition-guide {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
}

.nutrition-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 3rem;
}

.nutrition-content {
    max-width: 1000px;
    margin: 0 auto;
}

.nutrition-section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #48bb78;
}

.nutrition-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nutrition-section h3 i {
    color: #48bb78;
}

.nutrition-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 1rem;
}

.nutrition-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.nutrition-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.nutrition-section li {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Carb Comparison Grid */
.carb-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.good-carbs, .avoid-carbs {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #48bb78;
}

.avoid-carbs {
    border-left-color: #f56565;
}

/* Fat Benefits */
.fat-benefits {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Vitamin Grid */
.vitamin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.vitamin-category {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
}

.mineral-importance {
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid #f56565;
}

/* Food Comparison Section */
.food-comparison-section {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.food-comparison-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.comparison-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.comparison-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-card h3 i {
    color: #48bb78;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pros h4, .cons h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pros h4 {
    color: #38a169;
}

.cons h4 {
    color: #e53e3e;
}

.recommendation {
    background: #f0fff4;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    font-style: italic;
}

/* Feeding Frequency */
.feeding-frequency {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.frequency-guide {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.age-group {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
}

.age-group h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.age-group h4 i {
    color: #4299e1;
}

/* Calculator Section */
.calculators {
    padding: 80px 0;
    background-color: #ffffff;
}

.calculators h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.calculator-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.calculator-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator-card h3 i {
    color: #4299e1;
}

.calculator-card > p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.calculator-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group small {
    display: block;
    color: #718096;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.calc-button {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.calc-button:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-1px);
}

.results {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 50px;
    border-left: 4px solid #4299e1;
    display: none;
}

.results.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.results h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
}

.results p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.results ul {
    padding-left: 1.5rem;
}

.results li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* Feeding Guide Section */
.feeding-guide {
    padding: 80px 0;
    background: linear-gradient(135deg, #fefcbf, #fef5e7);
}

.feeding-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.breed-categories {
    max-width: 1200px;
    margin: 0 auto;
}

.breed-category {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #d69e2e;
}

.breed-category h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breed-category h3 i {
    color: #d69e2e;
}

.feeding-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.feeding-table h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feeding-table table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.feeding-table th {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.feeding-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.feeding-table tbody tr:hover {
    background-color: #f7fafc;
}

.breed-tips {
    background: #fff8dc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid #d69e2e;
}

.breed-tips h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
}

.breed-tips ul {
    padding-left: 1.5rem;
}

.breed-tips li {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Special Considerations */
.special-considerations {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.special-considerations h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.consideration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.consideration-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #805ad5;
}

.consideration-card h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.consideration-card h4 i {
    color: #805ad5;
}

.consideration-card ul {
    padding-left: 1.5rem;
}

.consideration-card li {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Food Comparison Section */
.food-comparison {
    padding: 80px 0;
    background-color: #ffffff;
}

.food-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.food-type-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.food-header {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
}

.food-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popularity {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pros-cons-section {
    padding: 2rem;
}

.pros, .cons {
    margin-bottom: 1.5rem;
}

.pros h4 {
    color: #38a169;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cons h4 {
    color: #e53e3e;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros ul, .cons ul {
    padding-left: 1.5rem;
}

.pros li, .cons li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.best-for, .price-range {
    padding: 1rem 2rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.best-for h4, .price-range h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.best-for p, .price-range p {
    color: #4a5568;
    line-height: 1.6;
}

/* Comparison Chart */
.comparison-chart {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.comparison-chart h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.chart-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.comparison-table tbody tr:hover {
    background-color: #f7fafc;
}

/* Rating System */
.rating {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
}

.rating.excellent {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.rating.good {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.rating.fair {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
}

.rating.poor {
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

/* Feeding Recommendations */
.feeding-recommendations {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feeding-recommendations h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
}

.recommendation-card h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-card h4 i {
    color: #4299e1;
}

.recommendation-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.recommendation-card ul {
    padding-left: 1.5rem;
}

.recommendation-card li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e6fffa, #f0fff4);
}

.tips-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.tips-category {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tips-category h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tips-category h3 i {
    font-size: 2rem;
}

.tips-category h3 i.fa-check-circle {
    color: #38a169;
}

.tips-category h3 i.fa-times-circle {
    color: #e53e3e;
}

.tip-item {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #48bb78;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-item:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.tip-item.danger {
    border-left-color: #e53e3e;
    background: #fff5f5;
}

.tip-item h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-item p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tip-details {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #4299e1;
    color: #2d3748;
    font-style: italic;
    margin-top: 0.5rem;
}

.transition-schedule ul, .toxic-foods ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.transition-schedule li, .toxic-foods li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* Emergency Section */
.emergency-section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #f56565;
}

.emergency-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.emergency-section h3 i {
    color: #f56565;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.emergency-card {
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #f56565;
}

.emergency-card h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
}

.emergency-steps p {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.emergency-steps ol {
    padding-left: 1.5rem;
}

.emergency-steps li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 3rem;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
}

.faq-question h3 {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.2rem;
}

.faq-question i {
    color: #4299e1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.faq-answer ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.feeding-schedule, .body-condition-guide {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: #ffffff;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-text h2 i {
    color: #ffffff;
}

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

.newsletter-benefits {
    list-style: none;
    padding: 0;
}

.newsletter-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.newsletter-benefits i {
    color: #68d391;
    font-weight: 600;
}

.newsletter-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-group {
    margin-bottom: 1rem;
}

.newsletter-form input,
.newsletter-form select {
    color: #2d3748;
}

.newsletter-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-1px);
}

.privacy-note {
    text-align: center;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: #ffffff;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: #68d391;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

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

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #68d391;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #68d391;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
}

.disclaimer {
    background: rgba(245, 101, 101, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #f56565;
    margin-bottom: 2rem;
}

.disclaimer h4 {
    color: #f56565;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer h4 i {
    color: #f56565;
}

.disclaimer p {
    color: #cbd5e0;
    line-height: 1.7;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    color: #718096;
    font-size: 0.875rem;
}

.copyright a {
    color: #68d391;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #68d391, #4fd1c7);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #4fd1c7, #68d391);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Utility and Safety Fixes */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Safeguard against accidental horizontal overflow */
}

/* Make media elements responsive */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Ensure grid children can shrink and not force overflow */
.hero-content > *,
.newsletter-content > *,
.intro-grid > *,
.comparison-grid > *,
.calculator-grid > *,
.comparison-cards > *,
.tips-grid > *,
.consideration-grid > *,
.emergency-grid > *,
.footer-content > * {
    min-width: 0;
}

/* Navigation overflow adjustments */
.nav-menu { flex-wrap: wrap; }
@media (max-width: 1024px) {
    .navbar .container { flex-wrap: wrap; }
    .nav-menu { gap: 1rem; }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hamburger Menu Display */
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        left: 0;
        top: 70px;
        width: 100%;
        background: linear-gradient(135deg, #68d391, #4fd1c7);
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 20px;
        font-size: 1.1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .calculator-grid,
    .comparison-cards,
    .breed-categories {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
    }
    
    .carb-comparison,
    .vitamin-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .feeding-table {
        font-size: 0.875rem;
    }
    
    .container {
        padding: 0 15px;
    }

    /* Additional grid fixes to prevent horizontal overflow */
    .intro-grid,
    .consideration-grid,
    .emergency-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .calculator-card,
    .food-type-card,
    .breed-category {
        padding: 1.5rem;
    }
    
    .feeding-table th,
    .feeding-table td {
        padding: 0.5rem;
    }
}