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

:root {
    --primary-color: #3b2d18;
    --accent-color: #a37c38;
    --text-dark: #222222;
    --bg-cream: #fbf5e6; /* Matches the site's creamy tone */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styling */
.site-header {
    background-color: var(--bg-cream);
    border-bottom: 1px solid #e2d3b8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand-box {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.brand-logo span {
    color: var(--accent-color);
}

.brand-logo-img img {
    display: block;
    max-width: 160px;
    height: auto;
}

.uen-number {
    font-size: 1.0rem;
    color: #666;
    letter-spacing: 0.5px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: #ffffff;
    max-width: 800px;
    padding: 0 1rem;
}

.slide-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.slide-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.btn-learn-more {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.btn-learn-more:hover {
    background: #ffffff;
    color: #000000;
}

/* Slider Controls (< > and Dots) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 1rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #ffffff;
}

/* Footer Styling */
.site-footer {
    background-color: var(--bg-cream);
    border-top: 1px solid #e2d3b8;
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-menu a:hover,
.footer-menu a.active {
    color: var(--accent-color);
}

.footer-bottom {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-cream);
        border-bottom: 1px solid #e2d3b8;
        padding: 1rem 0;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }
}

/* Text Slider Styles */
.text-slider-container {
    position: relative;
    width: 100%;
}

.text-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.text-slide.active {
    display: block;
}

.text-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.text-slider-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.text-slider-btn:hover {
    background: var(--primary-color);
}

.text-slider-dots {
    display: flex;
    gap: 8px;
}

.text-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #d4c4a8;
    border-radius: 50%;
    cursor: pointer;
}

.text-slider-dots .dot.active {
    background: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* --- Services Dropdown Strict Fix --- */

/* Parent item positioning */
.site-nav ul li.dropdown {
    position: relative;
}

/* Force dropdown menu to hide completely by default */
.site-nav ul li.dropdown > .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-cream, #fbf5e6);
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border: 1px solid #e2d3b8;
    z-index: 9999;
}

/* Ensure child items stack vertically inside the menu */
.site-nav ul li.dropdown > .dropdown-menu li {
    display: block !important;
    width: 100%;
}

.site-nav ul li.dropdown > .dropdown-menu li a {
    display: block !important;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
    color: var(--primary-color, #3b2d18);
    text-decoration: none;
}

.site-nav ul li.dropdown > .dropdown-menu li a:hover {
    background-color: rgba(163, 124, 56, 0.15);
    color: var(--accent-color, #a37c38);
}

/* Show dropdown ONLY when hovering over the parent 'Services' li */
.site-nav ul li.dropdown:hover > .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
}
/* Page Content Styles */
.page-container {
    padding: 3rem 1rem;
    max-width: 900px;
}

.page-container h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.content-block, .profile-card, .service-section, .fee-card {
    background: #ffffff;
    border: 1px solid #e2d3b8;
    padding: 2rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.content-block h2, .profile-header h2, .service-section h2, .fee-card h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-block p, .profile-body p, .service-section p {
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.7;
}

.profile-sub {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

.service-list, .flow-list {
    margin: 1rem 0 1rem 1.5rem;
    color: #444;
}

.service-list li, .flow-list li {
    margin-bottom: 0.5rem;
}

/* Fees Grid Styling */
.fees-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.fee-list {
    list-style: none;
    margin-top: 1rem;
}

.fee-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0e6d2;
    font-size: 0.95rem;
}

.fee-list.sub-list {
    list-style: disc;
    padding-left: 1.2rem;
}

.fee-list.sub-list li {
    display: list-item;
    border-bottom: none;
    padding: 0.2rem 0;
    color: #555;
}

.price-tag {
    background: var(--accent-color);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.courses-link-text {
    font-size: 1.1rem;
    text-align: center;
    padding: 3rem 0;
}

.courses-link-text a {
    color: var(--accent-color);
    word-break: break-all;
}

.contact-box {
    background: #ffffff;
    border: 1px solid #e2d3b8;
    padding: 2rem;
    border-radius: 6px;
    max-width: 500px;
}

.contact-box p {
    margin-bottom: 0.8rem;
}

/* Universal Generic Slider Styles */
.generic-slider {
    position: relative;
    width: 100%;
}

.generic-slider .slide-item {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.generic-slider .slide-item.active {
    display: block;
}

/* Slider Navigation Controls Bar */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes left arrow to left, right arrow to right */
    max-width: 320px;               /* Gives clean breathing room */
    margin: 2rem auto;
    position: relative;
    padding: 0 1rem;
}

.slider-prev,
.slider-next {
    background: var(--accent-color, #a37c38);
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    z-index: 2;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color, #3b2d18);
    transform: scale(1.08);
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #d4c4a8;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
    background: var(--primary-color, #3b2d18);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Contact Page Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2d3b8;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.contact-info-card h2,
.contact-form-card h2 {
    font-size: 1.3rem;
    color: var(--primary-color, #3b2d18);
    margin-bottom: 1rem;
}

.contact-details-list {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-details-list li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-details-list a {
    color: var(--accent-color, #a37c38);
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark, #222222);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d4c4a8;
    border-radius: 4px;
    background-color: var(--bg-cream, #fbf5e6);
    font-family: inherit;
    font-size: 0.95rem;
    color: #333333;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color, #a37c38);
    background-color: #ffffff;
}

.btn-submit {
    background-color: var(--accent-color, #a37c38);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--primary-color, #3b2d18);
}

/* Alerts */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #b7e1cd;
}

.alert-error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}