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

html {
    scroll-behavior: smooth;
    min-height: 100vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #aaa;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.student-world-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-world-logo img {
    height: 58px;
    width: auto;
}

.logo-text h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0;
}

.logo-text span {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

/* Main Content */
main {
    margin-top: 100px;
    min-height: calc(100vh - 200px);
}

/* E-book Details Section */
.ebook-details {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFD200 0%, #FFA500 100%);
}

.ebook-details-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.ebook-header {
    margin-bottom: 3rem;
}

.ebook-title {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

.ebook-description {
    font-size: 1.3rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.ebook-cover-section {
    margin-bottom: 3rem;
}

.ebook-cover-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebook-cover-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-section {
    margin-bottom: 3rem;
}

.pricing-title {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

.pricing-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-option {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 250px;
}

.pricing-option.featured {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.pricing-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.pricing-option.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-number {
    font-size: 4rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.pricing-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.pricing-price {
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
}

.cta-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 24px;
    padding: 4rem;
    color: white;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn {
    background: white;
    color: #3b82f6;
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 2rem 0;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.footer-tsw-logo {
    height: 72px;
    width: auto;
}

.footer-fpp-logo {
    height: 66px;
    width: auto;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.footer-text {
    color: #aaa;
    margin: 0;
}

.privacy-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: white;
}

.footer-right {
    flex: 0 0 auto;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Specific colors for each social media */
.social-icon:hover:nth-child(1) { /* Instagram */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-icon:hover:nth-child(2) { /* TikTok */
    background: #000000;
    border-color: #000000;
}

.social-icon:hover:nth-child(3) { /* YouTube */
    background: #ff0000;
    border-color: #ff0000;
}

.social-icon:hover:nth-child(4) { /* Facebook */
    background: #1877f2;
    border-color: #1877f2;
}

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

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content h2 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: #000;
}

/* E-books Grid Styles */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ebook-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #22c55e;
}

.ebook-cover {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ebook-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ebook-card:hover .ebook-cover img {
    transform: scale(1.05);
}

.ebook-info {
    padding: 1.5rem;
}

.ebook-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.ebook-card-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ebook-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 1rem;
}

.ebook-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease;
}

.ebook-checkbox:hover {
    color: #22c55e;
}

.ebook-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
    accent-color: #22c55e;
}

.checkmark {
    position: relative;
}

/* Package Badge Styles */
.package-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    z-index: 1;
}

.pricing-option {
    position: relative;
}

.pricing-option.featured {
    border: 2px solid #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Loading Animation */
.loading-message {
    animation: fadeIn 0.5s ease;
}

/* No E-books Message */
.no-ebooks-message {
    text-align: center;
    padding: 3rem;
}

.no-ebooks-message h3,
.no-ebooks-message p {
    color: #000 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ebooks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ebook-card-title {
        font-size: 1.1rem;
    }
    
    .ebook-price {
        font-size: 1.25rem;
    }
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748b;
}

.contact-item i {
    color: #3b82f6;
    width: 20px;
}

/* Privacy Modal */
.privacy-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.privacy-content {
    padding: 1rem 0;
}

.privacy-content h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-content h3 {
    color: #3b82f6;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.privacy-content h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.privacy-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Header Mobile Improvements */
    .header {
        padding: 1rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }
    
    .student-world-logo img {
        height: 60px;
    }
    
    .logo-text h2 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 1rem;
        z-index: 1001;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: 0.3s;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    
    main {
        margin-top: 80px;
    }
    
    .ebook-details {
        padding: 3rem 0;
    }
    
    .ebook-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .ebook-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.1;
    }
    
    .ebook-description {
        font-size: 1.1rem;
    }
    
    .ebook-cover-image {
        max-width: 300px;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
    
    .pricing-options {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .pricing-option {
        min-width: 280px;
        padding: 2rem;
    }
    
    .pricing-option.featured {
        transform: none;
    }
    
    .pricing-option.featured:hover {
        transform: translateY(-8px);
    }
    
    .pricing-number {
        font-size: 3rem;
    }
    
    .cta-section {
        padding: 3rem 2rem;
        margin: 0 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-section .btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-center {
        order: 1;
    }
    
    .footer-left {
        order: 2;
    }
    
    .footer-right {
        order: 3;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 0.8rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .privacy-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .privacy-content {
        padding: 0.5rem 0;
    }
    
    .privacy-content h2 {
        font-size: 1.5rem;
    }
    
    .privacy-content h3 {
        font-size: 1.3rem;
    }
    
    .privacy-content h4 {
        font-size: 1.1rem;
    }
    
    .privacy-content p {
        font-size: 0.9rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Error states */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Package Selection Styles - DISABLED to avoid conflicts with modal */
/*
.package-options {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
}
*/

/* DISABLED to avoid conflicts with modal
.package-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
*/

/* DISABLED to avoid conflicts with modal
.package-option:hover {
    border-color: #22c55e;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.package-option.selected {
    border: 3px solid #22c55e !important;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4) !important;
    transform: scale(1.08) translateY(-5px) !important;
    z-index: 10 !important;
}
*/

/* DISABLED to avoid conflicts with modal
.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}
*/

/* Success modal improvements */
.modal-content .info-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: left;
    border-left: 4px solid #22c55e;
}

.modal-content .info-box p {
    color: #333;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-content .info-box strong {
    color: #22c55e;
}

.modal-content .info-box a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
}

.modal-content .info-box a:hover {
    text-decoration: underline;
}

.package-option.featured {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.package-number {
    font-size: 3rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 1rem;
}

.package-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
}

.package-bonus {
    font-size: 0.9rem;
    color: #16a34a;
    font-weight: 500;
}

/* Campaign Page Styles */
.campaign-info {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
}

.info-item i {
    color: #ffd700;
}

.no-ebooks {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-ebooks p {
    color: #000;
    font-size: 18px;
    margin: 10px 0;
}

.packages-section {
    margin-top: 60px;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.packages-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.package-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.package-card h4 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.package-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
    font-style: italic;
}

.package-details {
    margin: 25px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
    color: #34495e;
    font-weight: 500;
}

.detail-item i {
    color: #3498db;
    width: 20px;
}

.btn-select-package {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-select-package:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f99);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.ebook-cover-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ebook-cover-placeholder i {
    font-size: 48px;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-info {
        gap: 15px;
    }
    
    .info-item {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card {
        padding: 25px 20px;
    }
}

/* Contador Regressivo */
.countdown-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.countdown {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 35px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-item {
    text-align: center;
    color: white;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    min-width: 60px;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-finished {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    padding: 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    border: 2px solid #e74c3c;
}

/* Responsive Countdown */
@media (max-width: 768px) {
    .countdown {
        gap: 15px;
        padding: 20px 25px;
    }
    
    .countdown-number {
        font-size: 2rem;
        min-width: 50px;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 10px;
        padding: 15px 20px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

/* E-book Details Page Styles */
.ebook-details {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 0;
}

.campaign-header-content {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: transparent;
    color: #2c3e50;
    position: relative;
}

.campaign-header-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.campaign-header-content .campaign-name {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.campaign-header-content .campaign-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #5a6c7d;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.campaign-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
}

.meta-item i {
    color: #ffd700;
}

.ebooks-container, .packages-container {
    margin: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
}

.ebooks-container {
    margin: 20px 0;
    padding: 0 20px;
}

.ebooks-container .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
}

.ebooks-container .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.ebook-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #e9ecef;
    position: relative;
    min-height: 700px;
    display: flex;
    flex-direction: column;
}

.ebook-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.ebook-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.ebook-card:hover::before {
    opacity: 1;
}

.ebook-image {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.ebook-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ebook-card:hover .ebook-cover {
    transform: scale(1.05);
}

.ebook-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
}

.ebook-placeholder::before {
    content: '📚';
    position: absolute;
    font-size: 2rem;
    top: 20px;
    right: 20px;
    opacity: 0.3;
}

.ebook-placeholder i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.placeholder-text {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
    font-weight: 600;
}

.ebook-content {
    padding: 35px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ebook-header {
    margin-bottom: 20px;
}

.ebook-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ebook-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.8rem;
    text-align: justify;
    word-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ebook-description.expanded {
    display: block;
    -webkit-line-clamp: none;
    overflow: visible;
}

.read-more-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    background: #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.read-more-btn.less {
    background: #10b981;
}

.read-more-btn.less:hover {
    background: #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.ebook-footer {
    margin-top: auto;
}

.ebook-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
    text-align: center;
    padding: 15px 0;
    border-top: 2px solid #ecf0f1;
}

.ebook-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.ebook-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecf0f1;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.ebook-pages i {
    color: #e74c3c;
    font-size: 1.1rem;
}

.packages-container {
    margin: 60px 0;
}

.packages-container .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
}

.packages-container .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.package-option {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #f1f3f4;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.package-option.selected {
    border: 3px solid #22c55e !important;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4) !important;
    transform: scale(1.08) translateY(-5px) !important;
    z-index: 10 !important;
}

.package-option.popular {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6, #fef5e7);
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.15);
}

.package-option.popular:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(243, 156, 18, 0.25);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transform: rotate(0deg);
    z-index: 10;
    white-space: nowrap;
}

.package-header {
    margin-bottom: 20px;
}

.package-header h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.package-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.package-info {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.package-ebooks, .package-tickets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #34495e;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 100px;
    flex: 1;
    border: 1px solid #e9ecef;
}

.package-ebooks i {
    color: #3498db;
    font-size: 1.2rem;
}

.package-tickets i {
    color: #f39c12;
    font-size: 1.2rem;
}

.package-ebooks span, .package-tickets span {
    font-size: 0.95rem;
    text-align: center;
    font-weight: 700;
}

.package-price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
}

.package-price .currency {
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
}

.package-price .amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-savings {
    margin-bottom: 20px;
}

.savings-text, .single-text {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 700;
}

.savings-text {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.single-text {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.btn-select-package {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: auto;
}

.btn-select-package:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.btn-select-package.popular-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.btn-select-package.popular-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.5);
}

.loading-message {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    margin: 40px 0;
    border: 2px dashed #e9ecef;
}

.loading-message i {
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(255, 210, 0, 0.3));
}

.loading-message h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.loading-message p {
    color: #7f8c8d;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-ebooks, .no-campaign, .error-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid #e9ecef;
}

.no-ebooks h3, .no-campaign h3, .error-message h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-ebooks p, .no-campaign p, .error-message p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 10px 0;
}

.btn-retry {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn-retry:hover {
    background: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-header-content .campaign-name {
        font-size: 2rem;
    }
    
    .ebooks-container {
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .ebooks-container .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .ebooks-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }
    
    .package-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .ebook-details {
        padding: 20px 0;
    }
    
    .campaign-header-content {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .ebook-card {
        margin: 0 auto;
        max-width: 100%;
        min-height: 500px;
    }
    
    .ebook-image {
        height: 280px;
    }
    
    .ebook-content {
        padding: 25px;
    }
    
    .ebook-title {
        font-size: 1.4rem;
    }
    
    .ebook-price {
        font-size: 1.6rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .package-option {
        margin: 0 auto;
        max-width: 100%;
        padding: 20px;
        min-height: auto;
    }
    
    .package-ebooks, .package-tickets {
        min-width: auto;
        flex: 1;
    }
    
    .package-price .amount {
        font-size: 1.8rem;
    }
    
    .btn-select-package {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .popular-badge {
        top: -8px;
        right: -8px;
        padding: 6px 15px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .campaign-header-content .campaign-name {
        font-size: 1.8rem;
    }
    
    .ebook-image {
        height: 220px;
    }
    
    .ebook-content {
        padding: 20px;
    }
    
    .ebook-title {
        font-size: 1.2rem;
    }
    
    .ebook-price {
        font-size: 1.4rem;
    }
    
    .packages-container .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .package-option {
        padding: 18px;
        min-height: auto;
    }
    
    .package-header h4 {
        font-size: 1.2rem;
    }
    
    .package-price .amount {
        font-size: 1.6rem;
    }
    
    .btn-select-package {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
