/* Shared Styles for Policy Pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Layout Components */
.container {
    min-height: 100vh;
    padding: 24px;
    max-width: 1024px;
    margin: 0 auto;
}

.header {
    margin-bottom: 32px;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #09325a;
    margin-bottom: 16px;
}

.welcome-text {
    color: #696264;
    font-size: 1rem;
    line-height: 1.7;
}

/* Policy Cards */
.policy-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.policy-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.policy-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.policy-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #09325a;
    margin-bottom: 12px;
}

.policy-description {
    color: #696264;
    line-height: 1.7;
}

/* Info Section */
.info-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lightbulb-icon {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

.lightbulb-icon::before {
    content: "💡";
    font-size: 20px;
    display: block;
}

.info-content {
    flex: 1;
}

/* Dropdown Navigation Styles */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #09325a 0%, #0b3d6e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(9, 50, 90, 0.2);
    position: relative;
    overflow: hidden;
}

.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.dropdown-toggle:hover::before {
    left: 100%;
}

.dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 50, 90, 0.3);
}

.dropdown-toggle:active {
    transform: translateY(0);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.dropdown-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fcfd 0%, #f0f4f6 100%);
    color: #09325a;
    transform: translateX(4px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, #09325a 0%, #0b3d6e 100%);
    color: white;
}

.dropdown-item.active:hover {
    background: linear-gradient(135deg, #0b3d6e 0%, #09325a 100%);
    color: white;
    transform: translateX(0);
}

.item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(9, 50, 90, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover .item-icon {
    background: rgba(9, 50, 90, 0.15);
    transform: scale(1.1);
}

.dropdown-item.active .item-icon {
    background: rgba(255, 255, 255, 0.2);
}

.item-text {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.item-badge {
    background: linear-gradient(135deg, #adc32d 0%, #8fa825 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */

/* Tablet styles */
@media (min-width: 768px) {
    .container {
        padding: 32px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .welcome-text {
        font-size: 1.125rem;
    }

    .header {
        margin-bottom: 40px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .container {
        padding: 48px;
    }

    .main-title {
        font-size: 3rem;
    }

    .welcome-text {
        font-size: 1.125rem;
    }

    .header {
        margin-bottom: 48px;
    }
}

/* Mobile optimization */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .policy-card {
        padding: 20px;
    }

    .policy-title {
        font-size: 1.125rem;
    }

    .policy-description {
        font-size: 0.95rem;
    }

    .dropdown-menu {
        min-width: 250px;
        right: -20px;
    }

    .dropdown-toggle {
        padding: 10px 16px;
        font-size: 13px;
    }

    .dropdown-item {
        padding: 14px 16px;
    }
}