/* ==============================================
   CW Chu College Newsletter — Main Styles
   ============================================== */

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

/* Root font-size — all font-size values below are in rem and scale from here.
   Mobile breakpoints in mobile.css reduce this to scale everything down. */
html {
  font-size: 100%; /* 16px */
}

p {
  font-size: 1.0625rem; /* 17px */
}

body {
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  background-color: #3f0001;
  color: #444444;
  line-height: 1.6;
}

.serif {
  font-family: 'Playfair Display', 'Times New Roman', Times, serif;
}

.zh_HK body, .zh_TW body {
  font-family: 'Source Sans Pro', 'Noto Sans TC', Helvetica, Arial, sans-serif;
}
.zh_HK .serif, .zh_TW .serif {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Times New Roman', Times, serif;
}
.zh_CN body {
  font-family: 'Source Sans Pro', 'Noto Sans SC', Helvetica, Arial, sans-serif;
}
.zh_CN .serif {
  font-family: 'Playfair Display', 'Noto Serif SC', 'Times New Roman', Times, serif;
}


/* --- Header --- */
.header {
  background-color: #901d31;
  text-align: center;
  border-top: 6px solid #DAC48A;
}

.header-1 {
  background: white;
}
.header-1, .header-2 {
  padding: 1.5625rem 0;
}
.header-logos {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}
.header-logo img {
  display: block; 
  height: 50px; 
  width: auto; 
  max-width: none;
}
.header-titles {
  padding: 1.5rem 0;
}
.header-titles .decorative-line {
  margin: 28px 0 25px 0;
}
.header-subtitle {    
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 0;
  text-transform: uppercase;
  line-height: 1;
}
.header-subtitle a {
  color: white;
  text-decoration: none;
}

.header-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3.125rem;
}
.header-content-inner {
  position: relative;
}

.language-switcher {
  position: absolute;
  right: 0;
  top: 0;
}
.language-switcher .module-heading {
  display: none;
}
.language-switcher ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.language-switcher li {
  position: relative;
  list-style: none;
}
.language-switcher li::before {
  position: absolute;
  content: '';
  display: block;
  left: -15px;
  top: 50%;
  margin-top: -8px;
  width: 1px;
  height: 16px;
  background: white;
}
.language-switcher li:first-child::before {
  display: none;
}
.language-switcher a { 
  color: white;
  font-size: 1em;
  line-height: 1.2;
  text-decoration: none;
}

.logo-container {
  display: inline-block;
  border: 3px solid #DAC48A;
  padding: 0.5rem; /* 8px */
  background-color: #ffffff;
  margin-bottom: 0.625rem; /* 10px */
}
.logo-container img {
  display: block;
  width: 70px;
  height: 70px;
}

.header-title {
  color: #ffffff;
  font-size: 3rem; /* 48px */
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 0;
  line-height: 1;
}


/* --- Decorative Line --- */
.decorative-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5625rem; /* 25px */
  gap: 15px;
}

.decorative-line span {
  display: block;
  width: 100px;
  height: 1px;
  background-color: #DAC48A;
}

.decorative-line .diamond {
  color: #DAC48A;
  font-size: 0.75rem; /* 12px */
  width: auto;
  height: auto;
  background: none;
}


/* --- Ribbon Banner --- */
.ribbon {
  background-color: #775B3E;
  padding: 1.125rem 1.875rem; /* 18px 30px */
  text-align: center;
}

.ribbon-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}
a.ribbon-content {
  text-decoration: none;
}


.ribbon .star {
  color: #DAC48A;
  font-size: 0.75rem; /* 12px */
}

.ribbon .date {
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}


/* --- Main Content --- */
.main-content {
  background-color: #fffef9;
}

.content-wrapper {
  width: 85%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 3.125rem 3.75rem 0 3.75rem;
}

.newsletter-details .content-wrapper,
.single-story .content-wrapper {
  max-width: 1100px;
  padding: 1.5rem 3.125rem 0 3.125rem;
}

.newsletter-list .content-wrapper,
.single-issue .content-wrapper {
  max-width: 800px;
  padding: 1.5rem 3.125rem 0 3.125rem;
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  padding-bottom: 3rem;
  align-items: stretch;
}

.articles-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}
.articles-grid-3col {
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  background: #ffffff;
  border: 1px solid #e8e2d4;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 1.5625rem 1.5625rem 1.25rem; /* 25px 25px 20px */
  border-bottom: 1px solid #f0ebe0;
  min-height: var(--article-header-min-h, 0px);
}

.article-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-category {
  color: #775B3E;
  font-size: 0.6875rem; /* 11px */
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.375rem; /* 6px */
}

.article-title {
  color: #901d31;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.article-title a {
  color: #901d31;
  text-decoration: none;
}

.article-image {
  display: block;
  width: 100%;
  aspect-ratio: 100 / 56;
  background-color: #e8e2d4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.article-body {
  padding: 1.25rem 1.5625rem 1.75rem 1.5625rem; /* 20px 25px 28px 25px */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-body p {
  color: #444444;
  margin-bottom: 1.25rem; /* 20px */
  flex: 1;
}

.article-body .btn-primary {
  align-self: flex-start;
  margin-top: auto;
}


/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background-color: #B9002F;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-decoration: none;
  padding: 0.875rem 1.75rem 1rem 1rem;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #901d31;
}

.btn-outline {
  display: inline-block;
  border: 2px solid #901d31;
  color: #901d31;
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem; /* 14px */
  letter-spacing: 2px;
  text-decoration: none;
  padding: 0.75rem 1.875rem; /* 12px 30px */
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #901d31;
  color: #ffffff;
}

.btn-rsvp {
  display: inline-block;
  width: 100%;
  background-color: #fee39c;
  color: #901d31;
  font-family: 'Playfair Display', serif;
  font-size: 0.8125rem; /* 13px */
  font-weight: bold;
  letter-spacing: 3px;
  text-decoration: none;
  padding: 0.75rem 1.875rem; /* 12px 30px */
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-rsvp:hover {
  background-color: #ffffff;
}


/* --- Invitation Section --- */
.invitation-section {
  background-color: #901d31;
  border-top: 4px solid #DAC48A;
  border-bottom: 4px solid #DAC48A;
  padding: 0.5rem; /* 8px */
  margin-bottom: 3.75rem; /* 60px */
}

.invitation-inner {
  border: 1px solid #DAC48A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.125rem; /* 50px */
  gap: 40px;
}

.invitation-left {
  align-items: center;
  gap: 20px;
}

.invitation-tagline {
  color: #DAC48A;
  font-size: 0.6875rem; /* 11px */
  letter-spacing: 3px;
  text-transform: uppercase;
}

.invitation-title {
  color: #ffffff;
  font-size: 1.75rem; /* 28px */
  font-weight: 400;
  letter-spacing: 3px;
  white-space: nowrap;
}

.invitation-right {
  display: flex;
  align-items: center;
  gap: 25px;
  width: 70%;
  justify-content: space-between;
}

.invitation-date-badge {
  position: relative;
  left: 30px;
  background-color: #fee39c;
  padding: 0.625rem 1.25rem; /* 10px 20px */
}

.invitation-date-badge span {
  color: #901d31;
  font-size: 0.75rem; /* 12px */
  font-weight: bold;
  letter-spacing: 2px;
  white-space: nowrap;
}

.invitation-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem; /* 16px */
}

.rsvp-note {
  margin-top: 0.3125rem; /* 5px */
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem; /* 14px */
  white-space: nowrap;
}


/* --- Events Section --- */
.events-section {
  padding-bottom: 3.75rem; /* 60px */
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem; /* 40px */
}

.section-subtitle {
  color: #775B3E;
  font-size: 0.75rem; /* 12px */
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.625rem; /* 10px */
}

.section-title {
  color: #901d31;
  font-size: 2rem; /* 32px */
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1.25rem; /* 20px */
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 2.1875rem; /* 35px */
}

.event-card {
  background-color: #f8f5ed;
  border: 1px solid #e8e2d4;
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.event-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.event-date {
  background-color: #901d31;
  padding: 1.5625rem 1.25rem; /* 25px 20px */
  text-align: center;
  min-width: 100px;
}

.event-month {
  color: #DAC48A;
  font-size: 0.875rem; /* 14px */
  letter-spacing: 2px;
  text-transform: uppercase;
}

.event-day {
  color: #ffffff;
  font-size: 2.375rem; /* 38px */
  font-weight: bold;
  line-height: 1.1;
  margin: 0.3125rem 0; /* 5px 0 */
}

.event-weekday {
  color: #DAC48A;
  font-size: 0.75rem; /* 12px */
  text-transform: uppercase;
}

.event-content {
  padding: 1.25rem 1.5625rem; /* 20px 25px */
  flex: 1;
}

.event-title {
  color: #901d31;
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  margin-bottom: 0.625rem; /* 10px */
}

.event-description {
  color: #555555;
  margin-bottom: 0.75rem; /* 12px */
}

.event-meta {
  display: flex;
  gap: 20px;
  font-size: 0.8125rem; /* 13px */
  color: #775B3E;
}

.icon-meta {
  vertical-align: middle;
  margin-right: 0.1875rem; /* 3px */
  position: relative;
  top: -1px;
}


/* --- Signature --- */
.signature {
  text-align: center;
  padding: 2.5rem 0; /* 40px 0 */
  border-top: 1px solid #DAC48A;
}

.signature-icon {
  color: #DAC48A;
  font-size: 1.5rem; /* 24px */
}


/* --- Footer --- */
.footer {
  background-color: #901d31;
  padding: 2.5rem 1.25rem; /* 40px 20px */
  text-align: center;
  border-bottom: 6px solid #DAC48A;
}

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

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-university {
  color: #DAC48A;
  font-size: 0.9375rem; /* 15px */
  letter-spacing: 3px;
  margin-bottom: 0.5rem; /* 8px */
}

.footer-college {
  color: #ffffff;
  font-size: 1.125rem; /* 18px */
  letter-spacing: 3px;
  margin-bottom: 1.5625rem; /* 25px */
}

.footer-contact {
  color: #ffffff;
  font-size: 0.9375rem; /* 15px */
  letter-spacing: 0.3px;
  margin-bottom: 0.625rem; /* 10px */
}

.footer-social {
  color: #DAC48A;
  font-size: 0.9375rem; /* 15px */
  letter-spacing: 1px;
  margin-bottom: 0.9375rem; /* 15px */
}

.footer-social-icons {
  margin-bottom: 2.1875rem; /* 35px */
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #7f051a;
  border: 1px solid #DAC48A;
  color: #DAC48A;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color 0.3s ease;
}

.social-btn + .social-btn {
  margin-left: 0.9375rem; /* 15px */
}

.social-btn:hover {
  background-color: #901d31;
}

.footer-links {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem; /* 13px */
  letter-spacing: 0.3px;
  margin-bottom: 1.25rem; /* 20px */
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem; /* 13px */
  letter-spacing: 0.3px;
}


/* --- Utility --- */
.text-center {
  text-align: center;
}


/* --- Article Detail Page --- */
.article-detail-nav {
  padding-bottom: 7rem;
  border-bottom: 1px solid #DAC48A;
}

.back-link {
  color: #901d31;
  font-size: 0.875rem; /* 14px */
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #775B3E;
}

.article-detail-header {
  text-align: center;
  margin-bottom: 2.5rem; /* 40px */
}

.article-detail-category {
  color: #775B3E;
  font-size: 0.75rem; /* 12px */
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.9375rem; /* 15px */
}

.article-detail-title {
  color: #901d31;
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-align: left;
  margin-bottom: 2.5rem; /* 40px */
}

.article-detail-image {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-color: #e8e2d4;
  margin-bottom: 2.5rem; /* 40px */
}

.article-detail-content {
  padding-bottom: 3.125rem; /* 50px */
  margin: 0 auto;
}

.article-detail-content p,
.article-detail-content li {
  color: #444444;
  font-size: 1.1875rem; /* 19px */
}
.article-detail-content p {
  margin-bottom: 1.5625rem; /* 25px */
}
.article-detail-content li {
  margin-bottom: 0.5625rem; /* 9px */
}
.article-detail-content h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: #901d31;
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-size: 1.7em;
}
.article-detail-content h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1.4em;
}
.article-detail-content p a,
.detail-image-caption a {
  color: #901d31;
}
.article-detail-content hr {
  border-width: 1px;
  border-style: solid;
  border-color: #DAC48A;
  margin-top: 2.625rem; /* 42px */
  margin-bottom: 3.125rem; /* 50px */
}
.article-detail-content hr + p,
.cr-separator + .cr-text > p {
  margin-top: -0.3125rem; /* -5px */
}
.article-detail-content hr.thicker {
  border-color: #901d31;
  border-width: 2px;
  margin-top: 3.75rem; /* 60px */
  margin-bottom: 0;
}
hr.hr-red {
  border-color: #901d31;
}
hr.hr-thick {
  border-color: #901d31;
  border-width: 2px;
  margin-top: 3.75rem; /* 60px */
  margin-bottom: 0;
}
.article-detail-content hr.thicker + h2,
.cr-separator + .cr-heading h2 {
  margin-top: 2em;
}
.article-detail-content img {
  display: block;
  max-width: 100%;
  margin-bottom: 0.625rem; /* 10px */
}
.article-detail-content ul,
.article-detail-content ol {
  list-style: disc outside;
  margin-left: 2em;
  margin-bottom: 1em;
}
.article-detail-content p + ul,
.article-detail-content p + ol {
  margin-top: -1em;
}
.more-stories {
  padding: 3.75rem 0; /* 60px */
}
.more-stories .articles-grid {
  margin-bottom: 0;
}


/* --- Announcement Section --- */
.announcement-section {
  background-color: #901d31;
  border-top: 4px solid #DAC48A;
  border-bottom: 4px solid #DAC48A;
  padding: 0.5rem; /* 8px */
  margin-bottom: 3.75rem; /* 60px */
}

.announcement-inner {
  border: 1px solid #DAC48A;
  padding: 2.5rem 3.125rem; /* 40px 50px */
  text-align: center;
}

.announcement-header {
  margin-bottom: 1.875rem; /* 30px */
}

.announcement-title {
  color: #ffffff;
  font-size: 2rem; /* 32px */
  font-weight: 400;
  letter-spacing: 3px;
}

.announcement-body {
  display: flex;
  align-items: center;
  max-width: 800px;
  gap: 30px;
  background-color: #962336;
  padding: 1.5625rem; /* 25px */
  margin: 0 auto 1.875rem auto; /* 0 auto 30px auto */
  text-align: left;
}

.announcement-image {
  flex: 0 0 200px;
}

.announcement-image img {
  display: block;
  width: 100%;
  height: auto;
}

.announcement-text {
  flex: 1;
}

.announcement-text p {
  color: #ffffff;
  text-align: center;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.announcement-footer {
  text-align: center;
}

.announcement-footer .btn-rsvp {
  width: auto;
  display: inline-block;
  letter-spacing: 4px;
  padding: 0.875rem 2.5rem; /* 14px 40px */
}


/* --- Awards Section --- */
.awards-section {
  margin-bottom: 3.75rem; /* 60px */
}

.awards-subtitle {
  color: #555555;
  font-size: 1.0625rem; /* 17px */
  max-width: 700px;
  margin: 0 auto 0.625rem auto; /* 0 auto 10px auto */
  line-height: 1.6;
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background-color: #ffffff;
  margin-bottom: 2.1875rem; /* 35px */
}

.award-card {
  background-color: #f8f5ed;
  border: 1px solid #e8e2d4;
  padding: 1.375rem 1.75rem; /* 22px 28px */
}

.award-title {
  color: #901d31;
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  margin-bottom: 0.625rem; /* 10px */
  line-height: 1.4;
}

.award-recipients {
  color: #555555;
}


/* --- Events update --- */
.event-year {
  color: #DAC48A;
  font-size: 0.875rem; /* 14px */
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.875rem; /* 14px */
}

/* Tame day font size so ranges like "10-12" fit */
.event-day {
  font-size: 1.75rem; /* 28px */
  line-height: 1;
  margin: 0.5rem 0; /* 8px 0 */
}

.two-cols {
  font-size: 1.0625rem; /* 17px */
}

.detail-image {
  margin-bottom: 1.5625rem; /* 25px */
}
.detail-image-top {
  margin-bottom: 2.4rem;
}
.detail-image-top img {
  width: 100%;
  max-width: none;
}
.article-detail-content .detail-image img {
  max-width: 100%;
  margin-bottom: 0;
}
.detail-image-caption {
  padding: 0.625rem 0; /* 10px 0 */
  font-size: 1.0625rem; /* 17px */
  font-style: italic;
}
.detail-image-caption p {
   margin-bottom: 0;
}
.detail-image-caption em {
  font-style: normal;
}
.detail-image-two {
  width: 100%;
  display: flex;
  gap: 25px;
}
.detail-image-half {
  width: 50%;
}

.related-cards {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.related-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.375rem; /* 20px 22px */
  width: calc(50% - 20px);
  aspect-ratio: 100 / 56;
  text-decoration: none;
}
.related-title {
  position: relative;
  width: 100%;
  color: white;
  font-size: 1.2rem;
  z-index: 2;
  top: 0;
  transition: 0.3s ease-in-out;
}
.related-image {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.related-image:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 40%;
  background: #e33be0;
  background: linear-gradient(180deg,rgba(144,29,49,0) 0%, rgba(144,29,49,1) 100%);
  z-index: 1;
  transition: 0.3s ease-in-out;
}
.related-card:hover .related-image:after {
  height: 50%;
}
.related-card:hover .related-title {
  top: -10px;
}

.related-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}