﻿/* General Styles */
body {
    font-family: sans-serif;
    margin: 0;
    color: #333;
    background-color: #f0f0f0;
}

/* Header Styles */
header {
    background-color: #00344d;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    z-index: 100;
    isolation: isolate;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #f0f0f0;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding-right: 5px;
}

.menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    margin: 2px 0;
}

header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #00344d;
    width: 200px;
    z-index: 10;
}

header nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 10px 20px;
    display: block;
    text-align: left;
}

header nav.show {
    display: flex;
}

.header-line {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    margin: 10px 0;
}

/* Full-Width Image/Video Styles */
.full-width-image, .full-width-video {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style for both images and videos inside the container */
.full-width-image img, .full-width-video video {
    width: 100%;
    display: block;
    height: auto;
}

/* Full-Width Video Styles */
.full-width-video {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    z-index: 1;
    padding-bottom: 45.83%; /* Adjusted for 1920x880 aspect ratio */
    height: 0;
}

.full-width-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

/* Optional overlay to make text more visible */
.full-width-image::before, .full-width-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Floating Text Styles - Updated for better mobile responsiveness */
.floating-text {
    position: absolute;
    color: white;
    font-size: clamp(16px, 3vw, 48px);
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 2;
    pointer-events: none;
    width: 80%;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1.2;
}

/* Adjusted floating text positioning */
.text-position-50 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-position-70 {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Main Content Area */
main {
    padding: 20px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    z-index: 1;
}

/* Footer Styles */
footer {
    background-color: #00344d;
    color: #f0f0f0;
    padding: 1em;
    text-align: center;
}

/* Partner Sections Styles */
.partner-category h2 {
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Partner Grid Layout */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Partner Card Styles */
.partner-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease;
    word-wrap: break-word;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Shared styling for the links, ensure they do not have decorations */
a.partner-card {
    text-decoration: none;
    color: inherit;
}

/* ===== Contact Page (scoped) ===== */
.contact-section {
  background: #ffffff;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  max-width: 980px;
  margin: 20px auto;
}

.contact-section .contact-title {
  margin: 0 0 10px 0;
  font-size: clamp(22px, 2.2vw, 28px);
  color: #222;
}

.contact-section .contact-intro {
  margin: 0 0 24px 0;
  color: #555;
}

.contact-section .contact-form { display: block; max-width: 760px; }

.contact-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-section .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.contact-section .form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.contact-section .required { color: #b91c1c; }

/* Inputs */
.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section input[type="tel"],
.contact-section input[type="url"],
.contact-section textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  background: #fff;
  color: #222;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-section textarea { resize: vertical; min-height: 120px; }

.contact-section input::placeholder,
.contact-section textarea::placeholder { color: #9aa7b0; }

/* Focus (brand color) */
.contact-section input:focus,
.contact-section textarea:focus {
  border-color: #00344d;
  box-shadow: 0 0 0 3px rgba(0,52,77,0.12);
}

/* Consent checkbox */
.contact-section .form-group.consent label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Actions */
.contact-section .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Buttons (scoped) */
.contact-section .btn-primary,
.contact-section .btn-secondary {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
}

.contact-section .btn-primary {
  background: #00344d;
  color: #f0f0f0;
  border-color: #00344d;
}

.contact-section .btn-primary:hover { filter: brightness(1.05); }

.contact-section .btn-secondary {
  background: #e8eef2;
  color: #00344d;
  border-color: #cfd8dc;
}

.contact-section .btn-secondary:hover { background: #dde6ec; }

/* Status */
.contact-section .status {
  margin-top: 10px;
  font-size: .95rem;
  color: #00344d;
}

/* Hidden label utility (honeypot) */
.contact-section .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.contact-section .btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.contact-section .btn-whatsapp:hover {
  filter: brightness(1.1);
}

/* ===== Contact Page: Send via option ===== */
.contact-section .form-group.send-method {
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-section .form-group.send-method label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #333;
}

.contact-section .form-group.send-method input[type="radio"] {
  accent-color: #00344d;
  width: 16px;
  height: 16px;
  margin: 0;
}

.contact-section .form-group.send-method input[type="radio"]:focus {
  outline: 2px solid #00344d;
  outline-offset: 2px;
}

/* ===== MEDIA QUERIES - CONSOLIDATED AND CORRECTED ===== */

/* Mobile Landscape */
@media (max-width: 767px) and (orientation: landscape) {
    .floating-text {
        font-size: clamp(10px, 2vw, 16px) !important;
        width: 85% !important;
        max-width: 85% !important;
        line-height: 1.1 !important;
    }
}

/* Very Small Mobile Screens (Portrait) */
@media (max-width: 480px) and (orientation: portrait) {
    .floating-text {
        font-size: clamp(10px, 2.5vw, 18px) !important;
        width: 95% !important;
        max-width: 95% !important;
        padding: 0 5px !important;
        line-height: 1.1 !important;
    }
}

/* Standard Mobile (Portrait) */
@media (min-width: 481px) and (max-width: 767px) and (orientation: portrait) {
    .floating-text {
        font-size: clamp(12px, 3vw, 20px) !important;
        width: 90% !important;
        max-width: 90% !important;
        line-height: 1.1 !important;
    }
}

/* Tablets in Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .floating-text {
        font-size: clamp(16px, 2.5vw, 28px) !important;
        width: 85% !important;
        max-width: 85% !important;
    }
}

/* General Mobile Styles (All mobile devices) */
@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section Mobile */
@media (max-width: 768px) {
    .contact-section .form-row { 
        grid-template-columns: 1fr; 
    }
    .contact-section { 
        margin: 12px; 
    }
}




/* Team Section Styles */
.team-section {
    max-width: 1200px;
}

.team-section h2 {
    text-align: left;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}



/* Specific styles for the team cards, leveraging existing partner-card styles */
.team-card {
    text-align: center;
}

.team-photo {
    width: 150px; /* Adjust size as needed */
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* Makes the photo a circle */
    margin-bottom: 15px;
    border: 3px solid #00344d;
}

.team-card h3 {
    margin: 0;
    font-size: 1.5em;
    color: #00344d;
}

.team-card .designation {
    margin: 5px 0 15px;
    color: #555;
    font-weight: 500;
}

.linkedin-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0077B5; /* LinkedIn's official blue */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.linkedin-link:hover {
    background-color: #005582;
}