:root {
    --primary-color: #0077B6;
    --primary-dark-color: #0A1128;
    --primary-light-color: #0096C7;
    --accent-color: #FF6B6B;
    --accent-dark-color: #E65A5A;
    --text-dark-color: #343A40;
    --text-light-color: #F8F9FA;
    --bg-light-color: #F8F9FA;
    --bg-white-color: #FFFFFF;
}

body {
    font-family: 'Rubik', sans-serif;
    color: var(--text-dark-color);
    direction: rtl;
    scroll-behavior: smooth;
}

/* Dolphin Logo */
.studio-logo {
    width: 32px; /* Adjust size as needed */
    height: 32px; /* Adjust size as needed */
    /* Assuming a colorful logo, no filter needed. If background is dark, might need a light filter. */
    /* For "Dance Me" logo, let's assume it has its own colors and doesn't need to be inverted to white. */
    /* If the logo is monochromatic and needs to be white on dark headers, uncomment and adjust: */
    /* filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); */
}

/* Specific styles for new pages */
.blog-card {
    background-color: var(--bg-white-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark-color);
    margin-bottom: 0.5rem;
}

.article-content h1, .article-content h2, .article-content h3 {
    color: var(--primary-dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.article-content h1 { font-size: 2.25rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }

.article-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark-color);
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.article-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    color: var(--primary-dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content h1 { font-size: 2.5rem; }
.legal-content h2 { font-size: 2rem; }
.legal-content h3 { font-size: 1.5rem; }

.legal-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark-color);
}

.legal-content ul {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* Header & Navigation */
#main-header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

#main-header.scrolled {
    background-color: var(--primary-dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--text-light-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    color: var(--text-light-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.mobile-nav-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light-color);
}


/* Hero Section */
#hero {
    background-image: url('https://picsum.photos/seed/dance_me_waltz/1920/1080'); /* High-res image of a couple dancing waltz */
    background-size: cover;
    background-position: center;
}

/* FAQ Accordion Styles */
.accordion-item {
    background-color: var(--bg-white-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background-color: var(--bg-white-color);
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f8f8f8;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-dark-color);
    flex-grow: 1;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 1.5rem; /* Only horizontal padding when collapsed */
    color: var(--text-dark-color);
    line-height: 1.7;
}

.accordion-content p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.accordion-content[aria-hidden="false"] {
    max-height: 500px; /* Adjust as needed for content length */
    padding-bottom: 1.5rem;
    padding-top: 1rem; /* Add top padding when expanded */
    transition: max-height 0.7s ease-in-out, padding 0.7s ease-in-out;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background-color: var(--bg-white-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.gallery-item iframe {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    display: block;
    border: none;
}

.gallery-item-caption {
    padding: 1rem;
    font-weight: 500;
    color: var(--primary-dark-color);
    text-align: center;
}

/* Dance Types Cards */
.dance-type-card {
    background-color: var(--bg-white-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dance-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dance-type-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dance-type-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark-color);
    margin-bottom: 0.5rem;
}

.dance-type-card-description {
    color: var(--text-dark-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.dance-type-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.dance-type-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Service Cards */
.service-card-wrapper {
    display: block;
}

.service-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-card {
    background-color: var(--bg-white-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

/* The service-detail-card styles are no longer needed as services.html is replaced.
   However, the blog-card and dance-type-card styles provide similar functionality
   for the new content. I'll remove this specific block to avoid confusion. */


/* Form Styling */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.25);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out both;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Tailwind Customization */
.bg-primary { background-color: var(--primary-color); }
.bg-primary-dark { background-color: var(--primary-dark-color); }
.bg-primary-light { background-color: var(--primary-light-color); }
.bg-accent { background-color: var(--accent-color); }
.hover\:bg-accent-dark:hover { background-color: var(--accent-dark-color); }
.text-primary { color: var(--primary-color); }
.text-primary-dark { color: var(--primary-dark-color); }
.hover\:text-primary:hover { color: var(--primary-color); }
.hover\:text-primary-dark:hover { color: var(--primary-dark-color); }
.hover\:text-accent:hover { color: var(--accent-color); }
.text-accent { color: var(--accent-color); }

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.1rem;
    }
}