/* Modern Redesigned Invitation Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

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

    body {
  font-family: 'Inter', 'Poppins', sans-serif;
      line-height: 1.6;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
      color: #1e293b;
      font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    }
    
/* Modern Hero Banner */
.modern-invitation-wrapper {
      width: 100%;
  max-width: 1400px;
      margin: 0 auto;
  padding: 2rem 1rem;
}

.modern-hero-banner {
  background: linear-gradient(135deg, #17365d 0%, #1a4275 25%, #2c5aa0 50%, #4a90e2 75%, #6bb6ff 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
      text-align: center;
      color: white;
  margin-bottom: 3rem;
      position: relative;
      overflow: hidden;
  box-shadow: 0 20px 60px rgba(23, 54, 93, 0.3);
}

.hero-pattern-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  opacity: 0.6;
}

.hero-content-wrapper {
      position: relative;
      z-index: 2;
    }

.hero-icon-circle {
  width: 120px;
  height: 120px;
      background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
  margin: 0 auto 2rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-icon-circle i {
      font-size: 4rem;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-main-heading {
  font-size: 3.5rem;
      font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
      background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.hero-sub-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-quote-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto 0;
  max-width: 900px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.quote-icon-left, .quote-icon-right {
  position: absolute;
  font-size: 3rem;
  opacity: 0.3;
  color: white;
}

.quote-icon-left {
  top: 15px;
  left: 20px;
}

.quote-icon-right {
  bottom: 15px;
  right: 20px;
}

.hero-quote {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

/* Modern Content Container */
.modern-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Modern Info Cards */
.modern-info-cards {
      display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.modern-card {
      background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(23, 54, 93, 0.1);
  border: 2px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
  overflow: hidden;
    }

.modern-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
  height: 5px;
  background: linear-gradient(90deg, #17365d 0%, #4a90e2 50%, #17365d 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(23, 54, 93, 0.2);
  border-color: #4a90e2;
}

.card-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
  border-radius: 20px;
      display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(23, 54, 93, 0.3);
  transition: all 0.3s ease;
}

.modern-card:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(23, 54, 93, 0.4);
}

.card-icon-wrapper i {
  font-size: 2.5rem;
  color: white;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #17365d;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
      display: flex;
      align-items: center;
  gap: 12px;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 10px;
      transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.detail-row:hover {
  background: #f1f5f9;
  border-left-color: #4a90e2;
  transform: translateX(5px);
}

.detail-row i {
  color: #4a90e2;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.detail-row span {
  color: #475569;
  font-size: 1rem;
  flex: 1;
}

.detail-row.highlight {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left-color: #22c55e;
}

.free-badge {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Scholarship Table Section */
.modern-scholarship-section {
      background: white;
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.1);
  border: 2px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.modern-scholarship-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.scholarship-header {
      display: flex;
      align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #e2e8f0;
}

.scholarship-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.scholarship-icon i {
  font-size: 2.5rem;
  color: #17365d;
}

.scholarship-header h2 {
  font-size: 2.2rem;
      font-weight: 800;
  color: #17365d;
  margin: 0;
      background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

.modern-scholarship-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.modern-scholarship-table thead {
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
}

.modern-scholarship-table th {
  padding: 1.25rem;
  text-align: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.modern-scholarship-table th:first-child {
  text-align: left;
  padding-left: 1.5rem;
}

.modern-scholarship-table th:last-child {
  border-right: none;
}

.modern-scholarship-table tbody tr {
  transition: all 0.3s ease;
}

.modern-scholarship-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.modern-scholarship-table tbody tr:hover {
  background: #f1f5f9;
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(23,54,93,0.1);
}

.modern-scholarship-table td {
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
}

.modern-scholarship-table td:first-child {
  text-align: left;
  padding-left: 1.5rem;
      font-weight: 700;
  color: #17365d;
  font-size: 1.1rem;
}

.modern-scholarship-table td:last-child {
  border-right: none;
}

.scholarship-amount {
  font-weight: 700;
  font-size: 1.2rem;
      color: #059669;
}

.prizes-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
      border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 3px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
}

.prizes-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.prizes-banner p {
  margin: 0;
  color: #92400e;
      font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
}

.prizes-banner i {
  color: #ffd700;
  font-size: 1.5rem;
  margin-right: 10px;
  text-shadow: 0 2px 8px rgba(255,215,0,0.5);
}

/* Principal's Letter Section */
.modern-principal-section {
  background: white;
  border-radius: 24px;
  padding: 3.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.1);
  border: 2px solid #e2e8f0;
      position: relative;
      overflow: hidden;
    }

.modern-principal-section::before {
      content: '';
      position: absolute;
      top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(23,54,93,0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.modern-principal-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74,144,226,0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.principal-header-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #e2e8f0;
  position: relative;
  z-index: 2;
}

.principal-avatar-modern {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
  box-shadow: 0 10px 30px rgba(23, 54, 93, 0.3);
  border: 4px solid white;
      transition: all 0.3s ease;
    }

.principal-avatar-modern:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.4);
}

.principal-avatar-modern i {
  font-size: 3rem;
      color: white;
}

.principal-title-modern h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.principal-title-modern p {
  color: #64748b;
  font-size: 1.2rem;
  margin: 0;
      font-weight: 500;
}

.letter-content-modern {
  position: relative;
  z-index: 2;
}

.greeting-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border-left: 5px solid #17365d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.greeting-box p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #17365d;
}

.quote-box-modern {
  background: linear-gradient(135deg, rgba(23,54,93,0.08) 0%, rgba(74,144,226,0.08) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  margin: 2.5rem 0;
  border: 2px solid rgba(23,54,93,0.2);
      position: relative;
      overflow: hidden;
    }

.quote-box-modern::before {
  content: '"';
      position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  color: rgba(23,54,93,0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-box-modern::after {
  content: '"';
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 6rem;
  color: rgba(23,54,93,0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  font-style: italic;
  color: #17365d;
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
      position: relative;
  z-index: 1;
  font-weight: 500;
  text-align: center;
    }

.content-paragraph {
      font-size: 1.2rem;
  line-height: 1.9;
  color: #475569;
  margin: 1.5rem 0;
}

.content-paragraph strong {
  color: #17365d;
  font-weight: 700;
}

/* Modern Info Boxes */
.modern-info-box {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 24px rgba(23, 54, 93, 0.1);
  border: 2px solid #e2e8f0;
  border-left: 5px solid;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

.modern-info-box::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.6s ease;
    }

.modern-info-box:hover::before {
      left: 100%;
    }

.modern-info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.15);
}

.info-box-blue {
  border-left-color: #0ea5e9;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.info-box-green {
  border-left-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.info-box-yellow {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.info-box-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.info-box-title i {
        font-size: 1.8rem;
      }
      
.info-box-blue .info-box-title {
  color: #0c4a6e;
}

.info-box-green .info-box-title {
  color: #166534;
}

.info-box-yellow .info-box-title {
  color: #92400e;
}

.modern-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-list li {
  padding: 1rem;
  margin: 0.5rem 0;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  border-left: 3px solid;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 2.5rem;
}

.modern-list li::before {
  content: '✓';
  position: absolute;
  left: 0.75rem;
  color: #059669;
  font-weight: bold;
  font-size: 1.2rem;
}

.info-box-blue .modern-list li {
  border-left-color: #0ea5e9;
  color: #0c4a6e;
}

.info-box-green .modern-list li {
  border-left-color: #22c55e;
  color: #166534;
}

.info-box-yellow .modern-list li {
  border-left-color: #f59e0b;
  color: #92400e;
}

.modern-list li:hover {
  transform: translateX(5px);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Registration Section with QR */
.modern-registration-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 3.5rem;
  margin: 3rem 0;
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.15);
  border: 3px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.modern-registration-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.registration-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.registration-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #17365d;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registration-header::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #4a90e2, transparent);
  border-radius: 2px;
}

.registration-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.qr-section-modern {
  text-align: center;
  flex: 0 0 auto;
}

.qr-container-modern {
  background: white;
        padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(23, 54, 93, 0.15);
  display: inline-block;
  border: 3px solid #17365d;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qr-container-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(23,54,93,0.1) 0%, transparent 70%);
  animation: rotate 15s linear infinite;
}

.qr-container-modern:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.25);
  border-color: #4a90e2;
}

.qr-placeholder-modern {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f5f9 100%);
  border: 3px dashed #17365d;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.qr-placeholder-modern:hover {
  border-color: #4a90e2;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.qr-text {
  color: #17365d;
  font-weight: 600;
        font-size: 1.1rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qr-text i {
  color: #4a90e2;
        font-size: 1.3rem;
      }
      
.register-button-section {
  text-align: center;
  flex: 0 0 auto;
}

.modern-register-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  padding: 1.8rem 4rem;
  font-size: 1.5rem;
  font-weight: 700;
        border-radius: 16px;
  text-decoration: none;
  display: inline-flex;
        align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 280px;
  justify-content: center;
}

.modern-register-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
        width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.modern-register-btn:hover::before {
  left: 100%;
}

.modern-register-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(5, 150, 105, 0.4);
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: white;
  text-decoration: none;
}

.modern-register-btn i {
  font-size: 1.3rem;
}

.register-subtext {
  margin-top: 1rem;
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.register-subtext i {
  color: #4a90e2;
}

/* Principal Signature Section */
.principal-signature-box {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  border-left: 5px solid #17365d;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin: 2.5rem 0;
  position: relative;
}

.principal-signature-box::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
        width: 80px;
        height: 80px;
  background: linear-gradient(135deg, rgba(23,54,93,0.1) 0%, rgba(74,144,226,0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signature-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #475569;
  margin: 0;
}

.signature-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #17365d;
  margin: 1rem 0 0.5rem 0;
}

.signature-title {
  font-size: 1.2rem;
  color: #64748b;
  margin: 0;
}

/* Contact Cards Modern */
.contact-cards-modern {
  background: linear-gradient(135deg, #17365d 0%, #1a4275 100%);
  border-radius: 24px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-cards-modern::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-cards-modern::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(74,144,226,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-header-modern {
  color: #ffd700;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: flex;
        align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.contact-header-modern i {
  font-size: 2.5rem;
}

.contact-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.contact-card-modern {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-card-modern:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.contact-icon-modern {
  width: 60px;
  height: 60px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}

.contact-icon-modern i {
  color: #ffd700;
  font-size: 1.8rem;
}

.contact-info-modern {
  flex: 1;
}

.contact-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.3rem;
  color: white;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  word-break: break-word;
}

.contact-value a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-value a:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* Gallery Section */
.modern-gallery-section {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 15px 40px rgba(23, 54, 93, 0.1);
  border: 2px solid #e2e8f0;
}

.gallery-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #e2e8f0;
}

.gallery-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(23, 54, 93, 0.3);
}

.gallery-icon i {
  font-size: 2.5rem;
  color: white;
}

.gallery-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #17365d;
  margin: 0;
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.gallery-card-modern {
  background: #f8f9fa;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(23, 54, 93, 0.1);
  border: 2px solid #e2e8f0;
  transition: all 0.4s ease;
}

.gallery-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(23, 54, 93, 0.2);
  border-color: #17365d;
}

.gallery-image-wrapper {
        width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
        justify-content: center;
  border-bottom: 4px solid #17365d;
  position: relative;
  overflow: hidden;
}

.gallery-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(23,54,93,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.gallery-placeholder-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.gallery-placeholder-content i {
  font-size: 5rem;
  color: #17365d;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.gallery-placeholder-content p {
  color: #64748b;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.gallery-caption {
  padding: 1.5rem;
  background: white;
  text-align: center;
}

.gallery-caption p {
  margin: 0;
  color: #17365d;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Action Buttons */
.modern-action-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.modern-btn {
  padding: 1.2rem 2.5rem;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.modern-btn-primary {
  background: linear-gradient(135deg, #17365d 0%, #4a90e2 100%);
  color: white;
}

.modern-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(23, 54, 93, 0.3);
  color: white;
  text-decoration: none;
}

.modern-btn-secondary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
}

.modern-btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .modern-content-container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  .hero-main-heading {
    font-size: 3rem;
  }
  
  .hero-sub-heading {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .modern-hero-banner {
    padding: 3rem 1.5rem;
  }
  
  .hero-main-heading {
    font-size: 2.2rem;
  }
  
  .hero-sub-heading {
    font-size: 1.3rem;
  }
  
  .hero-icon-circle {
    width: 90px;
    height: 90px;
  }
  
  .hero-icon-circle i {
    font-size: 3rem;
  }
  
  .hero-quote {
    font-size: 1.1rem;
  }
  
  .modern-info-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .modern-card {
    padding: 2rem;
  }
  
  .registration-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .qr-container-modern {
    padding: 1.5rem;
  }
  
  .qr-placeholder-modern {
    width: 180px;
    height: 180px;
  }
  
  .modern-register-btn {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    min-width: 100%;
  }
  
  .contact-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-action-buttons {
        flex-direction: column;
      }
      
  .modern-btn {
        width: 100%;
        justify-content: center;
  }
}

@media (max-width: 480px) {
  .modern-invitation-wrapper {
    padding: 1rem 0.5rem;
  }
  
  .modern-hero-banner {
    padding: 2rem 1rem;
    border-radius: 16px;
  }
  
  .hero-main-heading {
        font-size: 1.8rem;
      }
      
  .hero-sub-heading {
    font-size: 1.1rem;
  }
  
  .modern-card {
    padding: 1.5rem;
  }
  
  .modern-scholarship-section,
  .modern-principal-section,
  .modern-registration-section,
  .modern-gallery-section {
    padding: 2rem 1.5rem;
  }
  
  .modern-scholarship-table {
    font-size: 0.85rem;
  }
  
  .modern-scholarship-table th,
  .modern-scholarship-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Pamphlet Images Container */
.pamphlet-images-container {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  padding: 0;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.pamphlet-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 48%;
  text-align: center;
}

.pamphlet-image {
  width: 100%;
  height: auto;
  border: 12px solid #17365D;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(23,54,93,0.25);
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8f9fa;
}

.pamphlet-image:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 16px 50px rgba(23,54,93,0.35);
  border-color: #4a90e2;
}

@media (max-width: 768px) {
  .pamphlet-images-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .pamphlet-image-wrapper {
    max-width: 100%;
    min-width: 100%;
  }
  
  .pamphlet-image {
    border: 6px solid #17365D;
    border-radius: 10px;
  }
}
