/* -- CSS Variables (Design System) --------------------------------------- */
:root {
    /* Surface colors */
    --success-bg: #f5f4ee;
    --cream: #f7f5cb;
    --yellow: #ffff99;

    /* Brand colors */
    --blue: #203c86;
    --blue-50: rgba(32, 60, 134, 0.51);
    --blue-28: rgba(32, 60, 134, 0.28);
    --cream-13: rgba(247, 245, 203, 0.13);

    /* Semantic / state colors */
    --green: #25d366;
    --red: #d9534f;

    /* Mapped aliases */
    --primary-color: var(--blue);
    --primary-hover: var(--blue-50);
    --accent-color: var(--green);
    --bg-light: var(--success-bg);
    --text-dark: var(--blue);
    --text-muted: var(--blue-50);
    --border-color: var(--blue-28);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(32, 60, 134, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(32, 60, 134, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(32, 60, 134, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(32, 60, 134, 0.1);

    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* -- Hero Section -------------------------------------------------------- */
.yurt-hero {
    background: linear-gradient(
        135deg,
        var(--blue) 0%,
        var(--blue-50) 50%,
        var(--blue) 100%
    );
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.yurt-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.yurt-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--success-bg);
}

.yurt-hero h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(32, 60, 134, 0.1);
    line-height: 1.3;
}

.yurt-hero .lead {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
}

.yurt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream-13);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--cream-13);
}

/* -- Breadcrumb ---------------------------------------------------------- */
.yurt-breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.yurt-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.yurt-breadcrumb .breadcrumb-item a {
    color: var(--blue-50);
    text-decoration: none;
    transition: color 0.2s;
}

.yurt-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.yurt-breadcrumb .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

.yurt-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--blue-28);
}

/* -- Cards (Unified) ----------------------------------------------------- */
.yurt-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.yurt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Features card keeps original cream background */
.yurt-card--features {
    background: var(--success-bg);
}

/* Highlight card for discount */
.yurt-card--highlight {
    background: linear-gradient(135deg, var(--cream), var(--yellow));
    border: 2px solid var(--green);
    position: relative;
}

.yurt-card--highlight::before {
    content: "🎉";
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.05;
    transform: rotate(-15deg);
    font-size: 8rem;
    pointer-events: none;
}

.yurt-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--blue-50));
    color: var(--success-bg);
    padding: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.yurt-card-body {
    padding: 2rem;
}

.yurt-card-body > p {
    color: var(--blue-50);
    margin-bottom: 1.5rem;
}

/* -- Feature List -------------------------------------------------------- */
.yurt-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yurt-features li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: background 0.2s;
}

.yurt-features li:last-child {
    border-bottom: none;
}

.yurt-features li:hover {
    background: var(--bg-light);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.yurt-features > li {
    color: var(--text-muted);
}

.yurt-features .icon {
    min-width: 1.5rem;
    text-align: center;
}

.yurt-features strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.yurt-features ul {
    margin-top: 0.5rem;
    padding-right: 1.5rem;
    list-style: none;
}

.yurt-features ul li {
    padding: 0.35rem 0;
    border: none;
    color: var(--text-muted);
}

.yurt-features ul li::before {
    content: "•";
    color: var(--accent-color);
    margin-left: 0.5rem;
}

/* -- University List ----------------------------------------------------- */
.yurt-universities {
    display: grid;
    gap: 1rem;
}

.yurt-uni-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--success-bg);
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.yurt-uni-item:hover {
    background: var(--cream);
    border-right-color: var(--green);
    transform: translateX(-4px);
}

.yurt-uni-name {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.yurt-uni-time {
    background: var(--primary-color);
    color: var(--success-bg);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

/* -- Tables -------------------------------------------------------------- */
.yurt-table-container {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.yurt-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.yurt-table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--blue));
    color: var(--success-bg);
    padding: 1.25rem 1rem;
    font-weight: 700;
    border: none;
    text-align: center;
}

.yurt-table thead th:first-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.yurt-table thead th:last-child {
    border-radius: var(--radius-md) 0 0 0;
}

.yurt-table tbody td {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.2s;
    background: #ffffff;
}

.yurt-table tbody tr:hover td {
    background: var(--bg-light);
}

.yurt-table tbody tr:last-child td {
    border-bottom: none;
}

.yurt-table tbody tr:last-child td:first-child {
    border-radius: 0 0 var(--radius-md) 0;
}

.yurt-table tbody tr:last-child td:last-child {
    border-radius: 0 0 0 var(--radius-md);
}

.yurt-price {
    font-weight: 700;
    color: var(--primary-color);
}

.yurt-price-cash {
    color: var(--accent-color);
}

/* -- Alert Box ----------------------------------------------------------- */
.yurt-alert {
    background: linear-gradient(135deg, var(--success-bg), var(--cream));
    border: 2px solid var(--blue);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
}

.yurt-alert h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yurt-alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yurt-alert li {
    padding: 0.75rem 0;
    color: var(--blue);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--blue-28);
}

.yurt-alert li:last-child {
    border-bottom: none;
}

/* -- CTA Section --------------------------------------------------------- */
.yurt-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--blue-50));
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    color: var(--success-bg);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.yurt-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--cream-13) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.yurt-cta h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.yurt-cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

/* -- Gallery ------------------------------------------------------------- */
.yurt-gallery {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.yurt-gallery-title {
    text-align: center;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

.yurt-gallery-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--green));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.yurt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.yurt-gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s;
    aspect-ratio: 4/3;
}

.yurt-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.yurt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.yurt-gallery-item:hover img {
    transform: scale(1.1);
}

.yurt-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(32, 60, 134, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: var(--success-bg);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.yurt-gallery-item:hover .yurt-gallery-overlay {
    transform: translateY(0);
}

.yurt-gallery-overlay h4 {
    font-weight: 600;
    margin: 0;
}

/* -- Lightbox ------------------------------------------------------------ */
.yurt-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 60, 134, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.yurt-lightbox.active {
    display: flex;
}

.yurt-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(32, 60, 134, 0.5);
}

.yurt-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--success-bg);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.yurt-lightbox-close:hover {
    opacity: 1;
}

/* -- Animations ---------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.3s;
}

/* -- Responsive ---------------------------------------------------------- */
@media (max-width: 768px) {
    .yurt-uni-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .yurt-gallery-grid {
        grid-template-columns: 1fr;
    }

    .yurt-table-container {
        overflow-x: auto;
    }
}
