/* 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 */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #007acc;
    color: #007acc;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #007acc;
    color: white;
}

.lang-btn:hover {
    background: #007acc;
    color: white;
}

/* Header */
.header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

.header:hover .logo-text {
    color: #e60012;
}

.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: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.header:hover .nav-menu a {
    color: #333;
}

.header:hover .nav-menu a:hover {
    color: #e60012;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e60012;
    transition: width 0.3s ease;
}

.header:hover .nav-menu a:hover::after {
    width: 100%;
}

/* Mega menu */
.nav-item {
    position: relative;
}

/* Keep mega-menu open while hovering either the parent or the panel */
.nav-item:hover > a,
.nav-item:focus-within > a {
    color: #e60012;
}

.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 */
}

.nav-item:hover .mega-menu {
    display: block;
}

.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 {
    color: #e60012;
    font-weight: 600;
    text-decoration: none;
}

.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;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
    margin-right: 180px; /* move away from language toggle at top-right */
}

.global-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.header:hover .global-btn {
    color: #e60012;
}

.global-btn:hover {
    opacity: 0.7;
}

.global-btn i {
    font-size: 16px;
}

.search-btn {
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.header:hover .search-btn {
    color: #e60012;
}

.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: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.header:hover .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 {
    margin-top: 40px;
}

.btn-read-release {
    background: #e60012;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-read-release:hover {
    background: #c8000f;
    transform: translateX(5px);
}

.btn-read-release i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-read-release:hover i {
    transform: translateX(5px);
}

/* News Ticker */
.news-ticker {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0;
    margin-top: auto;
}

.news-items {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.news-item {
    flex: 0 0 25%;
    padding: 20px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.news-item:last-child {
    border-right: none;
}

.news-item h4 {
    color: white;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Pause/Play controls for news ticker */
.news-ticker:hover .news-items {
    animation-play-state: paused;
}

/* Section Styles */
section {
    padding: 80px 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;
}

.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: 88px;
    max-width: none;
    width: 100%;
    margin: 0;
}

.hamburger {
    display: flex;
    margin-right: 96px;
}

.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;
    font-size: 16px;
    text-align: left;
}

/* Disable desktop underline pseudo-element for mobile overlay */
.nav-menu a::after {
    content: none;
    display: none;
}

.nav-menu.active {
    right: 0;
}

/* 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 {
    flex: 0 0 100%;
}

.news-item h4 {
    font-size: 12px;
}

.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 {
    padding: 12px 24px;
    font-size: 14px;
}

/* When mobile menu is open */
body.menu-open {
    overflow: hidden;
}

body.menu-open .language-toggle {
    display: none;
}

body.menu-open .header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #d0d0d0;
}

body.menu-open .header .container {
    padding-right: 16px;
}

body.menu-open .hamburger {
    margin-right: 0;
}

/* Hamburger to X animation */
.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);
}

/* 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; }
.nav-menu .mega-right li { margin: 0 0 10px 0; }

/* >= 480px */
@media (min-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .news-item {
        flex: 0 0 50%;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* >= 768px */
@media (min-width: 768px) {
    .nav {
        justify-content: space-between;
    }
    .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 a {
        color: white;
        font-size: 14px;
    }
    /* Re-enable underline effect for desktop links */
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: #e60012;
        transition: width 0.3s ease;
        display: block;
    }
    .nav-menu .nav-item > a::after { content: none; }
    /* 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: 0;
        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;
    }
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    .news-item {
        flex: 0 0 25%;
    }
    .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);
}
