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

body {
    font-family: 'Century Gothic', Arial, sans-serif;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Fallback background image if video doesn't load */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -2;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-content {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    flex-direction: column;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation for 'X' */
.mobile-open .hamburger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}
.mobile-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 20px;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
    flex-shrink: 0;
}

.login-btn {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 8px 16px;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.login-dropdown.dropdown-open .dropdown-content {
    display: block;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 20px 150px;
}

.content-container {
    text-align: left;
    max-width: 800px;
    background: transparent;
    padding: 60px 40px;
    margin-left: 350px;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.main-subtitle {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.main-description {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.divider-line {
    position: relative;
    margin: 30px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-line::before,
.divider-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: white;
    margin: 0 20px;
}

.since-text {
    font-size: 1rem;
    color: white;
    white-space: nowrap;
    font-weight: 700;
}

.learn-more-btn {
    display: block; /* Allows for auto-centering */
    width: fit-content; /* Keeps button from stretching */
    margin: 20px auto 0 auto; /* Centers the button horizontally */
    
    background: rgba(255, 255, 255, 0.1); /* Frosted fill */
    backdrop-filter: blur(5px);           /* The blur effect */
    
    color: white;
    border: 1px solid white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700; /* Bolds the text */
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 0; /* Changed padding to 10px for a shorter footer */
    z-index: 1000;
    
    /* These lines are copied from your header for the blur effect */
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */

    /* This adds the thin line you drew */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Makes the line much fainter */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);     /* Adds a soft shadow effect */ 
}

.footer-content {
    padding: 0 20px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* This forces it into a single line */
}

.footer-link, .contact-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Century Gothic', Arial, sans-serif;
}

.footer-link .icon,
.contact-btn .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-link:hover, .contact-btn:hover {
    opacity: 0.8;
}

.footer-link .icon {
    width: 16px;  /* Explicitly set size */
    height: 16px; /* Explicitly set size */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 30px; /* Spacing between items */
    flex-shrink: 0; /* Prevents them from shrinking */
}

.footer-middle {
    text-align: center;
    flex-grow: 1; /* Pushes left and right to the edges */
}

.disclaimers-link {
    color: white;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.disclaimers-link:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    opacity: 0.7;
}

.modal-content h2 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 14px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.form-group label {
    color: white;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.accredited-link {
    color: #4A9EFF;
    text-decoration: none;
}

.accredited-link:hover {
    text-decoration: underline;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-yes, .btn-no {
    flex: 1;
    padding: 12px;
    border: 1px solid white;
    border-radius: 4px;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-yes {
    background: rgba(76, 158, 255, 0.3);
    color: white;
}

.btn-yes:hover {
    background: rgba(76, 158, 255, 0.5);
}

.btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 3000;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Page Content Styles */
.page-content {
    min-height: 100vh;
    padding: 120px 20px 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team page specific content area */
.team-page .page-content {
    align-items: flex-start;
    padding-top: 80px;
}

.content-wrapper {
    max-width: 1000px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    color: white;
    line-height: 1.6;
}

.content-wrapper h1, .content-wrapper h2, .content-wrapper h3 {
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Team page specific title positioning */
.team-title {
    margin-top: -80px;
    margin-left: -20px; /* Moved slightly to the right */
    position: relative;
    z-index: 10;
}

/* This controls spacing inside the card */
.content-wrapper .insight-card h3 {
    margin-top: 0;
    margin-bottom: 0px; /* No space below title */
}

.content-wrapper .insight-card p {
    margin-top: 0;
    margin-bottom: 0px; /* No space between text elements */
}

.content-wrapper .insight-card a {
    margin-top: 2px; /* Minimal space above the "Read More" link */
}

.insight-card a:hover {
    text-decoration: underline;
}

/* Preserve Google Docs formatting */
.content-wrapper pre {
    white-space: pre-wrap;
    font-family: 'Century Gothic', Arial, sans-serif;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Ensure text formatting is preserved from Google Docs */
.content-wrapper {
    white-space: pre-wrap;
    font-family: 'Century Gothic', Arial, sans-serif;
    line-height: 1.6;
}

/* Handle different text formatting from Google Docs */
.content-wrapper h1, .content-wrapper h2, .content-wrapper h3, 
.content-wrapper h4, .content-wrapper h5, .content-wrapper h6 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.content-wrapper p {
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-wrapper strong, .content-wrapper b {
    font-weight: bold;
}

.content-wrapper em, .content-wrapper i {
    font-style: italic;
}

.content-wrapper ul, .content-wrapper ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.content-wrapper li {
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Team Page Styles */
.team-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: -50px; /* Move containers up */
}

.team-member {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    text-align: center;
    min-height: calc(100vh - 200px); /* Make containers reach footer */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    margin: 0 auto 20px auto;
    border-radius: 0; /* Remove circular border */
    border: none; /* Remove border */
}

.team-member h3 {
    display: none; /* Hide the names */
}

/* Specific styling for Rohit's image - make it slightly smaller and align with Michelle */
/*#rohitImage {
/*    width: 180px; /* Reduced from 200px */
/*    height: 180px; /* Reduced from 200px */
/*    margin-top: 30px; /* Move Rohit down to align with Michelle */
/*}

/* Insights Page Styles */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    column-gap: 20px;
    row-gap: 15px;
    margin-top: 20px;
}

.insight-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin-bottom: 10px;
    /* Force all content to be tightly packed */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* This controls spacing inside the card */
.content-wrapper .insight-card h3 {
    margin-top: 0;
    margin-bottom: 0px; /* No space below title */
}

.content-wrapper .insight-card p {
    margin-top: 0;
    margin-bottom: 0px; /* No space between text elements */
}

.content-wrapper .insight-card a {
    margin-top: 2px; /* Minimal space above the "Read More" link */
}

.insight-card a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .footer-content {
        flex-direction: column; /* Stack left, middle, right vertically */
        gap: 15px;
        flex-wrap: wrap; /* Allow wrapping on mobile */
    }

    .footer-left,
    .footer-right {
        justify-content: center; /* Center the links inside their groups */
        gap: 20px;
        flex-wrap: wrap; /* Allow links to wrap if needed */
    }

    .footer-middle {
        order: 2; /* Copyright in the middle */
    }
    
    .footer-left {
        order: 1; /* Links on top */
    }
    
    .footer-right {
        order: 3; /* Links on bottom */
    }
}

@media (max-width: 768px) {
    .header-content {
        /* Keep it as a row, but space out items */
        flex-direction: row; 
        justify-content: flex-start;
        padding: 10px 20px;
        align-items: center;
    }
    
    .hamburger-btn {
        display: flex; /* Show the hamburger button */
        margin-left: auto;
    }

    .main-nav {
        /* This is the new "horizontal dropdown" style */
        display: none; 
        position: fixed;
        top: 60px; /* Adjust this to match your header's height */
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        
        /* Arrange links horizontally */
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 15px 0; 
        z-index: 1001; 
    }

    .main-nav.mobile-open {
        display: flex; /* Show the nav when .mobile-open is added by JS */
    }
    
    .main-nav.mobile-open .nav-link {
        margin: 3px 0; /* Adds vertical spacing */
        font-size: 10px; /* Makes links bigger */
    }

    .main-nav .nav-link {
        font-size: 16px; /* Make links bigger for mobile overlay */
    }
    
    .login-dropdown {
        z-index: 1002; /* Ensure login is above overlay */
    }

    /* FIX FOR ZOOM & PAGE CONTENT */
    .content-container {
        margin-left: 0;
        text-align: center;
        padding: 40px 20px;
    }
    
    /* Original rules from your other media queries */
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-subtitle {
        font-size: 1.2rem;
    }
    
    .team-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member {
        padding: 20px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-card {
        padding: 8px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-title {
        font-size: 3rem;
    }
    
    .team-container {
        gap: 25px;
    }
    
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Additional spacing control for insight cards */
.insight-card h3 {
    margin-top: 0 !important;
    margin-bottom: 0px !important;
    line-height: 1.1;
}

.insight-card p {
    margin-top: 0 !important;
    margin-bottom: 0px !important;
    line-height: 1.2;
}

.insight-card a {
    margin-top: 2px !important;
    display: inline-block;
}

/* PROFESSIONAL INSIGHT CARD SPACING (TIGHTER) */
#insightsContainer .insight-card {
    padding: 12px 16px;
    margin-bottom: 15px;
}

#insightsContainer .insight-card h3 {
    /* Reduced bottom margin */
    margin: 0 0 2px 0; 
    line-height: 1.3;
    font-size: 16px;
}

#insightsContainer .insight-card p {
    /* Reduced bottom margin */
    margin: 0 0 2px 0; 
    line-height: 1.4;
    font-size: 14px;
}

#insightsContainer .insight-card a {
    /* Reduced top margin */
    margin-top: 4px; 
    display: inline-block;
    color: #4A9EFF;
    text-decoration: none;
    font-size: 14px;
}

#insightsContainer .insight-card a {
    margin-top: 8px;
    display: inline-block;
    color: #4A9EFF;
    text-decoration: none;
    font-size: 14px;
}

#insightsContainer .insight-card a:hover {
    text-decoration: underline;
}

.article-container {
    max-width: 1000px;
    width: 100%;
    margin: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    color: white;
    line-height: 1.6;
}

.article-body h1,
.article-body h2 {
    text-align: center;
}

/* Styles for the embedded PDF */
.pdf-embed {
    width: 100%;       
    
    /* * This sets the height based on the width, 
     * maintaing a US Letter (8.5" x 11") shape.
    */
    aspect-ratio: 8.5 / 11; 

    border: none;      
    border-radius: 5px;
}


