/*
 * Shared styles for site templates: basic, secondary, general, tertiary, fashion.
 * Loaded before each layout's own <style> so template-specific rules still win.
 */

[x-cloak] {
    display: none !important;
}

.logo-text {
    display: flex;
    flex-direction: column;
    max-width: 270px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px !important;
}

.nav-links.active {
    right: 0;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
}

.nav-backdrop.active {
    display: block;
}

.footer-links {
    list-style: none;
}

/* ── Section headers (basic / general) ── */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
}

.section-header p {
    color: var(--dark-gray);
    max-width: 700px;
    margin: 24px auto 0;
    font-size: 1.2rem;
}

/* ── Gallery (basic / general; tertiary overrides item/grid/overlay) ── */
.gallery-section {
    background-color: var(--white);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 24px;
    background-color: var(--light-color);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    height: 280px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.view-all-gallery {
    text-align: center;
    margin-top: 60px;
}

/* ── Testimonials (basic / secondary / tertiary) ── */
.testimonials {
    padding: 100px 24px;
    background: var(--secondary-color);
    overflow: hidden;
    position: relative;
}

.testi-circle-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(232, 160, 32, .15);
}

.testi-circle-2 {
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
}

.testi-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testi-eyebrow {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.testi-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 48px;
}

.quote-mark {
    font-size: 72px;
    color: #fff;
    line-height: .6;
    margin-bottom: 28px;
    font-family: Georgia, serif;
}

.testi-quote {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, .88);
    line-height: 1.8;
    font-style: italic;
    margin: 0 auto 36px;
    max-width: 680px;
    animation: fadeInUp .5s ease forwards;
}

.testi-person {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testi-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    background-color: var(--seondary-color);
}

.testi-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    text-align: left;
}

.testi-role {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    text-align: left;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars span {
    color: #e8a020;
}

.testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.testi-dots button {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: all .4s ease;
}

.testi-dots button.active {
    width: 24px;
    background: pink;
}

/* ── E-learning cards (secondary / tertiary; fashion overrides) ── */
.elearning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.elearning-card {
    padding: 36px 28px;
    transition: var(--transition, var(--t));
    position: relative;
    overflow: hidden;
}

.elearning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition, var(--t));
}

.elearning-card:hover {
    transform: translateY(-4px);
}

.elearning-card:hover::before {
    transform: scaleX(1);
}

.elearning-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.elearning-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.elearning-card p {
    font-size: 0.9rem;
    line-height: 1.65;
}

.elearning-card .btn {
    margin-top: 20px;
}

/* ── Floating contact (basic / general; secondary overrides) ── */
.contact-callout {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.contact-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: none;
}

.contact-toggle:hover {
    transform: scale(1.1);
}

.contact-info {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    background-color: var(--light-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-panel {
    background-color: var(--white);
    position: absolute;
    right: 0;
    display: none;
}

/* ── Buttons shared by basic / general ── */
.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.welcome-image img {
    width: 100%;
    display: block;
}

.gallery-item > a.glightbox,
a.gallery-item.glightbox {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.work-card > a.glightbox {
    position: absolute;
    inset: 0;
    z-index: 3;
}
