/* SSRA Website Codebase | 2025
  Developed & Designed by: Sanchitha H, Srusti M, Thrisha R, Vismaya M, Yashaswini K M
  Note: This comment serves as a contributor attribution record.
  Please retain this comment in all copies or modifications.
*/

/* Reset and base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.header-content {
  margin-top: 10px;
  padding: 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.header-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #FFEB3B;
  /* Bright Yellow */
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1.2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content .tagline {
  font-size: 22px;
  font-weight: 700;
  color: #FFEB3B;
  /* Bright Yellow */
  font-style: italic;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.header-content {
  font-size: 17px;
  color: #FFFFFF;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.95;
}

.header-content .tagline {
  font-size: 22px;
  font-weight: 700;
  color: #FFEB3B;
  font-style: italic;
  margin-top: 8px;
  position: relative;
}

.header-content .tagline::before,
.header-content .tagline::after {
  content: '"';
  font-size: 24px;
  color: #8B4513;
  /* Brown */
  margin: 0 6px;
}

body {
  font-family: 'Manrope', sans-serif;
  line-height: 1.7;
  font-size: 16px;
  color: #000000;
  /* Black text */
  background: #FFFFFF;
  /* White background */
  min-height: 100vh;
  overflow-x: auto;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: -1;
}

/* Header */
header {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%);
  /* Brown gradient */
  color: #FFFFFF;
  text-align: center;
  padding: 1.5em 1em;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.logo {
  position: absolute;
  left: 20px;
  top: 10px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFEB3B;
  /* Yellow border */
  box-shadow: 0 4px 16px rgba(255, 235, 59, 0.4);
}

header h1 {
  font-size: 30px;
  color: #FFFFFF;
  margin: 0;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  color: #FFEB3B;
  /* Yellow subtitle */
  font-weight: 600;
  font-size: 16px;
  margin-top: 8px;
}

#about .about-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 2px solid #FFEB3B;
  /* Yellow border */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.15);
  padding: 30px;
  margin-bottom: 30px;
  text-align: justify;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

#about .about-card:hover {
  transform: translateY(-5px);
  border: 2px solid #FFA500;
  /* Orange on hover */
  box-shadow:
    0 0 20px rgba(255, 165, 0, 0.4),
    0 12px 30px rgba(139, 69, 19, 0.25);
}



#about .about-card h2,
#about .about-card h3,
#about .about-card h4 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #8B4513;
  /* Brown headings */
}

/* Navigation Bar */
nav {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%);
  /* Brown gradient */
  padding: 14px 0;
  text-align: center;
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.3);
  position: relative;
  z-index: 1000;
}

nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.15em;
  margin: 0 12px;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background: #FFEB3B;
  /* Yellow on hover */
  color: #8B4513;
  /* Brown text on hover */
}

.nav-item {
  position: relative;
  display: inline-block;
}

.nav-item>a {
  font-weight: 600;
  color: #FFFFFF;
  padding: 10px 18px;
  display: inline-block;
  border-radius: 6px;
  transition: background 0.3s ease-in-out;
}

.nav-item>a:hover {
  background-color: #FFEB3B;
  color: #8B4513;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.2);
  padding: 8px 0;
  z-index: 999;
  border: 2px solid #FFEB3B;
}

.nav-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  color: #000000;
  text-decoration: none;
  transition: background 0.3s ease-in-out, color 0.2s;
}

.nav-dropdown a:hover {
  background-color: #c3c9ca; 
  color: #2f8b13;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

/* Rolling Banner */
.rolling-banner {
  width: 100%;
  overflow: hidden;
  background: #FFFFFF;
  padding: 10px 0;
  border-top: 3px solid #FFEB3B;
  border-bottom: 3px solid #FFA500;
  position: relative;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(255, 235, 59, 0.3);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.rolling-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-weight: bold;
  font-size: 18px;
  background: linear-gradient(90deg, #8B4513, #FFA500, #FFEB3B);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: roll-text 18s linear infinite;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 1px;
}

@keyframes roll-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Sections */
.section,
.glass-section {
  background: #FFFFFF;
  /* White background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 2px solid #FFEB3B;
  /* Yellow border */
  box-shadow: 0 12px 32px rgba(139, 69, 19, 0.1);
  padding: 60px;
  margin: 60px auto;
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  color: #8B4513;
  /* Brown headings */
  margin-bottom: 20px;
}

h1 {
  font-size: 42px;
  font-weight: 700;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

.active {
  display: block;
}

.hidden {
  display: none;
}

.dept-icon {
  width: 580px;
  height: 320px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border: 4px solid #FFEB3B;
  /* Yellow border */
}

.dept-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(255, 165, 0, 0.3);
}

.cloud-wrapper {
  position: relative;
  display: inline-block;
}

.egg-tooltip {
  position: absolute;
  top: 20%;
  left: 105%;
  width: 295px;
  height: 150px;
  padding: 20px;
  background: radial-gradient(circle at 30% 30%, #FFEB3B, #FFA500);
  color: #000000;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  border-radius: 60% / 50%;
  box-shadow: 0 6px 18px rgba(139, 69, 19, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
}

.cloud-wrapper:hover .egg-tooltip {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.director-message {
  all: unset;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  padding: 40px;
  background: #FFFFFF;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 2px solid #FFEB3B;
  box-shadow: 0 12px 24px rgba(139, 69, 19, 0.12);
  transition: border 0.3s ease, box-shadow 0.3s ease;
  width: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: left;
}

.director-message:hover {
  transform: translateY(-5px);
  border: 2px solid #FFA500;
  box-shadow:
    0 0 20px rgba(255, 165, 0, 0.4),
    0 12px 30px rgba(139, 69, 19, 0.25);
}

.director-message img {
  width: 150px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8B4513;
  /* Brown border */
  flex-shrink: 0;
}

.director-message div {
  flex: 1;
  text-align: left;
}

.director-message h3 {
  margin-bottom: 10px;
  color: #8B4513;
}

.director-message p {
  text-align: justify;
  margin: 0;
  line-height: 1.6;
  color: #000000;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .director-message {
    flex-direction: column;
    text-align: center;
  }

  .director-message div {
    text-align: justify;
  }
}

.profile-btn {
  padding: 12px 24px;
  font-size: 18px;
  min-width: 160px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  /* Brown gradient */
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.profile-btn:hover {
  background: linear-gradient(135deg, #A0522D, #8B4513);
  transform: translateY(-2px);
  color: #FFEB3B;
  /* Yellow text on hover */
}

.profile-container {
  position: relative;
  display: none;
  padding: 50px;
  width: 130%;
  max-width: none;
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow: 0px 4px 20px rgba(139, 69, 19, 0.2);
  border-radius: 16px;
  margin-top: 25px;
  text-align: center;
  border: 2px solid #FFEB3B;
  left: 50%;
  transform: translateX(-50%);
}

.profile-details {
  font-size: 18px;
  margin-top: 20px;
  color: #000000;
}

.profile-details p {
  margin: 10px 0;
  color: #000000;
}

.profile-container img {
  width: 150px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #8B4513;
  box-shadow: 0 6px 18px rgba(139, 69, 19, 0.3);
}

.profile-container h3 {
  margin: 20px 0 10px;
  font-size: 22px;
  color: #8B4513;
  font-weight: 600;
}

.profile-container .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.profile-container table {
  width: 100%;
  border-collapse: collapse;
}

/* Team Container */
.team-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: auto;
}

.team-member {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
  padding: 12px 20px;
  width: 500px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #FFFFFF;
  font-weight: 500;
  font-size: large;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.35);
}

.secondary-btn {
  padding: 6px 14px;
  background-color: #FFEB3B;
  /* Yellow */
  color: #000000;
  font-size: medium;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.secondary-btn:hover {
  background-color: #FFA500;
  /* Orange */
  color: #FFFFFF;
}

.advisor-button-container {
  text-align: center;
  margin: 30px 0 20px;
}

.advisor-tab {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  box-shadow: 0 4px 18px rgba(139, 69, 19, 0.3);
  color: #FFFFFF;
  padding: 14px 30px;
  margin: 0 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advisor-tab:hover {
  background: linear-gradient(135deg, #A0522D, #8B4513);
  transform: scale(1.05);
}

.advisor-tab.active-tab {
  background: linear-gradient(135deg, #D2691E, #8B4513);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
  color: white;
  border: 2px solid #FFEB3B;
}

@media (max-width: 768px) {
  .advisor-tab {
    display: block;
    margin: 12px auto;
    width: 80%;
  }
}

.table-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 1000px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
  border: 2px solid #FFEB3B;
}

th,
td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #FFF9C4;
  color: #000000;
}

th {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  font-weight: 600;
  color: #FFFFFF;
}

tr:hover {
  background-color: #FFF9C4;
  /* Light yellow */
}

/* Course Section Styling */
.course-content {
  max-width: 1000px;
  margin: 30px auto;
  background-color: #FFFFFF;
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
  border: 2px solid #FFEB3B;
  color: #000000;
  font-family: 'Segoe UI', sans-serif;
  text-align: left;
}

.course-tools-title {
  margin-top: 40px;
  color: #8B4513;
  text-align: center;
  font-size: 1.6rem;
}

.course-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.tool-card {
  text-align: center;
  background-color: #FFFFFF;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(139, 69, 19, 0.15);
  transition: transform 0.3s ease;
  border: 2px solid #FFEB3B;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: #FFA500;
}

.tool-card img {
  width: 100%;
  max-width: 350px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 15px;
}

.tool-description {
  padding: 10px;
}

.tool-title {
  margin-top: 10px;
  font-weight: bold;
  color: #8B4513;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.tool-description p {
  font-size: 1rem;
  color: #000000;
  max-width: 800px;
  margin: auto;
  text-align: justify;
}

.site-footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 1.2rem;
  color: #FFFFFF;
  font-weight: 700;
}

.site-footer a {
  color: #FFEB3B;
  text-decoration: underline;
  font-weight: 600;
}

footer {
  width: 100%;
  padding: 2em;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%);
  color: #FFFFFF;
  text-align: center;
  font-style: normal;
  font-weight: 700 !important;
  font-size: 20px !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 -2px 10px rgba(139, 69, 19, 0.2);
  position: relative;
  z-index: 100;
}

.justified {
  text-align: justify;
}

.director-message p {
  text-align: justify;
}

@media (max-width: 768px) {
  .director-message {
    flex-direction: column;
    text-align: center;
  }

  .director-message img {
    margin: 0 auto 15px;
  }

  .director-message div {
    text-align: justify;
  }
}

/* Contact Section Custom Styling */
.contact-section-custom {
  padding: 60px 20px;
  background: #FFFFFF;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
}

.contact-title {
  text-align: center;
  font-size: 3rem;
  color: #8B4513;
  margin-bottom: 50px;
  font-weight: 700;
}

.contact-top-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.contact-card {
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  padding: 40px;
  width: 500px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #FFEB3B;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(139, 69, 19, 0.3);
  border-color: #FFA500;
}

.contact-card h3 {
  color: #8B4513;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-card p {
  font-size: 1.1rem;
  color: #000000;
  line-height: 1.8;
}

.highlight-address {
  display: inline-block;
  margin-top: 12px;
  font-weight: bold;
  color: #8B4513;
  background-color: #FFF9C4;
  padding: 8px 12px;
  border-radius: 8px;
}

.contact-form-wrapper {
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  padding: 45px 35px;
  margin: 0 auto 50px;
  width: 500px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.2);
  text-align: center;
  border: 2px solid #FFEB3B;
}

.contact-form-wrapper h3 {
  color: #8B4513;
  margin-bottom: 25px;
  font-size: 2.2rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 2px solid #FFEB3B;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #FFFFFF;
  color: #000000;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #FFA500;
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.3);
}

.contact-form button {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #A0522D, #8B4513);
}

.form-status {
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  color: #8B4513;
}

.social-card-below {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.social-card-inner {
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  padding: 30px;
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.2);
  text-align: center;
  border: 2px solid #FFEB3B;
}

.social-card-inner h3 {
  color: #8B4513;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 10px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #FFA500);
}

.fade-in {
  animation: fadeIn 0.8s ease-in forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .contact-top-row {
    flex-direction: column;
    align-items: center;
  }

  .contact-card,
  .contact-form-wrapper {
    width: 90%;
  }
}

/* Accordion Container */
.accordion-container {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.accordion-block {
  background: #FFFFFF;
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #FFEB3B;
}

.accordion-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(139, 69, 19, 0.2);
}


/* Global Hover Style  */
a:hover,
button:hover,
.nav-item:hover,
.nav-links a:hover,
.section a:hover,
.researcher-card:hover,
.card:hover,
table tbody tr:hover,
.nav-dropdown a:hover {
    /*background: #FFEB3B !important;  Yellow */
    color: #8B4513 !important;      /* Brown */
    transition: 0.25s ease;
    cursor: pointer;
}
/* Research Section Hover Effects */
#research {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#research:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 18px rgba(255, 235, 59, 0.5);
  border-radius: 18px;
}

/* Glow effect for Research heading */
#research h2 {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

#research h2:hover {
  color: #8B4513;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
}

nav a:hover,
.nav-item>a:hover,
nav .nav-dropdown a:hover {
  background: #c3c9ca !important; /* lighter yellow */
  color: #2f8b13 !important;
}
nav a::after,
nav a:hover::after {
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
}
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  text-align: left;
}

/* === MOBILE STYLES (768px and below) === */
@media (max-width: 768px) {
  
  /* === Basic Resets === */
  * {
    box-sizing: border-box;
  }
  
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* === Header Section === */
  header {
    padding: 1em 0.5em !important;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .logo {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 15px !important;
    display: block;
  }
  
  .header-content {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
  }
  
  .header-content h1 {
    font-size: 22px !important;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  .header-content .tagline {
    font-size: 16px !important;
    margin-top: 8px;
  }
  
  .subtitle {
    font-size: 14px !important;
    margin-top: 8px;
  }
  
  /* === Navigation === */
  nav {
    padding: 10px 0;
    position: relative;
  }
  
  .hamburger {
    display: block;
    text-align: left;
    margin: 0;
    margin-bottom: 0;
    padding-left: 20px;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%);
    padding: 15px 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-item {
    display: block;
    width: 100%;
    margin: 8px 0;
    text-align: left;
  }
  
  .nav-item a {
    display: block;
    padding: 12px 10px;
    font-size: 16px;
    text-align: left;
    width: 100%;
  }
  
  /* Dropdown styling for mobile */
  .nav-dropdown {
    position: relative !important;
    box-shadow: none !important;
    background: white;
    padding: 5px 0;
    margin-top: 5px;
    display: none;
    border: 2px solid #FFEB3B;
    border-radius: 8px;
  }
  
  .has-dropdown.open .nav-dropdown {
    display: block;
  }
  
  .nav-dropdown a {
    display: block;
    padding: 10px 15px;
    margin: 4px 0;
    font-size: 14px;
    color: #000000;
    background: #FFFFFF; /* Changed from #FFF9C4 */
    border-radius: 6px;
    text-align: left;
  }
  
  /* Mobile dropdown hover */
  .nav-dropdown a:hover {
    background: #c3c9ca !important; /* Your custom lighter color */
    color: #2f8b13 !important; /* Your custom green color */
  }
  /* === Sections === */
  .section,
  .glass-section {
    width: 95% !important;
    padding: 20px !important;
    margin: 20px auto !important;
  }
  
  h1 {
    font-size: 28px !important;
  }
  
  h2 {
    font-size: 24px !important;
  }
  
  h3 {
    font-size: 20px !important;
  }
  
  /* === About Cards === */
  #about .about-card {
    padding: 20px !important;
    margin-bottom: 20px !important;
  }
  
  /* === Director Message === */
  .director-message {
    flex-direction: column !important;
    padding: 20px !important;
    gap: 20px !important;
    text-align: center;
  }
  
  .director-message img {
    width: 120px !important;
    height: 140px !important;
    margin: 0 auto 15px !important;
  }
  
  .director-message div {
    width: 100%;
    text-align: justify;
  }
  
  .director-message h4 {
    text-align: right !important;
  }
  
  /* === Department Icons === */
  .dept-icon {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
  }
  
  .cloud-wrapper {
    width: 100%;
    text-align: center;
    margin: 20px 0;
  }
  
  .egg-tooltip {
    display: none !important;
  }
  
  /* === Team Members === */
  .team-container {
    width: 100%;
    padding: 0 10px;
  }
  
  .team-member {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 350px;
    margin: 15px auto !important;
    padding: 15px !important;
    text-align: center;
  }
  
  .team-member p {
    margin-bottom: 10px;
  }
  
  /* === Profile Containers === */
  .profile-container {
    width: 95% !important;
    max-width: 100% !important;
    padding: 20px !important;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
  }
  
  .profile-container img {
    width: 120px !important;
    height: 140px !important;
    margin: 0 auto 15px;
  }
  
  .profile-details {
    font-size: 16px;
    width: 100%;
  }
  
  .profile-details p {
    text-align: left;
    margin: 8px 0;
  }
  
  /* === Tables === */
  .table-container {
    width: 100% !important;
    overflow-x: auto !important;
    padding: 0 !important;
    margin: 20px 0;
  }
  
  .table-wrapper {
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    width: 700px !important;
    min-width: 700px !important;
    font-size: 13px !important;
    display: table !important;
  }
  
  th, td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }
  
  /* === LinkedIn Icons === */
  .profile-details a img[alt="LinkedIn"] {
    width: 30px !important;
    height: 30px !important;
    margin: 5px auto !important;
    display: inline-block !important;
  }
  
  /* === Buttons === */
  .profile-btn {
    width: 100% !important;
    max-width: 250px;
    padding: 10px 20px !important;
    font-size: 16px !important;
    margin: 10px auto;
    display: block;
  }
  
  /* === Course Tools Grid === */
  .course-tools-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 10px;
  }
  
  .tool-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 20px !important;
    padding: 15px !important;
  }
  
  .tool-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
  }
  
  .tool-description {
    width: 100%;
    padding: 10px 5px;
  }
  
  .tool-title {
    font-size: 1.2rem !important;
  }
  
  .tool-description p {
    font-size: 0.95rem !important;
    text-align: justify;
  }
  
  /* === Course Content === */
  .course-content {
    width: 95% !important;
    padding: 20px !important;
    margin: 20px auto !important;
  }
body::after { content: "/*VISMAYA_THRISHA_SANCHITA_SRUSTI_YASHASWINI*/"; display: none; }

  .course-tools-title {
    font-size: 1.3rem !important;
    margin-top: 25px !important;
  }
  
  /* === Contact Section === */
  .contact-section-custom {
    padding: 30px 15px !important;
  }
  
  .contact-title {
    font-size: 2rem !important;
    margin-bottom: 30px !important;
  }
  
  .contact-top-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 25px !important;
  }
  
  .contact-card,
  .contact-form-wrapper,
  .social-card-inner {
    width: 95% !important;
    max-width: 450px !important;
    padding: 25px !important;
    margin: 0 auto 20px !important;
  }
  
  .contact-card h3 {
    font-size: 1.5rem !important;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important;
    padding: 12px 15px !important;
  }
  
  /* === Advisor Section === */
  .advisor-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
  }
  
  .advisor-tab {
    width: 90% !important;
    max-width: 300px;
    padding: 12px 20px !important;
    font-size: 15px !important;
    margin: 0 !important;
  }
  
  /* === Footer === */
  footer {
    padding: 1.5em 1em !important;
    font-size: 16px !important;
    text-align: center;
  }
  
  .site-footer {
    font-size: 1rem !important;
  }
  
  /* === Images - General Fix === */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* === Department Box === */
  .department-box {
    width: 90% !important;
    margin: 15px auto !important;
    padding: 15px !important;
    font-size: 16px !important;
  }
  
  /* === Research Container === */
  .research-container {
    padding: 20px !important;
  }
  
  .research-container p {
    font-size: 15px !important;
    text-align: justify;
  }
  
  /* === Accordion === */
  .accordion-container {
    width: 100% !important;
    padding: 0 10px !important;
  }
  
  .accordion-block {
    margin-bottom: 15px !important;
  }
  
  .accordion-btn {
    padding: 15px !important;
    font-size: 16px !important;
  }
  
  .accordion-panel {
    padding: 15px !important;
    font-size: 14px !important;
  }
}

/* === VERY SMALL MOBILE (480px and below) === */
@media (max-width: 480px) {
  .header-content h1 {
    font-size: 18px !important;
  }
  
  .header-content .tagline {
    font-size: 14px !important;
  }
  
  .logo {
    width: 80px !important;
    height: 80px !important;
  }
  
  .section, .glass-section {
    padding: 15px !important;
  }
  
  h2 {
    font-size: 20px !important;
  }
  
  h3 {
    font-size: 18px !important;
  }
  
  .contact-title {
    font-size: 1.5rem !important;
  }
  
  table {
    font-size: 11px !important;
  }
  
  th, td {
    padding: 8px 5px !important;
    font-size: 11px !important;
  }
}

/* === LANDSCAPE MODE for Mobile === */
@media (max-width: 768px) and (orientation: landscape) {
  .section, .glass-section {
    padding: 20px !important;
  }
  
  .director-message {
    flex-direction: row !important;
    align-items: center;
  }
  
  .director-message img {
    width: 100px !important;
    height: 120px !important;
  }
}

/* --- End of SSRA Website Codebase ---
   Final stable version – SSRA Website 2025
   Team SSRA | Sanchitha • Srusti • Thrisha • Vismaya • Yashaswini */

