:root {
    --primary: #6b5040;
    --primary-light: #8c6b53;
    --secondary: #d5c5b5;
    --background: #f9f3ea;
    --text: #8c6b53;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Playfair Display", serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

li {
    margin-bottom: 10px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-cta,
.btn-login,
.btn-register,
.btn-search,
.btn-event,
.calendar-nav {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: "Playfair Display", serif;
    border: none;
}

.btn-cta {
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
}

.btn-cta:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.btn-login {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-login:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-register {
    background-color: var(--primary);
    color: var(--white);
}

.btn-register:hover {
    background-color: var(--primary-light);
}

.btn-search {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
}

.btn-search:hover {
    background-color: var(--primary-light);
}

.btn-event {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-event:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.calendar-nav {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    font-size: 0.9rem;
}

.calendar-nav:hover {
    background-color: var(--primary);
    color: var(--white);
}

.category-link {
    color: var(--primary);
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* agar ada efek gelap seperti overlay */
    z-index: 0;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Event Search */
.event-search {
    padding: 60px 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.filter-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Playfair Display", serif;
    transition: border-color 0.3s;
}

.filter-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Featured Event */
.featured-event {
    padding: 60px 0;
}

.featured-event-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-event-image {
    flex: 1 1 400px;
    position: relative;
}

.featured-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-align: center;
}

.date-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 3px;
}

.featured-event-content {
    flex: 1 1 500px;
    padding: 40px;
}

.event-tag {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.featured-event-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.event-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.event-details {
    background-color: var(--background);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Upcoming Events */
.upcoming-events {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.events-calendar {
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.calendar-header h3 {
    margin: 0 20px;
    font-size: 1.8rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.event-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-item .event-date {
    position: static;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin: 20px;
}

.event-info {
    flex-grow: 1;
    padding: 20px 0;
}

.event-info h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.event-info p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary);
    margin-right: 8px;
}

.event-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-left: 1px solid #eee;
    flex-shrink: 0;
}

.event-price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.load-more-events {
    text-align: center;
    margin-top: 30px;
}

/* Event Categories */
.event-categories {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.category-card h3 {
    margin-bottom: 15px;
}

.category-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Host Your Own Event */
.host-event {
    padding: 60px 0;
    background-color: var(--white);
}

.host-event-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.host-event-info {
    flex: 1 1 500px;
}

.host-event-info h2 {
    margin-bottom: 20px;
}

.host-event-info p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.host-benefits {
    margin-bottom: 30px;
}

.host-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.host-benefits i {
    color: var(--primary);
    margin-right: 12px;
}

.host-event-image {
    flex: 1 1 400px;
}

.host-event-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Event Tips */
.event-tips {
    padding: 60px 0;
}

.tips-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.tip-item {
    background-color: var(--white);
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tip-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tip-header:hover {
    background-color: var(--secondary);
}

.tip-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.tip-header i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.tip-item.active .tip-header i {
    transform: rotate(180deg);
}

.tip-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.tip-item.active .tip-content {
    padding: 0 20px 20px;
    max-height: 400px;
}

.tip-content ul {
    padding-left: 20px;
}

.tip-content li {
    position: relative;
    padding-left: 5px;
    margin-bottom: 10px;
}

.tip-content li::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("/wedding-image/nikahan/IMG_5587.JPG") center/cover no-repeat;
    text-align: center;
    color: var(--white);
    margin: 60px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .hero {
        height: 450px;
    }
    .featured-event-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }
    .event-item {
        flex-wrap: wrap;
    }
    .event-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid #eee;
    }
    .event-price {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero {
        height: 350px;
    }
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .auth-buttons {
        display: none;
    }
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .event-meta {
        flex-direction: column;
        gap: 10px;
    }
    .tip-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero {
        height: 300px;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .featured-event-content {
        padding: 20px;
    }
    .featured-event-content h3 {
        font-size: 1.6rem;
    }
    .event-item .event-date {
        width: 60px;
        height: 60px;
        margin: 15px;
    }
    .date-number {
        font-size: 1.4rem;
    }
    .date-month {
        font-size: 0.8rem;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.event-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* default untuk layar besar */
}

/* Tambahkan batasan lebar untuk mobile (misal di bawah 576px) */
@media (max-width: 576px) {
    .event-title {
        width: 200px;
    }
}

