﻿/* article.css - Clean custom stylesheet matching index.html header exactly */

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.nav-wrap,
.content-wrap {
  max-width: 1300px;
  width: 90%;
  margin: 0px auto;
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  /*background: rgba(229, 237, 241, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
  /* changed by sarthak */
  transition: all 0.5s ease-in-out;
  z-index: 9999;
  overflow: visible;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  position: relative;
}

.topnav a {
  color: #96C2DB;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.5s ease-in-out;
  text-decoration: none;
}

.topnav a:hover {
  color: #E5EDF1;
  background-color: rgba(150, 194, 219, 0.1);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.5s ease-in-out;
  z-index: 9998; /* Ensure dropdown content is above video and overlay */
  margin-top: 0;
}

/* Home Hero Content (text only) */
.home-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  position: absolute;
  top: 15%;
  left: 0;
  right: 0;
  max-width: 1020px;
  width: 80%;
  margin: auto;
  z-index: 1;
}

.home-hero-content h1 {
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-hero-content p {
  font-size: 1.5em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Add invisible bridge to prevent dropdown from disappearing */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
  z-index: 9997;
}

/* Override navigation colors for better visibility */
.topnav a {
  color: #235789 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.topnav a:hover {
  color: #235789 !important;
  background-color: rgba(35, 87, 137, 0.1) !important;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  color: #235789;
  background: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-content a:hover {
  background: #E5EDF1;
  color: #235789;
}

.bars {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: #232325;
}

@media screen and (max-width: 768px) {
  .nav-wrap {
    padding: 0.5rem 0;
  }

  .topnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 0;
    width: 100%;
  }

  .topnav.responsive {
    display: flex;
  }

  .topnav a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
  }

  .bars {
    display: block;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f8f9fa;
    width: 100%;
  }

  .dropdown-content a {
    padding-left: 2rem;
  }
}

.content-wrap {
  padding: 50px 0 75px 0;
}

.btn {
  text-decoration: none;
  background: #23ce6b;
  padding: 10px;
  display: inline-block;
  color: #fdfffc;
  transition: background-color 1s ease-in;
  cursor: pointer;
}

.btn:hover {
  background-color: #70e7a2;
  color: #fdfffc;
}

.btn:focus {
  border: 2px solid #235789;
}

.hero {
  background: #232325;
  background-size: cover;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Header
  -------------------------------------------------------------------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* Ensure header is on top */
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  width: 80%;
  max-width: 1020px;
  margin: 0 auto;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  position: relative;
}

.topnav a {
  color: #96C2DB;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.5s ease-in-out;
  text-decoration: none;
}

.topnav a:hover {
  color: #E5EDF1;
  background-color: rgba(150, 194, 219, 0.1);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.5s ease-in-out;
  z-index: 9998;
  margin-top: 0;
}

.home-hero {
  position: relative;
  z-index: 1;
}

.home-hero video {
  position: relative;
  z-index: 1;
}

/* header.scroll-down {
  transform: translateY(-100%);
}

header.scroll-up {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

/* Improve mobile menu animation */
.topnav.responsive {
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Update bars icon transition */
.bars i {
  transition: transform 0.3s ease;
}

.bars i.fa-times {
  transform: rotate(180deg);
}

.logo img {
  width: 170px;
  padding: 10px;
  height: auto;
}

/* Navigation
  -------------------------------------------------------------------------- */

nav {
  font-size: 0;
}

nav a {
  padding: 15px 20px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: normal;
  font-size: 18.4px;
  display: inline-block;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.5s ease-in-out;
  z-index: 9998;
  margin-top: 0;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  color: #96C2DB;
  background: #FFFFFF;
  text-decoration: none;
  text-align: left;
  text-transform: none;
  font-weight: normal;
  line-height: normal;
  font-size: 18.4px;
}

.dropdown-content a:hover {
  background: #E5EDF1;
  color: #96C2DB;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropbtn {
  padding: 15px 20px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: normal;
  font-size: 18.4px;
  display: inline-block;
  cursor: pointer;
}

.bars {
  display: none;
}

/* Mobile Hamburger Menu */
.bars {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: #232325;
}

.bars i {
    transition: transform 0.3s ease;
}

.bars i.fa-times {
    transform: rotate(180deg);
}

/* Push article container down so header doesn't overlap top content */
main[role="main"] {
    padding-top: 120px;
}

/* Article Container */
.article-container {
    max-width: 800px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #00509e;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem;
}

.article-header h1 {
    color: #002b5c;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
    font-weight: 700;
}

.article-meta {
    color: #666666;
    font-size: 0.95rem;
}

.featured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: block;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    main[role="main"] {
        padding-top: 90px;
    }

    .nav-wrap {
        padding: 0.5rem 0;
    }

    .bars {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .topnav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }

    .topnav.responsive {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    .topnav a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: block;
    }

    .dropdown-content a {
        padding-left: 2rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
