/* --- Global Styles & Variables --- */
:root {
  --primary-blue: #00aeef;
  --dark-blue-text: #003a5d; /* Example dark blue */
  --accent-orange: #f39200;
  --accent-yellow: #ffcc00;
  --gradient-start: #f09819; /* Example orange */
  --gradient-end: #ff512f;   /* Example reddish-orange */
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-grey: #555555;
  --background-light-grey: #f8f9fa;
  --background-box-blue: #e0f7ff; /* Lighter blue for boxes */
  --border-color: #dddddd;
  --font-family: 'Open Sans', sans-serif;
  --container-width: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1; /* Ensures footer stays at bottom */
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  margin-bottom: 0.8em;
  color: var(--dark-blue-text); /* Or adjust as needed */
  font-weight: 700;
}

button {
  cursor: pointer;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Header --- */
.site-header {
  background-color: var(--text-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: relative; /* For mobile menu positioning */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px; /* Adjust as needed */
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  position: relative; /* Crucial for absolute positioning of dropdown */
  margin-left: 25px;
}

.main-nav ul li a {
  color: var(--text-dark);
  padding: 10px 5px;
  display: block;
  font-weight: 600;
}

.main-nav ul li a:hover,
.main-nav ul li a.active { /* Add active class via JS */
  color: var(--primary-blue);
}

/* Dropdown Menu - DESKTOP */
.dropdown {
  display: none; /* Hidden by default */
  position: absolute; /* Position relative to the parent li */
  top: 100%; /* Position below the parent */
  left: 0;
  background-color: #ffffff; /* Opaque white background */
  min-width: 220px; /* Adjust width as needed */
  z-index: 1000;
  border: 1px solid #e0e0e0; /* Subtle border */
  border-top: none; /* No top border */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); /* Slightly more pronounced shadow */
  border-radius: 0 0 5px 5px;
  padding: 10px 0; /* Padding top/bottom */
  opacity: 0; /* Start hidden for transition */
  visibility: hidden; /* Start hidden */
  transform: translateY(10px); /* Start slightly lower */
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* Show on hover (Desktop) */
.dropdown-li:hover > .dropdown {
  display: block; /* Use display block to allow hover */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.dropdown li {
  margin: 0;
}

.dropdown li a {
  padding: 10px 20px; /* Consistent padding */
  white-space: nowrap;
  color: var(--text-dark);
  font-weight: 400;
  display: block; /* Ensure it takes full width */
  font-size: 0.95rem; /* Slightly smaller font */
}

.dropdown li a:hover {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

.search-icon {
  color: var(--text-grey);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
}

.search-icon:hover {
  color: var(--primary-blue);
}

/* Mobile Menu Toggle Button*/
.mobile-menu-toggle {
  display: none; /* Hidden by default */
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-dark);
}

/* --- Hero Section (Homepage) --- */
.hero {
  height: 60vh; /* Adjust height as needed */
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('img/hero-bg.jpg') no-repeat center center/cover;
  /* Approximating the warm gradient overlay */
  /* background: linear-gradient(to bottom right, rgba(243, 146, 0, 0.6), rgba(255, 81, 47, 0.7)), url('img/hero-bg.jpg') no-repeat center center/cover; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative; /* For potential pseudo-element overlay if needed */
  padding: 20px;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
  position: relative;
  padding-bottom: 10px;
}
/* Underline effect */
.hero h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; /* Adjust width */
  height: 3px; /* Adjust thickness */
  background-color: var(--accent-orange);
}


.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  font-weight: 600;
}

.hero .btn:hover {
  background-color: var(--accent-orange);
}

/* --- Content Sections (Homepage & Subpages) --- */
.page-section {
  padding: 60px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 30px;
  margin-top: 30px;
}

.info-box {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-box img {
  margin-bottom: 15px;
  border-radius: 5px;
  width: 100%; /* Make image fill width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Crop image nicely */
}

.info-box h3 {
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.info-box p {
  margin-bottom: 20px;
}

.info-box .btn {
  background-color: var(--text-light);
  color: var(--primary-blue);
  padding: 8px 18px;
  display: inline-block; /* Important */
  text-align: center;
  font-weight: 600;
  border: 2px solid var(--text-light); /* Optional border */
}

.info-box .btn:hover {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

/* Specific boxes for news, share price etc. */
.info-box.news, .info-box.share-price {
  background-color: var(--background-box-blue); /* Lighter blue */
  color: var(--text-dark);
}

.info-box.news h3, .info-box.share-price h3 {
   color: var(--dark-blue-text);
}

.info-box.news ul {
  list-style: none;
  padding: 0;
}
.info-box.news ul li {
  border-bottom: 1px solid #cceeff; /* Light blue border */
  padding: 10px 0;
}
.info-box.news ul li:last-child {
  border-bottom: none;
}
.info-box.news ul li span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-grey);
}

.info-box.share-price .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue-text);
}
.info-box.share-price .change {
   font-size: 1rem;
   color: var(--text-grey); /* Adjust color based on +/- if dynamic */
}
.info-box.share-price .timestamp {
   font-size: 0.8rem;
   color: var(--text-grey);
   margin-top: 5px;
}

.info-box.news .btn, .info-box.share-price .btn {
  background-color: var(--primary-blue);
  color: var(--text-light);
  border: 2px solid var(--primary-blue);
}
.info-box.news .btn:hover, .info-box.share-price .btn:hover {
  background-color: transparent;
  color: var(--primary-blue);
}


/* --- Subpage Layout --- */
.page-banner {
  height: 35vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  position: relative;
}
.page-banner::before { /* Dark overlay */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.page-banner h1 {
  font-size: 2.5rem;
  color: var(--text-light);
  z-index: 1;
  position: relative;
}

.subpage-content-area {
  padding: 40px 0;
}

.subpage-layout {
  display: flex;
  gap: 30px;
}

.sidebar {
  width: 250px; /* Fixed width sidebar */
  flex-shrink: 0;
  background-color: var(--background-light-grey);
  padding: 20px;
  border-radius: 5px;
  align-self: flex-start; /* Align to top */
}

.sidebar h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li a {
  display: block;
  padding: 8px 0;
  color: var(--text-dark);
  font-weight: 600;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  color: var(--primary-blue);
}

.main-column {
  flex-grow: 1; /* Takes remaining space */
}

.main-column h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.main-column h3 { /* Sub-headings within content */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.main-column p {
  margin-bottom: 15px;
}

.main-column ul, .main-column ol {
  margin-left: 20px;
  margin-bottom: 15px;
}
.main-column li {
  margin-bottom: 8px;
}

/* Specific elements like board members */
.board-member {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.board-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.board-member h4 {
  margin-bottom: 5px;
}
.board-member .title {
  font-weight: 600;
  color: var(--text-grey);
  display: block;
  margin-bottom: 10px;
}

/* Map Image */
.map-container img {
  width: 100%;
  margin-top: 30px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

/* Reports Table */
.reports-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.reports-table th, .reports-table td {
  border: 1px solid var(--border-color);
  padding: 10px;
  text-align: left;
}
.reports-table th {
  background-color: var(--background-light-grey);
  font-weight: 600;
}
.reports-table td a {
  display: inline-block; /* Make link take space */
}
.reports-table .download-icon {
  margin-left: 5px;
  color: var(--primary-blue); /* Style the icon */
}
.reports-table .download-icon:hover {
  color: var(--accent-orange);
}

/* Accordion for ESG Governance */
.accordion-item {
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden; /* Prevents content spill */
}
.accordion-header {
  background-color: var(--background-light-grey);
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  display: flex;
  justify-content: space-between; /* Push arrow to the right */
  align-items: center;
}
.accordion-header::after { /* Arrow icon */
  content: '▼';
  font-size: 0.8em;
  transition: transform 0.3s ease;
  flex-shrink: 0; /* Prevent arrow from shrinking */
  margin-left: 10px; /* Space between text and arrow */
}
.accordion-header.active::after {
  transform: rotate(180deg);
}
.accordion-content {
  padding: 15px;
  display: none; /* Hidden by default */
  border-top: 1px solid var(--border-color);
  background-color: #fff; /* White background for content */
}


/* --- Footer --- */
.site-footer-bottom {
  background-color: var(--dark-blue-text); /* Dark background */
  color: var(--text-light);
  padding-top: 40px; /* Space for content above bar */
  margin-top: auto; /* Push to bottom */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px; /* Space before bar */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-logo {
  flex-basis: 150px; /* Give logo some space */
}
.logo-footer {
  height: 60px; /* Adjust */
  width: auto;
  filter: brightness(0) invert(1); /* Make logo white */
}

.footer-address {
  flex-basis: 250px; /* Adjust as needed */
}
.footer-address h4 {
  color: var(--text-light);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 5px;
}
.footer-address h4::after { /* Underline */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-blue);
}
.footer-address p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-address a {
  color: var(--primary-blue);
  font-size: 0.9rem;
}
.footer-address a:hover {
  color: var(--accent-orange);
}

.footer-bar {
  background-color: #002a4a; /* Slightly darker */
  padding: 15px 0;
  font-size: 0.85rem;
}

.footer-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Wrap on small screens */
}
.footer-nav a {
  color: var(--text-light);
  margin-left: 15px;
}
.footer-nav a:hover {
  color: var(--primary-blue);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--text-light);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  font-size: 0.9rem;
  flex-wrap: wrap; /* Wrap on small screens */
  gap: 10px;
}

.cookie-banner p {
  margin: 0;
  flex-grow: 1; /* Take available space */
}

.cookie-banner a {
  color: var(--primary-blue);
  text-decoration: underline;
}
.cookie-banner a:hover {
  color: var(--accent-orange);
}

.cookie-banner button {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 8px 15px;
  font-size: 0.9rem;
  flex-shrink: 0; /* Don't shrink button */
}

.cookie-banner button:hover {
  background-color: var(--accent-orange);
}

.cookie-banner.hidden {
  display: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .container {
      max-width: 960px;
  }
   .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
   .footer-address {
      flex-basis: 200px;
  }
}

@media (max-width: 768px) {
  .header-container {
      flex-wrap: wrap; /* Allow wrapping */
  }
  .main-nav {
      display: none; /* Hide nav by default */
      width: 100%;
      order: 3; /* Move below logo and toggle */
      background-color: white; /* Ensure visibility */
      box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add shadow */
      position: absolute;
      top: 100%; /* Position below header */
      left: 0;
      z-index: 999;
      max-height: calc(100vh - 70px); /* Limit height, adjust 70px based on approx header height */
      overflow-y: auto; /* Allow scrolling if menu is long */
  }
  .main-nav.active {
      display: block; /* Show when active */
  }
  .main-nav ul {
      flex-direction: column; /* Stack items vertically */
  }
  .main-nav ul li {
      margin: 0;
      border-bottom: 1px solid var(--border-color);
      position: relative; /* Keep relative */
  }
   .main-nav ul li:last-child {
      border-bottom: none;
  }
  .main-nav ul li a { /* Main nav links in mobile */
      padding: 15px 20px;
      display: flex; /* Use flex to align text and arrow */
      justify-content: space-between; /* Push arrow to the right */
      align-items: center;
  }

  /* MOBILE Dropdown Styling */
  .main-nav .dropdown {
      /* Override desktop absolute positioning & styling */
      position: static; /* Make it flow inline */
      display: none; /* Initially hidden, controlled by JS .open class */
      border: none;
      box-shadow: none;
      padding: 0;
      background-color: var(--background-light-grey); /* Slightly different background */
      min-width: unset;
      opacity: 1;
      visibility: visible;
      transform: none;
      transition: none;
      border-radius: 0;
      border-top: 1px solid #eee; /* Add a top border to visually separate from parent */
  }

  /* Show mobile dropdown when parent li has .open class */
  .main-nav .dropdown-li.open > .dropdown {
      display: block;
  }

  /* Style nested links in mobile */
  .main-nav .dropdown li {
       border-bottom: none; /* Remove border from parent li style */
  }
  .main-nav .dropdown li a {
      padding: 12px 20px 12px 35px; /* Indent the sub-menu links */
      font-weight: 400;
      font-size: 0.9rem; /* Slightly smaller */
      background-color: var(--background-light-grey); /* Match dropdown bg */
      border-top: 1px solid #eee; /* Separator lines between sub-items */
      justify-content: flex-start; /* Align sub-items left */
  }
   .main-nav .dropdown li:first-child a {
       border-top: none; /* No top border for the first sub-item */
   }

  .main-nav .dropdown li a:hover {
      background-color: #e9ecef; /* Subtle hover for mobile sub-items */
      color: var(--primary-blue);
  }

  /* Mobile Dropdown Arrow Indicator on Parent Link */
  .main-nav .dropdown-li > a::after {
      content: '▼';
      font-size: 0.7em;
      display: inline-block; /* Needed for transform */
      margin-left: 5px;
      transition: transform 0.2s ease;
      flex-shrink: 0; /* Prevent shrinking */
  }
  .main-nav .dropdown-li.open > a::after {
      transform: rotate(180deg);
  }
   /* Remove ::after arrow from sub-items if it accidentally gets inherited */
   .main-nav .dropdown li a::after {
       content: none;
   }

  .mobile-menu-toggle {
      display: block; /* Show toggle */
      order: 2; /* Place it after logo */
  }
  .search-icon {
      order: 1; /* Keep search near logo if desired */
      margin-left: 0;
      margin-right: 15px;
  }
  .hero h1 {
      font-size: 2.2rem;
  }
  .hero p {
      font-size: 1rem;
  }
   .subpage-layout {
      flex-direction: column;
  }
  .sidebar {
      width: 100%; /* Full width */
      margin-bottom: 30px;
  }
   .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  .footer-logo {
      margin-bottom: 20px;
  }
  .footer-bar-container {
      flex-direction: column;
      gap: 10px;
  }
   .footer-nav a {
      margin: 0 8px;
  }
  .cookie-banner {
      flex-direction: column;
      text-align: center;
  }

}