/*
Theme Name: ADSF-Dance
Theme URI: https://adsf.am
Author: ADSF-Dance
Author URI: https://adsf.am
Description: ADSF-Dance is a dance school that provides dance classes for children and adults.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0
License: MIT
Text Domain: adsf
*/

:root {
    --bs-box-shadow-sm: 0 0 0.5rem rgba(0, 0, 0, 0.075);
    --bs-primary: #1c2b3a;
    --bs-primary-rgb: 28, 43, 58;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    flex: 0 0 auto;
}

footer {
    flex: 0 0 auto;
}

main {
    flex: 1 1 auto;
}

.bg-light-grey-300 {
    background-color: #eff3ff;
}

button,input,select,textarea {
    outline: none;
}

button:focus,input:focus,select:focus,textarea:focus {
    outline: none;
    box-shadow: none !important;
}

/* Custom Logo Styles (Figma Design) */
.adsf-logo-square {
    background-color: #1c2b3a;
    width: 42px;
    height: 42px;
    border-radius: 4px;
}
footer .adsf-logo-square {
    background-color: rgba(255, 255, 255, 0.3);
}

.adsf-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.28px;
    line-height: 22.4px;
    margin: 0;
}

.adsf-logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #1a1815;
    letter-spacing: 0.72px;
    line-height: 19.8px;
    margin: 0 0 0.8px 0;
}

.adsf-logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #9a9590;
    letter-spacing: 0.24px;
    line-height: 13.2px;
    margin: 0;
}

/* Navigation Link Styles (Figma Design) */
.adsf-nav-link {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #5c5750 !important;
    padding: 7.5px 12px !important;
    border-radius: 4px !important;
    line-height: 22.4px !important;
}

.adsf-nav-link:hover {
    background-color: rgba(92, 87, 80, 0.05) !important;
    color: #5c5750 !important;
}

/* Hide desktop collapse on mobile — offcanvas handles mobile nav */
#navbarDesktop {
    overflow: visible !important;
}

/* Desktop Nav Items */
.navbar-nav .nav-item .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #5c5750;
    padding: 7.5px 12px;
    border-radius: 4px;
    line-height: 22.4px;
}

.navbar-nav .nav-item .nav-link:hover {
    background-color: rgba(92, 87, 80, 0.05);
    color: #5c5750;
}

/* Dropdown Arrow for Desktop */
.navbar-nav .dropdown > .nav-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #5c5750;
    border-bottom: 0;
}

/* Desktop Dropdown Menu */
.navbar-nav .dropdown-menu {
    border: 1px solid #e0deda;
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 4px;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-menu .dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #5c5750;
    padding: 8px 16px;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: rgba(92, 87, 80, 0.05);
    color: #5c5750;
}

/* Mobile Nav Items */
.offcanvas-body .nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #5c5750;
    padding: 12px 16px;
    border-radius: 4px;
}

.offcanvas-body .nav .nav-link:hover {
    background-color: rgba(92, 87, 80, 0.05);
    color: #5c5750;
}

/* Mobile Dropdown — inline static, matches Bootstrap dropdown card look */
.offcanvas-body .dropdown-menu {
    position: static !important;
    float: none;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    border-color: #e0deda;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.offcanvas-body .dropdown-menu .dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #5c5750;
    padding: 8px 16px;
    border-radius: 4px;
}

.offcanvas-body .dropdown-menu .dropdown-item:hover,
.offcanvas-body .dropdown-menu .dropdown-item:focus {
    background-color: rgba(92, 87, 80, 0.05);
    color: #5c5750;
}

.navbar-brand img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .carousel .ratio-21x9 {
        --bs-aspect-ratio: 100%;
    }
}

.filter-brightness-70 {
    filter: brightness(0.7);
}

.btn-outline-primary {
    --bs-btn-color: #1c2b3a;
    --bs-btn-border-color: #1c2b3a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1c2b3a;
    --bs-btn-hover-border-color: #1c2b3a;
    --bs-btn-focus-shadow-rgb: 28, 43, 58;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1c2b3a;
    --bs-btn-active-border-color: #1c2b3a;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #1c2b3a;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #1c2b3a;
    --bs-gradient: none;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1c2b3a;
    --bs-btn-border-color: #1c2b3a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1c2b3a;
    --bs-btn-hover-border-color: #1c2b3a;
    --bs-btn-focus-shadow-rgb: 28, 43, 58;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1c2b3a;
    --bs-btn-active-border-color: #1c2b3a;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #1c2b3a;
    --bs-btn-disabled-border-color: #1c2b3a;
}

/* Dynamic Card Styles (Figma Design) */

.dynamic-card__overview {
    color: #9a9590;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.dynamic-card__title {
    color: #1a1815;
}

.dynamic-card__copy {
    color: #5c5750;
    line-height: 1.75;
}

.dynamic-card__image-frame {
    border: 1px solid #e0deda;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 260px;
}

/* Custom Card Styles (Figma Design) */
.custom_card__badge {
    background-color: #e8edf2;
    color: #1c2b3a;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
}

.custom_card__date {
    color: #9a9590;
    font-size: 0.75rem;
    font-weight: 500;
}

.custom_card__title {
    color: #1a1815;
    font-weight: 700;
    line-height: 1.4;
}

.custom_card__text {
    color: #5c5750;
    font-size: 0.875rem;
    line-height: 1.75;
}
.custom_card__text p {
    margin-bottom: 5px;
}

.custom_card__text p:last-child {
    margin-bottom: 0;
}

.custom_card__icon-wrap {
    width: 64px;
    height: 64px;
    background-color: #e8edf2;
}

.custom_card__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.custom_card__image-wrap {
    overflow: hidden;
    border-radius: 0.25rem;
}
.custom_card__image-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Dance Group Cards (page-dance-groups) ──────────────────────────────── */

.dancer-group-card {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    border-color: #e0deda !important;
}
.dancer-group-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}
.dancer-group-card__image-wrap img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}
.dancer-group-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: #f5f4f2;
}
.dancer-group-card__title {
    font-family: 'Montserrat', sans-serif;
}

/* ─── Dancer Cards (ranking grid view) ───────────────────────────────────── */

.dancer-card {
    border-color: #e0deda !important;
}
.dancer-card__image-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f4f2;
}
.dancer-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dancer-card__image--placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
}
.dancer-card__title {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.35;
}
.dancer-card__points {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    color: #9a9590;
}

/* ─── Rank Badges ─────────────────────────────────────────────────────────── */

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0 0.45rem;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.rank-badge--gold {
    background: linear-gradient(135deg, #F8CD58 0%, #E8C975 100%);
    color: #6b4e00;
    text-shadow: none;
}
.rank-badge--silver {
    background: linear-gradient(135deg, #CACAC9 0%, #959595 100%);
    color: #fff;
}
.rank-badge--bronze {
    background: linear-gradient(135deg, #F39167 0%, #B1714A 100%);
    color: #fff;
}
.rank-badge--sm {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 0.65rem;
    border-radius: 0.25rem;
}

/* ─── Filter Bar ──────────────────────────────────────────────────────────── */

.ranking-filter-bar {
    border-color: #e0deda !important;
}
.ranking-filter-bar__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9a9590;
    margin-bottom: 0.25rem;
}

/* ─── View Toggle ─────────────────────────────────────────────────────────── */

.ranking-view-btn {
    color: #9a9590;
    border-color: #e0deda;
    background: #fff;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.ranking-view-btn:hover {
    color: #1c2b3a;
    border-color: #1c2b3a;
    background: #fff;
}
.ranking-view-btn.active,
.ranking-view-btn[aria-pressed="true"] {
    background-color: #1c2b3a !important;
    border-color: #1c2b3a !important;
    color: #fff !important;
}

/* ─── Ranking Table (list view) ───────────────────────────────────────────── */

.ranking-table {
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Montserrat', sans-serif;
}
.ranking-table__th {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9590;
    padding: 12px 16px;
    background: #faf9f8;
    border-bottom: 1px solid #e0deda !important;
}
.ranking-table__td {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #5c5750;
    vertical-align: middle;
    border-bottom: 1px solid #e0deda !important;
}
.ranking-table tbody tr:last-child .ranking-table__td {
    border-bottom: 0 !important;
}
.ranking-table__rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-weight: 600;
    color: #9a9590;
    font-size: 0.875rem;
}
.ranking-table__avatar {
    object-fit: cover;
    width: 36px;
    height: 36px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.footer-dark {
    background-color: #1c2b3a;
}

.footer-logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    letter-spacing: 0.72px;
    line-height: 1.2;
    margin: 0 0 1px 0;
}

.footer-logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.24px;
    line-height: 1.2;
    margin: 0;
}

.footer-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
    max-width: 280px;
}

.footer-col-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links li,
.footer-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

/* ─── Breadcrumbs */
.rank-math-breadcrumb p{
    color: #fff;
    margin-bottom: 0;
    display: flex;
    gap: 0.5rem;
}
.rank-math-breadcrumb a{
    text-decoration: none;
    color: #fff;
}