/* ====== General Reset ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* ====== Header ====== */
header {
    background-color: #004080;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ====== Navigation ====== */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin-top: 10px;

    /* --- Animation addon --- */
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    max-height: 1000px; /* desktop = open, no animation */
}

nav ul li {
    margin: 5px 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #fff;
    color: #004080;
}

/* ====== Main Section ====== */
main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #004080;
}

/* ====== Hero Section ====== */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* ====== Cards Layout ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card h3 {
    margin-bottom: 10px;
    color: #004080;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-top: 15px;
    border-radius: 8px;
}

/* ====== Palace & Hero Images ====== */
.hero-image,
.palace-photo {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.center-image {
    display: block;
    margin: 20px auto;
}
/* ====== Forms ====== */
form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #004080;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

form button {
    background-color: #004080;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #0066cc;
}

/* ====== Footer ====== */
footer {
    background-color: #004080;
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    margin-top: 40px;
}

/* ====== Responsive ====== */




/* Make all links clearly visible */
a {
    color: #004080;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #0066cc;
}

section a, p a {
    color: #004080 !important;
    text-decoration: underline;
    font-weight: 600;
}

section a:hover, p a:hover {
    color: #0066cc !important;
}


.menu-toggle:hover {
    transform: scale(1.1);
    background-color: #ff8533;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

.menu-toggle {
    animation: bounce 2s ease infinite;
}

/* Desktop/default menu */
.menu-toggle {
    display: none; /* hidden on desktop */
    background-color: #004080; /* not orange */
    color: #fff;
}


/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin: 10px auto;
     display: block;  /* show only on mobile */
        background-color: orange; /* mobile-only color */
        color: #fff;
        padding: 8px 12px;
        border-radius: 5px;
        font-size: 1.4rem;
        cursor: pointer;}

    nav ul {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
    }

    nav ul.show-menu {
        display: flex; /* When toggled */
    }

    nav ul li {
        margin: 10px 0;
    }
}

.success-message {
    display: none;          /* hidden by default */
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}
