         * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        header {
            background: linear-gradient(135deg, #006400, #228B22);
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: relative;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-icon {
            font-size: 2.5rem;
        }

        .logo-text h1 {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }

        .logo-text p {
            font-size: 1rem;
            opacity: 0.9;
        }

        .nav-container {
           margin-left: auto;
        }
       
        nav ul {
            display: flex;
            list-style: none;
            gap: 20px;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s;
            padding: 5px 10px;
            border-radius: 3px;
        }

        nav a:hover {
            background-color: rgba(255,255,255,0.2);
        }

        .menu-toggle {
            display: none !important;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 21px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1000;
        }
        
        .menu-toggle span {
            width: 100%;
            height: 3px;
            background: white;
            border-radius: 2px;
            transition: all 0.3s;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

        .hero-memory {
            background: linear-gradient(rgba(0, 50, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                        url('../img/memori%201.jpg') no-repeat center center;
            background-size: cover;
            width: 100%;
            height: 700px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            position: relative;
            border-bottom: 5px solid #8B0000;
        }

        .hero-memory-content {
            position: relative;
            z-index: 1;
            max-width: 900px;
            padding: 0 20px;
        }

        .hero-memory h2 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
            color: #FFD700;
        }

        .hero-memory p {
            font-size: 1.5rem;
            margin-bottom: 20px;
            font-weight: 300;
        }

        .memory-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            color: #FFD700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .memory-intro {
            padding: 60px 0;
            background-color: #f8f9fa;
        }

        .memory-intro h2 {
            color: #8B0000;
            text-align: center;
            margin-bottom: 30px;
            font-size: 2.2rem;
            position: relative;
        }

        .memory-intro h2:after {
            content: '';
            display: block;
            width: 100px;
            height: 3px;
            background: #8B0000;
            margin: 15px auto;
        }

        .memory-intro p {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 30px;
            font-size: 1.1rem;
            color: #555;
        }

        .memory-stats {
            background: linear-gradient(135deg, #8B0000, #B22222);
            color: white;
            padding: 40px 0;
            margin: 40px 0;
            border-radius: 10px;
        }

        .stat-box {
            text-align: center;
            padding: 20px;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 10px;
            color: #FFD700;
        }

        .stat-label {
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .memory-filters {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-bottom: 40px;
        }

        .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
            justify-content: center;
        }

        .filter-input {
            flex: 1;
            min-width: 200px;
            max-width: 300px;
        }

        .memory-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .memory-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .memory-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2);
            border-color: #8B0000;
        }

        .memory-photo-container {
            width: 100%;
            height: auto;
            overflow: hidden;
            position: relative;
            background: linear-gradient(45deg, #f8f9fa, #e9ecef);
        }

        .memory-photo {
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .memory-card:hover .memory-photo {
            transform: scale(1.05);
        }

        .default-photo {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            background: linear-gradient(135deg, #8B0000, #B22222);
            color: white;
            font-size: 4rem;
        }

        .memory-ribbon {
            position: absolute;
            top: 15px;
            right: -30px;
            background: #8B0000;
            color: white;
            padding: 5px 30px;
            transform: rotate(45deg);
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            z-index: 1;
        }

        .memory-content {
            padding: 25px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .memory-name {
            color: #8B0000;
            font-size: 1.3rem;
            margin-bottom: 10px;
            line-height: 1.3;
        }

        .memory-dates {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .memory-dates i {
            color: #8B0000;
        }

        .memory-rank {
            color: #006400;
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 1rem;
        }

        .memory-description {
            color: #555;
            line-height: 1.6;
            flex: 1;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .memory-awards {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .award-badge {
            display: inline-block;
            background: #ffd700;
            color: #8B0000;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            margin: 3px;
            font-weight: bold;
        }

        .btn-memory {
            background: linear-gradient(135deg, #8B0000, #B22222);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
            font-weight: bold;
            margin-top: auto;
            cursor: pointer;
        }

        .btn-memory:hover {
            background: linear-gradient(135deg, #B22222, #8B0000);
            color: white;
            transform: scale(1.05);
        }

        .memory-modal .modal-header {
            background: linear-gradient(135deg, #8B0000, #B22222);
            color: white;
            border-bottom: none;
        }

        .memory-modal .modal-title {
            font-size: 1.5rem;
        }

        .memory-modal .modal-body {
            padding: 30px;
        }

        .memory-detail-photo {
            width: 200px;
            height: auto;
            object-fit: cover;
            border-radius: 10%;
            margin: 0 auto 20px;
            display: block;
            border: 5px solid #f0f0f0;
        }

        .memory-detail-item {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
        }

        .memory-detail-icon {
            color: #8B0000;
            width: 30px;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .memory-detail-label {
            font-weight: bold;
            min-width: 150px;
            color: #555;
        }

        .candle-section {
            background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)), 
                        url('img/candle_bg.jpg') no-repeat center center;
            background-size: cover;
            padding: 80px 0;
            text-align: center;
            color: white;
            margin: 60px 0;
            border-radius: 10px;
        }

        .candle-title {
            color: #FFD700;
            margin-bottom: 30px;
            font-size: 2.2rem;
        }

        .candle-container {
            display: inline-block;
            position: relative;
            cursor: pointer;
            margin: 20px 0;
            transition: transform 0.3s;
        }

        .candle-container:hover {
            transform: scale(1.05);
        }

        .candle {
            position: relative;
            width: 60px;
            height: 150px;
            background: linear-gradient(to right, #8B0000, #B22222, #8B0000);
            margin: 0 auto;
            border-radius: 5px;
        }

        .candle-flame {
            position: absolute;
            top: -40px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 50px;
            background: radial-gradient(ellipse at center, #FFD700 0%, #FF4500 70%, transparent 100%);
            border-radius: 50% 50% 20% 20%;
            animation: flicker 2s infinite alternate;
            box-shadow: 0 0 30px #FFD700;
        }

        .candle-count {
            font-size: 2rem;
            color: #FFD700;
            margin-top: 20px;
        }

        @keyframes flicker {
            0%, 100% { transform: translateX(-50%) scale(1); }
            50% { transform: translateX(-50%) scale(1.1); }
        }

        footer {
            background: #006400;
            color: white;
            padding: 40px 0 20px;
            margin-top: 60px;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column {
            flex: 1;
            min-width: 200px;
        }

        .footer-column h3 {
            margin-bottom: 20px;
            font-size: 1.3rem;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-column a:hover {
            color: white;
        }

        .social-icons {
            display: flex;
            gap: 15px;
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.9rem;
            color: #ddd;
        }

        .search-results-container {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            border-left: 5px solid #8B0000;
            animation: slideDown 0.3s ease;
        }

        .search-results-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .results-info {
            font-size: 1.1rem;
            color: #333;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .results-info i {
            color: #8B0000;
        }

        #resultsCount {
            font-weight: bold;
            color: #8B0000;
            font-size: 1.3rem;
        }

        #totalCount {
            font-weight: bold;
            color: #006400;
        }

        .btn-reset-filter {
            background: #8B0000;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-weight: bold;
        }

        .btn-reset-filter:hover {
            background: #B22222;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .memory-card {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
        }

        .memory-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 15px;
                padding-top: 15px;
                padding-bottom: 15px;
            }
            
            .logo {
                flex-direction: column;
                text-align: center;
                width: 100%;
            }
            
            .logo-text h1 {
                font-size: 1.4rem;
                line-height: 1.3;
            }
            
            .nav-container {
                margin-left: 0;
                width: 100%;
                order: 3;
            }
            
            nav ul {
                flex-direction: column;
                gap: 10px;
                display: none; 
                background: rgba(0, 100, 0, 0.95);
                padding: 20px;
                border-radius: 10px;
                margin-top: 15px;
                position: static;
                width: 100%;
            }
            
            nav ul.active {
                display: flex; 
            }
            
            .menu-toggle {
                display: flex !important;
                position: absolute;
                right: 20px;
                top: 30px;
                z-index: 1001;
            }
            
            .hero-memory {
                height: 300px;
            }
            
            .hero-memory h2 {
                font-size: 1.8rem;
            }
            
            .hero-memory p {
                font-size: 1.1rem;
            }
            
            .memory-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                flex-direction: column;
            }
            
            .stat-box {
                margin-bottom: 20px;
            }
            
            .candle-title {
                font-size: 1.8rem;
            }
            
            .search-results-content {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .btn-reset-filter {
                align-self: flex-end;
            }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .memory-page {
            background-color: #f8f9fa;
        }

        .memory-header {
            text-align: center;
            padding: 30px 0;
            background-color: white;
            border-bottom: 3px solid #8B0000;
        }

        .memory-header h1 {
            color: #8B0000;
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .memory-header p {
            color: #666;
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #666;
            font-style: italic;
            grid-column: 1 / -1;
        }

        .candle-loading {
            display: inline-block;
            margin-left: 10px;
        }

        .candle-loading i {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }