@font-face {
  font-family: Eliot Lord;
  src: url(Fonts/Eliothand-Regular.otf);
}

html {
  height: 100%;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow-x: hidden;
  -webkit-user-drag: none;
  color: #333;
}

.hamburger {
  -webkit-user-drag: none;
}

.hamburger:hover {
  cursor: url("img/background/Pointer.svg"), pointer;
}

img {
  -webkit-user-drag: none;
}

.logo-section {
  padding: 0;
}

body > *:not(footer, header) {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-text-decoration-skip: none;
}

/* Scrollbar styles */
body::-webkit-scrollbar {
  width: 1em;
  overflow: scroll;
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px #012169;
}

body::-webkit-scrollbar-thumb {
  background-color: #012169;
  outline: 1px solid #012169;
  width: 1em;
  border-radius: 10px;
}

/* Selection styles */
::selection {
  background-color: #cd0000;
  color: white;
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-style: none;
  -webkit-text-decoration: none;
  -webkit-text-decoration-line: none;
}

::-moz-selection {
  background-color: #cd0000;
  color: white;
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-style: none;
}

*::selection {
  text-decoration: none !important;
}

*::-moz-selection {
  text-decoration: none !important;
}

a::selection {
  text-decoration: none;
}

a::-moz-selection {
  text-decoration: none;
}

.article-view .full-content a::selection {
  color: red;
}

.article-view .full-content a::-moz-selection {
  text-decoration: none;
}

.full-content {
  font-family: Eliot Lord;
  font-size: 3dvw;
}

.full-content a {
  text-decoration: underline;
  color: #0087dc;
}

.full-content a:hover {
  text-decoration: underline;
  color: #e4003b;
}

/* Hamburger button - Desktop: hidden, Mobile: fixed position */
.hamburger {
  display: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #012169;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Header - Full width white background */
header {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  margin-bottom: 0 !important;
  background-color: white;
  position: relative;
}

/* Header content wrapper with borders */
.header-content {
  max-width: 60%;
  margin: 0 auto;
  border-left: 2px solid #012169;
  border-right: 2px solid #012169;
}

/* Navigation - Centered content with full width background */
nav {
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 60%;
  text-align: center;
  padding-top: 0%;
  padding-bottom: 0;
  border-top: 2px solid #012169;
  border-bottom: 2px solid #012169;
  border-left: 2px solid #012169;
  border-right: 2px solid #012169;
}

nav a {
  padding: 10px 15px;
  font-size: clamp(14px, 1.5dvw, 24px);
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: #006548;
  color: #faa61a;
  border-top: 2.5px solid #000;
  border-bottom: 2.5px solid #000;
}

nav a.active {
  border-top: 2.5px solid #000;
  border-bottom: 2.5px solid #000;
  background-color: #c8102e;
  color: white;
  text-decoration: underline;
}

/* Headings */
h1,
h2 {
  overflow: hidden;
  margin: auto;
  display: block;
  width: 100%;
  text-align: center;
  padding: 0%;
}

h1 a {
  text-decoration: underline;
  font-size: clamp(18px, 2dvw, 32px);
  color: #c8102e;
}

h1 a:hover {
  color: #ecd53e;
}

h2 {
  font-size: clamp(14px, 1.2dvw, 24px);
}

h2 a {
  color: #c8102e;
}

h2 a:hover {
  color: #012169;
  font-weight: 900;
}

/* Columns */
.column {
  display: inline-block;
  width: 48%;
  padding: 10px;
  height: 300px;
  vertical-align: top;
  box-sizing: border-box;
}

.column:first-of-type {
  margin-right: 2%;
}

/* Bios container */
.bios-container {
  width: 90%;
  margin: 2% auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2%;
}

.bio-item {
  width: 31.33%;
  text-align: center;
  margin-bottom: 3%;
}

.bio-item img {
  width: 50%;
  display: block;
  margin: 0 auto 1rem auto;
}

.bio-item h1,
.bio-item h2 {
  width: 100%;
  text-align: center;
}

/* Main content wrapper */
main {
  flex: 1;
}

/* Footer pinned to bottom */
footer {
  font-size: clamp(12px, 2dvw, 24px);
  padding: 1rem 0;
  margin-top: auto;
  width: 60vw;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  background-color: #012169;
  color: white;
}

.footertop a {
  color: white;
}

.footertop {
  color: white;
}

footer {
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  background-color: #c8102e;
  text-decoration: underline;
  color: white;
}

/* PDF/Object embeds */
object {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  max-height: 1200px;
  display: block;
  margin: 2% auto;
}

/* FlipHTML5 container */
.fliphtml5-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fliphtml5-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #525659;
}

.fliphtml5-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.fliphtml5-fallback {
  text-align: center;
  padding: 40px;
  display: none;
}

.fliphtml5-fallback a {
  display: inline-block;
  padding: 12px 24px;
  background: #012169;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 15px;
  transition: background 0.3s;
}

.fliphtml5-fallback a:hover {
  background: #c8102e;
}

/* PDF responsive container */
.pdf-responsive-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%;
}

.pdf-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  border: 0;
}

.responsive-iframe {
  width: 100%;
  height: 100%;
}

/* Error messages */
.error-link {
  text-decoration: none;
}

.error-message {
  font-weight: bold;
  background-color: #ffffff;
  color: #c8102e;
  padding: 2%;
  text-align: center;
}

.error-link:hover .error-message {
  background-color: #012169;
  color: white;
}

/* Articles container */
.articlescontainer {
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px;
}

.starticle {
  font-family: Eliot Lord;
  justify-content: center;
  font-size: 4dvw;
  background-color: #00bed6;
  color: white;
}

/* Main Featured Article Section */
.main-article-section {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
  cursor: url(img/background/Pointer.svg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.main-article-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 0, 59, 1);
}

.main-article-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.main-article-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  background: #f0f0f0;
}

.main-article-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-article-category {
  display: inline-block;
  background-color: #c00;
  color: white;
  padding: 6px 16px;
  font-size: 0.85em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 15px;
  width: fit-content;
}

.main-article-title {
  font-size: 2.5em;
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
  margin: 15px 0;
  color: #1a1a1a;
  line-height: 1.2;
}

.main-article-excerpt {
  color: #666;
  line-height: 1.8;
  margin: 20px 0;
  font-size: 1.1em;
}

.main-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #eee;
  color: #999;
}

.main-article-read-more {
  color: #c00;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
}

/* Responsive adjustments for main article */
@media (max-width: 968px) {
  .main-article-content {
    grid-template-columns: 1fr;
  }

  .main-article-image {
    min-height: 300px;
  }

  .main-article-text {
    padding: 30px;
  }

  .main-article-title {
    font-size: 2em;
  }
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: url(img/background/Pointer.svg);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(228, 0, 59, 1);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f0f0;
}

.article-content {
  padding: 20px;
}

.article-category {
  display: inline-block;
  background-color: #c00;
  color: white;
  padding: 4px 12px;
  font-size: 0.75em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 10px;
}

.article-category.business,
span.article-category.business,
.main-article-category.business {
  background-color: #1a5490 !important;
}

.article-category.politics,
span.article-category.politics,
.main-article-category.politics {
  background-color: #b50938 !important;
}

.article-category.sovereignty,
span.article-category.sovereignty,
.main-article-category.sovereignty {
  background-color: #4169e1 !important;
}

.article-category.environment,
span.article-category.environment,
.main-article-category.environment {
  background-color: #85bb65 !important;
}

.article-category.technology,
span.article-category.technology,
.main-article-category.technology {
  background-color: #8e8e8e !important;
}

.article-category.law,
span.article-category.law,
.main-article-category.law {
  background-color: #4674e5 !important;
}

.article-category.international,
span.article-category.international,
.main-article-category.international {
  background-color: #0077d4 !important;
}

.article-category.equality,
span.article-category.equality,
.main-article-category.equality {
  background-color: #ff6b35 !important;
}

.article-category.royalty,
span.article-category.royalty,
.main-article-category.royalty {
  background-color: #7851a9 !important;
}

.article-title {
  font-size: 1.4em;
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
  margin: 10px 0;
  color: #1a1a1a;
}

.article-excerpt {
  color: #666;
  line-height: 1.6;
  margin: 10px 0;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 0.85em;
  color: #999;
}

.read-more {
  color: #c00;
  font-weight: bold;
  text-decoration: none;
}

.article-view {
  display: none;
  background: white;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-view.active {
  display: block;
}

.back-button {
  background-color: #b50938;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: url(img/background/Pointer.svg), pointer;
  margin-bottom: 20px;
  font-size: 1em;
}

.back-button:hover {
  background-color: #006548;
  cursor: url(img/background/Pointer.svg), pointer;
}

.article-view h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.article-view .meta-info {
  color: #999;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.article-view .full-content {
  line-height: 1;
  font-size: 2.8dvw;
  color: #333;
  text-decoration: none;
}

.article-view .full-content p {
  margin-bottom: 20px;
}

/* Subscription form styles */
.subscribe-section {
  background-color: white;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.subscribe-section h2 {
  color: #012169;
  margin-top: 0;
  text-align: center;
  font-size: clamp(18px, 1.5dvw, 28px);
}

.subscribe-form {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: #012169;
}

.subscribe-form button {
  background-color: #c8102e;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: url(img/background/Pointer.svg);
  transition: background-color 0.3s;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background-color: #a00d25;
}

.subscribe-form button:active {
  transform: translateY(1px);
}

.subscribe-description {
  color: #666;
  text-align: center;
  margin-bottom: 0;
  font-size: clamp(14px, 1.1dvw, 18px);
}

/* ============================================
     MOBILE RESPONSIVE STYLES - HAMBURGER MENU
     ============================================ */

@media screen and (max-width: 768px) {
  body > *:not(footer, header) {
    width: 90%;
  }

  h1,
  h2 {
    width: 90%;
  }

  .bios-container {
    width: 90%;
  }

  .column {
    width: 100%;
    margin-right: 0 !important;
    height: auto;
    margin-bottom: 20px;
  }

  .bio-item {
    width: 100%;
  }

  object {
    height: 70vh;
    min-height: 400px;
  }

  .fliphtml5-container {
    padding: 10px;
  }

  .fliphtml5-wrapper {
    padding-bottom: 100%;
  }

  .subscribe-section {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form button {
    width: 100%;
  }

  /* Show hamburger button - FIXED POSITION */
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: url(img/background/Pointer.svg);
    padding: 10px;
    z-index: 1001;
    background: #fff;
    border: none;
    position: fixed;
    top: 10px;
    right: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Remove borders from header content on mobile */
  .header-content {
    border-left: none;
    border-right: none;
  }

  /* Navigation overlay from right */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    max-width: none;
    background-color: #fff;
    padding: 80px 0 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    border: none;
  }

  /* Slide in when active */
  nav.active {
    right: 0;
  }

  /* Navigation links */
  nav a {
    display: block;
    text-align: left;
    padding: 20px 30px;
    border-top: 2.5px solid #000;
    border-bottom: 2.5px solid #000;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    color: #000;
    text-decoration: none;
    transition: background-color 0.2s;
  }

  nav a:first-of-type {
    border-top: none;
  }

  nav a:hover {
    background-color: #006548;
    border-top: 2.5px solid #000;
    border-bottom: 2.5px solid #000;
    color: white;
    border-top: none;
  }

  /* Overlay backdrop */
  nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(1, 33, 105, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: -1;
  }

  nav.active::before {
    opacity: 1;
    visibility: visible;
  }
}

@media screen and (max-width: 480px) {
  body > *:not(footer, header) {
    width: 95%;
  }

  h1,
  h2 {
    width: 95%;
  }

  .bios-container {
    width: 95%;
  }

  object {
    height: 60vh;
    min-height: 300px;
    min-width: 300px;
  }

  .fliphtml5-container {
    padding: 5px;
  }

  .fliphtml5-wrapper {
    padding-bottom: 120%;
  }

  nav {
    width: 250px;
  }
}

#pdf-container {
  border: 1px solid #ccc;
  overflow: auto;
  width: 80%;
  max-width: 800px;
  height: 70vh;
}

.button-group,
#zoom-controls,
#file-controls {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.button-group button,
#zoom-controls button,
#file-controls button,
#file-controls input[type="file"] {
  margin: 0 5px;
  padding: 5px 10px;
  border: none;
  background-color: #007bff;
  color: #fff;
  cursor: url(img/background/Pointer.svg);
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.button-group button:hover,
#zoom-controls button:hover,
#file-controls button:hover,
#file-controls input[type="file"]:hover {
  background-color: #0056b3;
}

#go-to-page-input,
#go-to-page-btn {
  margin-left: 5px;
}

a:hover,
img[onClick],
div[onclick] {
  cursor: url("img/background/Pointer.svg"),
    url("img/background/cursors/Finger%20cursor.png"), pointer;
}

.main-article-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: lighter;
  font-size: 1.3dvw;
}
