/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  list-style: none;
  background-color: #333;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1000;
}

.navbar li {
  position: relative;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  transition: all 0.3s ease;
}

.navbar a:hover {
  background-color: #444;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  left: 0;
  top: 100%;
}

.dropdown-content li {
  width: 100%;
}

.dropdown-content a {
  color: #333 !important;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown arrow indicator */
.dropdown > a::after {
  content: " ▼";
  font-size: 0.7em;
}

/* ===== PAGE CONTENT STYLES ===== */
header {
  background: #f4f4f4;
  padding: 20px 0;
  text-align: center;
}

h1, h2 {
  color: #333;
  margin-bottom: 20px;
}

section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* ===== COLOR VARIABLES (Change these values) ===== */
:root {
  --primary-color: #2c3e50;     /* Dark blue-gray - for navbar */
  --secondary-color: #3498db;   /* Bright blue - accents */
  --accent-color: #e74c3c;      /* Red - for important buttons */
  --light-color: #ecf0f1;       /* Light gray - backgrounds */
  --dark-color: #2c3e50;        /* Dark text */
  --text-on-dark: #ffffff;      /* White text on dark backgrounds */
  --hover-color: #2980b9;       /* Blue hover state */
}

/* ===== MAIN STRUCTURE ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

/* ===== NAVBAR ===== */
.navbar {
  list-style: none;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1000;
}

.navbar a {
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 15px 25px;
  display: block;
  transition: all 0.3s ease;
}

.navbar a:hover {
  background-color: var(--hover-color);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--light-color);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 1;
  left: 0;
  top: 100%;
}

.dropdown-content a {
  color: var(--dark-color) !important;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content a:hover {
  background-color: #d6eaf8;
  color: var(--dark-color) !important;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown > a::after {
  content: " ▼";
  font-size: 0.7em;
  color: rgba(255,255,255,0.7);
}

/* ===== PAGE SECTIONS ===== */
header {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--text-on-dark);
  padding: 60px 0 40px;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin: 30px 0 20px;
}

section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s;
}

.button:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  text-align: center;
  padding: 30px;
  margin-top: 50px;
}

/* Fix for clickable dropdown items */
.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1000; /* Ensure it's above other elements */
}

.navbar {
  overflow: visible; /* Critical for dropdown visibility */
}

.dropdown-content a {
  pointer-events: auto !important; /* Ensure links are clickable */
  position: relative; /* Needed for z-index */
}
.mixed-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.horizontal-group {
  display: flex;
  gap: 20px;
}

.image-box {
  flex: 1;
}

.vertical-group img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.horizontal-group img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .image-row, .horizontal-group {
    flex-direction: column;
  }
  
  .image-container, .image-box {
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .grid-item img {
    height: 150px;
  }
}
/* styles.css */

/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.team-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #222;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* Team container */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Team member card */
.team-member {
    width: 280px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Member image */
.member-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.member-image img {
    width: 100%;  /* Full width of container */
    height: 100%; /* Full height of container */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

/* Social links */
.social-links {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    transition: bottom 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-member:hover .social-links {
    bottom: 0;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50;
}

/* Member info */
.team-member h3 {
    margin: 20px 0 5px;
    font-size: 1.4rem;
}

.position {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 15px;
}

.bio {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .team-container {
        gap: 20px;
    }
    
    .team-member {
        width: 100%;
        max-width: 350px;
    }
}
.email-link {
    display: inline-block;
    margin: 10px 0 20px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #3e8e41;
    text-decoration: underline;
}
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #3e8e41;
}

.email-link i {
    font-size: 1.1rem;
}
.formatted-address {
  white-space: pre-line;
  font-style: normal; /* Remove italic style if using <address> tag */
}
/* Project Listing Section */
.project-listing {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-listing h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.project-listing p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Project Sections */
.project-section {
    margin: 30px 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-header {
    cursor: pointer;
    padding: 15px 20px;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.project-header:hover {
    background-color: #2980b9;
}

.project-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.arrow {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.arrow.down {
    transform: rotate(90deg);
}

.project-content {
    display: none;
    padding: 20px;
    background-color: white;
    border-left: 4px solid #3498db;
}

.project-content.show {
    display: block;
}

.project-content h4 {
    color: #2c3e50;
    margin-top: 0;
}

.project-content ul {
    padding-left: 20px;
}

.project-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-content p {
    margin-top: 15px;
    color: #34495e;
}
/* Student Profiles Section */
.student-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.student-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.student-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.student-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.student-card:hover .student-image {
    transform: scale(1.05);
}

.student-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.student-name {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.student-details {
    margin-bottom: 15px;
}

.student-details p {
    margin: 5px 0;
    color: #34495e;
    font-size: 0.9em;
    display: flex;
}

.student-details strong {
    min-width: 70px;
    display: inline-block;
    color: #2c3e50;
}

button {
    padding: 8px 15px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sponsor-btn {
    background-color: #3498db;
    color: white;
}

.more-btn {
    background-color: #f1f1f1;
    color: #333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .student-profiles {
        grid-template-columns: 1fr;
    }
    
    .student-card {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .student-image-container {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        border-radius: 8px 0 0 8px;
    }
    
    .student-info {
        padding: 10px 15px;
    }
    
    .student-name {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .student-details p {
        font-size: 0.85em;
        flex-wrap: wrap;
    }
    
    .student-details strong {
        min-width: 60px;
    }
    
    button {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .student-image-container {
        width: 100px;
        height: 100px;
    }
    
    .student-details p {
        display: block;
    }
    
    .student-details strong {
        display: block;
        margin-bottom: 2px;
    }
}

@media screen and (max-width: 420px) {
  .student-card {
    flex-direction: column;
    align-items: center;
  }

  .student-image-container {
    width: 100%;
    height: auto;
  }

  .student-info {
    padding: 10px;
  }

  .student-details p {
    font-size: 0.85em;
    word-break: break-word;
  }

  button {
    font-size: 0.9em;
    width: 100%;
  }
}
  
body {
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}

@media screen and (min-width: 500px) and (max-width: 700px) {
  .student-profiles {
    grid-template-columns: 1fr;
  }

  .student-card {
    flex-direction: column;
    align-items: center;
  }

  .student-image-container {
    width: 100%;
    height: 200px;
  }

  .student-info {
    padding: 10px 15px;
  }

  .student-details p {
    font-size: 0.9em;
  }

  button {
    width: 100%;
    font-size: 1em;
  }
}
@media (spanning: single-fold-vertical) {
  .student-profiles {
    grid-template-columns: 1fr; /* Stack content vertically across screens */
  }

  .student-card {
    margin: 10px auto;
    max-width: 90%;
  }
}

.sponsor-btn {
  background-color: #3498db;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}


/* Tablet+ View */
@media (min-width: 600px) {
  .student-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .student-card {
    flex-direction: column;
    margin-bottom: 0;
  }
  
  .student-photo {
    width: 10%;
    height: 20px;
    border-radius: 8px 8px 0 0;
  }
}
  

/* For tablets */
@media (min-width: 600px) {
  .compact-photo {
    width: 80px;
    height: 80px;
  }
}

/* For desktops */
@media (min-width: 900px) {
  .compact-photo {
    width: 100px;
    height: 100px;
  }
}

.student-profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 15px;
  padding: 20px;
}

/* Responsive: 2 per row on tablets */
@media (max-width: 900px) {
  .student-profiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 per row on mobile */
@media (max-width: 600px) {
  .student-profiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 475px) {
  .student-profiles {
    grid-template-columns: 1fr;
  }
}

.student-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  line-height: 1.1;
  font-size: 0.95rem;
  max-width: 100%; /* allow card to fill grid cell */
}

.student-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #004080;
}

.student-card p {
  margin: 2px 0;
  line-height: 1.1;
  font-size: 0.9rem;
}

.student-card h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #004080;
}


@media print {
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .letterhead {
        height: auto;
        min-height: 297mm;
    }
    
    .no-print {
        display: none !important;
    }
}
/* Samsung Device Compatibility */
/* Galaxy Fold */
@media (max-width: 280px) and (max-height: 653px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Galaxy S20, S21, S22, S23 Ultra */
@media (min-width: 412px) and (max-width: 414px) and (min-height: 846px) and (max-height: 916px) {
    .hero {
        padding: 80px 15px;
    }
    .highlight-card, .about-card, .help-card {
        padding: 20px;
    }
}

/* Galaxy S20 FE, S21 FE */
@media (min-width: 412px) and (max-width: 414px) and (min-height: 804px) and (max-height: 805px) {
    .mobile-nav {
        width: 70%;
    }
}

/* Galaxy Z Flip series */
@media (max-width: 350px) and (min-height: 672px) and (max-height: 720px) {
    .container {
        width: 95%;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* Galaxy Note series */
@media (min-width: 412px) and (max-width: 414px) and (min-height: 869px) and (max-height: 1000px) {
    .hero h2 {
        font-size: 2rem;
    }
}

/* Galaxy A series (most common mid-range) */
@media (min-width: 360px) and (max-width: 412px) and (min-height: 640px) and (max-height: 780px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    .hero {
        padding: 60px 15px;
    }
}

/* General Samsung Mobile Optimization */
@media (max-width: 767px) {
    /* Viewport meta tag reinforcement */
    @-ms-viewport {
        width: device-width;
    }
    
    /* Prevent text size adjustment */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Samsung Internet browser specific fixes */
    @supports (-webkit-touch-callout: none) {
        /* Fix for Safari/Samsung Internet viewport units */
        .hero {
            height: calc(var(--vh, 1vh) * 100);
        }
    }
    
    /* Touch target sizing for better usability */
    a, button, .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Prevent zoom on form inputs */
    input, select, textarea {
        font-size: 16px;
    }
    
    /* Samsung foldable devices split screen */
    @media (screen-spanning: single-fold-vertical) {
        .container {
            width: calc(100% - env(fold-left) - env(fold-right));
            margin-left: env(fold-left);
        }
    }
}

/* Samsung One UI adjustments */
@media (-android-) {
    /* Adjust for Samsung's navigation bar */
    body {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Fix for Samsung's font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
}

/* High DPI Samsung devices */
@media (-webkit-min-device-pixel-ratio: 3),
       (min-resolution: 384dpi) {
    /* Sharper images for high-res screens */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
    
    /* Adjust font weights for better readability */
    h1, h2, h3 {
        font-weight: 600;
    }
}

/* Samsung Internet scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(44, 62, 80, 0.5);
    border-radius: 4px;
}

/* Example of responsive grid adjustment */
.student-profiles {
    /* Default for small phones */
    grid-template-columns: 1fr;
}

@media (min-width: 412px) {
    .student-profiles {
        /* Two columns on Galaxy S20 and similar */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .student-profiles {
        /* Three columns on tablets */
        grid-template-columns: repeat(3, 1fr);
    }
}

Desktop-first pre-defined media series
@media(max-width:1536px){}

@media(max-width:1280px){}

@media(max-width:1024px){}

@media(max-width:768px){}

@media(max-width:640px){}

@media(max-width:475px){}

Desktop container utility class:
.container{
	max-width: 1536px;
	margin-left:auto;
	margin-right:auto;
	padding-left:0.5rem;
	padding-right:0.5rem;
}

/*2xl*/
@media(max-width:1536px){
	.container{
		max-width:1280px;
	}
}

/*xl*/
@media(max-width:1280px){
	.container{
		max-width:1024px;
	}
}

/*lg*/
@media(max-width:1024px){
	.container{
		max-width:768px;
	}
}

/*md*/
@media(max-width:768px){
	.container{
		max-width:640px;
	}
}

/*sm*/
@media(max-width:640px){
	.container{
		max-width:475px;
	}
}

/*xs*/
@media(max-width:475px){
	.container{
		width:100%;
	}
}

.logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px; /* adjust size as needed */
  height: auto;
  z-index: 1000;
}

@media (max-width: 600px) {
  .logo {
    width: 70px;
    top: 10px;
    right: 10px;
  }
}
.logo {
  position: absolute;
  top: 10px;
  right: 20px;
  max-width: 100%;
  height: auto;
  z-index: 1000;
}

header {
  position: relative; /* allows absolute logo inside */
  overflow: visible; /* prevents cutting */
}





