﻿/* ===================================
   Pongpetch Driving School - Main CSS
   Matching original WordPress design
   =================================== */

/* ---------- Variables ---------- */
:root {
    --primary: #061757;
    --primary-rgb: 6, 23, 87;
    --secondary: #E52C48;
    --secondary-rgb: 229, 44, 72;
    --accent: #1bb0ce;
    --dark: #1A1A1A;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #FFFFFF;
    --text: #3b3b3b;
    --text-light: rgba(255,255,255,0.8);
    --gradient-hero: linear-gradient(135deg, #061757 0%, #0a2a8a 50%, #061757 100%);
    --gradient-primary: linear-gradient(135deg, #061757 0%, #0e3494 100%);
    --shadow: 0px 3px 30px #0000001C;
    --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 50px rgba(0,0,0,0.14);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 50px;
    --transition: all 0.3s ease;
    --font-thai: 'Prompt', 'Noto Sans Thai', sans-serif;
    --font-en: 'Work Sans', 'Prompt', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-thai);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 500; }

img { max-width: 100%; height: auto; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--secondary); }

.bg-light { background-color: #f9fafb !important; }

/* ---------- Sticky Header ---------- */
.sticky-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text);
}

.top-bar a { color: var(--text); text-decoration: none; }
.top-bar a:hover { color: var(--secondary); }

.top-bar .social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    color: var(--primary); font-size: 0.95rem;
    transition: var(--transition);
}
.top-bar .social-icons a:hover { color: var(--secondary); }

/* ---------- Navbar ---------- */
#mainNavbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0; z-index: 1040;
    transition: var(--transition);
}

.navbar-brand img { transition: var(--transition); max-height: 50px; }

.navbar-brand-name {
    font-size: 0.95rem; font-weight: 600;
    color: var(--primary); line-height: 1.25;
    vertical-align: middle;
    margin-left: 0.4rem;
    display: inline-block;
    max-width: 160px;
    white-space: normal;
    line-height: 1.2;
}
@media (max-width: 400px) {
    .navbar-brand-name { font-size: 0.72rem; max-width: 120px; }
}
@media (min-width: 401px) and (max-width: 767.98px) {
    .navbar-brand-name { font-size: 0.8rem; max-width: 140px; }
}
@media (min-width: 768px) {
    .navbar-brand-name { font-size: 0.95rem; max-width: 220px; white-space: nowrap; }
}

/* Mobile (collapsed): toggler LEFT — brand CENTER — [slot for user's button] RIGHT */
@media (max-width: 991.98px) {
    #mainNavbar .container {
        flex-direction: row;
        align-items: center;
    }
    #mainNavbar .navbar-toggler {
        order: 1;
        margin-right: 0;
    }
    #mainNavbar .navbar-brand {
        order: 2;
        margin: 0 auto;
    }
    /* slot order 3 = user's button on the right */
}

/* LG range (992–1199px): tighten nav links to prevent cramping */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-link { padding: 0.9rem 0.45rem !important; font-size: 0.8rem; }
    .nav-link.active:not(.dropdown-toggle) { padding-bottom: calc(0.9rem - 3px) !important; }
    .btn-map-nav { font-size: 0.78rem; padding: 0.4rem 0.7rem !important; margin-left: 0.15rem; }
    .navbar-brand-name { font-size: 0.78rem; max-width: 110px; white-space: normal; line-height: 1.2; }
}

/* XL range (1200–1399px): slight tightening */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-link { padding: 1rem 0.6rem !important; font-size: 0.88rem; }
    .nav-link.active:not(.dropdown-toggle) { padding-bottom: calc(1rem - 3px) !important; }
    .btn-map-nav { font-size: 0.82rem; padding: 0.45rem 0.9rem !important; margin-left: 0.25rem; }
    .navbar-brand-name { font-size: 0.82rem; max-width: 120px; white-space: normal; line-height: 1.2; }
}

.nav-link {
    font-weight: 400;
    padding: 1.2rem 0.9rem !important;
    color: var(--text) !important;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active { color: var(--secondary) !important; }

.nav-link.active:not(.dropdown-toggle) {
    border-bottom: 3px solid var(--secondary);
    padding-bottom: calc(1.2rem - 3px) !important;
}

.btn-map-nav {
    background: var(--primary) !important; color: var(--white) !important;
    border-radius: var(--radius-sm) !important; padding: 0.55rem 1.3rem !important;
    margin-left: 0.5rem; font-weight: 400; border: none;
    transition: var(--transition); position: relative; overflow: hidden;
    white-space: nowrap;
}

/* Mobile map button: always visible on right */
.btn-map-nav-mobile {
    order: 3;
    display: none;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.82rem;
    margin-left: auto;
}
@media (max-width: 991.98px) {
    .btn-map-nav-mobile { display: inline-flex; align-items: center; }
}

.btn-map-nav::before {
    content: ''; position: absolute; inset: 0;
    background: var(--secondary); transform: scaleX(0);
    transform-origin: right; transition: transform 0.4s ease; z-index: 0;
}

.btn-map-nav:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-map-nav span { position: relative; z-index: 1; }
.btn-map-nav:hover { color: var(--white) !important; box-shadow: 0 8px 25px rgba(var(--secondary-rgb),0.4); }

.dropdown-menu {
    border: none; box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm); padding: 0.5rem;
}

.dropdown-item { border-radius: 8px; padding: 0.6rem 1rem; font-weight: 300; }
.dropdown-item:hover { background: rgba(var(--primary-rgb),0.05); color: var(--secondary); }

#mainNavbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0 5rem;
}

/* Background photo */
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../images/home/pongphet-driving-school-aerial-view-students.jpg') center 40% / cover no-repeat;
    transform: scale(1.04);
    z-index: 0;
}

/* Dark gradient overlay for text readability */
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6,23,87,0.80) 0%,
        rgba(6,23,87,0.65) 50%,
        rgba(229,44,72,0.30) 100%
    );
    z-index: 1;
}

/* Content sits above overlay */
.hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Wave cutout at bottom */
.hero-wave {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; z-index: 3;
    line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: 72px; }

.hero-title {
    font-size: 2.8rem; font-weight: 600; color: var(--white);
    line-height: 1.3; margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-tagline {
    color: rgba(255,255,255,0.85); font-size: 1.05rem;
    line-height: 1.8; max-width: 640px; margin-bottom: 0;
}

.hero-actions { margin-top: 2rem; }

.hero-contact-link {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-size: 0.95rem; transition: color 0.2s;
}
.hero-contact-link:hover { color: #fff; }
.hero-contact-link i { color: var(--secondary); }

.hero-image-wrapper { position: relative; text-align: center; }
.hero-img { max-height: 420px; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Decorative shapes in hero */
.deco-circle {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
}
.deco-circle-1 { width: 150px; height: 150px; top: 10%; right: 5%; border-color: rgba(var(--secondary-rgb),0.25); }
.deco-circle-2 { width: 80px; height: 80px; bottom: 20%; right: 15%; background: rgba(var(--secondary-rgb),0.1); border: none; }
.deco-dots {
    position: absolute; width: 60px; height: 60px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 12px 12px;
}

/* ---------- Section Labels ---------- */
.section-en-label {
    font-family: var(--font-en); font-size: 0.85rem; font-weight: 600;
    color: var(--secondary); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 0.1rem; display: block;
}

.section-divider {
    width: 50px; height: 3px;
    background: var(--secondary);
    margin: 0.3rem 0; border-radius: 3px;
}

.section-divider.center { margin: 0.3rem auto; }

.section-title {
    font-size: 2rem; font-weight: 500; color: var(--primary);
    margin-bottom: 0.5rem; line-height: 1.4;
}
.section-title.white { color: var(--white); }

.section-subtitle {
    font-size: 1.2rem; font-weight: 300; color: var(--gray); margin-bottom: 1rem;
}

.section-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb),0.08);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 0.75rem; font-family: var(--font-en);
}

/* ---------- Welcome / About Section ---------- */
.about-image-wrapper {
    position: relative; border-radius: var(--radius); overflow: visible;
}

.about-image-wrapper img {
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute; bottom: -15px; left: -15px;
    background: var(--primary); color: var(--white);
    width: 120px; height: 120px; border-radius: var(--radius);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); z-index: 2;
}

.about-badge .number { font-size: 2.8rem; font-weight: 700; line-height: 1; }
.about-badge .label { font-size: 0.85rem; font-weight: 300; }

.phone-highlight { font-size: 1rem; font-weight: 300; color: var(--text); margin-top: 1.5rem; }
.phone-highlight .numbers { display: block; font-size: 1.2rem; font-weight: 500; color: var(--secondary); }

.feature-mini {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem; background: rgba(var(--primary-rgb),0.05);
    border-radius: var(--radius-sm); font-weight: 400;
}

/* ---------- Course Cards ---------- */
.course-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow);
    transition: var(--transition); position: relative;
    overflow: hidden; border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.course-card.featured { border-color: var(--secondary); }

.course-badge {
    position: absolute; top: 1rem; right: -2rem;
    background: var(--secondary); color: var(--white);
    padding: 0.25rem 3rem; font-size: 0.8rem;
    font-weight: 500; transform: rotate(45deg);
}

.course-icon {
    width: 70px; height: 70px;
    background: rgba(var(--primary-rgb),0.08);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary);
    margin-bottom: 1.25rem;
}

.course-card-title { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.75rem; color: var(--primary); }

.course-features { list-style: none; padding: 0; margin: 1rem 0; }
.course-features li { padding: 0.35rem 0; font-size: 0.95rem; font-weight: 300; }

.course-price { font-size: 1rem; color: var(--gray); padding-top: 1rem; border-top: 1px solid #eee; font-weight: 300; }
.course-price .price { font-size: 1.8rem; font-weight: 600; color: var(--secondary); }

/* ---------- Portfolio / Courses Grid ---------- */
.portfolio-section {
    background: var(--gradient-hero); padding: 5rem 0;
    position: relative; overflow: hidden;
}

.portfolio-section::before {
    content: ''; position: absolute;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: 20px; left: -50px;
}

.portfolio-card {
    position: relative; border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
    display: block;
}

.portfolio-card:hover { transform: translateY(-8px); }

.portfolio-card .portfolio-img {
    width: 100%; height: 350px; object-fit: cover; transition: var(--transition);
}

.portfolio-card:hover .portfolio-img { transform: scale(1.05); }

.portfolio-card .portfolio-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(var(--primary-rgb),0.85) 0%, rgba(var(--primary-rgb),0) 100%);
    padding: 3rem 1.5rem 1.5rem; transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(0deg, rgba(var(--secondary-rgb),0.85) 0%, rgba(var(--secondary-rgb),0) 100%);
}

.portfolio-card .portfolio-title { color: var(--white); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.25rem; }
.portfolio-card .portfolio-cat { color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 300; }

/* ---------- Why Cards ---------- */
.why-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow); transition: var(--transition);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.why-icon {
    width: 75px; height: 75px;
    background: var(--gradient-primary); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--white);
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb),0.4);
    transition: var(--transition);
}
.why-card:hover .why-icon {
    background: var(--secondary);
    box-shadow: 0 8px 25px rgba(var(--secondary-rgb),0.4);
}
.why-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }

@media (max-width: 575.98px) {
    .why-card { padding: 1.1rem 0.75rem; }
    .why-icon { width: 52px; height: 52px; font-size: 1.4rem; margin-bottom: 0.75rem; }
    .why-title { font-size: 0.82rem; margin-bottom: 0; }
}

/* ---------- Branch Cards ---------- */
.branch-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow);
    transition: var(--transition); position: relative;
    border-left: 4px solid var(--primary);
}

.branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-left-color: var(--secondary); }

.branch-number {
    position: absolute; top: -12px; right: 1.5rem;
    background: var(--primary); color: var(--white);
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 1rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--gradient-hero); position: relative; overflow: hidden;
}

.cta-section::before {
    content: ''; position: absolute;
    width: 250px; height: 250px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -80px; right: -50px;
}

.cta-bar {
    background: var(--white); border-radius: var(--radius);
    padding: 2.5rem 3rem; box-shadow: var(--shadow-lg);
    margin-top: -3rem; position: relative; z-index: 10;
}

/* ---------- Contact Links ---------- */
.contact-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; background: var(--white);
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    color: var(--text); text-decoration: none; transition: var(--transition);
}
.contact-link:hover { transform: translateX(5px); box-shadow: var(--shadow-md); color: var(--secondary); }
.contact-link i { font-size: 1.5rem; color: var(--primary); }

/* ---------- Page Banner ---------- */
.page-banner {
    background: var(--gradient-hero);
    padding: 4rem 0 3rem; text-align: center;
    color: var(--white); position: relative; overflow: hidden;
}

.page-banner::before {
    content: ''; position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(var(--secondary-rgb),0.08);
    top: -100px; right: -100px;
}

.page-banner h1 { font-size: 2.5rem; font-weight: 500; }

.page-banner .breadcrumb { background: none; margin-bottom: 0; justify-content: center; }
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---------- Map Section ---------- */
.map-section { position: relative; }
.map-section iframe { width: 100%; min-height: 450px; border: none; display: block; }
.map-wrapper iframe { width: 100%; min-height: 350px; }

/* ---------- Benefit Cards ---------- */
.benefit-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow);
    transition: var(--transition); position: relative;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.benefit-number {
    position: absolute; top: -10px; left: 1.5rem;
    background: var(--gradient-primary); color: var(--white);
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 1.1rem;
}

/* ---------- Process Steps ---------- */
.step-item { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid #eee; }
.step-item:last-child { border-bottom: none; }

.step-number {
    flex-shrink: 0; width: 45px; height: 45px;
    background: var(--gradient-primary); color: var(--white);
    border-radius: var(--radius-sm); display: flex;
    align-items: center; justify-content: center;
    font-weight: 500; font-size: 1.1rem;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative; border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
}
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--primary) 0%, rgba(var(--primary-rgb),0) 100%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- FAQ Accordion ---------- */
.accordion-item {
    border: none; border-radius: var(--radius-sm) !important;
    margin-bottom: 0.75rem; box-shadow: var(--shadow); overflow: hidden;
}

.accordion-button { font-size: 1rem; padding: 1.25rem; background: var(--white); font-weight: 400; }
.accordion-button:not(.collapsed) { background: rgba(var(--primary-rgb),0.05); color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-body { padding: 1.25rem; line-height: 1.8; font-weight: 300; }

/* ---------- Tabs (Course page) ---------- */
.nav-tabs-custom .nav-link {
    padding: 1rem 1.25rem !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: rgba(var(--primary-rgb),0.6);
    color: var(--white) !important; font-weight: 400; border: none; text-align: center;
}
.nav-tabs-custom .nav-link.active { background: var(--secondary) !important; color: var(--white) !important; }

.tab-content-custom {
    background: var(--white); border-radius: 0 0 var(--radius) var(--radius);
    padding: 2rem; box-shadow: var(--shadow);
}

/* ---------- Why Section (immediately after hero) ---------- */
.why-section {
    position: relative;
    z-index: 5;
    margin-top: -3px;
    background: var(--white);
}

.stat-item { padding: 1rem; }
.stat-number { font-size: 2.5rem; font-weight: 600; color: var(--primary); line-height: 1; }
.stat-label { color: var(--gray); font-size: 0.85rem; margin-top: 0.25rem; font-weight: 300; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark); color: var(--white);
    padding: 4rem 0 2rem; position: relative; overflow: hidden;
}

.site-footer::before {
    content: ''; position: absolute;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.02);
    bottom: -50px; left: -50px;
}

.site-footer::after {
    content: ''; position: absolute;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,0.02);
    top: 30px; right: -30px;
}

.footer-logo { max-height: 55px; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; font-weight: 300; }
.footer-text { color: rgba(255,255,255,0.55); font-weight: 300; font-size: 0.95rem; line-height: 1.8; }

.footer-heading {
    color: var(--white); font-size: 1.1rem; font-weight: 500;
    margin-bottom: 1.25rem; position: relative; padding-bottom: 0.75rem;
}
.footer-heading::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 35px; height: 3px;
    background: var(--secondary); border-radius: 3px;
}

/* Compat for old footer-title */
.footer-title {
    color: var(--white); font-weight: 500;
    margin-bottom: 1.25rem; position: relative; padding-bottom: 0.75rem;
}
.footer-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 35px; height: 3px;
    background: var(--secondary); border-radius: 3px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.55); text-decoration: none;
    transition: var(--transition); font-size: 0.95rem; font-weight: 300;
}
.footer-links a:hover { color: var(--white); padding-left: 5px; }

.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li {
    display: flex; gap: 0.75rem; margin-bottom: 1rem;
    color: rgba(255,255,255,0.55); font-size: 0.95rem; font-weight: 300;
}
.footer-contact-list li i { color: var(--secondary); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.55); }
.footer-contact-list a:hover { color: var(--white); }

/* Compat for old footer-contact */
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex; gap: 0.75rem; margin-bottom: 1rem;
    color: rgba(255,255,255,0.55); font-size: 0.95rem; font-weight: 300;
}
.footer-contact li i { color: var(--secondary); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem; padding-top: 1.5rem; text-align: center;
}
.footer-bottom small { color: rgba(255,255,255,0.35); font-weight: 300; }

.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: rgba(255,255,255,0.08);
    border-radius: 50%; color: var(--white); font-size: 1.1rem; transition: var(--transition);
}
.social-links a:hover { background: var(--secondary); transform: translateY(-3px); }

/* ---------- Floating Buttons (Chaty style) ---------- */
.floating-chat { position: fixed; bottom: 25px; right: 25px; z-index: 1030; }

.chat-trigger {
    width: 52px; height: 52px; border-radius: 50%;
    background: #FF6060; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer; border: none;
    box-shadow: 0 4px 18px rgba(255,96,96,0.5);
    transition: var(--transition);
    position: relative; z-index: 2;
}

.chat-trigger.active { background: var(--dark); transform: rotate(45deg); }

.chat-channels {
    position: absolute; bottom: 65px; right: 0;
    display: flex; flex-direction: column; gap: 0.6rem;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition);
}

.chat-channels.show { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25); transition: var(--transition);
    text-decoration: none; position: relative;
}

.chat-btn:hover { transform: scale(1.12); color: var(--white); }

.chat-btn .chat-tooltip {
    position: absolute; right: 55px; top: 50%; transform: translateY(-50%);
    background: var(--white); color: var(--text); padding: 0.3rem 0.75rem;
    border-radius: 8px; font-size: 0.8rem; white-space: nowrap;
    box-shadow: var(--shadow); opacity: 0; transition: var(--transition);
    pointer-events: none;
}

.chat-btn:hover .chat-tooltip { opacity: 1; }

.chat-phone { background: #03E78B; }
.chat-messenger { background: #1E88E5; }
.chat-line { background: #38B900; }

/* Legacy floating buttons support */
.floating-buttons {
    position: fixed; bottom: 25px; right: 25px;
    display: flex; flex-direction: column; gap: 0.6rem; z-index: 1030;
}

.float-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition); text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); color: var(--white); }
.float-phone { background: #03E78B; }
.float-messenger { background: #1E88E5; }
.float-line { background: #38B900; }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 1.5rem; left: 1.5rem;
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--primary); color: var(--white); border: none;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
    z-index: 1030; cursor: pointer; box-shadow: var(--shadow);
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); box-shadow: 0 8px 25px rgba(var(--secondary-rgb),0.4); transform: translateY(-3px); }

/* ---------- Sticky Sidebar ---------- */
.sticky-sidebar { position: sticky; top: 100px; }

/* ---------- Buttons Override ---------- */
.btn-primary {
    background: var(--primary); border-color: var(--primary);
    border-radius: var(--radius-sm); padding: 0.65rem 1.5rem;
    font-weight: 400; transition: var(--transition);
    position: relative; overflow: hidden;
}

.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--secondary); transform: scaleX(0);
    transform-origin: right; transition: transform 0.4s ease; z-index: 0;
}

.btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }
.btn-primary:hover {
    background: var(--secondary); border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(var(--secondary-rgb),0.4);
}

.btn-outline-primary {
    border-radius: var(--radius-sm); padding: 0.65rem 1.5rem;
    font-weight: 400; border-width: 2px;
    color: var(--primary); border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 8px 25px rgba(var(--primary-rgb),0.4); }

.btn-outline-light { border-radius: var(--radius-sm); padding: 0.65rem 1.5rem; font-weight: 400; border-width: 2px; }
.btn-outline-light:hover { box-shadow: 0 4px 15px rgba(255,255,255,0.2); }

.btn-secondary-custom {
    background: var(--secondary); border: none; color: var(--white);
    border-radius: var(--radius-sm); padding: 0.65rem 1.5rem;
    font-weight: 400; transition: var(--transition);
}
.btn-secondary-custom:hover { background: var(--primary); color: var(--white); }

.btn-success {
    border-radius: var(--radius-sm); padding: 0.65rem 1.5rem;
    font-weight: 400; background: #06C755; border-color: #06C755;
}
.btn-success:hover { background: #05a847; border-color: #05a847; box-shadow: 0 4px 15px rgba(6,199,85,0.3); }

.btn-light { border-radius: var(--radius-sm); padding: 0.65rem 1.5rem; font-weight: 400; }
.btn-lg { padding: 0.55rem 1.4rem !important; font-size: 0.95rem !important; }

/* ---------- Form Styles ---------- */
.form-control, .form-select {
    border-radius: var(--radius-sm); border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem; transition: var(--transition); font-weight: 300;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb),0.15); }

/* ---------- Spacing Override (tighten Bootstrap defaults) ---------- */
.py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.pt-5 { padding-top: 1.5rem !important; }
.pb-5 { padding-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 1.1rem !important; }
.mt-5 { margin-top: 1.1rem !important; }
.g-5  { --bs-gutter-x: 1.5rem !important; --bs-gutter-y: 1.5rem !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding: 3rem 0 4rem; min-height: 70vh; }
    .section-title { font-size: 1.6rem; }

    .navbar-collapse {
        background: var(--white); padding: 1rem;
        border-radius: var(--radius); margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-link.active:not(.dropdown-toggle) { border-bottom: none; padding-bottom: 0.75rem !important; }
    .nav-link { padding: 0.75rem 1rem !important; }

    .btn-map-nav { margin-left: 0; margin-top: 0.5rem; text-align: center; display: block; }

    .about-badge { width: 100px; height: 100px; bottom: -10px; left: -10px; }
    .about-badge .number { font-size: 2rem; }

    .portfolio-card .portfolio-img { height: 280px; }
    .cta-bar { padding: 1.5rem; margin-top: -2rem; }
}

@media (max-width: 767.98px) {
    .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .pt-5 { padding-top: 1.5rem !important; }
    .pb-5 { padding-bottom: 1.5rem !important; }
    .mb-5 { margin-bottom: 1.1rem !important; }
    .g-4  { --bs-gutter-x: 0.85rem !important; --bs-gutter-y: 0.85rem !important; }

    .hero-title { font-size: 1.7rem; }
    .hero-section { min-height: 60vh; padding: 2.5rem 0 3.5rem; }
    .hero-wave svg { height: 48px; }
    .section-title { font-size: 1.4rem; }
    .portfolio-card .portfolio-img { height: 250px; }
    .page-banner { padding: 3rem 0 2rem; }
    .page-banner h1 { font-size: 1.8rem; }
    .tab-content-custom { padding: 1rem; }
    .stat-number { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.55rem; }
    .hero-section { min-height: 55vh; }

    /* Course card: horizontal on mobile */
    .course-card {
        padding: 0.9rem 1rem;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0;
    }
    .course-icon {
        width: 44px; height: 44px;
        font-size: 1.1rem;
        margin-bottom: 0;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }
    .course-card-title {
        flex: 1;
        font-size: 1rem;
        margin-bottom: 0;
        align-self: center;
    }
    .course-card > p.text-muted {
        width: 100%;
        font-size: 0.78rem;
        margin-top: 0.3rem;
        margin-bottom: 0;
        padding-left: calc(44px + 0.75rem);
    }
    .course-features { width: 100%; padding-left: calc(44px + 0.75rem); margin: 0.4rem 0 0; }
    .course-features li { padding: 0.2rem 0; font-size: 0.82rem; }
    .course-price {
        width: 100%;
        border-top: 1px solid #eee;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        font-size: 0.85rem;
    }
    .course-price .price { font-size: 1.4rem; }
    .course-card > a.btn { width: 100%; margin-top: 0.6rem !important; }
    .course-badge { top: 0.5rem; right: -1rem; font-size: 0.65rem; padding: 0.2rem 1.2rem; }

    /* Branch card: horizontal on mobile */
    .branch-card {
        padding: 0.9rem 1rem;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .branch-number {
        position: static;
        width: 36px; height: 36px;
        border-radius: 8px;
        font-size: 1rem;
        margin-right: 0.75rem;
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: center;
    }
    .branch-card h4 {
        flex: 1;
        font-size: 1rem;
        margin-bottom: 0;
        align-self: center;
    }
    .branch-card > p {
        width: 100%;
        font-size: 0.82rem;
        margin-top: 0.35rem;
        padding-left: calc(36px + 0.75rem);
    }
    .floating-chat { bottom: 15px; right: 15px; }
    .chat-trigger { width: 46px; height: 46px; font-size: 1.3rem; }
    .chat-btn { width: 40px; height: 40px; font-size: 1.1rem; }
    .floating-buttons { bottom: 15px; right: 15px; }
    .float-btn { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ---------- Print ---------- */
@media print {
    .top-bar, #mainNavbar, .floating-chat, .floating-buttons, .back-to-top, .cta-section, .hero-social { display: none !important; }
    .site-footer { background: var(--white); color: var(--text); }
    .hero-section { min-height: auto; padding: 2rem 0; }
    .hero-section::before, .hero-section::after { display: none; }
    .hero-title { color: var(--text) !important; }
}

/* ---------- Footer Utility Classes (centralized from inline styles) ---------- */
.footer-owner { font-size: 0.85rem; color: rgba(255,255,255,0.35); }
.footer-chevron { font-size: 0.7rem; }
