/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 85px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.logo img {
    height: 50px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #00338D;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #EBB700;
}

/* Login Button */
.login-btn {
    background-color: #00338D;
    color: white;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-btn:hover {
    background-color: #EBB700;
    color: black;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 1.5rem !important;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: solid #00338D;
    border-width: 0 2px 2px 0;
    padding: 3px;
    rotate: 45deg;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown-menu li a {
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #00338D;
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 3rem;
    background-color: #f8f9fa;
}

/* Cards */
.card {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: #00338D;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Buttons */
.learn-more-btn {
    display: inline-block;
    background-color: #EBB700;
    color: black;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
    background-color: #00338D;
    color: white;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    padding: 4rem 2rem;
    background-color: white;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.gallery-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

/* Gallery Navigation */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 51, 141, 0.8);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-btn:hover {
    background: rgba(235, 183, 0, 0.8);
}

.gallery-btn.prev {
    left: 1rem;
}

.gallery-btn.next {
    right: 1rem;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partner-section {
    padding: 4rem 2rem;
    background-color: white;
}

.partner-section h2 {
    text-align: center;
    color: #00338D;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.partner-slider {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.partner-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

.partner-logo {
    min-width: 150px;
    padding: 0 1.5rem;
}

.partner-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partner-logo img:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Team Members Section
   ========================================================================== */
.team-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.team-section h1 {
    text-align: center;
    color: #00338D;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: #00338D;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.team-member .position {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #00338D;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 3px solid #EBB700;
}

footer p {
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width: 968px) {
    .hamburger {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        padding: 6rem 2rem 2rem;
        transition: 0.3s ease;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 2rem;
    }

    .dropdown-toggle::after {
        right: auto;
        margin-left: 0.5rem;
    }

    .hero {
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .gallery-slide img {
        height: 300px;
    }

    .partner-logo {
        min-width: 120px;
        padding: 0 1rem;
    }
    
    .partner-logo img {
        width: 100px;
        height: 100px;
    }

    .team-section {
        padding: 2rem 1rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
}

@media screen and (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Privilege Card Section
   ========================================================================== */
.card-showcase {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    gap: 4rem;
}

.card-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.card-content h1 {
    color: #00338D;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.card-description {
    text-align: left;
}

.card-description p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .card-showcase {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .card-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .card-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

.card-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    perspective: 1000px;
    margin: 0 auto;
}

.card-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    cursor: pointer;
    animation: rotate 5s linear infinite;
}

.card-3d:hover {
    animation-play-state: paused;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-face.back {
    transform: rotateY(180deg);
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Media Queries for Card */
@media screen and (max-width: 768px) {
    .card-container {
        max-width: 80%;  /* Reduced from 90% */
    }
    
    .card-showcase {
        min-height: 60vh;
    }
}

/* Action Buttons Section */
.action-buttons {
    padding: 4rem 2rem;
    background-color: white;
}

.button-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.get-card {
    background-color: #EBB700;
    color: black;
}

.become-partner {
    background-color: #00338D;
    color: white;
}

.btn-icon {
    font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
    .button-container {
        flex-direction: column;
        gap: 1rem;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Get Card Section */
.get-card-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.instruction-container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.instruction-container:hover {
    transform: translateY(-5px);
}

.instruction-container h1 {
    color: #00338D;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.instruction-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #EBB700;
}

.instructions ol {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
    counter-reset: steps;
}

.instructions li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.instructions li:hover {
    transform: translateX(10px);
    background: #f0f2f5;
}

.step-number {
    background: #00338D;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-text {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.form-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download {
    background-color: #00338D;
    color: white;
}

.download:hover {
    background-color: #002266;
}

.upload {
    background-color: #EBB700;
    color: black;
}

.upload:hover {
    background-color: #d4a400;
}

.btn-icon {
    font-size: 1.3rem;
    font-style: normal;
}

@media screen and (max-width: 768px) {
    .get-card-section {
        padding: 2rem 1rem;
    }

    .instruction-container {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .instruction-container h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .instructions li {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .step-text {
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .form-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
}

/* Coordinator Section */
.coordinator-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.coordinator-section h1,
.collaboration-section h1 {
    color: #00338D;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.coordinator-section h1::after,
.collaboration-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #EBB700;
}

.table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.table-container:hover {
    transform: translateY(-5px);
}

.coordinator-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.coordinator-table th {
    background: #00338D;
    color: white;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
}

.coordinator-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.coordinator-table tr:last-child td {
    border-bottom: none;
}

.whatsapp-link {
    color: #00338D;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.whatsapp-link:hover {
    color: #EBB700;
}

/* Collaboration Section */
.collaboration-section {
    padding: 4rem 2rem;
    background: white;
}

.instructions {
    max-width: 800px;
    margin: 0 auto;
}

.instructions ol {
    list-style: none;
    padding: 0;
    counter-reset: steps;
}

.instructions li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.instructions li:hover {
    transform: translateX(10px);
    background: #f0f2f5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    background: #00338D;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.form-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download {
    background-color: #00338D;
    color: white;
}

.download:hover {
    background-color: #002266;
}

.upload {
    background-color: #EBB700;
    color: black;
}

.upload:hover {
    background-color: #d4a400;
}

.btn-icon {
    font-size: 1.3rem;
    font-style: normal;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .coordinator-section,
    .collaboration-section {
        padding: 3rem 1.5rem;
    }

    .coordinator-section h1,
    .collaboration-section h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .coordinator-section,
    .collaboration-section {
        padding: 2rem 1rem;
    }

    .coordinator-section h1,
    .collaboration-section h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .table-container {
        margin: 1.5rem -1rem;
        border-radius: 0;
    }

    .coordinator-table th,
    .coordinator-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .instructions li {
        padding: 1rem;
        gap: 1rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .step-text {
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .form-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .coordinator-table {
        font-size: 0.85rem;
    }

    .coordinator-table th,
    .coordinator-table td {
        padding: 0.6rem;
    }

    .step-text {
        font-size: 0.9rem;
    }

    .whatsapp-link {
        font-size: 0.9rem;
    }
}