/* ---
GEOTECH GROUP - Unified Stylesheet
Refactored and optimized for performance and maintainability.
* Sizing units reverted to original px/rem values to ensure pixel-perfect design preservation. *
--- */

/* --- Global Variables & Styles (from original style.css) --- */
:root {
    --primary-color: #0B4994; /* Dark Blue */
    --secondary-color: #A1CCEF; /* Light Blue */
    --white-color: #FFFFFF;
    --black-color: #000000;
    --text-color: #333333;
    --text-color-light: #f8f9fa;
    --light-gray-bg: #f7f9fc;
    --border-color: #dee2e6;
    --section-padding: 70px 0;
    --container-width: 90%;
    --max-container-width: 1200px;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition-speed: 0.3s ease-in-out;
    --header-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    line-height: 27px; /* 1.7 * 16px */
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    padding-top: var(--header-height);
}
.container { width: var(--container-width); max-width: var(--max-container-width); margin: 0 auto; padding: 0 15px; }
section { padding: var(--section-padding); overflow: hidden; }

/* Section Backgrounds */
#about, #why-choose-us { background-color: var(--white-color); }
#services, #projects, #news, #partners { background-color: var(--light-gray-bg); }
.contact-section-standalone, .news-page-section, .products-page-section, .projects-page-section, .downloads-page-section { background-color: var(--light-gray-bg); }
.project-detail-section, .news-detail-section, .product-detail-page-section, .product-category-page-section, .policy-page-section { background-color: var(--white-color); }


/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--primary-color); margin-bottom: 19px; /* 1.2rem */ font-weight: 700; }
h1 { font-size: 48px; /* 3rem */ line-height: 62px; /* 1.3 */ font-weight: 800;}
h2 { font-size: 40px; /* 2.5rem */ line-height: 52px; /* 1.3 */ }
h3 { font-size: 28px; /* 1.75rem */ line-height: 36px; /* 1.3 */ }
h4 { font-size: 20px; /* 1.25rem */ line-height: 26px; /* 1.3 */ }
p { margin-bottom: 16px; /* 1rem */ color: #555; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { display: block; font-size: 18px; /* 0.9rem */ color: var(--primary-color); text-transform: uppercase; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 8px; /* 0.5rem */ position: relative; padding-bottom: 10px; }
.section-header .section-subtitle::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: var(--secondary-color); }
.section-header .section-main-title { font-size: 45px; /* 2.8rem */ color: var(--black-color); font-weight: 700; }

/* Common Elements */
.btn { display: inline-block; padding: 14px 32px; background-color: var(--primary-color); color: var(--white-color); text-decoration: none; border-radius: var(--border-radius); font-weight: 600; transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed); border: 2px solid transparent; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn:hover { background-color: #083b7a; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(11, 73, 148, 0.4); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--white-color); }

a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--secondary-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }
.mt-2 { margin-top: 32px; /* 2rem */ }

/* --- Header & Navigation --- */
#header { background-color: var(--white-color); padding: 10px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: var(--header-height); display: flex; align-items: center; transition: padding var(--transition-speed); }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 50px; width: auto; display: block; }

/* Main Navigation Container */
.main-nav { display: flex; align-items: center; }

/* Main Navigation Links */
.main-nav .nav-links { display: flex; list-style: none; }
.main-nav .nav-links li { margin-left: 20px; }
.main-nav .nav-links a { color: var(--text-color); font-weight: 500; padding: 8px 0; position: relative; transition: color var(--transition-speed); font-size: 15px; }
.main-nav .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed); }
.main-nav .nav-links a:hover, .main-nav .nav-links a.active { color: var(--primary-color); }
.main-nav .nav-links a:hover::after, .main-nav .nav-links a.active::after { width: 100%; }

/* Downloads Link and Search Icon Container */
.nav-actions-container { display: flex; align-items: center; margin-left: 25px; }
.nav-action-item a {
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: color var(--transition-speed), background-color var(--transition-speed);
}
.nav-action-item a:hover {
    background-color: var(--light-gray-bg);
    color: var(--primary-color);
}
.search-container { position: relative; margin-left: 15px; }
.search-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-color);
    transition: color var(--transition-speed);
}
.search-icon:hover { color: var(--primary-color); }
.search-box {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    z-index: 1100;
}
.search-box.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.search-box input[type="search"] {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 15px;
}
.search-box input[type="search"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 73, 148, 0.25);
}

.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary-color); cursor: pointer; }


/* --- Hero Sections --- */
#hero { background: linear-gradient(rgba(11, 73, 148, 0.05), rgba(11, 73, 148, 0.85)), url('https://geotechgroup.eu/files/pic_teasers/thumbs/990x350/1/1_3dd4168654a52eb1b793d5394cace3e1.jpg') no-repeat center center/cover; color: var(--white-color); padding: 120px 0 100px; text-align: center; position: relative; min-height: calc(80vh - var(--header-height)); display: flex; align-items: center; justify-content: center; }
.hero-content .hero-title { font-size: 40px; /* 3.5rem */ font-weight: 800; margin-bottom: 24px; /* 1.5rem */ color: var(--white-color); line-height: 67px; /* 1.2 */ }
.hero-content .hero-subtitle { font-size: 21px; /* 1.3rem */ margin-bottom: 40px; /* 2.5rem */ color: var(--secondary-color); max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-content .btn-hero { background-color: var(--secondary-color); color: var(--primary-color); padding: 16px 38px; font-size: 18px; /* 1.1rem */ }
.hero-content .btn-hero:hover { background-color: var(--white-color); color: var(--primary-color); transform: translateY(-3px); }

.page-hero { background-color: var(--primary-color); color: var(--white-color); padding: 80px 0 60px; text-align: center; }
.page-hero h1 { font-size: 40px; /* 3rem */ color: var(--white-color); margin-bottom: 13px; /* 0.8rem */ }
.page-hero p { font-size: 19px; /* 1.2rem */ color: var(--secondary-color); max-width: 700px; margin-left: auto; margin-right: auto; opacity: 0.9; }
.page-hero-contact { background-color: var(--primary-color); color: var(--white-color); padding: 80px 0 60px; text-align: center; }
.page-hero-contact h1 { font-size: 48px; /* 3rem */ color: var(--white-color); margin-bottom: 13px; /* 0.8rem */ }
.page-hero-contact p { font-size: 19px; /* 1.2rem */ color: var(--secondary-color); max-width: 700px; margin-left: auto; margin-right: auto; opacity: 0.9; }


/* --- About Section --- */
.about-content { display: flex; gap: 40px; align-items: flex-start; }
.about-text { flex: 2; }
.about-text p { font-size: 17px; /* 1.05rem */ color: #444; }
.about-values { flex: 1; background-color: var(--light-gray-bg); padding: 30px; border-radius: var(--border-radius); border-left: 5px solid var(--primary-color); }
.about-values h4 { color: var(--primary-color); margin-bottom: 15px; font-size: 22px; /* 1.4rem */ }
.about-values ul li { margin-bottom: 10px; padding-left: 25px; position: relative; color: var(--text-color); }
.about-values ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-color); position: absolute; left: 0; top: 3px; }

/* --- Services & Why Choose Us --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { background-color: var(--white-color); padding: 35px 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.service-item:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.service-item .service-icon { font-size: 48px; /* 3rem */ margin-bottom: 20px; display: inline-block; width: 80px; height: 80px; line-height: 80px; background-color: var(--secondary-color); border-radius: 50%; color: var(--primary-color); }
.service-item h4 { font-size: 21px; /* 1.3rem */ margin-bottom: 10px; color: var(--black-color); }
.service-item p { font-size: 15px; /* 0.95rem */ color: #555; }

.why-choose-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.why-choose-us-item { padding: 25px; border-left: 4px solid var(--secondary-color); background-color: var(--light-gray-bg); border-radius: 0 var(--border-radius) var(--border-radius) 0; transition: background-color var(--transition-speed); }
.why-choose-us-item:hover { background-color: #e9f3fb; }
.why-choose-us-item .item-icon { font-size: 40px; /* 2.5rem */ color: var(--primary-color); margin-bottom: 15px; }
.why-choose-us-item h4 { font-size: 19px; /* 1.2rem */ margin-bottom: 8px; color: var(--black-color); }
.why-choose-us-item p { font-size: 14px; /* 0.9rem */ }

/* --- Projects Section & Cards --- */
#projects .projects-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.projects-page-section .projects-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: flex-start; }
.project-card { background-color: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; transition: transform var(--transition-speed), box-shadow var(--transition-speed); display: flex; flex-direction: column; width: 340px; max-width: 100%; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.project-card img { width: 100%; height: 220px; object-fit: cover; }
.project-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.project-card .category { display: inline-block; background-color: var(--secondary-color); color: var(--primary-color); padding: 4px 10px; border-radius: 20px; font-size: 13px; /* 0.8rem */ font-weight: 600; margin-bottom: 10px; align-self: flex-start; }
.project-card h4 { font-size: 21px; /* 1.3rem */ margin-bottom: 10px; color: var(--black-color); }
.project-card p.description { font-size: 15px; /* 0.95rem */ margin-bottom: 15px; flex-grow: 1; }
.project-card .details-link { font-weight: 600; color: var(--primary-color); align-self: flex-start; margin-top: auto; }
.project-card .details-link:hover { text-decoration: underline; }
.projects-section .text-center { margin-top: 50px; }

/* --- News Section & Articles --- */
#news .news-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.news-page-section .news-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: flex-start; }
.news-article { background-color: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; display: flex; flex-direction: column; }
.news-page-section .news-article { width: 350px; max-width: 100%; } /* Fixed width for news listing pages */
.news-article img { width: 100%; height: 200px; object-fit: cover; }
.news-article-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.news-article .date { font-size: 14px; /* 0.85rem */ color: #777; margin-bottom: 8px; }
.news-article h4 { font-size: 20px; /* 1.25rem */ margin-bottom: 10px; color: var(--black-color); }
.news-article .summary { font-size: 15px; /* 0.95rem */ margin-bottom: 15px; flex-grow: 1; }
.news-article .read-more-link { font-weight: 600; color: var(--primary-color); align-self: flex-start; margin-top: auto; }
.news-article .read-more-link:hover { text-decoration: underline; }
.news-section .text-center { margin-top: 50px; }

/* --- Pagination --- */
.pagination-controls { text-align: center; margin-top: 40px; }
.pagination-controls a, .pagination-controls span, .pagination-controls button { display: inline-block; padding: 8px 15px; margin: 0 5px; background-color: var(--primary-color); color: var(--white-color); border: none; border-radius: var(--border-radius); cursor: pointer; transition: background-color var(--transition-speed); font-size: 14px; /* 0.9rem */ text-decoration: none; }
.pagination-controls a:hover, .pagination-controls button:hover { background-color: #083b7a; }
.pagination-controls .current-page, .pagination-controls a.current-page { background-color: var(--secondary-color); color: var(--primary-color); font-weight: bold; cursor: default; }
.pagination-controls .disabled, .pagination-controls a.disabled { background-color: #ccc; cursor: not-allowed; opacity: 0.7; }

/* --- Contact Page --- */
.contact-content-wrapper { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.contact-info { flex: 1; min-width: 300px; background-color: var(--white-color); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.contact-info h3 { margin-bottom: 25px; color: var(--primary-color); font-size: 28px; /* 1.75rem */ border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; }
.contact-info p { margin-bottom: 18px; font-size: 17px; /* 1.05rem */ display: flex; align-items: center; color: var(--text-color); }
.contact-info p i { font-size: 21px; /* 1.3rem */ color: var(--primary-color); margin-right: 18px; width: 25px; text-align: center; }
.map-container { height: 280px; border-radius: var(--border-radius); margin-top: 30px; border: 1px solid var(--border-color); overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.contact-form-container { flex: 1.5; min-width: 300px; background-color: var(--white-color); padding: 35px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.contact-form-container h3 { margin-bottom: 25px; color: var(--primary-color); text-align: center; font-size: 28px; /* 1.75rem */ border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #495057; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--border-color); border-radius: var(--border-radius); font-family: var(--font-family); font-size: 16px; /* 1rem */ transition: border-color var(--transition-speed), box-shadow var(--transition-speed); }
.form-group input[type="text"]:focus, .form-group input[type="email"]:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(11, 73, 148, 0.25); /* 0.2rem */ }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-form-container .btn { width: 100%; padding: 16px; font-size: 18px; /* 1.1rem */ margin-top: 10px; }

/* --- Products Page Specific Styles (from original style.css) --- */
.products-page-section .product-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.products-page-section .product-category-card { background-color: var(--white-color); border-radius: var(--border-radius); padding: 25px 30px; box-shadow: var(--box-shadow); border-left: 5px solid var(--primary-color); transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.products-page-section .product-category-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.products-page-section .product-category-card h3 { font-size: 27px; /* 1.7rem */ color: var(--primary-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--secondary-color); }
.products-page-section .product-category-card h3 a { color: var(--primary-color); } /* Ensure h3 link color */
.products-page-section .product-category-card .sub-product-list { list-style: none; padding-left: 0; margin-top: 15px; }

/* --- Styles from products.html inline <style> block --- */
.products-page-section .product-category-card .sub-product-list > li,
.products-page-section .product-category-card .nested-sub-product-list > li {
    padding-left: 0; 
}
.products-page-section .product-category-card .sub-product-list > li::before,
.products-page-section .product-category-card .nested-sub-product-list > li::before {
    display: none; 
}
.products-page-section .product-category-card .sub-product-list > li > a,
.products-page-section .product-category-card .nested-sub-product-list > li > a {
    display: block;
    padding: 8px 0 8px 28px; 
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-speed), background-color var(--transition-speed);
}
.products-page-section .product-category-card .sub-product-list > li > a:hover,
.products-page-section .product-category-card .nested-sub-product-list > li > a:hover {
    color: var(--primary-color);
    background-color: #f0f4f8;
}
.products-page-section .product-category-card .sub-product-list > li > a::before {
    content: '\f101'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900; 
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    margin-left: 5px; 
}
.products-page-section .product-category-card .nested-sub-product-list > li > a::before {
    content: '\f0da'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.8;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    margin-left: 5px; 
}
.products-page-section .product-category-card .sub-product-list > li > strong,
.products-page-section .product-category-card .nested-sub-product-list > li > strong {
     font-weight: 600;
     color: var(--black-color);
}
 .products-page-section .product-category-card .sub-product-list > li > strong > a,
 .products-page-section .product-category-card .nested-sub-product-list > li > strong > a {
    color: var(--black-color); 
 }
 .products-page-section .product-category-card .sub-product-list > li > strong > a:hover,
 .products-page-section .product-category-card .nested-sub-product-list > li > strong > a:hover {
    color: var(--primary-color);
 }
/* --- End of styles from products.html --- */


/* --- Breadcrumb Navigation --- */
.breadcrumb-nav {
    padding: 15px 0;
    background-color: var(--light-gray-bg);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px; /* 0.9rem */
}
.breadcrumb-nav .container { /* Ensure container is used for width */
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 15px;
}
.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow breadcrumbs to wrap on small screens */
}
.breadcrumb-nav li {
    margin-right: 5px;
    white-space: nowrap; /* Prevent individual items from breaking mid-word */
}
.breadcrumb-nav li a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb-nav li a:hover {
    text-decoration: underline;
}
.breadcrumb-nav li+li::before {
    content: "/\00a0"; /* Slash with non-breaking space */
    padding: 0 5px;
    color: var(--text-color);
}

/* --- Policy Pages --- */
.policy-page-section .policy-content {
    max-width: 800px;
    margin: 0 auto;
}
.policy-page-section .policy-content h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--black-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.policy-page-section .policy-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}
.policy-page-section .policy-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}
.policy-page-section .policy-content ul li {
    margin-bottom: 10px;
}


/* --- Product Category/Sub-Category/Detail Pages --- */
.product-category-page-section .product-sub-category-grid,
.product-sub-category-page-section .product-sub-category-grid { /* Reused for specific products under this sub-category */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.product-category-page-section .product-sub-category-card,
.product-sub-category-page-section .product-sub-category-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex; /* Added for consistent height if needed */
    flex-direction: column; /* Added for consistent height if needed */
}
.product-category-page-section .product-sub-category-card:hover,
.product-sub-category-page-section .product-sub-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.product-category-page-section .product-sub-category-card img,
.product-sub-category-page-section .product-sub-category-card img {
    max-height: 150px;
    width: auto;
    margin: 0 auto 15px auto;
    border-radius: var(--border-radius);
}
.product-category-page-section .product-sub-category-card h3,
.product-sub-category-page-section .product-sub-category-card h3 {
    font-size: 22px; /* 1.4rem */
    margin-bottom: 10px;
}
.product-category-page-section .product-sub-category-card p,
.product-sub-category-page-section .product-sub-category-card p {
    font-size: 14px; /* 0.9rem */
    margin-bottom: 15px;
    flex-grow: 1; /* Added for consistent height if needed */
}
.product-category-page-section .product-sub-category-card .btn,
.product-sub-category-page-section .product-sub-category-card .btn {
    margin-top: auto; /* Push button to bottom if cards have varying text length */
}
.product-description-area { /* For category/sub-category intro text */
    margin-bottom: 40px;
}
.product-description-area h2 {
    font-size: 29px; /* 1.8rem */
    margin-bottom: 15px;
    color: var(--black-color);
}
.product-description-area p {
    font-size: 17px; /* 1.05rem */
    line-height: 31px; /* 1.8 */
}

.product-detail-page-section .product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}
.product-detail-page-section .product-image-gallery {
    flex: 1;
    min-width: 300px;
}
.product-detail-page-section .product-image-gallery .main-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
}
.product-detail-page-section .product-info-details {
    flex: 1.5;
    min-width: 300px;
}
.product-detail-page-section .product-info-details h2 { /* Product name */
    font-size: 32px; /* 2rem */
    margin-bottom: 20px;
    color: var(--black-color);
}
.product-detail-page-section .product-info-details .short-description {
    font-size: 18px; /* 1.1rem */
    margin-bottom: 20px;
    color: #444;
    line-height: 31px; /* 1.7 */
}
.product-detail-page-section .product-specs,
.product-detail-page-section .product-applications,
.product-detail-page-section .product-benefits {
    margin-bottom: 30px;
}
.product-detail-page-section .product-specs h3,
.product-detail-page-section .product-applications h3,
.product-detail-page-section .product-benefits h3 {
    font-size: 24px; /* 1.5rem */
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.product-detail-page-section .product-specs ul,
.product-detail-page-section .product-applications ul,
.product-detail-page-section .product-benefits ul {
    list-style: disc;
    padding-left: 20px;
}
.product-detail-page-section .product-specs ul li,
.product-detail-page-section .product-applications ul li,
.product-detail-page-section .product-benefits ul li {
    margin-bottom: 8px;
    font-size: 15px; /* 0.95rem */
}
.product-detail-page-section .product-download-cta {
    margin-top: 20px;
}

/* Styles for stacked product detail layout */
.product-detail-container.layout-stacked {
    flex-direction: column;
}
.product-detail-container.layout-stacked .product-image-gallery,
.product-detail-container.layout-stacked .product-info-details {
    flex: none; /* Resets flex properties to allow natural height */
    width: 100%; /* Ensures children take full width in the column */
}
.product-detail-container.layout-stacked .product-download-cta {
    text-align: center; /* Centers the download button */
}
.product-detail-container.layout-stacked .product-image-gallery .main-image img {
    margin-bottom: 0; /* Removes bottom margin from image as parent gap handles spacing */
}


/* --- News/Project Detail Pages --- */
.detail-page-content { /* General container for detail pages */
     /* padding: 40px 0; - This is handled by section padding */
}
.detail-page-content img.detail-main-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}
.detail-meta { margin-bottom: 20px; color: #666; font-size: 14px; /* 0.9rem */ }
.detail-meta span { margin-right: 20px; display: inline-block; margin-bottom: 5px; }
.detail-meta i { margin-right: 5px; color: var(--primary-color); }
.detail-body h3 { font-size: 24px; /* 1.5rem */ margin-top: 30px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px;}
.detail-body p { margin-bottom: 24px; /* 1.5rem */ line-height: 29px; /* 1.8 */ }
.detail-body ul { list-style: disc; padding-left: 20px; margin-bottom: 24px; /* 1.5rem */ }
.detail-body ul li { margin-bottom: 8px; /* 0.5rem */ }
.back-link { display: inline-block; margin-top: 30px; color: var(--primary-color); font-weight: 600; }
.back-link i { margin-right: 5px; }
.back-link:hover { text-decoration: underline; }


/* --- Partners Section --- */
#partners { background-color: var(--white-color); } 
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; align-items: center; }
.partner-logo { text-align: center; }
.partner-logo img {
    max-height: 95px; /* Increased from 80px */
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed), transform var(--transition-speed);
}
.partner-logo a:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* --- Footer --- */
#footer { background-color: var(--primary-color); color: var(--text-color-light); padding: 60px 0 30px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer-about, .footer-quick-links, .footer-contact-info { flex: 1; min-width: 250px; }
.footer-about { text-align: left; }
.footer-quick-links { text-align: center; }
.footer-contact-info { text-align: right; }
.footer-about h4, .footer-quick-links h4, .footer-contact-info h4 { color: var(--white-color); font-size: 21px; /* 1.3rem */ margin-bottom: 20px; position: relative; padding-bottom: 10px; display: inline-block; }
.footer-about h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--secondary-color); }
.footer-quick-links h4::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 40px; height: 2px; background-color: var(--secondary-color); }
.footer-contact-info h4::after { content: ''; position: absolute; right: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--secondary-color); }
.footer-about p { color: var(--secondary-color); opacity: 0.9; font-size: 15px; /* 0.95rem */ }
.footer-socials { margin-top: 20px; }
.footer-socials a { color: var(--white-color); font-size: 24px; /* 1.5rem */ margin: 0 7.5px; transition: color var(--transition-speed), transform var(--transition-speed); display: inline-block; }
.footer-socials a:hover { color: var(--secondary-color); transform: scale(1.1); }
.footer-quick-links ul li { margin-bottom: 10px; }
.footer-quick-links ul li a { color: var(--secondary-color); transition: color var(--transition-speed), padding-left var(--transition-speed); }
.footer-quick-links ul li a:hover { color: var(--white-color); padding-left: 5px; } 
.footer-contact-info p { color: var(--secondary-color); font-size: 15px; /* 0.95rem */ display: flex; align-items: flex-start; margin-bottom: 10px; justify-content: flex-end; }
.footer-contact-info p i { margin-right: 10px; color: var(--secondary-color); margin-top: 4px; }
.footer-copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; /* 0.9rem */ }
.footer-copyright p { color: var(--white-color); margin-bottom: 0; }
.footer-copyright a { color: var(--secondary-color); }
.footer-copyright a:hover { color: var(--white-color); text-decoration: underline; }
#footer a { color: var(--secondary-color); transition: color var(--transition-speed), padding-left var(--transition-speed); }

/* --- Media Queries --- */
@media (max-width: 992px) {
    #header { height: auto; min-height: var(--header-height); }
    body { padding-top: var(--header-height); }
    .header-container { padding: 0 15px; }
    
    .nav-toggle { display: block; }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, padding 0.3s ease-in-out;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
    .main-nav.active {
        max-height: 600px; /* Increased height to ensure search is visible */
        padding: 20px 0;
    }

    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .main-nav .nav-links li { margin: 8px 0; width: 100%; text-align: center; }
    .main-nav .nav-links a { display: block; padding: 10px; width: 100%; font-size: 16px; }
    .main-nav .nav-links a::after { display: none; }
    .main-nav .nav-links a:hover { background-color: var(--light-gray-bg); }

    .nav-actions-container {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }
    .nav-action-item { margin-bottom: 15px; }
    .nav-action-item a { display: block; text-align: center; }
    .search-container { margin-left: 0; }
    .search-icon { display: none; } /* Hide original search icon */
    .search-box {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding: 0;
    }
    
    .about-content { flex-direction: column; }
    .about-values { margin-top: 30px; }
    .footer-content { flex-direction: column; text-align: center; } 
    .footer-about, .footer-quick-links, .footer-contact-info { text-align: center !important; } 
    .footer-contact-info p { justify-content: center; } 
    .footer-about h4::after, .footer-quick-links h4::after, .footer-contact-info h4::after { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
    .footer-socials { text-align: center !important; }
    .contact-content-wrapper { flex-direction: column; }
    .contact-form-container { margin-top: 30px; }
    .partners-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 25px; }
    .partner-logo img { max-height: 70px; }
    .news-page-section .news-grid, .projects-page-section .projects-grid { justify-content: center; }
    #projects .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .product-category-page-section .product-sub-category-grid, 
    .product-sub-category-page-section .product-sub-category-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
}

@media (max-width: 768px) {
    #hero { padding: 100px 0 80px; min-height: calc(70vh - var(--header-height)); }
    .hero-content .hero-title { font-size: 45px; }
    .hero-content .hero-subtitle { font-size: 18px; }
    .services-grid, .why-choose-us-grid, #projects .projects-grid, #news .news-grid, 
    .products-page-section .product-category-grid,
    .product-category-page-section .product-sub-category-grid,
    .product-sub-category-page-section .product-sub-category-grid {
        grid-template-columns: 1fr !important; 
    } 
    .news-page-section .news-grid, .projects-page-section .projects-grid { gap: 20px; }
    .news-article, .project-card { width: 100%; }
    .partners-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .partner-logo img { max-height: 60px; }
    section { padding: 60px 0; }
    .page-hero, .page-hero-contact { padding: 60px 0 40px; }
    .page-hero h1, .page-hero-contact h1 { font-size: 40px; }
    .page-hero p, .page-hero-contact p { font-size: 18px; }
    .section-header .section-main-title { font-size: 35px; }
    h1 { font-size: 40px; }
    .contact-info, .contact-form-container { padding: 25px; }
    .contact-info h3, .contact-form-container h3 { font-size: 24px; }
    .pagination-controls a, .pagination-controls span, .pagination-controls button { padding: 6px 10px; font-size: 13px; margin: 0 3px;}
    .product-detail-page-section .product-info-details h2 { font-size: 29px; }
    .product-detail-page-section .product-specs h3,
    .product-detail-page-section .product-applications h3,
    .product-detail-page-section .product-benefits h3 { font-size: 21px; }
}