@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --navy-950: #06152f;
  --navy-900: #091f43;
  --navy-800: #0c2d5b;
  --blue-700: #1256b4;
  --blue-600: #1769d2;
  --blue-500: #2485ee;
  --cyan-400: #3ed5f4;
  --indigo-500: #655eea;
  --ink: #12233f;
  --muted: #63718a;
  --line: #dce6f2;
  --soft: #f4f8fc;
  --white: #fff;
  --shadow-sm: 0 12px 35px rgba(12, 45, 91, .08);
  --shadow-lg: 0 25px 70px rgba(5, 26, 61, .18);
  --radius: 22px;

  /*New Design Css*/
  --color-white: #ffffff;
  --color-black: #000000;  
  --color-bg: #f5f7fa;
  --color-navy: #0a1e3d;
  --color-navy-dark: #061428;
  --color-blue: #2b7de9;
  --color-blue-light: #4a9eff;
  --color-blue-pale: #e8f2fd;
  --color-text: #1a2b42;
  --color-text-muted: #6b7c93;
  --color-border: #dde3ec;
  --color-tag-bg: #f0f3f7;
  --color-light-grey: #dde3ec;
  --color-touch-of-grey: #f4f4f4;


  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(10, 30, 61, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 30, 61, 0.08);
  --shadow-lg: 0 8px 32px rgba(10, 30, 61, 0.1);

  --css-post-image-height: 220px;
  --css-post-image-height-mobile: 180px;
  --css-post-image-height-small: 150px;
  --css-post-text-height: 100px;
  --css-post-text-mobile: 150px;
  --css-post-text-small: 175px;

  --transition: 0.25s ease;  
}

/* ============================================
   Devon Overrides
   ============================================ */

.navbar {
    padding-left: 0 !important;
}

.navbar .nav-link {
  font-size: 14px !important;
}


.navbar-nav {
    flex-wrap: wrap;
}

.navbar-logo.logo {
    margin-left: 25px;
}

.navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


@media (max-width: 1250px) {
    .navbar-expand-lg .navbar-collapse {
        flex-basis: 100%;
    }
    .navbar-expand-lg .navbar-toggler {
        display: block;
    }
    .navbar-expand-lg .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar-expand-lg .navbar-collapse.show {
        display: block !important;
    }
}


/* ============================================
   General Settings
   ============================================ */
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }

body {
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  max-width: 100%;
  overflow-x: clip;
  padding-top: var(--header-height, 100px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { transition: .25s ease; }
h1, h2, h3, h4, .logo-name { font-family: "Manrope", sans-serif; }


.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.form-select {
  font-size: 0.875rem;
  border-radius: 30px !important;
}

/* ============================================
  Site Header
   ============================================ */
.site-header {
  padding: 0 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(220,230,242,.72);
  backdrop-filter: blur(14px);
  transition: padding .25s ease, box-shadow .25s ease; 
}

.site-header.scrolled { padding: 7px 0; box-shadow: 0 8px 28px rgba(8,31,67,.1); }

/* ============================================
   Logo Ikawsoft by Devon
   ============================================ */
.logo { display: inline-flex; align-items: center; gap: 12px; }

.logo-lockup { 
  display: inline-flex; 
  flex-direction: column; gap: 4px; 
}

.logo-mark {
  width: 42px; height: 42px; display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding: 8px 7px; background: linear-gradient(145deg,#edf7ff,#f5f2ff);
  border: 1px solid #d9e9fa; border-radius: 12px; box-shadow: 0 7px 18px rgba(23,105,210,.1);
  transform: skew(-8deg);
}

.logo-tagline {
  color: #43516a; font-size: .67rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  white-space: nowrap;
}

.logo-mark span { display: block; width: 7px; border-radius: 3px 3px 1px 1px; background: var(--blue-600); }
.logo-mark span:nth-child(1) { height: 15px; }
.logo-mark span:nth-child(2) { height: 25px; background: var(--cyan-400); }
.logo-mark span:nth-child(3) { height: 20px; background: var(--indigo-500); }
.logo-name { display: inline-flex; align-items: baseline; gap: 9px; color: var(--navy-900); line-height: 1; }
.logo-word { color: var(--navy-900); font-size: 1.5rem; font-weight: 800; letter-spacing: -.055em; }
.logo-word strong { color: var(--blue-600); font-weight: 800; }
.logo-byline {
  position: relative; padding-left: 10px; color: #607089;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}

.logo-byline::before {
  content: ""; position: absolute; width: 1px; height: 14px; left: 0; top: 50%;
  background: #cad7e5; transform: translateY(-50%);
}


/* ============================================
   Navigation Menu
   ============================================ */
.navbar-nav { gap: 6px; }
.navbar .nav-link {
  color: #35445d; font-size: .91rem; font-weight: 600; padding: 9px 12px !important; border-radius: 9px;
}

.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--blue-600); background: #edf5ff; }

.navbar-toggler { border: 0; box-shadow: none !important; }


/* ============================================
   Quick Nav Tags
   ============================================ */
.quick-nav { 
    margin-bottom:7px;
}

.quick-nav-row {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between title and dropdown */
}


.quick-nav-title { 
  font-size: 15px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0;  /* remove this */
  white-space: nowrap;
}
/* ============================================
   Whats New Tags
   ============================================ */
.topic-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    align-items: center;   /* ← vertical middle alignment */
}

.topic-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: #53637b; background: var(--soft); border: 1px solid #e5edf5; border-radius: 9px; font-size: .77rem; font-weight: 700; }
.topic-list a:hover { color: var(--blue-600); background: #eaf4ff; border-color: #b9d8fb; transform: translateY(-2px); }

.whats-new .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.whats-new__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0;  /* remove this */
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  /*color: var(--color-text-muted);*/
  color: var(--color-blue);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.tag:hover {
  border-color: var(--color-blue-light);
  color: var(--color-blue);
  box-shadow: var(--shadow-md);
}

.tag__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 20px 0 0;
}

.hero__banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #0a1e3d 0%, #1a3a6b 50%, #2b5a9e 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(74, 158, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-blue-light);
}

.hero__icon svg {
  width: 28px;
  height: 28px;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ============================================
   Articles 
   ============================================ */

.articles {
  padding: 8px 0 64px;
}



.category__header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  text-align: left;
  transition: opacity var(--transition);
}

.category__header:hover {
  opacity: 0.8;
}

.category__label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.category__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}



/* ============================================
   post Grid
   ============================================ */

.css-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 7px;
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom:17px;
}


@keyframes LightGreenPulse {
  0%   { box-shadow: 0 0 0 0 rgba(150, 230, 175, 0.55); }
  50%  { box-shadow: 0 0 20px 8px rgba(150, 230, 175, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(150, 230, 175, 0.0); }
}

.post:hover {
  animation: LightGreenPulse 1.0s ease-out;
}

.css-post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.css-post-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.css-post-text {
  display: block;
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 0px;
  height: var(--css-post-text-height, 300px);
  overflow: hidden;
}

.css-post-text-popup {
    display: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.css-post-text-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    overflow: visible;
}


.css-post-click-to-view-text {
  text-align: center;
  background-color: var(--color-touch-of-grey, #f4f4f4);
  color: var(--color-black);
  font-size: 11px;
  font-weight: 300;
  padding: 0px 0px;      
}

.css-post-footer {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.post__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-blue);
  background: var(--color-blue-pale);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.post__cta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.post__cta:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.post__date {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 56px;
}

.css-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.css-footer-logo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.css-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.footer__heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer { padding: 75px 0 25px; color: #91a5bf; background: #05152e; }

.site-footer p { max-width: 430px; margin: 20px 0 0; font-size: .91rem; }
.site-footer h2 { margin: 4px 0 18px; color: var(--white); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer .col-6 a { display: block; width: fit-content; margin: 9px 0; font-size: .83rem; }
.site-footer a:hover { color: var(--cyan-400); }
.logo-footer .logo-word { color: var(--white); }
.logo-footer .logo-byline { color: #a9bad0; }
.logo-footer .logo-byline::before { background: rgba(255,255,255,.25); }
.logo-footer .logo-mark { }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); font-size: .73rem; }
.footer-bottom i { margin-left: 5px; }
.footer-bottom { align-items: flex-start; flex-direction: column; }

/* ============================================
   Image
   ============================================ */


/*post image sizing · CSS*/
/* ==========================================================================
   post Image Sizing System
   
   To add a new category:
     1. Add a new .css-post-image--{name} block below
     2. Add a matching entry to IMAGE_CATEGORY_MAP in post_image_sizing.php
   ========================================================================== */
 
 
/* --------------------------------------------------------------------------
   Shared container styles
   All categories assume .css-post-image-wrap has a fixed height defined here.
   Adjust --css-post-image-height to taste — this is your single control point
   for the image area height across all post types.
   -------------------------------------------------------------------------- */
 
.css-post-image-wrap {
    width: 100%;
    height: var(--css-post-image-height, 240px);
    overflow: hidden;
    background-color: var(--color-touch-of-grey, #f4f4f4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post__image {
    display: block;
}

.css-post-image-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 90vw;
    max-height: 90vh;
    display: none;
    z-index: 99999;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 12px !important; 
}

.css-post-image-wrap.active .css-post-image-popup {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    overflow: visible;
}
 
/* --------------------------------------------------------------------------
   Category: Landscape (default)
   Standard photographs, wide office/people shots.
   Ratio: 1.2 – 2.5
   Fills the container, crops overflow. Looks clean for photography.
   -------------------------------------------------------------------------- */
 
.css-post-image--landscape {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
 
 
/* --------------------------------------------------------------------------
   Category: Wide / Panoramic / Logo
   Very wide images, banners, logos, graphics.
   Ratio: above 2.5
   Fits fully inside container, background fills letterbox space.
   Padding gives the image breathing room against the background.
   -------------------------------------------------------------------------- */
 
.css-post-image--wide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 1rem;
    box-sizing: border-box;
}
 
 
/* --------------------------------------------------------------------------
   Category: Portrait / Tall
   Book covers, portrait photos, tall composite images.
   Ratio: below 0.8
   Constrained width so narrow images don't stretch sideways.
   Centered with background filling the sides.
   -------------------------------------------------------------------------- */
 
.css-post-image--portrait {
    width: auto;
    height: 100%;
    max-width: 70%;
    object-fit: contain;
    object-position: center center;
}
 
 
/* --------------------------------------------------------------------------
   Category: Square / Near-Square
   Diagrams, charts, some logos.
   Ratio: 0.8 – 1.2
   Fits inside container with equal padding all around.
   -------------------------------------------------------------------------- */
 
.css-post-image--square {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 0.75rem;
    box-sizing: border-box;
}

/*.post:hover .post__image {
  transform: scale(1.04);
}*/

/* ============================================
   Responsive — Tablet
   ============================================ */

@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .css-post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .css-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .css-footer-logo {
    grid-column: 1 / -1;
  }

  .nav__list {
    gap: 2px;
  }

  .nav__list a {
    padding: 6px 8px;
    font-size: 12px;
  }
}


/* ============================================
   Laptop/Desktop — Large Display
   ============================================ */
@media (min-width: 1024px) {
	.css-post-text-popup {
	  display: none;
	  font-size: 15.5px;
	  color: var(--color-text-muted);
	  line-height: 1.45;
	  margin-bottom: 0px;

	  position: fixed;
	  top: 50%;
	  left: 50%;
	  opacity: 0;
	  transform: translate(-50%, -50%) scale(0.95);
	  transition: opacity 0.25s ease, transform 0.25s ease;

	  max-width: 90vw;
	  max-height: 90vh;
	  z-index: 99999;

	  background: white;
	  box-shadow: 0 0 20px rgba(0,0,0,0.5);

	  border-radius: 12px;   
	  padding: 20px;         
	}
}

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    justify-content: stretch;
  }

  .nav--open {
    max-height: 400px;
    overflow-y: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
  }

  .nav__list a {
    padding: 10px 14px;
    font-size: 14px;
    white-space: normal;
  }

  .hero {
    padding: 20px 0 0;
  }

  .hero__banner {
    padding: 32px 24px;
    gap: 16px;
    border-radius: var(--radius-lg);
  }

  .hero__icon {
    width: 48px;
    height: 48px;
  }

  .hero__icon svg {
    width: 24px;
    height: 24px;
  }

  .css-post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .css-post-footer {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

  .css-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .css-footer-logo {
    align-items: center;
  }

  .css-footer-desc {
    max-width: none;
  }


}

@media (max-width: 480px) {
  .logo__text {
    font-size: 13px;
  }

  .logo__icon {
    width: 28px;
    height: 28px;
  }

  .tags {
    gap: 8px;
  }

  .tag {
    font-size: 12px;
    padding: 7px 12px;
  }
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   Reduce the image area height on smaller screens so posts
   don't dominate the viewport.
   -------------------------------------------------------------------------- */
 
@media (max-width: 768px) {
    .css-post-image-wrap {
        height: var(--css-post-image-height-mobile, 180px);
    }
 
    /* Portrait images get a slightly wider max on mobile
       since the post itself is narrower */
    .css-post-image--portrait {
        max-width: 85%;
    }

    .css-post-text {
      height: var(--css-post-text-height, 150px);
    }
}
 
@media (max-width: 480px) {
    .css-post-image-wrap {
        height: var(--css-post-image-height-mobile, 150px);
    }

    .css-post-text {
      height: var(--css-post-text-small, 175px);
    }
}