/* =========================================================
   COLLEGE CANTEEN STYLES
   ========================================================= */

/* CSS Variables for Canteen */
:root {
  --dept-primary: #0066cc;
  --dept-secondary: #004d99;
  --dept-light: #e6f2ff;
  --dept-dark: #003366;
  --dept-accent: #3399ff;

  --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 102, 204, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 102, 204, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* =========================================================
   CANTEEN HEADER
   ========================================================= */
.canteen-header {
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.canteen-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><path d="M0,70 Q250,10 500,70 T1000,70 L1000,100 L0,100 Z"/></svg>');
  background-size: cover;
}

.canteen-header .lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

.canteen-info .badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.canteen-icon {
  width: 120px;
  height: 120px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3.5rem;
  color: white;
  border: 4px solid rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.canteen-icon:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.25);
}

.canteen-symbol {
  text-align: center;
}

.symbol-wheel {
  width: 80px;
  height: 80px;
  background: var(--dept-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: white;
  border: 3px solid var(--dept-dark);
}

/* =========================================================
   INTERNAL NAVIGATION - CANTEEN
   ========================================================= */
.internal-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.internal-nav .navbar-nav {
  gap: 1rem;
}

.internal-nav .nav-link {
  position: relative;
  color: var(--dept-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.internal-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--dept-accent);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.internal-nav .nav-link:hover,
.internal-nav .nav-link.active {
  color: var(--dept-primary);
  background: var(--dept-light);
}

.internal-nav .nav-link:hover::after,
.internal-nav .nav-link.active::after {
  width: 80%;
}

/* =========================================================
   SECTION COMMON STYLES - CANTEEN
   ========================================================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dept-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-accent) 100%
  );
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

.section-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--dept-primary);
  transition: transform 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.canteen-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.canteen-text p {
  margin-bottom: 1.5rem;
}

/* =========================================================
   OBJECTIVE CARDS - CANTEEN
   ========================================================= */
.objective-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--dept-accent);
}

.objective-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.objective-card h5 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.objective-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   ACTIVITIES GRID - CANTEEN
   ========================================================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.activity-item {
  background: var(--dept-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--dept-accent);
  transition: all 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  background: white;
}

.activity-item i {
  font-size: 2rem;
  color: var(--dept-primary);
  margin-bottom: 1rem;
}

.activity-item h6 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.activity-item p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   COORDINATOR CARDS - CANTEEN
   ========================================================= */
.coordinator-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
}

.coordinator-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.coordinator-header {
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-secondary) 100%
  );
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coordinator-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.coordinator-header .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.coordinator-body {
  padding: 1.5rem;
}

.coordinator-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.95rem;
}

.coordinator-info i {
  color: var(--dept-primary);
  width: 20px;
}

/* =========================================================
   DOCUMENTS SECTION - CANTEEN
   ========================================================= */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.document-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.document-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--dept-accent);
}

.document-icon {
  width: 50px;
  height: 50px;
  background: var(--dept-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dept-primary);
  flex-shrink: 0;
}

.document-content {
  flex: 1;
}

.document-content h5 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.document-content p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* =========================================================
   BENEFITS SECTION - CANTEEN
   ========================================================= */
.benefit-category {
  margin-bottom: 2rem;
}

.benefit-category h4 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.benefit-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-category li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.benefit-category li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dept-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* =========================================================
   JOIN SECTION - CANTEEN
   ========================================================= */
.requirements h5,
.process h5 {
  color: var(--dept-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.requirements ul,
.process ol {
  padding-left: 1.5rem;
}

.requirements li,
.process li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.requirements li::marker {
  color: var(--dept-accent);
}

.process li::marker {
  color: var(--dept-primary);
  font-weight: bold;
}

/* =========================================================
   BACK TO TOP BUTTON - CANTEEN
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--dept-primary) 0%,
    var(--dept-secondary) 100%
  );
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: var(--shadow-md);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: linear-gradient(
    135deg,
    var(--dept-secondary) 0%,
    var(--dept-dark) 100%
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   RESPONSIVE DESIGN - CANTEEN
   ========================================================= */
@media (max-width: 768px) {
  .canteen-header {
    padding: 2.5rem 0;
  }

  .canteen-header h1 {
    font-size: 2rem;
  }

  .canteen-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    margin-top: 1.5rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .internal-nav .navbar-nav {
    gap: 0.25rem;
    text-align: center;
  }

  .internal-nav .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .document-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .document-icon {
    margin: 0 auto;
  }

  .coordinator-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .coordinator-header .badge {
    align-self: flex-start;
  }

  #backToTop {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .canteen-header .badge {
    display: block;
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .section-card,
  .objective-card,
  .activity-item,
  .document-item {
    padding: 1.25rem;
  }

  .canteen-text {
    font-size: 1rem;
  }
}

/* =========================================================
   ANIMATIONS - CANTEEN
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* =========================================================
   PRINT STYLES - CANTEEN
   ========================================================= */
@media print {
  .internal-nav,
  #backToTop,
  .btn,
  .canteen-icon,
  .symbol-wheel {
    display: none !important;
  }

  .section-card,
  .objective-card,
  .coordinator-card,
  .activity-item,
  .document-item {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .canteen-header {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important;
  }

  .canteen-header .badge {
    background: #f0f0f0 !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }

  a {
    color: black !important;
    text-decoration: none !important;
  }
}
