/* =======================================================
   PAWPALS: GLOBAL MAIN STYLESHEET
   Matches: Landing Page, Navbar Logic, and Base Theme
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
    /* Global Colors */
    --primary-color: #20B2AA;
    --primary-dark: #008080;
    --accent-color: #FFC107;
    --accent-dark: #E0A800;
    --background-gradient: linear-gradient(135deg, #FFFDF5 0%, #F5FDFF 100%);
    --background-white: #FFFFFF;
    --text-dark: #34495E;
    --text-medium: #7F8C8D;
    --border-color: #EAEDED;
    --font-main: 'Poppins', sans-serif;
    --mobile-nav-height: 70px;
}

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

/* SMOOTH SCROLL FIX: Added padding top to prevent navbar overlap */
html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100dvh;
}
body.no-scroll { overflow: hidden; } /* Used by Mobile Menu */

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Typography */
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(2rem, 5vw, 2.5rem); text-align: center; margin-bottom: 3rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }

/* --- Common Components (Buttons & Cards) --- */
.btn {
    display: inline-block; padding: 14px 32px;
    border-radius: 50px; background: var(--accent-color);
    color: var(--text-dark); border: none; cursor: pointer;
    font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}
.btn:hover { 
    background-color: var(--accent-dark); 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.card {
    background-color: var(--background-white); border-radius: 20px;
    box-shadow: 0 4px 30px rgba(44, 62, 80, 0.08);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 40px rgba(44, 62, 80, 0.12); 
}

/* --- Navbar (Managed by JS for Scroll Effect) --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 2rem; 
    background: transparent; /* Default Transparent */
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: all 0.3s ease-out;
}
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 2rem;
}
.navbar .logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); z-index: 1002; }

/* Navbar Menu Container */
.navbar-menu { display: flex; align-items: center; }

.navbar-nav { display: flex; list-style: none; align-items: center; gap: 1rem; }
.nav-item { margin: 0 0.5rem; }

/* Hide icons on desktop */
.nav-link i { display: none; }
.nav-link { color: var(--text-dark); font-weight: 500; position: relative; padding-bottom: 5px; cursor: pointer; }

/* Active Link Indicator */
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger Hidden by Default (Desktop) */
.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--text-dark); z-index: 1002; }
.hamburger i { transition: transform 0.3s ease, color 0.3s ease; display: block; }

/* Hide mobile specific elements on desktop */
.sidebar-header-mobile { display: none; }
.navbar-auth-mobile { display: none; }
.navbar-auth-desktop { display: block; } 

/* --- Hero Section --- */
.hero-section {
    display: flex; align-items: center; 
    min-height: 100vh; /* Fallback */
    min-height: 100dvh; /* Dynamic Height */
    padding: 120px 0 40px 0; background: var(--background-gradient);
    overflow: hidden; position: relative; width: 100%;
}
.hero-container {
    display: flex; flex-direction: row; align-items: center;
    justify-content: center; gap: 2rem; width: 100%;
}
.hero-content { 
    flex: 1; max-width: 50%; padding-right: 2rem; text-align: left;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-content h1 { margin-bottom: 1rem; }
.hero-content p { margin-bottom: 2rem; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 0; }

.hero-image-container { 
    flex: 1; position: relative; display: flex; justify-content: center;
    align-items: center; max-width: 50%;
}
.hero-image-circle { 
    width: clamp(300px, 40vw, 500px); height: clamp(300px, 40vw, 500px); 
    border-radius: 50%; overflow: hidden; position: relative; 
    box-shadow: 0 10px 50px rgba(0,0,0,0.1); 
    display: flex; justify-content: center; align-items: center;
    background: white;
}
.hero-image-circle img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }

/* Floating Badges */
.floating-badges { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.floating-badges .badge {
    position: absolute; background-color: var(--primary-color); color: white;
    padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); white-space: nowrap; opacity: 0; 
}
.badge-vaccination { top: 15%; left: 10%; background-color: #008080; }
.badge-health { top: 40%; right: 5%; background-color: #20B2AA; }
.badge-care { bottom: 20%; left: 25%; background-color: #FFC107; color: var(--text-dark);}

/* --- Content Sections --- */
.content-section { padding: 5rem 1rem; width: 100%; }

/* --- Announcements (Splide) --- */
#announcements-slider {
    max-width: 800px; margin: 0 auto; border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1); overflow: hidden;
}
.splide__slide {
    height: auto; background-color: var(--background-white); padding: 1.5rem 0;
}
.slide-content {
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: center; text-align: center; padding: 1rem 2rem;
    height: 100%; gap: 1rem;
}
.slide-title {
    font-size: clamp(1.5rem, 3vw, 1.8rem); color: var(--primary-dark);
    font-weight: 700; margin: 0;
}
.slide-image-container { width: 100%; max-height: 350px; margin: 0 auto; }
.slide-image-container img { width: 100%; height: 100%; object-fit: contain; }
.slide-description { font-size: 1rem; color: var(--text-medium); margin: 0; line-height: 1.5; }
.slide-content .view-details {
    padding: 10px 25px; font-size: 0.9rem; background-color: var(--accent-color);
    color: var(--text-dark); margin-top: 0.5rem; align-self: center;
}
/* Overriding Splide Defaults */
.splide__arrow {
    background-color: rgba(255, 255, 255, 0.7) !important; color: var(--primary-dark); opacity: 1 !important;
}
.splide__arrow svg { fill: var(--primary-dark) !important; }
.splide__pagination__page {
    background-color: var(--border-color) !important; opacity: 1 !important;
    transform: scale(1); transition: all 0.3s ease;
}
.splide__pagination__page.is-active { background-color: var(--primary-color) !important; transform: scale(1.3); }

/* --- Pet Care Tips (Filter & Grid) --- */
.filter-controls {
    display: flex; justify-content: center; gap: 1rem;
    margin-bottom: 2.5rem; flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 24px; border: 1px solid var(--border-color);
    background: var(--background-white); color: var(--text-medium);
    border-radius: 50px; cursor: pointer; font-weight: 500;
    transition: all 0.3s ease;
}
.filter-btn:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.filter-btn.active { background-color: var(--primary-dark); color: white; border-color: var(--primary-dark); }

.tips-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.tips-grid .card { padding: 1rem; display: flex; flex-direction: column; }
.tips-grid .card img {
    width: 100%; height: 180px; object-fit: cover;
    border-radius: 15px; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.tips-grid .card .card-content {
    padding: 0 1rem 1rem 1rem; display: flex;
    flex-direction: column; flex-grow: 1;
}
.tips-grid .card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--primary-dark); }
.tips-grid .card p { font-size: 0.95rem; color: var(--text-medium); flex-grow: 1; }

.btn-read-more {
    display: inline-block; background-color: var(--primary-color); color: white !important;
    padding: 8px 20px; border-radius: 20px; text-decoration: none;
    font-weight: 500; margin-top: 1rem; align-self: center; transition: all 0.3s ease;
}
.btn-read-more:hover { 
    background-color: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

/* --- Testimonials (Glide) --- */
#testimonials-slider { position: relative; }
.glide__slide { padding: 10px; }
.testimonial-card {
    padding: 15px; height: 100%; display: flex; flex-direction: column;
    background: var(--background-white); border-left: 5px solid var(--primary-color);
    border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.testimonial-header { display: flex; align-items: center; margin-bottom: 1rem; }
.testimonial-avatar {
    width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
    margin-right: 15px; border: 3px solid var(--primary-color); flex-shrink: 0;
}
.testimonial-info { display: flex; flex-direction: column; text-align: left; }
.testimonial-info .author { font-weight: 600; color: var(--primary-dark); margin-bottom: 0.3rem; }
.testimonial-info .stars { color: var(--accent-color); font-size: 1rem; }
.testimonial-card .quote {
    font-style: italic; margin-bottom: 1rem; color: var(--text-dark);
    font-size: 1.1rem; flex-grow: 1; text-align: left;
}
.glide__arrow {
    background-color: rgba(255, 255, 255, 0.7); border-radius: 50%;
    width: 50px; height: 50px; color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); border: none; cursor: pointer;
}
.glide__arrow i { font-size: 1.5rem; }
.glide__bullets { bottom: -2em; }
.glide__bullet { background-color: var(--border-color); width: 12px; height: 12px; }
.glide__bullet--active { background-color: var(--primary-color); }

/* --- Feedback Section --- */
.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feedback-form .card { padding: 2rem; }
.feedback-form .card h3 { text-align: center; margin-bottom: 0.5rem; }
.feedback-form .card p {
    text-align: center; margin-top: 0; margin-bottom: 1.5rem; color: var(--text-medium);
}
.feedback-form input, .feedback-form textarea {
    width: 100%; padding: 12px; margin-bottom: 1rem;
    border: 1px solid var(--border-color); border-radius: 8px;
    font-family: var(--font-main); font-size: 1rem;
}
.feedback-form textarea { resize: vertical; }
.feedback-form .btn { width: 100%; padding: 14px; }

.form-stars { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
.form-stars .fa-star {
    color: var(--border-color); cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.form-stars .fa-star.hovered { color: #FFD700; transform: scale(1.2); }
.form-stars .fa-star.selected { color: var(--accent-color); }

/* --- Footer --- */
.site-footer {
    background-color: var(--text-dark); color: var(--text-medium);
    padding: 4rem 1rem 1rem; font-size: 0.95rem; width: 100%;
}
.site-footer .footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem;
}
.footer-section h3 { color: var(--background-white); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-section a { color: var(--text-medium); }
.footer-section a:hover { color: var(--primary-color); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding-top: 1.5rem; 
}
.social-icons a { margin-right: 15px; font-size: 1.2rem; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(44, 62, 80, 0.65); display: flex;
    justify-content: center; align-items: center; z-index: 10000;
    visibility: hidden; opacity: 0; transition: visibility 0.3s ease, opacity 0.3s ease;
    padding: 20px;
}
.modal-overlay.active { visibility: visible; opacity: 1; }

.modal-content {
    background-color: var(--background-white); padding: 30px; border-radius: 15px;
    max-width: 600px; width: 100%; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    position: relative; transform: translateY(20px) scale(0.95); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease; text-align: center;
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); opacity: 1; }

.modal-content h3 { color: var(--primary-dark); margin-bottom: 20px; font-size: 1.8rem; }
#modalImageContainer img {
    width: 100%; height: auto; max-height: 300px; object-fit: contain;
    border-radius: 10px; margin-bottom: 20px;
}
.modal-content p { color: var(--text-dark); margin-bottom: 15px; line-height: 1.6; text-align: left; }
.modal-content .btn { display: inline-block; width: auto; margin: 20px auto 0; }

.close-button {
    position: absolute; top: 15px; right: 20px; font-size: 2rem;
    cursor: pointer; color: var(--text-medium); transition: color 0.2s ease; line-height: 1;
}
.close-button:hover { color: var(--text-dark); }

/* =======================================================
   RESPONSIVE DESIGN (TABLET & MOBILE) - NO SCROLLBARS
   ======================================================= */
@media (max-width: 992px) {

    /* --- 0. GLOBAL HIDE SCROLLBAR (Mobile Only) --- */
    /* Tinatago ang scrollbar ng buong page pero pwede pa rin mag-scroll */
    html, body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    html::-webkit-scrollbar, body::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* --- 1. HERO SECTION FIX --- */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: 100svh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        align-items: center;
    }

    .hero-content {
        flex: none;
        width: 100%;
        max-width: 100% !important;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 2.5rem); 
        line-height: 1.2;
        margin-bottom: 1rem;
        width: 100%;
        display: block;
    }

    .hero-content p {
        font-size: 1rem;
        color: var(--text-medium);
        margin: 0 auto 2rem auto;
        max-width: 90%;
    }

    .hero-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .hero-image-circle {
        width: 260px;
        height: 260px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        background: white;
        flex-shrink: 0;
        position: relative;
    }
    
    .hero-image-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .floating-badges .badge { transform: scale(0.8); pointer-events: none; }
    .badge-vaccination { top: 5%; left: -10px; }
    .badge-health { top: 40%; right: -20px; }
    .badge-care { bottom: 10%; left: -5px; }


    /* --- 2. SIDEBAR (NO SCROLLBAR + ICONS) --- */
    .hamburger { display: block; z-index: 2005; }
    .navbar-auth-desktop { display: none; }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100svh;
        background-color: var(--background-white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        padding: 0;
        
        /* HIDE SCROLLBAR HERE */
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    /* Hide Scrollbar for Chrome/Safari */
    .navbar-nav::-webkit-scrollbar { display: none; }

    .navbar-nav.active { transform: translateX(0); }

    .sidebar-header-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .mobile-logo-icon { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }
    .mobile-logo-text { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); }

    .nav-item { width: 100%; padding: 0 15px; margin-bottom: 8px; }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        font-size: 1rem;
        color: var(--text-dark);
        font-weight: 500;
        border: none !important;
        border-radius: 50px;
        background: transparent;
    }

    .nav-link i {
        display: inline-block !important; 
        width: 30px;
        text-align: center;
        margin-right: 12px;
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .nav-link:hover, .nav-link.active {
        background-color: var(--primary-color);
        color: white;
        box-shadow: 0 4px 10px rgba(32, 178, 170, 0.25);
    }
    .nav-link:hover i, .nav-link.active i { color: white; }
    .nav-link::after { display: none; }

    .navbar-auth-mobile {
        display: block;
        margin-top: auto;
        padding: 20px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .navbar-auth-mobile .btn { width: 100%; border-radius: 50px; padding: 12px; }


    /* --- 3. GENERAL FIXES (NO SCROLLBARS ON GRIDS) --- */
    .feedback-grid { display: flex; flex-direction: column; gap: 3rem; }
    .about-text { text-align: center; padding: 0 1rem; }
    .feedback-form { width: 100%; }
    .filter-controls { display: none; }
    
    .tips-grid {
        display: flex; 
        overflow-x: auto; 
        gap: 1rem;
        padding: 10px 5px 20px 5px; 
        scroll-snap-type: x mandatory;
        
        /* HIDE SCROLLBAR HERE */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tips-grid::-webkit-scrollbar { display: none; }
    
    .tips-grid .card { flex: 0 0 260px; scroll-snap-align: center; }
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 6vw, 3rem); }
    h2 { font-size: clamp(1.8rem, 6vw, 2.2rem); }
    .feedback-grid { gap: 2rem; }
}

/* --- 404 Error Page Styles --- */
.error-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-white);
}

.error-content {
    max-width: 500px;
    animation: fadeIn 0.8s ease-out;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.error-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

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

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