/* Remove border-radius from all cards and timeline content for square corners */
.portal-card,
.portal-card-new,
.feature-card,
.about-us-card,
.see-more-card,
.event-card,
.news-card,
.resource-card,
.fighter-card,
.mission-vision-card,
.objective-card,
.objectives-cta,
.committee-card,
.committee-header,
.timeline-content,
.footer-brand-card,
.inquiry-card,
.secretariat-card,
.registry-card,
.control-card,
.champion-card,
.fighter-modal-card,
.card-briefing,
.card-file,
.card {
  border-radius: 0 !important;
}

/* Responsive Improvements for KKSA Website */

/* Hero Section Responsiveness */
.hero-section {
  min-height: 500px;
  height: auto;
}

.hero-content {
  padding: 40px 24px;
  max-width: 100%;
}

/* Featured Cards Responsiveness and Button Alignment */
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-card-text {
  flex: 1;
}

/* Card Label Alignment */
.card-label {
  top: 0;
  right: 0;
  padding: 5px 12px;
  border-radius: 0 4px 0 4px;
}

/* Event Cards - Consistent Vertical Alignment */
.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px; /* Ensure consistent padding */
}

.event-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  min-height: 2.4em; /* Ensure consistent height for titles */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-info {
  margin-bottom: 16px;
  color: #717171;
  display: flex;
  align-items: flex-start; /* Better alignment for icon with text */
  gap: 8px;
  font-size: 13px;
  min-height: 1.5em; /* Consistent height for info section */
}

.event-info i {
  margin-top: 3px; /* Align icon with first line of text */
  min-width: 16px;
  color: var(--primary-color);
}

.event-description {
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1; /* Allow description to take up remaining space */
  min-height: 4.5em; /* Consistent minimum height for description (3 lines) */
}

.event-category {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 8px;
}

.event-actions {
  margin-top: auto; /* Push actions to bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-btn {
  background-color: #f4f4f4;
  color: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
}

.event-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Improved Media Queries */
@media (max-width: 912px) {
  /* Tablet Adjustments */
  .hero-title-new {
    font-size: 36px;
  }
  
  .section-title-new {
    font-size: 32px;
  }
  
  .portal-grid-new,
  .fighters-grid,
  .upcoming-events-grid,
  .features-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid-executive {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-content-left {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  
  .hero-buttons-new {
    justify-content: center;
  }
  
  .hero-stats-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
    height: auto;
    margin-top: 60px;
  }
  
  .hero-title,
  .hero-title-new {
    font-size: 30px;
  }
  
  .hero-subtitle,
  .hero-subtitle-new {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .hero-subtitle-affiliate {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .features-grid,
  .portal-grid-new,
  .fighters-grid,
  .upcoming-events-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    margin-bottom: 20px;
  }
  
  .btn-primary {
    width: 100%;
    text-align: center;
  }
  
  /* Adjust event card alignments for mobile */
  .event-title {
    min-height: 0; /* Let title take natural height on mobile */
  }
  
  .event-description {
    min-height: 0; /* Let description take natural height on mobile */
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 350px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-content {
    padding: 30px 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  .feature-card-title {
    font-size: 20px;
  }
}

/* Fix for truncated content on mobile */
@media (max-width: 360px) {
  .feature-card-text, 
  .event-description {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
}

/* Ensures all cards in a row are aligned at equal height */
.features-grid, .events-grid, .upcoming-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Fix alignment of date elements in event cards */
.event-card-date {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px; /* Consistent height for date headers */
}

/* Ensure consistent spacing between event info items */
.event-contact {
  color: #717171;
  font-size: 14px;
}

.disabled-link {
  color: #999;         /* Grayed-out color */
  cursor: not-allowed; /* Show a "not allowed" cursor */
  pointer-events: none; /*  VERY IMPORTANT:  This prevents clicks */
  position: relative;   /* Needed for the tooltip positioning */
}

/* Search Button Style */
.btn-search {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
}

/* Trophy Icon Style */
.icon-trophy {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* Download Button Style */
.btn-download {
  background-color: var(--samsung-light-gray);
  color: var(--text-dark);
  font-size: 12px;
  padding: 8px 16px;
}
/* Official Footer Styles */
.footer-official {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 60px 0 20px;
  font-size: 14px;
  border-top: 5px solid var(--primary-color);
  font-family: var(--font-body);
}

.footer-official .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid-official {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo-official {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-heading {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

.footer-official p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #e0e0e0;
}

.npo-number {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
}

/* Affiliations */
.affiliate-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.affiliate-logo-placeholder {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Links */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Governance footer assets */
.footer-logo {
  width: 180px;
}

.footer-affiliate-logo {
  height: 40px;
  filter: invert(0);
}

/* Contact */
.footer-official address {
  font-style: normal;
}

/* Bottom Bar */
.footer-bottom-official {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #a0a0a0;
}

.footer-legal-links a {
  margin: 0 5px;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid-official {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid-official {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-official {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Event Filters */
.event-filters {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.filter-select {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
  font-family: var(--font-body);
  color: var(--secondary-color);
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.view-options {
  display: flex;
  background-color: #f4f4f4;
  border-radius: 4px;
  padding: 4px;
}

.view-option {
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #717171;
  transition: all 0.3s;
}

.view-option.active {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Calendar Section */
.calendar-section {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  margin-top: 40px;
  margin-bottom: 60px;
}

/* FullCalendar Customization */
.fc-toolbar-title {
  font-family: var(--font-heading) !important;
  font-size: 24px !important;
}

.fc-button-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.fc-button-primary:hover {
  background-color: #b90322 !important;
  border-color: #b90322 !important;
}

.fc-daygrid-event {
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 12px;
  cursor: pointer;
}

/* Event Type Colors */
.event-type-tournament, .category-tournament {
  background-color: #e01e1e;
  border-color: #e01e1e;
  color: #fff;
}

.event-type-gashuku, .category-gashuku {
  background-color: #1428a0;
  border-color: #1428a0;
  color: #fff;
}

.event-type-seminar, .category-seminar {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

.event-type-grading {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.event-type-other {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.category-tournament, .category-gashuku, .category-seminar {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Event Modal */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.event-modal.active {
  opacity: 1;
  visibility: visible;
}

.event-modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.event-modal.active .event-modal-content {
  transform: translateY(0);
}

.modal-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #717171;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
}

.modal-btn-outline {
  background-color: transparent;
  border: 1px solid #ddd;
  color: #555;
}

.modal-btn-outline:hover {
  background-color: #f4f4f4;
  color: #333;
}

.modal-btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.modal-btn-primary:hover {
  background-color: #b90322;
  color: #fff;
}

/* Page Header */
.page-header {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 48px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 5px;
}

.section-subtitle {
  color: #717171;
  margin: 0;
}

@media (max-width: 768px) {
  .event-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-container {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .view-options {
    justify-content: center;
  }
}

/* Responsive fixes for small screens (430px and below) */
@media (max-width: 430px) {
  /* Hero Section */
  .hero-tag-line {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .hero-title-new {
    font-size: 26px; /* Reduced further */
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .hero-subtitle-new {
    font-size: 13px;
    margin-bottom: 25px;
  }

  .hero-buttons-new {
    margin-bottom: 30px;
    gap: 10px;
  }

  .btn-hero-red, .btn-hero-outline {
    padding: 10px 20px;
    font-size: 12px;
    width: 100%; /* Full width buttons on small screens */
    text-align: center;
  }

  .hero-stats-row {
    margin-top: 20px;
    gap: 15px;
  }

  .stat-val {
    font-size: 18px;
  }

  .stat-lbl {
    font-size: 9px;
  }

  .affiliation-tag-hero {
    font-size: 11px;
    padding: 8px 12px;
    margin-top: 25px;
  }

  /* Portal Gateways */
  .portal-card-new {
    padding: 30px 20px;
    min-height: 0;
  }

  .portal-card-new h3 {
    font-size: 20px;
  }

  /* Rankings */
  .section-title-new {
    font-size: 28px;
  }

  .rankings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fighter-img-box {
    height: 200px;
  }

  /* Philosophy */
  .philosophy-title {
    font-size: 32px;
  }

  .spirit-box {
    padding: 30px 20px;
  }

  /* Dojo Finder */
  .dojo-search-wrapper {
    flex-direction: column;
  }

  .btn-search-red {
    width: 100%;
    padding: 12px;
  }

  .map-placeholder-box {
    height: 250px;
  }

  /* Footer */
  .footer-official {
    padding: 40px 0 20px;
  }

  .footer-grid-official {
    gap: 30px;
  }

  .footer-bottom-official {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-legal-links a {
    margin: 0;
  }
}




/* Executive Footer Responsive */
@media (max-width: 992px) {
  .footer-grid-executive {
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 30px;
  }
  
  .footer-col-identity {
    grid-column: span 2; /* Full width for identity on tablet */
    margin-bottom: 20px;
    text-align: center;
  }

  .footer-brand-lockup {
    justify-content: center;
  }

  .footer-mandate-box {
    margin: 0 auto;
    max-width: 80%;
  }
}

@media (max-width: 576px) {
  .affiliation-strip .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-grid-executive {
    grid-template-columns: 1fr; /* 1 column */
    gap: 40px;
  }
  
  .footer-col-identity {
    grid-column: span 1;
    text-align: center;
    padding-right: 0;
  }

  .footer-brand-lockup {
    flex-direction: column;
    gap: 15px;
  }

  .footer-org-identity {
    align-items: center;
  }
  
  .footer-logo-executive {
    margin: 0 auto;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-col-links, .footer-col-contact {
    text-align: center;
  }
  
  .contact-list li {
    justify-content: center;
  }
  
  .social-links-executive {
    justify-content: center;
  }
  
  .bottom-flex {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
