/* ERTEK Corporate White Style */
:root {
    --primary-red: #E3000F;
    --primary-blue: #0F2046;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #dddddd;
    --font-main: 'Roboto', sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background-color: var(--bg-white); line-height:1.6; overflow-x: hidden;}
a { text-decoration:none; transition: 0.3s; color: inherit; }
ul { list-style:none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.pt-3 { padding-top: 2rem; }
.pt-5 { padding-top: 5rem; }
.pb-5 { padding-bottom: 5rem; }
.bg-light { background-color: var(--bg-light); }

/* Top Bar */
.top-bar { background-color: var(--primary-blue); color: #fff; padding: 8px 0; font-size: 0.9rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.contact-info span { margin-right: 15px; }
.contact-info i { margin-right: 5px; color: var(--primary-red); }
.social-info a { color: #fff; margin-left: 15px; }
.social-info a:hover { color: var(--primary-red); }
.bayi-link { background-color: var(--primary-red); padding: 5px 10px; border-radius: 3px; font-weight: 500; }
.bayi-link:hover { background-color: #c0000d; color: #fff !important; }

/* Main Header */
.main-header { background: #fff; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top:0; z-index:1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 5px; }
.logo-er { color: var(--primary-red); }
.logo-tek { color: var(--primary-blue); }
.logo-sub { font-size: 0.85rem; font-weight: 700; color: var(--text-gray); letter-spacing: 2px; }
.main-nav ul { display: flex; gap: 20px; }
.main-nav a { color: var(--primary-blue); font-weight: 700; font-size: 1.05rem; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-red); }
.mobile-toggle { display: none; font-size: 1.5rem; color: var(--primary-blue); cursor:pointer; }


/* Hero & Sliders Layout */
.hero-section { background-color: var(--bg-white); margin-bottom: 2rem;}
.hero-container { display: flex; gap: 20px; align-items: stretch; height: 480px; }
.slider-left { flex: 0 0 calc(70% - 10px); width: calc(70% - 10px); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.15); border: 2px solid #eaeaea;}
.slider-right { flex: 0 0 calc(30% - 10px); width: calc(30% - 10px); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.15); border: 2px solid #eaeaea;}

.swiper { width: 100%; height: 100%; }
.banner-slide { background-color: var(--primary-blue); }
.banner-slide::before { content:''; position:absolute; inset:0; background: rgba(15, 32, 70, 0.4); z-index:1; }
.swiper-slide { position: relative; background-size: cover; background-position: center; display: flex; align-items: center; }
.slide-overlay { position:absolute; inset:0; background: linear-gradient(90deg, rgba(15, 32, 70, 0.9) 0%, rgba(15, 32, 70, 0.2) 100%); z-index:1; }
.slider-content { position:relative; z-index:2; color: #fff; padding: 40px; margin-left: 20px; max-width: 500px;}

.badge-year { display:inline-flex; align-items:center; background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%); color:#000; padding:10px 20px; border-radius: 5px; margin-bottom:15px; font-weight:bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 2px solid #fff; }
.badge-year .number { font-size: 3rem; line-height: 1; margin-right: 10px; color:#0F2046; }
.badge-year .text { font-size: 1.1rem; line-height: 1.2; text-align: left;}
.slide-title { font-size: 3rem; font-weight:900; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); line-height: 1.1; }
.slide-ribbon { display:inline-block; background: var(--primary-red); color:#fff; padding: 5px 20px; font-weight:700; font-size:1.2rem; margin-bottom: 25px; border-radius: 3px; }
.slide-features li { font-size: 1.2rem; font-weight: 500; margin-bottom: 10px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); display: flex; align-items: center;}
.slide-features i { color: #ffd700; margin-right: 15px; }

/* Right Sidebar Product Slide */
.sidebar-product-slide { flex-direction: column; align-items: stretch; background: transparent; padding: 0; display: flex; justify-content: space-between;}
.sidebar-top { position: relative; height: 50%; background: #fff; display: flex; align-items:center; justify-content:center; padding: 30px 20px 10px 20px;}
.sidebar-img { max-height: 100%; max-width: 100%; object-fit: contain; z-index: 2;}
.sidebar-badge { position: absolute; top: 15%; left: 0; width: 100%; background: var(--primary-red); color: #fff; text-align: center; font-weight: 900; font-style: italic; padding: 8px 0; font-size: 1.4rem; z-index: 10; box-shadow: 0 4px 6px rgba(0,0,0,0.2);}
.sidebar-bottom { padding: 20px; text-align: center; height: 50%; background: #fdfdfd;}
.sidebar-bottom h3 { color: var(--primary-blue); font-size: 1.4rem; font-weight: 900; margin-bottom: 20px; }
.sidebar-features { display: flex; flex-direction: column; gap: 8px; align-items: center;}
.sidebar-features li { width: 100%; border-bottom: 1px dashed #eee; padding-bottom: 5px; color: var(--text-dark);}
.badge-dark, .badge-red, .badge-orange { padding: 4px 12px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 0.95rem; display: inline-block;}
.badge-dark { background: #333; }
.badge-red { background: var(--primary-red); }
.badge-orange { background: #e67e22; }

/* Global Slider Buttons */
.swiper-button-next, .swiper-button-prev { background: #fff; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.swiper-button-next::after, .swiper-button-prev::after { display:none; }
.swiper-button-next i, .swiper-button-prev i { color: var(--text-dark); font-size: 1.2rem; }
.swiper-pagination-bullet-active { background: var(--primary-red) !important; }

/* sidebar buttons */
.sidebar-next, .sidebar-prev { width: 30px; height: 30px; }
.sidebar-next i, .sidebar-prev i { font-size: 1rem; }

/* Buttons */
.btn { display:inline-block; padding: 12px 25px; border-radius: 3px; font-weight: 700; text-align:center; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary { background-color: var(--primary-red); color: #fff; }
.btn-primary:hover { background-color: #c0000d; color:#fff; transform: translateY(-2px); }

/* About Section */
.about-box { text-align: center; background: #fff; border: 1px solid var(--border-color); padding: 50px 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.about-box h2 { color: var(--primary-blue); margin-bottom: 20px; font-size: 2rem; }
.about-box p { color: var(--text-gray); font-size: 1.1rem; max-width: 800px; margin: 0 auto 20px auto; }

/* Services Grid (Overlap Modern Style) */
.section-heading { color: var(--primary-blue); font-weight:900; font-size: 2.2rem; position:relative; padding-bottom:15px; text-transform: uppercase; }
.section-heading::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:60px; height:3px; background:var(--primary-red); }

.services-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }

.service-block { position: relative; padding-bottom: 100px; transition: 0.3s; }
.service-img { width: 100%; height: 260px; border-radius: 10px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s;}
.service-block:hover .service-img img { transform: scale(1.05); }

.service-card { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 85%; background: #fff; padding: 30px 20px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; transition: 0.3s; }
.service-block:hover .service-card { box-shadow: 0 15px 40px rgba(0,0,0,0.12); bottom: 5px; }

.service-card h3 { font-size: 1.25rem; color: var(--primary-blue); font-weight: 800; margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: var(--text-gray); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; line-height: 1.6; }
.service-card .btn-link { color: var(--primary-red); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; display: inline-block;}
.service-card .btn-link i { margin-left: 5px; transition: 0.3s; }
.service-block:hover .btn-link i { transform: translateX(5px); }

/* Footer */
.main-footer { background-color: var(--primary-blue); color: #ccc; padding-top: 60px; }
.footer-inner { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap:40px; margin-bottom:40px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo h2 { font-size:2.5rem; margin:0; line-height:1; }
.footer-social { margin-top:25px; display:flex; gap:10px; }
.footer-social a { background: rgba(255,255,255,0.1); width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:50%; color:#fff; font-size:1.1rem; }
.footer-social a:hover { background: var(--primary-red); transform: translateY(-2px);}
.footer-col h3 { color:#fff; margin-bottom:25px; font-size:1.2rem; position:relative; padding-bottom:10px; font-weight: 700; letter-spacing:0.5px;}
.footer-col h3::after { content:''; position:absolute; bottom:0; left:0; width:40px; height:2px; background:var(--primary-red); }
.links-col ul { list-style: none; padding:0; margin:0;}
.links-col li { margin-bottom: 12px; }
.links-col a { color: #ccc; transition:0.3s; }
.links-col a:hover { color: #fff; padding-left:5px; }
.contact-list { list-style: none; padding:0; margin:0;}
.contact-list li { margin-bottom: 20px; display:flex; gap:15px; align-items: flex-start;}
.contact-list i { color: var(--primary-red); margin-top:3px; font-size: 1.2rem; }
.contact-list a:hover { color: #fff !important; }
.footer-bottom { background: #0b1836; padding: 20px 0; font-size:0.95rem; }

@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-apps-row { flex-direction:column; text-align:center; }
    .hero-container { flex-direction: column; height: auto; }
    .slider-left { width: 100%; height: 500px; flex: auto; }
    .slider-right { width: 100%; height: 400px; flex: auto; }
    .slide-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap:30px; }
    .main-nav { display:none; }
    .mobile-toggle { display:block; }
    .top-bar-inner { flex-direction: column; gap: 10px; }
    .slider-left { height: 450px; }
}
/* Product Box Styles (Seri Sonu) */
.ss-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 30px; }
.ss-header h2 { color: var(--primary-blue); font-size: 1.8rem; margin: 0; display:flex; align-items:center; font-weight: 900;}
.ss-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 40px; }

.product-box { background: #fff; border: 1px solid #ebebeb; padding: 15px; border-radius: 8px; transition: all 0.3s ease; height: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.01); display: flex; flex-direction: column; }
.product-box:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--primary-red); transform: translateY(-5px); }
.product-box .img-wrap { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.product-box .img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-box .product-info { border-top: 1px solid #f5f5f5; padding-top: 15px; margin-top: auto; text-align: center; }
.product-box .product-title { color: var(--text-dark); font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: 50px; line-height: 1.3;}

.view-all-link { color: var(--primary-blue); font-weight: 600; font-size: 14px; }
.view-all-link:hover { color: var(--primary-red); }
.btn-outline { display:inline-block; border: 2px solid var(--primary-blue); color: var(--primary-blue); padding: 12px 35px; border-radius: 4px; font-weight: 700; transition: 0.3s; }
.btn-outline:hover { background: var(--primary-blue); color: #fff; }

@media (max-width: 1200px) { .ss-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .ss-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .ss-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ss-header { flex-direction: column; gap:10px; text-align:center; } }
