/* Portal Page Styles */

.portal-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 200px);
}

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

/* Section Intro */
.section-intro {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-description {
  font-size: 1.125rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

/* Service Card Base Styles */
.service-card {
  background: white;
  border-radius: 0;
  padding: 28px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
  height: 8px;
}

/* Service-specific colors */
.mail-card::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.drive-card::before {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.board-card::before {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.calendar-card::before {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.messenger-card::before {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Service Icon */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.mail-card .service-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mail-card .service-icon svg {
  stroke: white;
}

.drive-card .service-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.drive-card .service-icon svg {
  stroke: white;
}

.board-card .service-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.board-card .service-icon svg {
  stroke: white;
}

.calendar-card .service-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.calendar-card .service-icon svg {
  stroke: white;
}

.messenger-card .service-icon {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.messenger-card .service-icon svg {
  stroke: white;
}

/* Service Content */
.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.service-description {
  font-size: 0.875rem;
  color: #5a6c7d;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #667eea;
  transition: gap 0.3s ease;
}

.service-card:hover .service-link {
  gap: 12px;
}

.service-link svg {
  transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* Quick Guide Section */
.guide-section {
  background: white;
  border-radius: 0;
  padding: 48px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.guide-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 32px;
  text-align: center;
}

.guide-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.guide-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.guide-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.guide-text p {
  font-size: 0.9375rem;
  color: #5a6c7d;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .portal-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .guide-section {
    padding: 32px 24px;
  }

  .guide-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon svg {
    width: 26px;
    height: 26px;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-description {
    font-size: 0.8125rem;
  }
}
