/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    .container {
        max-width: 1200px;
        margin: 0 55px;
        padding: 0 20px;
    }

    /* Header Styles */
    .header {
        background-color: #ffffff;
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .header .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 120px;
    }

    .logo img {
        height: 80px;
        width: auto;
    }

    .nav-menu {
        flex-grow: 0; 
        display: flex;
        justify-content: flex-start; 
        margin-left: 0; 
    }

    .nav-list {
        display: flex;
        list-style: none;
        gap: 40px;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        color: #1e397c; 
        text-decoration: none;
        font-size: 17px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: #6b7b8f; 
    }

    .dropdown-icon {
        width: 10px;
        height: 10px;
        transition: transform 0.3s ease;
    }

    .nav-item:hover .dropdown-icon:not(.sub-arrow-right) { 
        transform: rotate(180deg);
    }
    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        min-width: 220px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-radius: 4px;
        overflow: hidden;
        pointer-events: none; 
    }

    .dropdown-content a {
        color: #455162;
        padding: 12px 20px;
        text-decoration: none;
        display: block;
        font-size: 14px;
        transition: background-color 0.2s ease;
    }

    .dropdown-content a:hover {
        background-color: #f5f5f5;
    }

    .nav-item:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto; 
    }

    .sub-dropdown-content-wrapper {
        position: relative;
    }

    .sub-dropdown-content-wrapper > a {
        display: flex;
        justify-content: space-between; 
        align-items: center;
    }

    .sub-dropdown-content {
        position: absolute;
        background-color: #f0f0f0; 
        min-width: 250px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 20;
        top: 0;   
        left: 100%; 
                opacity: 0;
        visibility: hidden;
        transform: translateX(-10px); 
        transition: all 0.3s ease; 
        pointer-events: none;
        border-radius: 4px; 
        overflow: hidden;
    }

    .sub-dropdown-content-wrapper:hover > .sub-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    .sub-dropdown-content-wrapper > a img {
        transform: rotate(-90deg) !important; 
        transition: none; 
        margin-left: 10px;
    }
    
    .sub-dropdown-content a {
        padding: 12px 20px;
        font-size: 14px;
    }

body {
    font-family: 'Sarabun', sans-serif;
    color: #455162;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 55px;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 120px;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-menu {
    flex-grow: 0; 
    display: flex;
    justify-content: flex-start; 
    margin-left: 0; 
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #1e397c; 
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #6b7b8f; 
}

.dropdown-icon {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    pointer-events: none; 
}

.dropdown-content a {
    color: #455162;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; 
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #455162; 
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-toggle img {
    width: 20px;
    height: 20px;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block;
}

.mobile-menu-toggle.active img:first-child {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 800px;
    background-image: url('assets/images/home-scaled.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: left;
    color: #ffffff;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-right: auto;
    margin-left: 0;
    padding: 100px 0;
}

.hero-tag {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    font-family: 'Alike', serif;
}

.hero-description {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    background-color: #885d53;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #9a6d61;
    transform: translateY(-2px);
}
/*About Section*/
.about{
    position: relative;
    height: 300px;
    background-image: url('assets/images/about-utc-scaled.jpg');
    background-size: cover;
    display: flex;
    align-items: left;
    color: #ffffff;
}

.about-services-grid {
    display: flex;
    justify-content: center;
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
}

.about-services-grid {
    max-width: 550px !important; 
    text-align: center;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-service-card{
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.about-services-grid .service-title {
    padding-left: 0;
}

.about-services-grid .service-title::before {
    content: none; 
}


/* Description Section */
.description-section {
    background-color: #f5f5f5;
    padding: 60px 20px;
}

.description-text {
    text-align: center;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.8;
    color: #8f99a9;
    max-width: 900px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: #1e397c;
    margin-bottom: 60px;
    font-family: 'Alike', serif;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.service-title {
    font-size: 24px;
    color: #1e397c;
    margin-bottom: 20px;
    font-family: 'Alike', serif;
    font-weight: 400;
}

.service-description {
    font-size: 15px;
    line-height: 1.8;
    color: #8f99a9;
    margin-bottom: 30px;
    text-align: justify;
}

.service-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-link img {
    width: 30px;
    height: 30px;
}

.service-link:hover {
    transform: translateX(5px);
}

/* Footer Styles */
.footer {
    box-shadow: 0 0 10px 0 rgb(0 0 0 / .35);
    background-color: #ffffff; 
    color: #7d7d7d;
    padding: 0; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 63px 25px;
    padding-top: 40px;
}

.footer-left {
    flex: 2;
}

.footer-logo {
    max-width: 20%;
    margin-bottom: 20px;
}

.footer-address {
    font-size: 17px;
    color: #455162; 
    line-height: 1.6;
    font-weight: 400;
}

.footer-right {
    flex: 1;
    text-align: left;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #1e397c; 
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #455162; 
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1e397c;
}


.footer-bottom {
    background-color: #6b7b8f; 
    padding: 20px 10px;
    width: 100%; 
    display: flex;
    justify-content: left;
    align-items: center;
    text-align: left;
    gap: 15px;
    border-top: none; 
    margin: 0;
}
.footer-conainer{
    max-width: 1200px;
    margin: 0 0px;
    padding: 0 20px;
}
.footer-bottom > * {
    max-width: 1200px;
    padding: 0 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: #ffffff; 
}

.footer-icon {
    filter: invert(100%); 
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 110px; 
        left: -100%;
        width: 100%;
        background-color: #6b7b8f; 
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        color: #ffffff; 
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        pointer-events: none; 
    }

    .nav-item.active .dropdown-content {
        max-height: 300px;
        pointer-events: auto; 
    }

    .dropdown-content a {
        color: #ffffff;
        padding-left: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        text-align: left;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description br {
        display: none;
    }

    .section-title {
        font-size: 32px;
    }

    .description-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    .hero {
        height: 450px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card {
        padding: 30px 20px;
    }
}