/**
 * Pema Main Stylesheet
 * @package Pema
 */

/* ==========================================================================
   Advanced Animations & Transitions
   ========================================================================== */

/* Floating Particles Background */
@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(26, 95, 42, 0.3); }
    50% { box-shadow: 0 0 20px rgba(26, 95, 42, 0.6), 0 0 40px rgba(26, 95, 42, 0.3); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

/* Page Load Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
.animate-delay-7 { animation-delay: 0.7s; }
.animate-delay-8 { animation-delay: 0.8s; }

/* Page transition overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a40 50%, #1a5f2a 100%);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s ease-in-out;
}
.page-transition-overlay.active { transform: scaleY(1); transform-origin: top; }

/* Floating particles container */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: var(--size, 10px);
    height: var(--size, 10px);
    background: var(--color, rgba(26, 95, 42, 0.3));
    border-radius: 50%;
    animation: floatParticle var(--duration, 15s) var(--delay, 0s) infinite ease-in-out;
    --tx: 100px;
    --ty: -100px;
}
.floating-particle:nth-child(odd) { background: rgba(255, 193, 7, 0.4); }
.floating-particle:nth-child(3n) { background: rgba(255, 255, 255, 0.3); }

/* Animated gradient background */
.animated-gradient {
    background: linear-gradient(-45deg, #1a5f2a, #2d8a40, #3cb371, #1a5f2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Additional keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Category Cards with hover animations */
.category-list-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-list-item:hover::before {
    opacity: 1;
}

.category-list-item a {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-list-item .category-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #fff;
}

.category-list-item:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.category-list-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Widget title enhancements */
.widget-title {
    position: relative;
    overflow: hidden;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

/* Section title enhancements */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title i {
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

/* Post Card Animations */
.post-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 42, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-card .entry-thumbnail img {
    transition: all 0.4s ease;
}

.post-card:hover .entry-thumbnail img {
    transform: scale(1.1);
}

/* Header scroll effect */
.site-header.scrolled {
    animation: slideInDown 0.3s ease-out;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Social icons animation */
.social-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover::after {
    width: 100px;
    height: 100px;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Bounce animation for icons */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.bounce {
    animation: bounce 1s ease;
}

/* Visible class for scroll animations */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Waypoint animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator animation */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

/* Loading animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(26, 95, 42, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(26, 95, 42, 0.8);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-down {
    animation: fadeInDown 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1.5s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ==========================================================================
   Button Animations
   ========================================================================== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-lg {
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Link Hover Animations
   ========================================================================== */

a {
    transition: all 0.3s ease;
}

a:hover {
    transform: translateX(5px);
}

/* Underline animation */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* ==========================================================================
   Form Field Animations
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.1);
    transform: scale(1.01);
}

input::placeholder,
textarea::placeholder {
    transition: all 0.3s ease;
    opacity: 0.7;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.4;
    transform: translateX(10px);
}

/* ==========================================================================
   Card Hover Animations
   ========================================================================== */

.card {
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Image Hover Animations
   ========================================================================== */

img {
    transition: all 0.4s ease;
}

img:hover {
    transform: scale(1.05);
}

.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.6s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

.image-blur:hover {
    filter: blur(3px);
}

.image-brightness:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   Icon Animations
   ========================================================================== */

.icon {
    transition: all 0.3s ease;
}

.icon:hover {
    transform: rotate(15deg) scale(1.2);
}

.icon-spin:hover {
    animation: spin 1s linear;
}

.icon-bounce:hover {
    animation: bounce 0.6s ease;
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 9999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   Page Transition Overlay
   ========================================================================== */

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.page-transition.active {
    transform: translateY(0);
}

/* ==========================================================================
   Smooth Scroll Behavior
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Smooth scroll for anchor links */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Selection Color
   ========================================================================== */

::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Focus Outline Animation
   ========================================================================== */

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   Cursor Effects
   ========================================================================== */

.cursor-pointer {
    cursor: pointer;
}

.cursor-grab {
    cursor: grab;
}

.cursor-grab:active {
    cursor: grabbing;
}

/* ==========================================================================
   Header Categories Dropdown */
.header-categories-dropdown {
    position: relative;
    margin-right: 15px;
}

.categories-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.categories-toggle:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.categories-label {
    display: none;
}

@media (min-width: 768px) {
    .categories-label {
        display: inline;
    }
}

.categories-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.header-categories-dropdown:hover .categories-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-dropdown-item {
    position: relative;
}

.categories-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.categories-dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.category-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.categories-dropdown-item:hover .category-arrow {
    transform: rotate(90deg);
}

.categories-dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.categories-dropdown-item:hover .categories-dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.categories-dropdown-subitem {
    position: relative;
}

.categories-dropdown-sublink {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 0.95rem;
}

.categories-dropdown-sublink:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Slideshow Section */
.slideshow-section {
    margin-bottom: 40px;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: var(--white);
}

.features-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.features-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.features-section .section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.hero-content {
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-section {
        padding: 40px 0;
    }
    
    .features-section .section-title h2 {
        font-size: 2rem;
    }
    
    .features-section .section-title p {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
}

/* Homepage Sidebar Widget */
.sidebar-widget {
    background: #f5f5f5;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget.categories-widget {
    background: #1a5f2a;
    padding: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--white);
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-list-item:last-child {
    border-bottom: none;
}

.category-list-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #2e7d32 0%, #1a5f2a 100%);
    margin: 3px 5px;
    border-radius: 8px;
}

.category-list-item:nth-child(1) a { background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%); }
.category-list-item:nth-child(2) a { background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%); }
.category-list-item:nth-child(3) a { background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%); }
.category-list-item:nth-child(4) a { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.category-list-item:nth-child(5) a { background: linear-gradient(135deg, #ff7043 0%, #e64a19 100%); }
.category-list-item:nth-child(6) a { background: linear-gradient(135deg, #ff8a65 0%, #ff7043 100%); }
.category-list-item:nth-child(7) a { background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%); }
.category-list-item:nth-child(8) a { background: linear-gradient(135deg, #a1887f 0%, #8d6e63 100%); }
.category-list-item:nth-child(9) a { background: linear-gradient(135deg, #5d4037 0%, #4e342e 100%); }

.category-list-item a:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding-left: 20px;
}

.category-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(255,255,255,0.5);
}

.category-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    margin-right: 12px;
    font-size: 1.1rem;
}

.category-name {
    flex: 1;
    font-weight: 600;
}

.category-count {
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sidebar Banner - Removed */

/* Homepage Content Layout */
.homepage-content {
    padding: 20px 0;
    background: var(--bg-light);
}

.homepage-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.homepage-sidebar {
    width: 180px;
    flex-shrink: 0;
    margin-right: 0;
}

.homepage-main-content {
    flex: 1;
    min-width: 0;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .homepage-layout {
        flex-direction: column;
    }
    
    .homepage-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Enhanced Promo Slideshow - Top Center */
.container-full {
    max-width: 100%;
    padding: 0;
}

.promo-slideshow {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.promo-slides-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.promo-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.promo-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.85) 0%, rgba(85, 139, 47, 0.9) 100%);
}

.promo-slide-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 40px;
    text-align: left;
}

.promo-slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.promo-slide-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.promo-slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.promo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.promo-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.promo-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .promo-slideshow {
        height: auto;
        max-width: 100%;
    }
    
    .promo-slide {
        min-height: 300px;
        padding: 30px;
    }
    
    .promo-slide-content {
        max-width: 100%;
        text-align: center;
        padding: 20px;
    }
    
    .promo-slide-title {
        font-size: 1.5rem;
    }
    
    .promo-slideshow-dots {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 20px;
        padding-bottom: 20px;
    }
}

.frontpage-layout {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}

.frontpage-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.frontpage-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 992px) {
    .frontpage-layout {
        flex-direction: column;
    }
    
    .frontpage-sidebar {
        width: 100%;
    }
}
