/* Policy Pages Enhanced Styles for Edexcel College with Moving Gradients */
:root {
    --primary-color: #1a4b8c;
    --secondary-color: #2c6cbf;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #2b2d42;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* Moving Gradient Background */
.policy-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.policy-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        #1a4b8c,
        #2c6cbf,
        #17a2b8,
        #1a4b8c,
        #2c6cbf
    );
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -2;
}

.policy-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: -1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 60%;
    animation-delay: 15s;
    animation-duration: 35s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 1;
    }
}

.policy-hero {
    background: rgba(26, 75, 140, 0.9);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.policy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.privacy-hero {
    background: rgba(23, 162, 184, 0.9);
}

.terms-hero {
    background: rgba(111, 66, 193, 0.9);
}

.policy-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

.policy-update {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
}

.policy-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin: -3rem 0 3rem 0;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.policy-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.policy-section::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s ease;
}

.policy-section:hover::before {
    width: 100%;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.policy-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: iconShine 3s infinite;
}

@keyframes iconShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.policy-content {
    flex: 1;
}

.policy-section-title {
    color: var(--dark-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    position: relative;
}

.policy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.policy-item:hover::before {
    left: 100%;
}

.policy-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.policy-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.policy-badge.success {
    background: #d4edda;
    color: #155724;
}

.policy-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.policy-requirements {
    list-style: none;
    padding: 0;
}

.policy-requirements li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.policy-requirements li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.policy-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.policy-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

.policy-alert.info {
    background: #d1ecf1;
    border-left: 4px solid var(--info-color);
}

.policy-alert.warning {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.policy-alert.danger {
    background: #f8d7da;
    border-left: 4px solid var(--danger-color);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    position: relative;
}

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

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

/* Info Grid Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transition: height 0.3s ease;
}

.info-item:hover::before {
    height: 100%;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    z-index: 1;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.usage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.usage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.usage-item:hover::before {
    opacity: 1;
}

.usage-item:hover {
    color: white;
    transform: translateY(-5px);
}

.usage-item:hover i {
    color: white;
}

.usage-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    z-index: 1;
    position: relative;
}

.usage-item span {
    z-index: 1;
    position: relative;
}

/* Sharing Grid */
.sharing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.sharing-item {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sharing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sharing-item:hover::before {
    opacity: 1;
}

.sharing-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.sharing-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.sharing-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Acceptance Banner */
.acceptance-banner {
    background: linear-gradient(
        135deg,
        var(--warning-color),
        #fd7e14,
        var(--warning-color)
    );
    background-size: 200% 200%;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    animation: bannerPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes bannerPulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Payment Features */
.payment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover::before {
    opacity: 1;
}

.feature:hover {
    color: white;
    transform: translateY(-2px);
}

.feature:hover i {
    color: white;
}

.feature i {
    color: var(--primary-color);
    z-index: 1;
    position: relative;
}

.feature span {
    z-index: 1;
    position: relative;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-item:hover::before {
    opacity: 1;
}

.rule-item:hover {
    transform: translateY(-2px);
}

.rule-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.rule-icon.warning {
    background: var(--warning-color);
}

.rule-icon.danger {
    background: var(--danger-color);
}

.rule-icon.info {
    background: var(--info-color);
}

/* Media Queries */
@media (max-width: 768px) {
    .policy-title {
        font-size: 2.5rem;
    }
    
    .policy-card {
        padding: 2rem 1.5rem;
        margin: -2rem 0 2rem 0;
    }
    
    .policy-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .policy-icon {
        align-self: center;
    }
    
    .policy-section-title {
        border-left: none;
        border-top: 4px solid var(--primary-color);
        padding-left: 0;
        padding-top: 1rem;
        text-align: center;
    }
    
    .info-grid,
    .usage-grid,
    .sharing-grid,
    .payment-features,
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-item {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .policy-alert {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .policy-title {
        font-size: 2rem;
    }
    
    .policy-card {
        padding: 1.5rem 1rem;
        margin: -1.5rem 0 1.5rem 0;
    }
    
    .policy-section-title {
        font-size: 1.25rem;
    }
    
    .policy-hero {
        padding: 3rem 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-card {
    animation: fadeInUp 0.6s ease-out;
}

.policy-section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.2s; }
.policy-section:nth-child(3) { animation-delay: 0.3s; }
.policy-section:nth-child(4) { animation-delay: 0.4s; }