@charset "UTF-8";

/* ปุ่มขอบฟ้าสว่างสไตล์เรฟเฟอเรนซ์ */
        .btn-outline-cyan {
            color: #00a8ff;
            border: 2px solid #00a8ff;
            background-color: transparent;
            transition: all 0.3s ease;
        }
        .btn-outline-cyan:hover {
            color: #ffffff;
            background-color: #00a8ff;
        }
        /* ขยายขนาดไอคอนในการ์ดคู่มือ */
        .manual-icon {
            font-size: 4.5rem;
            margin-bottom: 1rem;
        }
:root {
    --msu-blue: #002244;    
    --msu-sky: #00AEEF;     
    --msu-yellow: #FFC107;  
    --bg-light: #EBF2F6; /* เปลี่ยนสีพื้นหลังตัวแปรให้เข้มขึ้นนิดนึง อมฟ้าเทา */    
    --text-main: #334155;
    --text-muted: #64748B;
    --white: #ffffff;
}

body {
    font-family: 'Kanit', sans-serif;
    /* ใช้สีพื้นหลังแบบไล่เฉดสีฟ้าอ่อนๆ ทั้งเว็บให้ดูมีมิติ และสบายตา */
    background: linear-gradient(135deg, #F4F7F9 0%, #E3EDF4 100%);
    background-attachment: fixed; /* ทำให้พื้นหลังอยู่กับที่ตอนไถหน้าจอ ดูหรูขึ้น */
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ล้างสีพื้นหลังคลาส bg-light ของ Bootstrap ออก เพื่อให้เห็นสี Gradient ของเว็บเรา */
.bg-light {
    background-color: transparent !important;
}
/* --- Navbar --- */
.navbar {
    background: var(--white) !important;
    border-bottom: 5px solid var(--msu-yellow);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nav-link {
    color: var(--text-main) !important;
    font-weight: 400;
    margin: 0 10px;
    transition: all 0.3s ease;
}
.nav-link:hover { color: var(--msu-sky) !important; transform: translateY(-2px); }

/* --- Hero Section --- */
.hero-wrapper {
    background: linear-gradient(135deg, var(--msu-blue) 0%, #004080 100%);
    padding-top: 40px;
    padding-bottom: 150px; 
    border-radius: 0 0 50px 50px; 
    position: relative;
}
.hero-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 10%, rgba(0, 174, 239, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    padding: 20px;
}

/* --- Overlapping Cards --- */
.relative-overlap {
    margin-top: -100px; 
    position: relative;
    z-index: 10;
}

.modern-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.modern-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 174, 239, 0.15);
}
.modern-card h4 {
    transition: color 0.3s ease;
}
.modern-card:hover h4 {
    color: var(--msu-sky) !important;
}

.card-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}
.bg-light-blue { background: rgba(0, 174, 239, 0.1); }
.bg-warning-light { background: rgba(255, 193, 7, 0.15); }
.bg-light-purple { background: rgba(111, 66, 193, 0.1); }
.text-purple { color: #6f42c1; }

.desc-text {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
}

/* --- App Store Style Manual Cards --- */
.app-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
}
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 174, 239, 0.1) !important;
    border-color: #cbd5e1;
}
.btn-manual {
    transition: all 0.2s ease;
    opacity: 0.85;
}
.btn-manual:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* --- Location Design --- */
.modern-wrapper {
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}
.nav-pills .nav-link { color: var(--text-muted); }
.nav-pills .nav-link.active {
    background-color: var(--msu-sky) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

/* SSID Badge Group */
.ssid-badge-group {
    background: #F1F5F9;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}
.badge-primary { background-color: var(--msu-sky); color: white; }
.badge-success { background-color: #28a745; color: white; }
.badge-purple { background-color: #6f42c1; color: white; }
.ssid-badge-group .badge {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 5px;
    padding: 8px 15px;
    border-radius: 50px;
}

/* Location List Columns */
.location-list {
    column-count: 1;
    column-gap: 30px;
    list-style: none;
    padding-left: 0;
}
@media (min-width: 768px) { .location-list { column-count: 2; } }
@media (min-width: 992px) { .location-list { column-count: 3; } }

.location-list li {
    margin-bottom: 15px;
    break-inside: avoid;
    background: var(--white);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.location-list li i {
    margin-right: 12px;
}

/* --- Support Banner --- */
.support-banner {
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="%2300AEEF"/><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    box-shadow: 0 20px 40px rgba(0, 174, 239, 0.2);
}

.grayscale { filter: grayscale(100%); }

/* =======================================================
   Responsive Design: รองรับทุกอุปกรณ์ (Mobile, Tablet, PC)
   (โค้ดส่วนนี้ห้ามลบเด็ดขาด เพราะเป็นตัวคุมมือถือครับ)
   ======================================================= */

.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-img:hover { transform: translateY(-10px) scale(1.02); }

/* สำหรับหน้าจอคอมพิวเตอร์และโน้ตบุ๊ก (จอใหญ่) */
@media (min-width: 992px) {
    .hero-slide-content {
        min-height: 650px;
        display: flex;
        align-items: center;
    }
    .phone-hero { 
        max-height: 480px; 
        width: auto;
    }
    .mac-hero { 
        max-height: 380px; 
        width: auto;
    }
}

/* สำหรับโทรศัพท์มือถือ และแท็บเล็ต (จอเล็ก) */
@media (max-width: 991px) {
    .hero-slide-content {
        min-height: auto; 
        padding-top: 30px;
        padding-bottom: 30px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-slide-content > .row {
        width: auto !important;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-slide-content .col-lg-6,
    .hero-slide-content .col-lg-8 {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .hero-slide-content h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-slide-content .lead {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .phone-hero, .mac-hero {
        max-height: 250px; 
        margin-top: 30px;
        width: auto;
    }

    .hero-wrapper {
        padding-bottom: 120px; 
        border-radius: 0 0 30px 30px; 
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }
}
html {
    scroll-behavior: smooth; /* ทำให้เวลาคลิกเมนูแล้วมันค่อยๆ เลื่อนสมูทๆ */

/* ชดเชยระยะเวลากดเมนู ไม่ให้ Navbar บังหัวข้อ */
    scroll-behavior: smooth; /* ทำให้รูดสมูท */
    scroll-padding-top: 100px; /* ระยะที่ให้เว้นไว้ (กะให้พอดีกับความสูงของ Navbar) */
}
