/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 2560px;
    margin: 0 auto;
}

.header-left .hamburger-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo h1 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right .icon-link {
    font-size: 20px;
    margin-left: 15px;
    position: relative;
    color: #333;
}

.cart-link .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%; /* Start hidden */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1100;
    padding-top: 60px;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a:hover {
    background-color: #f0f0f0;
}

/* Slider Styles */
.slider-container {
    max-width: 2560px;
    max-height: 500px;
    height: 500px; /* Default height */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder background */
	border-top:1px solid #e8e8e8;
	border-bottom:1px solid #e8e8e8;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* This is where the user will add their background images */
.slide:nth-child(1) { background-image:url('/alteo/img/main_1.png'); } /* Placeholder color 1 */
.slide:nth-child(2) { background-image:url('/alteo/img/main_2_2.png'); } /* Placeholder color 1 */


.slide-content {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 24px;
}


/* Slider Navigation */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Slider Dots */
.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #002580;
	border:1px solid #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }
    .logo h1 {
        font-size: 28px;
    }
    .header-right .icon-link {
        font-size: 18px;
        margin-left: 12px;
    }

    .slider-container {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .prev, .next {
        font-size: 18px;
        padding: 10px;
    }

    .dot {
        height: 10px;
        width: 10px;
    }
	
	
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    .header-right .icon-link {
        margin-left: 10px;
    }
    .slider-container {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 14px;
    }
}

/* Popular Content Section */
.popular-content {
    padding: 60px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    grid-auto-flow: dense;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.grid-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.grid-item p {
    color:#fff;
}
.grid-item .item-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
}

.grid-item:hover .item-bg {
    transform: scale(1.05);
}

.grid-item .item-text {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.item-text p {
    font-size: 20px;
	color: white;
	margin-bottom:0px;
}

.item-text i {
    color: #fff;
    margin-top: 15px;
    font-size: 40px;
    line-height: 1;
}

.feature__8__img{
	background:#f8f8f8;
	border-radius:10px;
}
.feture__8__wraper{
	margin-bottom:30px;
}
/* Grid item sizes and placeholder colors */
.item-1 { grid-row: span 2; background-image:url('/alteo/img/grid_1_1.png'); background-repeat:no-repeat; }
.item-2 { grid-row: span 1; background-color: #00695C; }
.item-3 { background-color: #37474F; }
.item-4 { background-color: #FFB300; }
.item-5 { grid-row: span 2; background-image:url('/alteo/img/grid_company.png'); }
.item-6 { grid-column: span 2; grid-row: span 2; background-image:url('/alteo/img/grid_partners.png'); border:1px solid #666;}
.item-7 { grid-row: span 2; background-image:url('/alteo/img/grid_product.png'); }
.item-8 { grid-column: span 2; grid-row: span 1; background-image:url('/alteo/img/grid_intro.png'); }
.item-9 { grid-row: span 1; background-image:url('/alteo/img/grid_process.png'); }

.item-bg{
	position:relative;
}

.item-bg .fas{
	position:absolute;
	right:30px;
	bottom:30px;
	font-size:60px;
	color:#fff;
}

.product_info{
	margin-top:80px;
}

.pic_list{
	padding:30px 0;
	background:#f9f9f9;
}



/* Responsive Grid */
@media (max-width: 1024px) {
	.slider-container {
		height: 50vw;
	}
	
	.content-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: minmax(180px, auto);
		gap: 15px;
	}

	.grid-item {
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}

	.item-1, .item-2, .item-3, .item-4, .item-5, .item-6, .item-7, .item-8, .item-9 {
		grid-column: auto;
		grid-row: auto;
	}

	.item-1 { grid-area: 1 / 1 / 3 / 2; }
	.item-2 { grid-area: 1 / 2 / 2 / 3; }
	.item-3 { grid-area: 2 / 2 / 3 / 3; }
	.item-4 { grid-area: 3 / 1 / 4 / 2; }
	.item-5 { grid-area: 3 / 2 / 4 / 3; }
	.item-6 { 
		height:45vw;
		grid-area: 4 / 1 / 5 / 3;
		background-image: url('/alteo/img/grid_partners.png');
	}
	.item-7 { grid-area: 5 / 1 / 6 / 2; }
	.item-8 { grid-area: 5 / 2 / 6 / 3; }
	.item-9 { grid-area: 6 / 1 / 7 / 3; }
}

@media (max-width: 767px) {
    .popular-content {
        padding: 40px 15px;
    }
    .section-title {
        font-size: 22px;
    }
	
	.content-grid {
		display: flex;
        flex-wrap: wrap;
		gap: 15px;
	}
	
    /* Reset grid properties and add box-sizing for safety */
	.grid-item {
		grid-area: auto !important;
        flex-grow: 1;
        flex-shrink: 1;
        box-sizing: border-box;
	}
    
    /* Full-width items */
    .item-1, .item-5, .item-6, .item-7 {
        flex-basis: 100%;
        min-height: 180px;
    }

	/* Tak Jae-hoon banner specific styles */
    .item-6 {
        background-size: cover;
        background-color: white;
    }

	/* 3 buttons in a row */
	.item-2, .item-3, .item-4 {
		flex-basis: calc(33.333% - 10px);
        min-height: 80px;
	}

    /* 2 items in a row */
    .item-8, .item-9 {
        flex-basis: calc(50% - 7.5px);
        min-height: 150px;
    }

    /* --- FIX for the 3 buttons' internal layout --- */
    .item-2 a, .item-3 a, .item-4 a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 15px;
        height: 100%;
    }

    .item-2 .item-bg, .item-3 .item-bg, .item-4 .item-bg {
        width: auto;
        height: auto;
    }

    .item-2 .item-text, .item-3 .item-text, .item-4 .item-text {
        position: static;
        padding: 0;
        text-shadow: none;
    }

    .item-2 .item-text p, .item-3 .item-text p, .item-4 .item-text p {
        margin: 0;
        font-weight: bold;
        font-size: 14px;
        white-space: nowrap;
    }

    .item-2 .item-bg .fas, .item-3 .item-bg .fas, .item-4 .item-bg .fas {
        position: static;
        font-size: 1.3em;
    }
	
	.community-latest {
		flex-direction: column;
		gap: 50px;
	}

    /* Fallback for very narrow screens to prevent breaking */
    @media (max-width: 380px) {
        .item-2, .item-3, .item-4, .item-8, .item-9 {
            flex-basis: 100%;
        }
    }
}

/* Community Latest Section */
.community-latest {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    gap: 40px;
}
.latest-box {
    flex: 1;
    min-width: 0;
}
.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}
.latest-header h2 {
    margin: 0;
    font-size: 24px;
}
.more-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}
.latest-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.latest-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}
.latest-list li a:hover {
    background-color: #f9f9f9;
}
.item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-date, .item-status {
    flex-shrink: 0;
    margin-left: 20px;
    font-size: 14px;
    color: #888;
}
.item-status.complete {
    color: #fff;
    font-weight: 300;
}

/* Gallery Slider Section */
.gallery-slider {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 15px;
    position: relative;
}
.slider-wrapper {
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.gallery-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-x;
    cursor: grab;
}
.gallery-slides:active {
    cursor: grabbing;
}
.gallery-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
}
.gallery-slide img {
    width: 100%;
    display: block;
    border-radius: 8px;
}
.slider-controls {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.gallery-prev, .gallery-next {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.gallery-prev:hover, .gallery-next:hover {
    background-color: #002580;
    color: #fff;
}

/* Responsive for community and gallery */
@media (max-width: 992px) {
    .gallery-slide {
        flex-basis: 33.3%;
    }
}

@media (max-width: 767px) {
    .community-latest {
        flex-direction: column;
        gap: 50px;
    }
	
	.gallery-slide {
        flex-basis: 33.3%;
    }
	
	.slider-controls{
		display:none;
	}
} 