/* ===========================================================
  POLICIES PAGE - GLA UNIVERSITY
  Optimized Green & Gold Professional Theme
=========================================================== */

/* CSS Variables for Consistency */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  /* Primary Colors */
  --primary-green: #1b5e20;
  --primary-green-dark: #0d3c0f;
  --primary-green-light: #43a047;
  --accent-gold: #d4af37;
  --accent-yellow: #ffc107;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #64748b;
  --gray-700: #475569;
  --gray-900: #1e293b;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Main Container */
.policies-main {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 50%, var(--white) 100%);
  padding-top: 0;
  font-family: var(--font-body);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Header */
.policies-header {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 50%, var(--primary-green-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.policies-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
  );
  z-index: 0;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.page-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.notification-info {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.notification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.notification-badge i {
  color: var(--accent-gold);
  font-size: 1.2rem;
  animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

.notification-details {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Policies Section */
.policies-section {
    padding: 3rem 0 5rem;
}

.policies-list {
    max-width: 1000px;
    margin: 0 auto;
}

/* Policy Row Styles */
.policy-row {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-row:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-green-light);
}

.policy-row.active {
  box-shadow: 0 12px 40px rgba(27, 94, 32, 0.2);
  border-color: var(--primary-green);
}

.policy-row-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.policy-row-header:hover {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.policy-row.active .policy-row-header {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-bottom: 2px solid var(--primary-green-light);
}

.policy-row-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(27, 94, 32, 0.3);
  transition: all 0.3s ease;
}

.policy-row:hover .policy-row-icon {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 6px 24px rgba(27, 94, 32, 0.4);
}

.policy-row-content {
    flex: 1;
    min-width: 0;
}

.policy-row-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-family: var(--font-heading);
}

.policy-row-summary {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

.policy-row-toggle {
  margin-left: 1rem;
  font-size: 1.2rem;
  color: var(--gray-600);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.policy-row.active .policy-row-toggle {
  transform: rotate(180deg);
  color: var(--primary-green);
}

.policy-row-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-row.active .policy-row-details {
    max-height: 1000px;
}

.policy-details-content {
  padding: 0 2rem 2rem 2rem;
  border-top: 2px solid var(--gray-200);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.policy-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.policy-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  background: var(--white);
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.policy-details li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-gold);
}

.policy-details li:last-child {
  margin-bottom: 0;
}

.policy-details li i {
  color: var(--primary-green);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  min-width: 20px;
}

.policy-details li strong {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1rem;
}

.policy-details li span:not(strong) {
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 0.95rem;
}

.policy-details li div {
    flex: 1;
}

/* Additional Information Section */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.info-header i {
  font-size: 1.8rem;
  color: var(--primary-green);
}

.info-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
}

.info-content p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.info-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 0.95rem;
}

.info-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .policies-main {
    padding-top: 0;
  }
  
  .policies-header {
    padding: 3rem 0;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .notification-details {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .policy-row-header {
    padding: 1.5rem;
  }
  
  .policy-row-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .policy-details-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .additional-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }
  
  .policy-row-header {
    padding: 1.2rem;
  }
  
  .policy-row-title {
    font-size: 1.1rem;
  }
  
  .policy-row-summary {
    font-size: 0.85rem;
  }
  
  .notification-info {
    padding: 1.5rem;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.policy-row {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.policy-row:nth-child(1) { animation-delay: 0.1s; }
.policy-row:nth-child(2) { animation-delay: 0.2s; }
.policy-row:nth-child(3) { animation-delay: 0.3s; }
.policy-row:nth-child(4) { animation-delay: 0.4s; }

.info-card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.info-card:nth-child(2) {
    animation-delay: 0.8s;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
  border-radius: 5px;
  border: 1px solid var(--gray-200);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
}

/* Print Styles */
@media print {
    .policies-header,
    .modern-navbar,
    .modern-top-bar,
    .modern-footer {
        display: none !important;
    }
    
    .policies-main {
        background: white !important;
        padding: 0 !important;
    }
    
    .policy-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 2rem;
    }
}

/* Loading and Error Messages */
.loading-message,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.error-message {
    color: #e74c3c;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.2rem;
}
