@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

/* Custom variables for luxury Gold & Obsidian look & feel */
:root {
  --primary-color: #d4af37; /* Classic Gold */
  --primary-glow: rgba(212, 175, 55, 0.4);
  --bg-gradient: linear-gradient(135deg, #09070f 0%, #151121 50%, #09070f 100%);
  --panel-bg: rgba(21, 17, 33, 0.75);
  --sidebar-bg: rgba(28, 23, 43, 0.85);
  --panel-border: rgba(212, 175, 55, 0.15);
  --text-primary: #f4efe2; /* Soft Cream / Parchment */
  --text-secondary: #9f96a8; /* Muted Antique Lavender */
  --accent-color: #e5c158; /* Warm Gold */
  --highlight-color: #ffffff;
  --link-color: #f3d078;
  --font-title: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
}

/* Reset default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: var(--bg-gradient);
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Base headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--highlight-color);
}

/* Structure */
#bg {
  width: 100%;
  min-height: 100vh;
  padding: 0 14px 28px 14px;
}

#shadow {
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(3, 7, 18, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid var(--panel-border);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 0 28px 28px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Header */
header {
  margin-bottom: 21px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
}

#blogname {
  text-decoration: none;
  display: block;
}

#blogname span.bold {
  font-size: 38px;
  font-weight: 800;
  color: var(--highlight-color);
  background: linear-gradient(to right, var(--highlight-color) 20%, var(--accent-color) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

header h1 {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* Navigation */
nav {
  margin-bottom: 28px;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

#nav li a {
  display: inline-block;
  padding: 7px 14px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav li a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* Layout container */
#container {
  display: flex;
  gap: 28px;
}

#left-col {
  flex: 1;
  min-width: 0; /* Avoid layout break */
}

/* Main Content Card */
.post {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.entry_header h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--accent-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 11px;
  line-height: 1.2;
}

.entry_header h2 a,
.entry_header h2 a:link,
.entry_header h2 a:visited {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry_header h2 a:hover {
  color: var(--highlight-color);
}


.entry_content {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Styles for inside post content */
.entry_content p {
  margin-bottom: 14px;
}

.entry_content a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--link-color);
  transition: all 0.2s ease;
}

.entry_content a:visited {
  color: var(--link-color);
  border-bottom-color: var(--link-color);
}

.entry_content a:hover {
  color: var(--accent-color);
  border-bottom-style: solid;
  border-bottom-color: var(--accent-color);
}

.entry_content ul, .entry_content ol {
  margin: 11px 0 18px 18px;
}

.entry_content li {
  margin-bottom: 7px;
}

/* Flex Container formatting inside resume */
.flexContainer {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.4);
  padding: 8px 14px;
  border-radius: 8px;
  margin: 21px 0 7px 0;
  border: 1px solid var(--panel-border);
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--highlight-color);
  font-size: 15px;
}

.flexContainer div:first-child {
  color: var(--accent-color);
}

.entry_content p.has-text-align-center {
  font-weight: 700;
  color: var(--highlight-color);
  margin-bottom: 11px;
  font-size: 17px;
}

.entry_content p.has-medium-font-size {
  font-size: 22px;
  font-weight: 800;
  color: var(--highlight-color);
  margin-top: 28px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--panel-border);
  padding-bottom: 6px;
}

/* Sidebar */
#sidebar {
  width: 380px;
  flex-shrink: 0;
}

#sidebar ul {
  list-style: none;
}

.widget {
  background: var(--sidebar-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 21px;
  margin-bottom: 21px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.widget h2 {
  font-size: 18px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 7px;
}

.widget h2 a {
  color: inherit;
  text-decoration: none;
}

.widget ul li {
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  padding-bottom: 7px;
}

.widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.widget ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  display: block;
}

.widget ul li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  text-decoration: none;
}

/* BookMe widget modifications for Icy Slate theme */
.book-me-widget {
  background: var(--sidebar-bg) !important;
  border: 1px solid var(--panel-border) !important;
}

.book-me-widget h3 {
  color: var(--accent-color) !important;
  border-bottom: 1px solid var(--panel-border) !important;
}

.book-me-widget label {
  color: var(--text-primary) !important;
}

.book-me-widget input, .book-me-widget select, .book-me-widget textarea {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(3, 7, 18, 0.5) !important;
}

.book-me-widget button {
  background: var(--primary-color) !important;
}

/* Post and content image constraints */
.entry_content img,
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  display: block;
}

/* Responsiveness */
@media (max-width: 1024px) {
  #container {
    flex-direction: column;
    gap: 21px;
  }
  
  #sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #shadow {
    padding: 0 14px 14px 14px;
    border-radius: 0 0 16px 16px;
  }
  
  #blogname span.bold {
    font-size: 28px;
  }
  
  .post {
    padding: 18px;
  }
  
  .flexContainer {
    flex-direction: column;
    gap: 4px;
    padding: 7px 11px;
  }
}

/* Articles List & Pagination */
.articles-list-container {
  margin-top: 10px;
}

.article-item {
  margin-bottom: 35px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--panel-border);
  transition: all 0.3s ease;
}

.article-item:hover {
  border-bottom-color: rgba(212, 175, 55, 0.4);
}

.article-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

.article-item h3 a {
  color: var(--accent-color);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.article-item h3 a:hover {
  color: var(--highlight-color);
  text-shadow: 0 0 8px var(--primary-glow);
}

.article-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-title);
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel-bg);
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

.pagination .active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.pagination .dots {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 10px;
}

/* Sidebar Search Widget */
.search-form {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.4);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.search-button {
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-button:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}


