/*
Theme Name: Swar Sangeet
Theme URI: https://example.com/swar-sangeet
Author: Manus AI
Author URI: https://manus.im
Description: A refined, responsive and Elementor-friendly WordPress theme for music institutions, academies, cultural organizations and artists.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: swar-sangeet
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: music, education, entertainment, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor-ready
*/

:root {
  --ss-ink: #121522;
  --ss-ink-soft: #252a3a;
  --ss-gold: #d6a756;
  --ss-gold-light: #f0d79b;
  --ss-cream: #f8f5ef;
  --ss-paper: #fffdf9;
  --ss-muted: #6e7280;
  --ss-border: #e7e1d7;
  --ss-radius: 18px;
  --ss-shadow: 0 20px 60px rgba(18, 21, 34, .10);
  --ss-content: 1180px;
  --ss-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ss-ink);
  background: var(--ss-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--ss-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ss-gold); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button, .button, .wp-element-button, input[type="submit"] { cursor: pointer; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: #000; display: block; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000; }

.container { width: min(calc(100% - 40px), var(--ss-content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), var(--ss-narrow)); margin-inline: auto; }
.site-main { min-height: 55vh; }
.section { padding: 92px 0; }
.section--cream { background: var(--ss-cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.eyebrow { color: var(--ss-gold); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, h4, h5, h6 { color: var(--ss-ink); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
p { margin: 0 0 18px; }
.lead { color: var(--ss-muted); font-size: 1.15rem; max-width: 650px; }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }

.site-header { background: rgba(255,253,249,.95); border-bottom: 1px solid rgba(231,225,215,.85); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.custom-logo { width: auto; max-height: 48px; }
.site-title { color: var(--ss-ink); font-size: 1.25rem; font-weight: 800; line-height: 1.1; text-decoration: none; }
.site-description { display: none; }
.main-navigation ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin: 0; padding: 0; }
.main-navigation a { color: var(--ss-ink-soft); font-size: .92rem; font-weight: 650; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--ss-gold); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--ss-border); border-radius: 10px; padding: 8px 11px; color: var(--ss-ink); }
.header-cta { white-space: nowrap; }

.button, .wp-element-button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 999px; padding: 13px 23px; background: var(--ss-gold); color: var(--ss-ink); font-size: .92rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .wp-element-button:hover, input[type="submit"]:hover { color: var(--ss-ink); background: var(--ss-gold-light); box-shadow: 0 10px 26px rgba(214,167,86,.25); transform: translateY(-2px); }
.button--outline { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.button--outline:hover { background: #fff; color: var(--ss-ink); }
.button--dark { background: var(--ss-ink); color: #fff; }
.button--dark:hover { background: var(--ss-ink-soft); color: #fff; }

.hero { position: relative; overflow: hidden; background: var(--ss-ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background: radial-gradient(circle at 74% 36%, var(--ss-gold) 0, transparent 27%), radial-gradient(circle at 10% 90%, #6d59bc 0, transparent 32%); }
.hero-inner { position: relative; min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 65px; padding: 90px 0; }
.hero h1 { color: #fff; max-width: 720px; }
.hero .lead { color: rgba(255,255,255,.76); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-art { position: relative; min-height: 450px; }
.hero-art::before { content: "♪"; position: absolute; color: rgba(214,167,86,.16); font-family: Georgia, serif; font-size: 28rem; line-height: .8; right: -20px; top: 35px; transform: rotate(-8deg); }
.hero-orbit { width: 360px; height: 360px; border: 1px solid rgba(240,215,155,.4); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgba(240,215,155,.25); border-radius: 50%; inset: 32px; }
.hero-orbit::after { inset: 72px; }
.hero-disc { width: 216px; height: 216px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: repeating-radial-gradient(circle, #101421 0 6px, #1e2433 7px 9px); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.hero-disc::after { content: ""; width: 48px; height: 48px; border-radius: 50%; background: var(--ss-gold); border: 9px solid var(--ss-ink); position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--ss-border); border-radius: var(--ss-radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--ss-shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg,#22283a,#8a6c32); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card-body p { color: var(--ss-muted); font-size: .95rem; }
.card-meta { color: var(--ss-gold); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ss-border); border: 1px solid var(--ss-border); border-radius: var(--ss-radius); overflow: hidden; margin-top: -48px; position: relative; z-index: 2; }
.feature-item { display: flex; gap: 17px; padding: 28px; background: #fff; }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: #f6eddc; color: var(--ss-gold); font-size: 1.25rem; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 5px; }
.feature-item p { color: var(--ss-muted); font-size: .88rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.split-media { min-height: 430px; border-radius: 28px; background: linear-gradient(145deg, #292d3c, #b08436); position: relative; overflow: hidden; }
.split-media img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 19px; pointer-events: none; }
.check-list { list-style: none; padding: 0; margin: 25px 0 30px; }
.check-list li { position: relative; padding-left: 30px; margin: 10px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--ss-gold); color: var(--ss-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.event-list { display: grid; gap: 14px; }
.event-row { display: grid; grid-template-columns: 85px 1fr auto; align-items: center; gap: 22px; padding: 20px 24px; border: 1px solid var(--ss-border); background: #fff; border-radius: 14px; }
.event-date { color: var(--ss-gold); font-weight: 850; text-align: center; line-height: 1.1; }
.event-date strong { display: block; color: var(--ss-ink); font-size: 1.8rem; }
.event-row h3 { margin: 0 0 4px; font-size: 1.15rem; }
.event-row p { color: var(--ss-muted); margin: 0; font-size: .9rem; }

.cta-band { padding: 65px 0; background: var(--ss-ink); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: #fff; max-width: 680px; margin: 0; }

.page-hero { padding: 85px 0; background: var(--ss-cream); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 800px; }
.content-area { padding: 80px 0; }
.entry-header { margin-bottom: 36px; }
.entry-title { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.entry-meta { color: var(--ss-muted); font-size: .9rem; }
.entry-content { font-size: 1.06rem; }
.entry-content > * { max-width: var(--ss-narrow); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--ss-content); }
.entry-content > .alignfull { max-width: none; width: 100%; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { border-left: 3px solid var(--ss-gold); margin-top: 28px; margin-bottom: 28px; padding: 5px 25px; color: var(--ss-ink-soft); font-size: 1.35rem; font-style: italic; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card .card-media { aspect-ratio: 1.4/1; }
.post-card .card-body { padding: 22px; }

.site-footer { background: #0e111b; color: rgba(255,255,255,.68); padding: 65px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,.68); text-decoration: none; }
.site-footer a:hover { color: var(--ss-gold-light); }
.site-footer p { font-size: .9rem; }
.footer-menu, .social-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li, .social-menu li { margin: 7px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; }
.footer-bottom p { margin: 0; }

.pagination { margin-top: 45px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--ss-border); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--ss-ink); color: #fff; border-color: var(--ss-ink); }
.search-form { display: flex; gap: 8px; max-width: 600px; }
.search-form label { flex: 1; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea, select { width: 100%; border: 1px solid var(--ss-border); border-radius: 9px; padding: 12px 14px; background: #fff; color: var(--ss-ink); }
textarea { min-height: 150px; resize: vertical; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { border-bottom: 1px solid var(--ss-border); padding: 24px 0; }

/* Elementor compatibility: pages using Elementor retain clean full-width canvas. */
.elementor-page .site-main { width: 100%; }
.elementor-page .entry-content { max-width: none; font-size: inherit; }
.elementor-page .entry-content > * { max-width: none; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--ss-content); }

@media (max-width: 900px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 1px); padding: 18px; border: 1px solid var(--ss-border); border-radius: 0 0 14px 14px; background: #fffdf9; box-shadow: var(--ss-shadow); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: block; }
  .main-navigation li { margin: 11px 0; }
  .header-cta { display: none; }
  .hero-inner, .split { grid-template-columns: 1fr; gap: 35px; }
  .hero-inner { min-height: auto; padding: 75px 0 55px; }
  .hero-art { min-height: 340px; }
  .hero-orbit { width: 280px; height: 280px; }
  .hero-disc { width: 170px; height: 170px; }
  .cards-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container, .narrow { width: min(calc(100% - 30px), var(--ss-content)); }
  .section { padding: 62px 0; }
  .section-heading, .cta-band-inner, .footer-bottom { display: block; }
  .section-heading .button { margin-top: 18px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-art { min-height: 275px; }
  .hero-orbit { width: 225px; height: 225px; }
  .hero-disc { width: 135px; height: 135px; }
  .feature-strip, .cards-grid, .post-grid { grid-template-columns: 1fr; }
  .feature-strip { margin-top: -24px; }
  .event-row { grid-template-columns: 64px 1fr; gap: 14px; }
  .event-row .button { grid-column: 2; justify-self: start; }
  .split-media, .split-media img { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom p + p { margin-top: 10px; }
  .search-form { display: block; }
  .search-form input[type="submit"] { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--ss-muted); font-size: .85rem; }
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery-caption { display: block; }
.wp-block-button__link { border-radius: 999px; }
.wp-block-cover, .wp-block-image img { border-radius: 16px; }
.wp-block-separator { border-color: var(--ss-border); }

/* Institution-specific campaign and Nepali layout styles. */
:root { --ss-red: #b3131b; --ss-blue: #092c5c; --ss-blue-dark: #071d3b; }
.institution-logo-link { display: block; flex: 0 0 auto; }
.institution-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; }
.site-title { max-width: 275px; font-size: 1rem; line-height: 1.35; }
.site-header { border-top: 4px solid var(--ss-red); }
.site-header .button--dark { background: var(--ss-red); color: #fff; }
.site-header .button--dark:hover { background: #8e0e15; color: #fff; }
.hero-slider { position: relative; overflow: hidden; background: var(--ss-blue-dark); }
.hero-slide { display: none; min-height: 590px; position: relative; isolation: isolate; }
.hero-slide.is-active { display: block; animation: ssFade .7s ease both; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(179,19,27,.65), transparent 35%), linear-gradient(100deg, rgba(7,29,59,.99) 15%, rgba(7,29,59,.78) 58%, rgba(7,29,59,.24)); z-index: -1; }
.hero-slide-inner { min-height: 590px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 45px; padding: 80px 0; }
.hero-slide h1 { color: #fff; max-width: 730px; font-size: clamp(2.35rem, 5.5vw, 5rem); }
.hero-slide .lead { color: rgba(255,255,255,.8); }
.hero-slide-mark { display: flex; align-items: center; justify-content: center; min-height: 380px; position: relative; }
.hero-slide-mark img { width: min(310px, 80%); height: auto; filter: drop-shadow(0 24px 32px rgba(0,0,0,.35)); }
.hero-slider-controls { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { border: 1px solid rgba(255,255,255,.7); background: transparent; width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.hero-dot.is-active { background: var(--ss-red); border-color: var(--ss-red); }
@keyframes ssFade { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.campaign-band { background: linear-gradient(110deg, var(--ss-red), #d5363d); color: #fff; padding: 30px 0; }
.campaign-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.campaign-band h2 { color: #fff; font-size: clamp(1.45rem, 3vw, 2.2rem); margin: 0 0 5px; }
.campaign-band p { margin: 0; color: rgba(255,255,255,.86); }
.campaign-band .button { background: #fff; color: var(--ss-red); }
.quote-card { position: relative; background: var(--ss-blue); color: #fff; border-radius: 22px; padding: 42px clamp(28px, 5vw, 70px); box-shadow: var(--ss-shadow); }
.quote-card::before { content: "“"; position: absolute; top: 3px; left: 28px; color: rgba(255,255,255,.16); font-family: Georgia, serif; font-size: 8rem; line-height: 1; }
.quote-card blockquote { position: relative; margin: 0; padding: 15px 0 0; border: 0; font-size: clamp(1.25rem, 2.5vw, 2rem); line-height: 1.55; font-weight: 600; }
.quote-author { position: relative; margin: 22px 0 0; color: var(--ss-gold-light); font-weight: 700; }
.activity-card { min-height: 150px; padding: 24px; border: 1px solid var(--ss-border); border-radius: var(--ss-radius); background: #fff; }
.activity-card .card-meta { color: var(--ss-red); }
.gallery-grid { display: grid; grid-template-columns: 1.35fr .85fr .85fr; gap: 14px; }
.gallery-tile { min-height: 190px; border-radius: 16px; overflow: hidden; background: linear-gradient(145deg, var(--ss-blue), var(--ss-red)); position: relative; }
.gallery-tile:first-child { min-height: 394px; grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile span { position: absolute; left: 18px; right: 18px; bottom: 15px; color: #fff; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.donation-page-hero { background: linear-gradient(120deg, var(--ss-blue-dark), var(--ss-blue)); color: #fff; }
.donation-page-hero h1, .donation-page-hero .lead { color: #fff; }
.donation-box { background: #fff; border: 2px solid var(--ss-red); border-radius: 18px; padding: 32px; box-shadow: var(--ss-shadow); }
.donation-box h2 { color: var(--ss-blue); font-size: 1.65rem; }
.donation-details { background: var(--ss-cream); border-radius: 12px; padding: 20px; margin: 22px 0; }
.committee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.committee-card { padding: 26px; border-top: 4px solid var(--ss-red); border-radius: 14px; background: #fff; box-shadow: 0 10px 35px rgba(9,44,92,.08); }
.committee-card h3 { color: var(--ss-blue); margin-bottom: 7px; }
.committee-card p { color: var(--ss-muted); margin: 0; }
.site-footer { border-top: 5px solid var(--ss-red); }
@media (max-width: 900px) { .hero-slide-inner { grid-template-columns: 1fr; padding: 65px 0 85px; } .hero-slide-mark { display: none; } .campaign-band-inner { display: block; } .campaign-band .button { margin-top: 18px; } .committee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .institution-logo { width: 45px; height: 45px; } .site-title { max-width: 205px; font-size: .82rem; } .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery-tile:first-child { min-height: 250px; grid-column: span 2; grid-row: auto; } .committee-grid { grid-template-columns: 1fr; } }
