/* Kashia — Persian architecture & civil engineering magazine */
:root {
  --green: #173c35;
  --green-deep: #102e29;
  --green-soft: #e9efeb;
  --terracotta: #c76b4d;
  --terracotta-dark: #a95339;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --ink: #242b28;
  --muted: #737a74;
  --line: #e7e4dc;
  --tile-opacity: .09;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "Vazirmatn", Tahoma, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.85; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.top-strip { background: var(--green-deep); color: #dbe5df; font-size: .78rem; padding: 7px 0; letter-spacing: .01em; }
.top-note { color: #b8c9c0; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,253,248,.96); border-bottom: 1px solid rgba(23,60,53,.08); backdrop-filter: blur(14px); }
.navbar-brand { color: var(--green); margin: 0; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; background: var(--green); color: #f3d7a3; border-radius: 3px 14px 3px 14px; font-size: 1.35rem; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); font-size: .65rem; margin-top: 4px; }
.nav-link { color: #49534e; font-size: .88rem; font-weight: 500; padding: .6rem .75rem !important; }
.nav-link:hover, .nav-link.active { color: var(--terracotta); }
.header-actions { margin-right: 1rem; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.icon-btn:hover { background: var(--green); color: white; }
.btn { border-radius: 3px 10px 3px 10px; font-weight: 600; }
.btn-terracotta { background: var(--terracotta); color: white; border: 1px solid var(--terracotta); }
.btn-terracotta:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: white; }
.btn-dark-green { background: var(--green); color: white; }
.btn-dark-green:hover { background: var(--green-deep); color: white; }
.search-panel { display: none; gap: 10px; padding: 0 0 16px; }
.search-panel.is-open { display: flex; }
.search-panel .form-control { border-color: var(--line); border-radius: 4px; }
.tile-pattern { position: relative; isolation: isolate; overflow: hidden; }
.tile-pattern::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: var(--tile-opacity); pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Crect x='1' y='1' width='86' height='86' fill='none' stroke='%23e7c88d' stroke-width='1'/%3E%3Cpath d='M44 2 L58 30 L86 44 L58 58 L44 86 L30 58 L2 44 L30 30 Z' fill='none' stroke='%23e7c88d' stroke-width='1.5'/%3E%3Cpath d='M44 17 L52 36 L71 44 L52 52 L44 71 L36 52 L17 44 L36 36 Z' fill='none' stroke='%23e7c88d'/%3E%3Ccircle cx='44' cy='44' r='5' fill='%23e7c88d'/%3E%3C/svg%3E"); background-size: 88px 88px; }
.hero-section { background: var(--green); color: white; padding: 76px 0 82px; }
.hero-section::after { content: ""; position: absolute; width: 350px; height: 350px; border: 1px solid rgba(239,210,156,.18); border-radius: 50%; left: -140px; bottom: -210px; box-shadow: 0 0 0 35px rgba(239,210,156,.025), 0 0 0 70px rgba(239,210,156,.025); z-index: -1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #e6c98e; font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.eyebrow > span { display: inline-block; width: 26px; height: 2px; background: var(--terracotta); }
.eyebrow-dark { color: var(--terracotta); }
.hero-section h1 { font-size: clamp(2.4rem, 4.3vw, 4.3rem); line-height: 1.35; letter-spacing: -.055em; font-weight: 800; margin: 0 0 20px; }
h1 em, h2 em { color: #e7bc83; font-style: normal; }
.hero-lead { max-width: 570px; color: #d1ded7; font-size: 1rem; line-height: 2.15; }
.btn-outline-light { border-radius: 3px 10px 3px 10px; }
.hero-stats div { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.2); padding-right: 18px; }
.hero-stats div:first-child { border-right: 0; padding-right: 0; }
.hero-stats strong { font-size: 1.45rem; color: #f0d4a1; }
.hero-stats span { color: #bdcec5; font-size: .75rem; }
.hero-visual { position: relative; max-width: 590px; margin-right: auto; padding: 0 0 24px 24px; }
.hero-image { width: 100%; height: 465px; object-fit: cover; border-radius: 4px 80px 4px 4px; filter: saturate(.82); }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: 25px 25px 0 0; border: 1px solid #d5b77f; border-radius: 4px 80px 4px 4px; }
.image-caption { position: absolute; right: -10px; bottom: 0; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--green); padding: 14px 18px; box-shadow: 0 12px 35px #071d1730; min-width: 245px; }
.caption-icon { display: grid; place-items: center; width: 43px; height: 43px; background: #e8eee8; font-size: 1.3rem; }
.image-caption div { display: flex; flex-direction: column; line-height: 1.5; }
.image-caption strong { font-size: .9rem; }
.image-caption small { color: var(--muted); font-size: .72rem; }
.visual-stamp { position: absolute; left: 0; top: 22px; color: #f3d7a3; border: 1px solid #f3d7a3; padding: 7px 12px; font-size: .7rem; letter-spacing: .18em; line-height: 1.3; text-align: center; transform: rotate(-5deg); }
.visual-stamp small { font-size: .48rem; letter-spacing: .1em; }
.hero-bottom-pattern { position: absolute; bottom: 0; right: 0; left: 0; height: 7px; background: repeating-linear-gradient(135deg, #c76b4d 0 10px, #e5bd7c 10px 20px, #173c35 20px 30px); opacity: .85; }
.topic-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.topic-scroll { display: flex; align-items: center; gap: 27px; min-height: 62px; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; }
.topic-scroll a { font-size: .82rem; color: #58615b; }
.topic-scroll a:hover { color: var(--terracotta); }
.topic-label { color: var(--terracotta); font-weight: 700; font-size: .8rem; }
.section-pad { padding: 88px 0; }
.section-soft { background: #f5f3ed; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2, .learning-section h2, .newsletter-box h2 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.45; letter-spacing: -.04em; font-weight: 800; margin: 0; color: var(--green); }
.section-heading h2 em { color: var(--terracotta); }
.text-link { color: var(--terracotta); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.text-link i, .read-more i { transition: transform .2s; display: inline-block; }
.text-link:hover i, .read-more:hover i { transform: translateX(-4px); }
.featured-news { background: white; border: 1px solid var(--line); height: 100%; }
.featured-image-wrap { position: relative; overflow: hidden; }
.featured-image-wrap img { width: 100%; height: 320px; object-fit: cover; transition: transform .5s; }
.featured-news:hover .featured-image-wrap img { transform: scale(1.035); }
.category-tag { position: absolute; bottom: 16px; right: 16px; padding: 4px 12px; color: white; background: var(--terracotta); font-size: .75rem; }
.featured-body { padding: 24px 26px 28px; }
.article-meta { display: flex; gap: 18px; color: #929891; font-size: .72rem; }
.featured-body h3 { font-size: 1.45rem; font-weight: 800; line-height: 1.7; margin: 10px 0; }
.featured-body h3 a:hover, .news-item h3 a:hover, .content-card h3 a:hover { color: var(--terracotta); }
.featured-body p { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.read-more { font-size: .82rem; color: var(--terracotta); font-weight: 700; }
.news-list { display: flex; flex-direction: column; height: 100%; }
.news-item { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; margin-bottom: 0; }
.news-item img { width: 125px; height: 112px; object-fit: cover; flex: 0 0 auto; }
.news-item > div { min-width: 0; }
.mini-category { display: inline-block; color: var(--terracotta); font-size: .72rem; font-weight: 700; margin-bottom: 4px; }
.news-item h3 { font-size: .98rem; font-weight: 700; line-height: 1.7; margin: 0; }
.content-card { height: 100%; background: var(--paper); border: 1px solid #e9e5dc; transition: transform .25s, box-shadow .25s; }
.content-card:hover { transform: translateY(-5px); box-shadow: 0 16px 35px #18392b12; }
.card-image { position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s; }
.content-card:hover .card-image img { transform: scale(1.04); }
.card-number { position: absolute; top: 12px; left: 14px; color: white; font-size: 1.1rem; font-weight: 700; text-shadow: 0 1px 5px #0008; }
.content-card-body { padding: 22px 22px 18px; }
.content-card h3 { font-size: 1.13rem; font-weight: 800; line-height: 1.8; margin: 4px 0 10px; }
.content-card p { color: var(--muted); font-size: .84rem; line-height: 2; min-height: 54px; }
.card-footer-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; color: #929891; font-size: .7rem; }
.learning-section { background: var(--green); color: white; padding: 86px 0; }
.learning-section h2 { color: white; font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: 20px; }
.learning-section > .container > .row > .col-lg-5 > p { color: #c6d4cc; line-height: 2.1; max-width: 440px; margin-bottom: 24px; }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.learning-card { min-height: 150px; padding: 23px 20px; background: rgba(255,255,255,.055); border: 1px solid rgba(235,218,177,.22); display: flex; align-items: flex-start; gap: 13px; position: relative; transition: background .2s, border-color .2s; }
.learning-card:hover { background: rgba(255,255,255,.11); border-color: #d9b87a; }
.learning-icon { display: grid; place-items: center; flex: 0 0 43px; height: 43px; color: #f0cc8c; border: 1px solid #9a8d69; font-size: 1.25rem; }
.learning-card > span:nth-child(2) { display: flex; flex-direction: column; padding-left: 12px; }
.learning-card strong { font-size: .93rem; color: white; line-height: 1.7; }
.learning-card small { color: #aebfb5; font-size: .72rem; line-height: 1.8; margin-top: 7px; }
.card-arrow { position: absolute; left: 14px; bottom: 12px; color: #d9b87a; }
.project-card { display: block; position: relative; height: 350px; overflow: hidden; background: var(--green); }
.project-large { height: 430px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover img { transform: scale(1.05); }
.project-overlay { position: absolute; inset: auto 0 0; padding: 60px 25px 23px; display: flex; flex-direction: column; color: white; background: linear-gradient(transparent, rgba(9,26,21,.88)); }
.project-overlay small { color: #e6c98e; font-size: .75rem; }
.project-overlay strong { font-size: 1.35rem; }
.project-overlay i { position: absolute; left: 24px; bottom: 25px; font-size: 1.4rem; }
.newsletter-section { padding: 0 0 85px; background: var(--paper); }
.newsletter-box { background: var(--green); color: white; padding: 42px 48px; display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.newsletter-box h2 { color: white; font-size: 2rem; }
.newsletter-box p { color: #c6d4cc; margin: 8px 0 0; font-size: .88rem; }
.newsletter-form { width: min(100%, 420px); flex: 0 0 42%; }
.newsletter-form .input-group { background: white; padding: 5px; }
.newsletter-form .form-control { border: 0; box-shadow: none; min-width: 0; font-family: inherit; font-size: .85rem; }
.form-message { display: block; color: #b5c6bd; margin-top: 9px; font-size: .72rem; }
.site-footer { background: #102e29; color: #d5e0d9; padding: 65px 0 0; }
.site-footer .brand-copy strong { color: white; }
.site-footer .brand-copy small { color: #a8bbb0; }
.footer-about { color: #aebfb5; font-size: .83rem; line-height: 2.1; max-width: 340px; }
.site-footer h3 { color: #f0d4a1; font-size: .95rem; font-weight: 700; margin: 7px 0 20px; }
.site-footer .col-6 > a, .site-footer .col-lg-2 > a { display: block; color: #b6c5bd; font-size: .82rem; margin-bottom: 10px; }
.site-footer a:hover { color: #e6bd82; }
.social-links { display: flex; gap: 9px; margin-top: 20px; }
.social-links a { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #466158; border-radius: 50%; color: #e4d1a5; }
.footer-contact { color: #b6c5bd; font-size: .8rem; }
.footer-cta { display: inline-block; margin-top: 8px; color: #e6bd82; font-size: .83rem; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #355148; padding: 20px 0; margin-top: 48px; color: #8fa69a; font-size: .72rem; }
.back-to-top { position: fixed; left: 22px; bottom: 22px; width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 3px 12px 3px 12px; background: var(--terracotta); color: white; box-shadow: 0 6px 18px #0002; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 900; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 991.98px) {
  .header-actions { margin: 10px 0 0; }
  .navbar-collapse { padding-bottom: 12px; }
  .hero-section { padding: 58px 0 68px; }
  .hero-visual { margin: 10px auto 0; max-width: 650px; }
  .hero-image { height: 400px; }
  .section-pad { padding: 68px 0; }
  .newsletter-box { align-items: flex-start; flex-direction: column; padding: 35px; }
  .newsletter-form { flex-basis: auto; width: 100%; }
}
@media (max-width: 575.98px) {
  .top-note { display: none; }
  .brand-copy strong { font-size: 1.3rem; }
  .hero-section { padding: 45px 0 58px; }
  .hero-section h1 { font-size: 2.35rem; }
  .hero-lead { font-size: .9rem; }
  .hero-stats { gap: 17px !important; }
  .hero-stats div { padding-right: 12px; }
  .hero-stats strong { font-size: 1.2rem; }
  .hero-stats span { font-size: .65rem; }
  .hero-image { height: 300px; border-top-right-radius: 55px; }
  .image-caption { right: 0; min-width: 215px; padding: 10px 12px; }
  .visual-stamp { left: 2px; top: 15px; }
  .section-pad { padding: 55px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .section-heading h2 { font-size: 2rem; }
  .featured-image-wrap img { height: 240px; }
  .featured-body { padding: 20px; }
  .featured-body h3 { font-size: 1.2rem; }
  .news-item img { width: 100px; height: 95px; }
  .news-item h3 { font-size: .87rem; }
  .learning-section { padding: 58px 0; }
  .learning-grid { grid-template-columns: 1fr; }
  .learning-card { min-height: 115px; }
  .project-card, .project-large { height: 290px; }
  .newsletter-section { padding-bottom: 55px; }
  .newsletter-box { padding: 27px 22px; }
  .newsletter-box h2 { font-size: 1.65rem; }
  .footer-bottom { flex-direction: column; }
}

.message-success { color: #f0d4a1 !important; }
