/* General Styles */
body { 
  margin:0; 
  font-family: 'Arial', sans-serif; 
  overflow-x:hidden; 
  background:#f9f9f9; 
  color:#333; 
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 80px;
}
a { 
  text-decoration:none; 
  color: inherit; 
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  background-color: white;
  transition: background-color 0.3s ease;
}

.main h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: #2c3e50;
  text-align: center;
}
body.dark .dropdown {
  background-color: #333;
  border: 1px solid #555;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown a {
  color: #fff;
  border-bottom-color: #555;
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.main p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  text-align: center;
  line-height: 1.6;
}

/* Dark Mode */
body.dark .main {
  background-color: #1a1a1a;
}

body.dark .main h1 {
  color: #ffffff;
}

body.dark .main p {
  color: #bbb;
}
.syllabus {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  margin: 20px 0;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 0 20px;
  text-align: left;
}

.card.expanded .syllabus {
  opacity: 1;
  max-height: 250px;
  padding: 20px;
}

.card-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px; 
  margin: 20px 0;
}

/* Search Bar Styling */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 40px 0;
  padding: 0 20px;
}

.search-form {
  width: 100%;
  max-width: 600px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 12px 50px 12px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 25px;
  font-size: 16px;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  outline: none;
}

.search-input:focus {
  border-color: #ff7e5f;
  box-shadow: 0 4px 20px rgba(255, 126, 95, 0.2);
  transform: translateY(-2px);
}

.search-input::placeholder {
  color: #999;
  font-style: italic;
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 126, 95, 0.3);
}

.search-button:hover {
  background: linear-gradient(135deg, #ff6b47, #ff9a56);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
}

.search-button:active {
  transform: translateY(-50%) scale(0.95);
}

.search-button i {
  font-size: 14px;
}

/* Dark Mode Search Bar */
body.dark .search-input {
  background-color: #2c3e50;
  border-color: #34495e;
  color: #ecf0f1;
}

body.dark .search-input:focus {
  border-color: #ff7e5f;
  box-shadow: 0 4px 20px rgba(255, 126, 95, 0.3);
}

body.dark .search-input::placeholder {
  color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-container {
    margin: 30px 0;
    padding: 0 15px;
  }
  
  .search-input {
    height: 45px;
    padding: 10px 45px 10px 15px;
    font-size: 14px;
  }
  
  .search-button {
    width: 32px;
    height: 32px;
    right: 6px;
  }
  
  .search-button i {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .search-container {
    margin: 20px 0;
    padding: 0 10px;
  }
  
  .search-input {
    height: 42px;
    padding: 8px 40px 8px 12px;
    font-size: 13px;
  }
  
  .search-button {
    width: 30px;
    height: 30px;
    right: 5px;
  }
}

.card {
  /* Using a semi-transparent white with a very subtle cool purple tint */
  background-color: rgba(255, 255, 255, 0.3); /* Slightly more opaque for better glassy look on light background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  /* A subtle, light purple border */
  border: 1px solid rgba(200, 180, 250, 0.7); 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 15px;
  transition: all 0.3s ease;
}
.card h3 {
  color: #333; /* Dark grey for strong readability */
}

.card p {
  color: #555; /* Slightly lighter dark grey for paragraph text */
  font-size: 0.9em;
}

.card-buttons .button {
  background-color: #7d4dff; 
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-buttons .button:hover {
  background-color: #6a3edd; 
  transform: scale(1.05);
}

/* Hero Section */
.internship-hero {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #fff;
  padding: 120px 20px 60px 20px;
  text-align: center;
  border-radius: 0 0 50% 50% / 20%;
}
.internship-hero-title { font-size:3rem; font-weight:700; margin-bottom:20px; animation: slideInTop 1s ease-out; }
.internship-hero-subtitle { font-size:1.3rem; margin-bottom:30px; animation: slideInBottom 1s ease-out; }
.internship-hero-btn {
  display:inline-block; background:#fff; color:#0077b6; padding:12px 28px; border-radius:50px; font-weight:600;
  transition: all 0.3s ease;
}
.internship-hero-btn:hover { background:#0077b6; color:#fff; transform:translateY(-3px); }

@keyframes slideInTop { 0% {opacity:0; transform:translateY(-50px);} 100% {opacity:1; transform:translateY(0);} }
@keyframes slideInBottom { 0% {opacity:0; transform:translateY(50px);} 100% {opacity:1; transform:translateY(0);} }

/* Search Bar */
.internship-search-container { display:flex; justify-content:center; margin-top:40px; gap:10px; flex-wrap:wrap; }
.internship-search-input {
  padding:12px 20px; width:300px; max-width:90%; border-radius:50px; border:1px solid #0077b6; font-size:1rem; outline:none;
  transition: all 0.3s ease;
}
.internship-search-input:focus { border-color:#00b4d8; box-shadow:0 4px 15px rgba(0,180,216,0.3); }
.internship-search-btn { padding:12px 18px; border:none; background:#0077b6; color:#fff; font-size:1.1rem; border-radius:50%; cursor:pointer; transition: all 0.3s ease; }
.internship-search-btn:hover { background:#023e8a; transform:translateY(-2px); }

/* Cards Section */
.internship-cards-container {
  display:grid; grid-template-columns:repeat(3,1fr); gap:30px; padding:40px 20px 60px 20px; justify-items:center;
}
.internship-card {
  background:#fff; border-radius:20px; box-shadow:0 6px 20px rgba(0,0,0,0.1); overflow:hidden;
  width:100%; max-width:360px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.internship-card:hover { transform: translateY(-5px); box-shadow:0 10px 25px rgba(0,0,0,0.15); }
.internship-card-content { padding:25px 20px; text-align:center; }
.internship-card-content img { width:90px; height:90px; object-fit:cover; margin-bottom:15px; }
.internship-card h3 { font-size:1.5rem; margin-bottom:10px; color:#0077b6; }
.internship-card p { font-size:1rem; margin-bottom:10px; color:#333; }
.internship-card-buttons { margin:15px 0; display:flex; justify-content:center; gap:15px; flex-wrap:wrap; }
.toggle-btn, .apply-btn { padding:10px 22px; border:none; border-radius:50px; cursor:pointer; font-weight:600; transition: all 0.3s ease; }
.toggle-btn { background:#eee; color:#0077b6; }
.toggle-btn:hover { background:#0077b6; color:#fff; }
.apply-btn { background:#0077b6; color:#fff; }
.apply-btn:hover { background:#023e8a; }

/* Hidden Extra Details */
.internship-card-syllabus { display:none; text-align:left; margin-top:15px; color:#555; }
.internship-card.expanded .internship-card-syllabus { display:block; animation: slideDown 0.4s ease-in-out; }
@keyframes slideDown { 0% {opacity:0; transform:translateY(-10px);} 100% {opacity:1; transform:translateY(0);} }

/* Responsive */
@media (max-width:1024px) { .internship-cards-container { grid-template-columns:repeat(2,1fr); } }
@media (max-width:768px) { 
  .internship-cards-container { grid-template-columns:1fr; }
  .internship-card h3 { font-size:1.3rem; }
  .internship-card p { font-size:0.95rem; }
  .internship-hero-title { font-size:2.2rem; }
  .internship-hero-subtitle { font-size:1.1rem; }
  .internship-search-container { flex-direction:column; gap:15px; margin-top:-20px; }
}

/* ===== FOOTER STYLES ===== */
footer {
background: #111827;
color: #fff;
padding: 2rem;
}

.footer-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}

.footer-col h3 {
margin-bottom: 1rem;
color: #0077b6;
font-size: 1.2rem;
}

.footer-col a {
display: block;
color: #d1d5db;
text-decoration: none;
margin-bottom: 0.5rem;
transition: color 0.3s ease;
}

.footer-col a:hover {
color: #0077b6;
}

.footer-col p {
margin-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.social-icons {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.social-icons a {
display: flex;
align-items: center;
gap: 0.5rem;
color: #fff;
text-decoration: none;
transition: color 0.3s ease;
}

.social-icons a:hover {
color: #0077b6;
}

.footer-credit {
text-align: center;
margin-top: 2rem;
font-size: 0.85rem;
color: #9ca3af;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
.footer-container {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-col p {
  text-align: center;
  justify-content: center;
}
}
