/* ======================================================
   licensingpolicy.css - Licensing Policy Page Specific Styles
   Extracted from your HTML components with exact original styling
====================================================== */

/* ========== LICENSE HIGHLIGHT ========== */
.license-highlight {
    margin: 30px 0;
    position: relative;
}

.license-badge {
    background: #fff;
    padding: 25px;
    border-radius: 28px;
    border: 2px solid #f3d18a;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.license-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #002856;
    margin-bottom: 5px;
}

.license-sub {
    font-size: 1rem;
    color: #3d618a;
}

.license-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1f3a57;
    margin-top: 15px;
}

/* ========== PERMISSIONS SECTION ========== */
.permissions-section {
    margin: 30px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
    flex-shrink: 0;
}

.section-icon i {
    color: #fff;
    font-size: 1.1rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f3b5e;
    margin: 0;
    text-transform: uppercase;
}

.content-block-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #1e2f44;
    margin-bottom: 20px;
}

.permissions-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 20px 0;
}

.permission-card {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #dae9ff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.permission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #10b981;
}

.permission-icon {
    width: 50px;
    height: 50px;
    background: #fde9d2;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45d00;
    font-size: 1.3rem;
}

.permission-icon i {
    color: #b45d00;
    font-size: 1.3rem;
}

.permission-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003f6f;
    margin-bottom: 10px;
}

.permission-desc {
    font-size: 0.95rem;
    color: #2b3f59;
    line-height: 1.6;
    margin: 0;
}

/* ========== ATTRIBUTION SECTION ========== */
.attribution-section {
    margin: 30px 0;
}

.attribution-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.attribution-icon {
    width: 50px;
    height: 50px;
    background: #f1c40f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45d00;
    font-size: 1.5rem;
}

.attribution-icon i {
    color: #b45d00;
    font-size: 1.5rem;
}

.attribution-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002856;
    margin: 0;
}

.attribution-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1f3a57;
    margin-bottom: 20px;
}

.attribution-requirements {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #bdd3f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.requirements-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #003d66;
    margin-bottom: 15px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.requirement-item {
    margin-bottom: 10px;
    color: #1f3a57;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.requirement-item i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.requirement-item strong {
    color: #003d66;
    min-width: 100px;
}

/* ========== ATTRIBUTION EXAMPLE ========== */
.attribution-example {
    background: #f0f4fa;
    border-radius: 22px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid #bdd3f0;
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.example-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00376b;
}

.example-copy {
    background: #d1e0f5;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    color: #002856;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.example-copy:hover {
    background: #b8d1e8;
    transform: translateY(-2px);
}

.example-copy i {
    font-size: 0.9rem;
}

.example-code {
    background: #fff;
    border-right: 6px solid #f39c12;
    padding: 18px;
    border-radius: 18px;
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    /* font-size: 0.95rem; */
    color: #002b4f;
    overflow-x: auto;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ========== RIGHTS SECTION ========== */
.rights-section {
    margin: 30px 0;
}

.rights-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 20px 0;
}

.right-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.right-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #8b5cf6;
}

.right-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #8b5cf6, #c084fc);
    opacity: 0;
    transition: opacity 0.3s;
}

.right-card:hover::before {
    opacity: 1;
}

.right-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #8b5cf6 0, #7c3aed 100%);
    box-shadow: 0 8px 12px -5px rgba(139, 92, 246, 0.4);
}

.right-icon i {
    color: #fff;
    font-size: 1.3rem;
}

.right-card:first-child .right-icon {
    background: linear-gradient(135deg, #3b82f6 0, #2563eb 100%);
}

.right-card:nth-child(2) .right-icon {
    background: linear-gradient(135deg, #10b981 0, #059669 100%);
}

.right-card:nth-child(3) .right-icon {
    background: linear-gradient(135deg, #f59e0b 0, #d97706 100%);
}

.right-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f3b5e;
    margin-bottom: 10px;
}

.right-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ========== WARRANTIES SECTION ========== */
.warranties-section {
    background: #fef4e6;
    border-radius: 32px;

    border: 1px solid #fad6a0;
    position: relative;
    overflow: hidden;
}

.warranties-section::before {
    content: "\f0c3";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.05;
    color: #b45d00;
    transform: rotate(15deg);
}

.warranties-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.warranties-icon {
    width: 50px;
    height: 50px;
    background: #f0b27a;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45d00;
    font-size: 1.5rem;
    position: relative;
}

.warranties-icon i {
    color: #b45d00;
    font-size: 1.5rem;
}

.warranties-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002856;
    margin: 0;
}

.warranties-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #1f3a57;
    margin-bottom: 15px;
}

.warranty-item {
    background: #fff;
    padding: 15px 20px;
    border-radius: 18px;
    margin-bottom: 15px;
    border-right: 4px solid #e67e22;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    /* font-size: 0.95rem; */
    color: #1f3a57;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.warranty-item i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.warranty-item strong {
    color: #b45d00;
}

/* ========== WHY CC BY SECTION ========== */
.why-section {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #e1f0fa;
    border-radius: 34px;
  
    border: 1px solid #b8d6f0;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: "\f128";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 100px;
    opacity: 0.05;
    color: #3b82f6;
    transform: rotate(-10deg);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: #ffd966;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45d00;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px -5px rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 2;
}

.why-icon i {
    color: #b45d00;
    font-size: 2.5rem;
}

.why-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.why-title {
    font-size: 2rem;
    font-weight: 700;
    color: #002b4f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #1a3f60;
    margin: 0;
}

/* ========== HERO BLOCK ========== */
.hero-block {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0, #e0f2fe 100%);
    border-radius: 20px;
    border-right: 6px solid #3b82f6;
    overflow: hidden;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0a2540;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.hero-text strong {
    color: #1e6f9f;
    font-weight: 700;
}

/* ========== CONTACT BLOCK ========== */
.contact-block {
    background: linear-gradient(145deg, #0a1f33, #123b5e);
    color: #fff;
    border-radius: 22px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    box-shadow: 0 16px 28px rgba(0, 20, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f1c40f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contact-text {
    color: #fff;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.contact-email {
    background: #f1c40f;
    color: #00233b;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.contact-email:hover {
    background: #ffb854;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

.contact-email i {
    font-size: 1rem;
}

/* ========== RTL SUPPORT ========== */
html[dir="rtl"] .example-code {
    border-right: none;
    border-left: 6px solid #f39c12;
    text-align: right;
}

html[dir="rtl"] .warranty-item {
    border-right: none;
    border-left: 4px solid #e67e22;
}

html[dir="rtl"] .hero-block {
    border-right: none;
    border-left: 6px solid #3b82f6;
}

html[dir="rtl"] .why-section::before {
    left: auto;
    right: -20px;
    transform: rotate(10deg);
}

html[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .why-section {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .why-icon {
        margin-bottom: 15px;
    }

    .why-title {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .license-title {
        font-size: 1.5rem;
    }

    .attribution-title {
        font-size: 1.5rem;
    }

    .warranties-title {
        font-size: 1.5rem;
    }

    .why-title {
        font-size: 1.6rem;
    }

    .why-text {
        font-size: 1rem;
    }

    .permission-title {
        font-size: 1.3rem;
    }

    .right-title {
        font-size: 1.1rem;
    }

    .attribution-header,
    .warranties-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .example-header {
        flex-direction: column;
        gap: 10px;
    }

    .example-copy {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .license-badge {
        padding: 20px;
    }

    .license-title {
        font-size: 1.3rem;
    }

    .permission-card,
    .right-card,
    .attribution-requirements,
    .warranties-section,
    .why-section {
        padding: 20px;
    }

    .requirement-item {
        flex-direction: column;
        gap: 5px;
    }

    .requirement-item strong {
        min-width: auto;
    }

    .warranty-item {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }

    .example-code {
        /* font-size: 0.85rem; */
        padding: 15px;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-email {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.permission-card,
.right-card,
.warranty-item {
    animation: slideUp 0.5s ease-out backwards;
}

.permission-card:nth-child(1) { animation-delay: 0.1s; }
.permission-card:nth-child(2) { animation-delay: 0.2s; }
.permission-card:nth-child(3) { animation-delay: 0.3s; }
.right-card:nth-child(1) { animation-delay: 0.15s; }
.right-card:nth-child(2) { animation-delay: 0.25s; }
.right-card:nth-child(3) { animation-delay: 0.35s; }
.warranty-item:nth-child(1) { animation-delay: 0.2s; }
.warranty-item:nth-child(2) { animation-delay: 0.3s; }

/* ===== SHARED GRID ===== */
.rights-grid,
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
/* ===== BASE CARD STYLE ===== */
.right-card,
.permission-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 16px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0,0,0,0.05);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover (premium feel) */
.right-card:hover,
.permission-card:hover {
  transform: translateY(-4px);
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.15);
}

/* ===== ICON BASE ===== */
.right-icon,
.permission-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  font-size: 1.3rem;

  flex-shrink: 0;
}

/* RIGHTS COLORS */
.right-icon {
  background: #eef6ff;
  border: 1px solid #dbeafe;
  /* color: #2563eb; */
}

/* PERMISSIONS COLORS */
.permission-icon {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #16a34a;
}
/* TITLES */
.right-title,
.permission-title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f3b5e;
}

/* DESCRIPTIONS */
.right-desc,
.permission-desc {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}
/* LTR */
html[dir="ltr"] .right-card,
html[dir="ltr"] .permission-card {
  flex-direction: row;
  text-align: left;
}

/* RTL */
html[dir="rtl"] .right-card,
html[dir="rtl"] .permission-card {
  flex-direction: row-reverse;
  text-align: right;
}
/* Repository Deposits */
.rights-grid .right-card:nth-child(1) .right-icon::before {
  content: "\f0c5"; /* copy / repository */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Academic Use */
.rights-grid .right-card:nth-child(2) .right-icon::before {
  content: "\f19d"; /* graduation cap */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Additional Distribution */
.rights-grid .right-card:nth-child(3) .right-icon::before {
  content: "\f1e0"; /* share nodes */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
/* Share Freely */
.permissions-grid .permission-card:nth-child(1) .permission-icon::before {
  content: "\f1e0"; /* share */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Adapt & Remix */
.permissions-grid .permission-card:nth-child(2) .permission-icon::before {
  content: "\f0ec"; /* exchange / remix */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Worldwide */
.permissions-grid .permission-card:nth-child(3) .permission-icon::before {
  content: "\f0ac"; /* globe */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.frequency-highlight, .license-highlight {
    background: #f0f7f0;
    border-radius: 32px;
    padding: 30px;
    border: 1px solid #b8dbb8;
    text-align: center;
}
.appeals-section, .attribution-section, .special-section {
    background: #fff5e6;
    border-radius: 32px;
    padding: 30px;
    border: 1px solid #f5cba0;
}
.warranties-icon::after {
    content: "⚖️";
    font-size: 2rem;
    position: absolute;
    top: 2px;
    right: 10px;
}
.why-icon::after {
    content: "❓";
    font-size:2.8rem;
    position: absolute;
    top: 6px;
    right: 14px;
}

.attribution-icon::after {
    content: "①";
    font-size: 2.2rem;
    color: #a34100;
}