/* Thailand Visum - Custom Styles */
/* Font: Roboto */

:root {
    --accent-1: #2E8B57;
    --accent-2: #D32F2F;
    --links: #721730;
    --links-hover: #FCCA1D;
    --button-bg: #098957;
    --button-text: #fff;
    --top-menu-bg: #7E1935;
    --top-menu-links: #fff;
    --footer-bg: #7E1935;
    --footer-text: #fff;
    --footer-links: #fff;
    --accordion-bg: #7E1935;
    --accordion-text: #fff;
    --icons: #7E1935;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Typography */
h1 {
    font-weight: 700;
    color: var(--accent-1);
}

h2 {
    font-weight: 600;
    color: var(--accent-1);
    line-height: 1.7;
}

h3 {
    font-weight: 500;
    color: var(--accent-1);
    line-height: 1.7;
}

h4 {
    font-weight: 400;
    color: var(--accent-1);
}

h5 {
    font-weight: 300;
    color: var(--accent-1);
}

p {
    line-height: 1.7;
}

/* Links */
a {
    color: var(--links);
    text-decoration: none;
}

a:hover {
    color: var(--links-hover);
}

/* Header Styles */
.top-header {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #fff;
}

.logo {
    max-width: 280px !important;
    max-height: 110px !important;
    height: auto;
}

.contact-info a:hover {
    color: var(--links-hover) !important;
}

/* Navigation Styles */
.main-nav {
    min-height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--links-hover) !important;
    transform: translateY(-1px);
}

/* Mega Menu Styles */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 2rem;
    margin-top: 0;
    z-index: 1050;
}

.mega-menu-title {
    color: var(--accent-1);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    color: #333;
    border: none;
    background: none;
}

.mega-menu .dropdown-item:hover {
    color: var(--links-hover);
    background: rgba(252, 202, 29, 0.1);
}

/* Apply Button in Navbar */
.navbar-btn {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: var(--button-text);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.navbar-btn:hover {
    background-color: var(--links-hover);
    border-color: var(--links-hover);
    color: #000;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    background: none;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--links);
}

.breadcrumb-item a:hover {
    color: var(--links-hover);
}

.breadcrumb-item.active {
    color: var(--accent-1);
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        height: auto;
    }
    
    .hero-content {
        min-width: auto;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .row {
        flex-direction: column;
    }
}

/* Desktop Hero Content Width */
@media (min-width: 992px) {
    .hero-content {
        min-width: 1000px;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
    margin-bottom: 1.5rem;
}



.section-primary {
    background-color: var(--accent-1);
    color: white;
}

.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4,
.section-primary h5 {
    color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: var(--button-text);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--links-hover);
    border-color: var(--links-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-apply {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: var(--button-text);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
}

.btn-apply:hover {
    background-color: var(--links-hover);
    border-color: var(--links-hover);
    color: #000;
}

/* Pulse Animation for Apply Buttons */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(252, 202, 29, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(252, 202, 29, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(252, 202, 29, 0);
    }
}

/* Tiles/Cards */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--icons);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--accent-1);
    margin-bottom: 1rem;
}

.tile p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Accordions */
.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--accordion-bg);
}

.accordion-button {
    background-color: var(--accordion-bg);
    color: var(--accordion-text);
    font-weight: 500;
    border: none;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-1);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
}

/* Lists */
.list-numbered {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.list-numbered li {
    display: block;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.list-numbered li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-1);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

ul.list-styled li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-1);
}

/* Images */
.img-fluid {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Tables */
.table {
    font-size: 16px;
}

.table thead th {
    background-color: var(--accent-1);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(46, 139, 87, 0.1);
}

/* Icons */
.fas, .far, .fab {
    color: var(--icons);
}

/* Footer */
.footer {
    margin-top: 0px !important;
}

.footer h5 {
    color: white !important;
    font-weight: 600;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--links-hover) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .mega-menu {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tiles-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
    }
    
    .tile {
        padding: 1.5rem;
    }
}

/* Additional Bootstrap Overrides */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-lg, .col-lg-1, .col-lg-2, .col-lg-3,
.col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8,
.col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-lg-auto, .col-md, .col-md-1, .col-md-2, .col-md-3,
.col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8,
.col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-md-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3,
.col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
.col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto {
    padding-left: 15px;
    padding-right: 15px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Optimization */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}