/* CSS Variables */
:root {
    /* Teal-ish Blue Color Palette */
    --primary-color: #2C7A7B;        /* Teal (main brand color) */
    --primary-color-rgb: 44, 122, 123; 
    --secondary-color: #319795;      /* Lighter teal */
    --secondary-color-rgb: 49, 151, 149;
    --accent-color: #38B2AC;         /* Bright teal accent */
    --accent-color-rgb: 56, 178, 172;
    --text-color: #2C2C2C;           /* Dark gray text */
    --text-light: #5A5A5A;           /* Light gray text */
    --background-light: #E6FFFA;     /* Very light teal/cyan background */
    --white: #ffffff;                /* White */
    --border-color: #B2F5EA;         /* Light teal border */
    --transition: all 0.3s ease;     /* Smooth transitions */
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
    padding-top: 200px;
    position: relative;
    overflow-x: hidden;
}

/* Top-Left Corner Bracket */
body::before {
    content: '';
    position: fixed;
    top: 90px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-left: 3px solid var(--accent-color);
    border-top: 3px solid var(--accent-color);
    opacity: 0.4;
    z-index: 999;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1600px; /* Changed from 1200px */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* Buttons */
.cta-button,
.submit-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.cta-button:hover,
.submit-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 122, 123, 0.3);
}

/* Page Header */
.page-header {
    background-color: rgba(230, 255, 250, 0.40);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
    margin-top: 120px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    /* Adjust corner bracket for mobile */
    body::before {
        top: 70px;
        left: 10px;
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    body::before {
        width: 30px;
        height: 30px;
    }
}

/* Make sections semi-transparent to show perspective lines */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
    background-color: rgba(230, 255, 250, 0.4); 
}


/* Make cards semi-transparent */
.overview-item,
.team-preview-member {
    background-color: rgba(255, 255, 255, 0.5); 
}

/* Make ALL card backgrounds transparent globally */
.overview-item,
.team-preview-member,
.team-member,
.card,
[class*="card"],
[class*="-item"] {
    background-color: rgba(255, 255, 255, 0.5) !important;  /* Force transparency */
}




/* PDF Section */
.pdf-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.pdf-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.pdf-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #333;
}

/* PDF Card */
.pdf-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.pdf-icon {
  color: #dc3545;
  flex-shrink: 0;
}

.pdf-details h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #333;
}

.pdf-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.pdf-actions {
  display: flex;
  gap: 12px;
}

.btn-view,
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 1rem;
}

.btn-view {
  background-color: #007bff;
  color: white;
}

.btn-view:hover {
  background-color: #0056b3;
}

.btn-download {
  background-color: #28a745;
  color: white;
}

.btn-download:hover {
  background-color: #218838;
}

/* PDF Modal */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 100000 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.pdf-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.pdf-modal-close {
  position: fixed;  
  top: 20px;
  right: 35px;
  color: white;
  background-color: #dc3545;
  border: none;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100001 !important;  
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.pdf-modal-close:hover {
  background-color: #c82333;
  transform: scale(1.1);
}

#pdfViewer {
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .pdf-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .pdf-actions {
    width: 100%;
  }

  .btn-view,
  .btn-download {
    flex: 1;
    justify-content: center;
  }

  .pdf-modal-content {
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
  }
}

/* ===========================
   REFERENCES & CITATIONS
   =========================== */
.ref-num {
    color: var(--secondary-color);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.ref-num:hover {
    color: var(--primary-color);
}

.references {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border-color);
    background-color: rgba(230, 255, 250, 0.3);
    padding: var(--spacing-md);
    border-radius: 4px;
}

.references h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.references ol {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    padding-left: var(--spacing-md);
}

.references li {
    margin-bottom: var(--spacing-xs);
}

/* ===========================
   FLOATING QUOTES
   =========================== */
.float-quote {
    width: 300px;
    padding: var(--spacing-md);
    margin: var(--spacing-md);
    background-color: transparent;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
    border-radius: 4px;
}

.float-right {
    float: right;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.float-left {
    float: left;
    margin-right: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.float-quote cite {
    display: block;
    text-align: right;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
    font-weight: 600;
}

/* Clear floats helper */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===========================
   RESPONSIVE - QUOTES & REFS
   =========================== */
@media (max-width: 768px) {
    .float-quote {
        float: none !important;
        width: 100%;
        margin: var(--spacing-md) 0;
    }
}