/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle (removed) */

/* Header */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Apply solid background only when scrolled */
.header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu open: give header a light gray gradient and bottom underline */
body.menu-open .header {
    background: linear-gradient(to bottom, rgba(245,246,248,0.98) 0%, rgba(242,243,245,0.96) 100%);
    border-bottom: 1px solid #d6d6d6;
    box-shadow: none;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    width: 100%;
    margin: 0; /* remove auto-centering */
    padding-left: 60px; /* left gutter */
    padding-right: 24px;
}

/* Header navigation layout: left = logo + main menu, right = utilities */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

/* push utilities to right like Exxon: nav-menu consumes left, nav-right floats right */
.nav .nav-menu { 
    margin-right: auto;
    margin-left: 24px;
}

/* make main menu stick to the left next to the logo */
.header .logo + .nav .nav-menu {
    margin-left: 40px;
}

.nav-menu > .nav-item > a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.header.scrolled .nav-menu > .nav-item > a {
    color: #333;
}

.header.scrolled .nav-menu > .nav-item > a:hover {
    color: #e60012;
}

.nav-menu > .nav-item > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e60012;
    transition: width 0.3s ease;
}

.header.scrolled .nav-menu > .nav-item > a:hover::after {
    width: 100%;
}

/* Mega menu */
.nav-item {
    position: relative;
}

/* Desktop: show mega menu on hover/focus */
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
    display: block;
}



.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 760px;
    background: white;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 24px;
    z-index: 1000;
}

/* Allow mouse to move through a small gap without closing (for safety) */
.nav-item {
    padding-bottom: 12px; /* creates overlap area */
}

/* Hover/focus open handled above; remove duplicate rule */

.mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mega-left h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.mega-left p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* .mega-link removed (no longer used) */

.mega-right ul {
    list-style: none;
}

.mega-right li {
    margin-bottom: 10px;
}

.mega-right a {
    color: #333;
    text-decoration: none;
}

.mega-right a:hover {
    color: #e60012;
}
/* Ensure submenu links inside mega-menu remain dark regardless of top-level coloring */
.nav-menu .mega-menu a { color: #333; }
.nav-menu .mega-menu a:hover { color: #e60012; }
/* Disable mega menu on independent pages (add class no-mega to html) */
.no-mega .mega-menu { display: none !important; }
.no-mega .nav-item:hover .mega-menu,
.no-mega .nav-item:focus-within .mega-menu { display: none !important; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
    margin-right: 16px; /* match left gutter on tablet (<1024px) */
}

/* Global button removed */

.search-btn {
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Color transition for search handled in scrolled state and hover via icon opacity; remove duplicate color override */

.search-btn:hover {
    opacity: 0.7;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    display: none;
}

.search-overlay.active {
    display: block;
}

.search-panel {
    max-width: 1200px;
    margin: 120px auto 0;
    padding: 0 40px 80px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 16px;
}

.search-icon {
    color: #e60012;
    font-size: 20px;
}

.search-input {
    flex: 1;
    font-size: 32px;
    border: none;
    outline: none;
    color: #333;
}

.search-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
}

.popular-searches {
    margin-top: 32px;
}

.popular-searches h4 {
    font-size: 14px;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.tag {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: #e60012;
    color: #e60012;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #444; /* darker for visibility on mobile */
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header.scrolled .hamburger span {
    background: #333;
}

/* Hero Section - ExxonMobil Style */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/main_a.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    /* Remove extra white wash over header area; keep very subtle dark fade for text legibility */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0,0,0,0.0) 75%);
    padding-top: 0;
}

.hero-content {
    width: 100%;
}

.hero-text-box {
    max-width: 600px;
    color: white;
    padding-left: 0;
    margin-top: -40px; /* lift title further upward */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 32px; /* doubled spacing to subtitle */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 700px;
}

/* .hero-cta and .btn-read-release removed (not used) */

/* News ticker removed (not used) */

/* Section Styles */
section {
    padding: 80px 0;
}
.about-main { padding-top: 0; }

section:not(.hero) {
    margin-top: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-overview {
    margin-bottom: 60px;
    text-align: center;
}

.about-overview h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline */
.company-history {
    margin-bottom: 60px;
}

.company-history h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007acc;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 60px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007acc;
    margin-bottom: 10px;
}

.timeline-content p {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content p::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    border: 10px solid transparent;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content p::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    border: 10px solid transparent;
    border-right-color: white;
}

/* Leadership */
.leadership h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.leader-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #007acc;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007acc, #004d7a);
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.leader-card h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.leader-title {
    font-size: 1rem;
    color: #007acc;
    font-weight: 600;
    margin-bottom: 15px;
}

.leader-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* Gas Blocks Section */
.gas-blocks {
    background: #007acc;
    color: white;
}

.gas-blocks .section-title,
.gas-blocks .section-subtitle {
    color: white;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.block-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.block-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: white;
}

.block-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #87ceeb;
}

.stat p {
    font-size: 1rem;
    line-height: 1.5;
}

/* PSA Section */
.psa {
    background: #f8f9fa;
}

.psa-content {
    max-width: 1000px;
    margin: 0 auto;
}

.psa-overview {
    margin-bottom: 60px;
    text-align: center;
}

.psa-overview h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.psa-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.psa-keypoints h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.keypoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.keypoint {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.keypoint:hover {
    transform: translateY(-5px);
}

.keypoint h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #007acc;
}

.keypoint p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* LNG Project Section */
.lng-project {
    background: white;
}

.project-overview {
    text-align: center;
    margin-bottom: 60px;
}

.project-overview p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.detail-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid #007acc;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.detail-card p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
}

.detail-card ul {
    list-style: none;
    padding-left: 0;
}

.detail-card li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
}

.detail-card li:last-child {
    border-bottom: none;
}

.project-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.project-timeline h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

/* Partnership Section */
.partnership {
    background: #f8f9fa;
}

.partnership-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.partner-types h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.partner-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card i {
    font-size: 3rem;
    color: #007acc;
    margin-bottom: 20px;
}

.partner-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.partner-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Capital Structure */
.capital-structure {
    max-width: 800px;
    margin: 0 auto;
}

.capital-structure h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.financing-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.finance-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.finance-bar {
    height: 30px;
    background: linear-gradient(90deg, #007acc, #004d7a);
    border-radius: 15px;
    transition: width 0.3s ease;
}

.finance-item span {
    font-weight: 600;
    color: #333;
}

/* Documents Section */
.documents {
    background: white;
    padding: 80px 0;
}

/* Read more link */
.read-more-wrap { margin-top: 24px; text-align: center; }
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007acc;
    text-decoration: none;
    font-weight: 600;
}
.read-more i { font-size: 0.9rem; transition: transform 0.2s ease; }
.read-more:hover i { transform: translateX(3px); }

/* Read more on blue section (Gas Blocks) */
.gas-blocks .read-more { color: #ffffff; }
.gas-blocks .read-more i { color: #ffffff; }

/* LNG Project: make read-more hug the text above and separate from cards below */
.lng-project .read-more-wrap { margin-top: -38px; margin-bottom: 56px; }

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.document-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.document-card:hover {
    transform: translateY(-5px);
    border-color: #007acc;
}

.document-card i {
    font-size: 3rem;
    color: #007acc;
    margin-bottom: 20px;
}

.document-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* Contact Section */
.contact {
    background: #007acc;
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #87ceeb;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #007acc;
    margin-bottom: 10px;
    display: block;
}

.footer-logo p {
    color: #ccc;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007acc;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #888;
}

/* Responsive Design - Mobile First */

/* Mobile-first base adjustments */
.header .container {
    padding-left: 16px;
    padding-right: 16px; /* make gutters symmetric on mobile */
    max-width: none;
    width: 100%;
    margin: 0;
}

.hamburger {
    display: flex;
    margin-right: 16px; /* match logo left padding for equal side gutters on mobile */
}

.nav {
    justify-content: flex-end;
}

.nav-right {
    display: none;
}

.nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    transition: right 0.3s ease;
    gap: 16px;
    align-items: stretch;
}
/* Drop the menu panel slightly to create more separation visually */
body.menu-open .nav-menu { top: 86px; border-top: 1px solid #d6d6d6; }

.nav-menu a {
    color: #333; /* default dark for mobile overlay */
    font-size: 16px;
    text-align: left;
}

/* Ensure dark text while the mobile menu is open (beats earlier desktop/link rules) */
body.menu-open .nav-menu a { color: #333 !important; }
body.menu-open .nav-menu .nav-item > a { color: #333 !important; }
body.menu-open .nav-menu .mega-right a { color: #333 !important; }

/* Disable desktop underline pseudo-element for mobile overlay */
.nav-menu a::after {
    content: none;
    display: none;
}

.nav-menu.active {
    right: 0;
}

/* Prevent background scroll while menu is open */
body.menu-open { overflow: hidden; }

/* Hide desktop mega menus on small screens */
.mega-menu {
    display: none;
}

.container {
    padding: 0 15px;
}

.hero-title {
    font-size: 2rem;
}

.hero-text-box {
    max-width: 100%;
    padding: 0 20px;
    margin-top: 0;
}

/* .news-item mobile overrides removed */

.section-title {
    font-size: 1.8rem;
}

/* Mobile timeline layout */
.timeline::before {
    left: 20px;
    transform: none;
}

.timeline-item {
    padding-left: 60px;
    text-align: left;
}

.timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
}

.timeline-item:nth-child(even) {
    padding-left: 60px;
}

.timeline-content p::after {
    display: none;
}

.blocks-grid,
.project-details,
.partner-grid {
    grid-template-columns: 1fr;
}

.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-links {
    justify-content: center;
    flex-wrap: wrap;
}

.leader-card,
.keypoint,
.partner-card,
.detail-card {
    padding: 20px;
}

/* .btn-read-release mobile overrides removed */

/* (Removed) body.menu-open and hamburger active states: mobile menu disabled */

/* Mobile accordion styles */
.nav-menu .nav-item > a {
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 20px;
    white-space: nowrap;
    line-height: 1.4;
}

.nav-menu .nav-item > a::after {
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #666;
    transition: transform 0.2s ease;
    position: static;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-5px) scaleX(0.8);
    font-size: 12.5px;
    margin-left: 10px; /* space between text and chevron */
}

.nav-menu .nav-item.open > a::after {
    content: none; /* hide chevron in expanded state to avoid clash with underline */
    display: none;
}

.nav-menu .nav-item.open .mega-menu {
    display: block;
}

.nav-menu .mega-menu {
    position: static;
    width: 100%;
    background: transparent;
    color: #333;
    box-shadow: none;
    padding: 0 20px 8px;
}

.nav-menu .mega-inner {
    display: block;
}

.nav-menu .mega-left { display: none; }
.nav-menu .mega-right ul { padding: 8px 0 12px 28px; }
.nav-menu .mega-right a { display: block; padding: 8px 0; position: relative; overflow: hidden; }
.nav-menu .mega-right li { margin: 0 0 10px 0; }

/* Remove mobile submenu underline effect (per requirement) */
/* Intentionally no underline animation on submenu clicks for mobile */

/* Mobile independent page back button */
.mobile-back {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #666;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1100;
}
.mobile-back i { font-size: 16px; }
.mobile-back:hover { background: #f4f6f8; }
@media (max-width: 767.98px) and (hover: none) and (pointer: coarse) {
    .show-mobile-back .mobile-back { display: inline-flex; }
}

/* >= 480px */
@media (min-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    /* .news-item tablet override removed */
    .section-title {
        font-size: 2rem;
    }
}

/* >= 768px */
@media (min-width: 768px) {
    .nav {
        justify-content: space-between;
    }
    /* Move the top padding to the menu only so the search icon doesn't drop */
    .nav-menu { padding-top: 15px; }
    /* Lift search icon slightly without affecting layout */
    .nav-right .search-btn { transform: translateY(-5px); }
    /* Hide mobile chevron indicator on desktop */
    .nav-menu .nav-item > a::after { content: none; }
    .hamburger {
        display: none;
        margin-right: 0;
    }
    .nav-right {
        display: flex;
    }
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        flex-direction: row;
        justify-content: flex-start;
        padding-top: 0;
        transition: none;
        right: 0;
        gap: 28px;
        align-items: center;
    }
    .nav-menu > .nav-item > a {
        color: white;
        font-size: 14px;
        line-height: 60px; /* match logo height for vertical alignment */
    }
    /* Desktop underline effect already defined globally; no need to redefine here */
    /* Restore desktop mega menu appearance */
    .nav-menu .mega-menu {
        position: absolute;
        width: 760px;
        background: white;
        color: #333;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 24px;
    }
    .nav-menu .mega-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .nav-menu .mega-left { display: block; }
    .nav-menu .mega-right ul { padding: 0; }
    .nav-menu .mega-right li { margin-bottom: 10px; }
    .nav-menu .nav-item > a {
        display: inline-block;
        padding: 10px 0 0 0; /* lower desktop menu text by ~10px */
        line-height: normal;
    }
    /* Allow desktop hover mega-menu behavior */
    .mega-menu {
        display: none; /* stays hidden until hovered by desktop rules */
    }
    .hero-title {
        font-size: 2.8rem;
    }
    /* Desktop-like timeline layout */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-item:nth-child(odd) {
        text-align: right;
        padding-right: 60px;
    }
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 60px;
    }
    .timeline-content p::after {
        display: block;
    }
}

/* >= 1024px */
@media (min-width: 1024px) {
    .header .container {
        padding-left: 60px;
        padding-right: 24px;
    }
    /* Match right spacing of utilities to the logo's left padding (60px) */
    .nav-right { margin-right: 60px; }
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    /* .news-item desktop override removed */
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-text-box {
        max-width: 600px;
        padding-left: 0;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-title,
.leader-card,
.keypoint,
.partner-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* About page layout */
.about-page { padding-top: calc(var(--header-h, 0px) - 0px); }
.about-page .container {
    max-width: none;
    width: 100%;
    margin: 0; /* prevent centering so sidebar position stays constant from viewport left */
}
.about-layout {
    display: grid;
    grid-template-columns: 400px 1fr; /* fixed sidebar, fluid content */
    gap: 0;
}
.about-sidebar {
    border-right: 1px solid #e5e5e5;
    width: 400px;
    min-width: 400px;
    max-width: 400px;
}
.about-sidebar .about-nav { width: 100%; padding: 24px; }
.about-sidebar .about-nav ul { margin: 0; padding: 0; list-style: none; }
.about-sidebar .about-nav li { list-style: none; }
.about-sidebar .about-nav h4 { font-size: 18px; margin-bottom: 12px; }
.about-sidebar .about-nav li { margin-bottom: 8px; }
.about-sidebar .about-nav ul a,
.about-sidebar .about-nav ul button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    display: block;
    text-decoration: none;
    position: relative; /* for underline */
}
.about-sidebar .about-nav ul a:hover,
.about-sidebar .about-nav ul button:hover { background: #f4f6f8; }
.about-sidebar .about-nav .active { background: transparent; color: #0c5fe7; }
.about-sidebar .about-nav ul a:focus { outline: none; }

/* Red underline animation for active sidebar item */
.about-sidebar .about-nav ul a::after {
    content: '';
    position: absolute;
    left: 12px; /* align with link padding */
    right: auto;
    bottom: 6px;
    height: 2px;
    background: #e60012;
    width: 0;
    transition: width 0.6s ease;
}
.about-sidebar .about-nav ul a.active::after {
    width: calc(100% - 40px); /* stop 40px before right edge */
}

.about-main {
    min-width: 0;
}
.about-main { background: #fff; }
.about-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.about-nav-header h4 { margin: 0; white-space: nowrap; }
.about-nav-header .about-close {
    background: transparent;
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin: 0 10px 0 8px; /* 10px right gap, slight left gap */
    flex: 0 0 auto;
}
.about-nav-header .about-close:hover { background: #f4f6f8; }
.about-main .about-main-body {
    padding: 0 32px 24px;
    max-width: 80%;
    /* Center content within the right pane */
    margin-left: auto;
    margin-right: auto;
    display: flow-root; /* prevent margin collapsing so top margin applies correctly */
}
.about-main .about-main-body > section .about-overview { margin-top: -40px; }
.about-main .about-main-body .about-overview h3 { margin-top: 0; }
.about-main .about-main-body img { max-width: 100%; height: auto; display: block; margin-left: auto; margin-right: auto; }
#glance .about-overview img { width: 100%; max-width: 100%; height: auto; margin: 20px auto 0; }
/* Slightly larger first headings on independent pages */
.about-page .about-main .about-overview h3 { font-size: 2.25rem; }

/* Highlight current section in header on about page */
.header.scrolled .nav-menu > .nav-item > a.active {
    color: #0c5fe7;
}

/* Company History (About) - vertical timeline */
/* removed older history-timeline styles in favor of unified screenshot-style block below */

/* History: screenshot-style timeline */
#history .about-overview { text-align: left; }
#history .about-overview h3 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 58px; }

/* Normalize section subtitles spacing on independent pages */
.about-page .about-overview h4 { margin-top: 12px; }
/* Class for semantic subheadings instead of inline style */
.subhead { margin-top: 12px; }

.history-timeline { position: relative; margin: 12px 0 0; padding-left: 0; list-style: none; }
.history-timeline::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 4px; background: #0c5fe7; }

.history-timeline .timeline-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding-bottom: 36px; }
.history-timeline .timeline-item:last-child { padding-bottom: 0; }

/* small node on the line */
.history-timeline .timeline-item::before { content: ""; position: absolute; left: 18px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #0c5fe7; box-shadow: 0 0 0 4px #eaf2ff; }

.history-timeline .timeline-year { grid-column: 2; margin: 0 0 10px 0; color: #0c5fe7; font-weight: 800; font-size: 26px; line-height: 1.2; background: transparent; padding: 0; border-radius: 0; max-width: 828px; width: 100%; justify-self: start; }

.history-timeline .timeline-content { grid-column: 2; background: #fff; border: 1px solid #e6edf7; border-radius: 12px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(16,24,40,0.08); max-width: 828px; width: 100%; justify-self: start; text-align: left; }
.history-timeline .timeline-content p { margin: 0; color: #344054; line-height: 1.8; }
.history-timeline .timeline-media { margin-top: 12px; }
.history-timeline .timeline-media img { border-radius: 10px; }

/* Gas Blocks overview theme (right content only) */
.gb-panel { background: #ffffff; padding: 40px 40px 60px; border-radius: 0; margin-top: 40px; }
.gb-panel .about-overview { text-align: left; }
.gb-panel .about-overview { margin-top: 0 !important; }
.gb-panel .about-overview h3 { color: #333; }
.gb-panel .about-overview h4 { color: #0c5fe7; font-weight: 600; }
.gb-panel .about-overview p { color: #333; max-width: 800px; }

.gb-cards { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; align-items: center; }
.gb-card { background: #177fc0; border: 1px solid rgba(255,255,255,0.22); border-radius: 12px; padding: calc(32px * 1.1) 32px; color: #f3f8ff; box-shadow: 0 2px 6px rgba(0,0,0,0.12); width: 100%; margin-left: auto; margin-right: auto; }
.gb-card-title { font-size: 24px; font-weight: 700; color: #ffffff; margin-bottom: 18px; }
.gb-card-section + .gb-card-section { margin-top: 18px; }
.gb-card-section h5 { color: #ffffff; font-size: 16px; margin-bottom: 6px; }
.gb-card-section p { margin: 0; color: #f2f7ff; }

@media (min-width: 768px) {
  .gb-cards { gap: 28px; }
  .gb-card { width: 70%; }
}

/* Unified Overview styling across independent pages */
.about-page .about-main .about-main-body > #overview { margin-top: 12px; }
.about-page .about-main .about-main-body > #overview .about-overview { text-align: left; }
.about-page .about-main .about-main-body > #overview .about-overview h4 { color: #0c5fe7; font-weight: 600; }
.about-page .about-main .about-main-body > #overview .about-overview p { color: #333; line-height: 1.8; max-width: 900px; }

/* Core Values - card layout */
.values-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.values-cards li { background: #ffffff; border: 1px solid #e6edf7; border-radius: 12px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(16,24,40,0.06); color: #344054; }
.values-cards li strong { display: block; color: #0c5fe7; font-weight: 800; margin-bottom: 6px; font-size: 20px; }
@media (min-width: 768px) { .values-cards { grid-template-columns: repeat(3, 1fr); } }

/* Vision & Values heading alignment and sizing */
#vision-values .about-overview { text-align: left; }
#vision-values .about-overview h4 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 24px 0 12px; color: #0c5fe7; }
