/* ===================================
   CSC Training Management System
   Unified Legal Pages Stylesheet
   Privacy Policy & Terms of Service
   =================================== */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS Variables
   =================================== */
:root {
    --csc-blue: #003f87;
    --csc-blue-dark: #002a5c;
    --csc-blue-hover: #0056b3;
    --csc-gold: #f4a623;
    --csc-light: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #666;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
}

/* ===================================
   Base Styles
   =================================== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--csc-blue) 0%, var(--csc-blue-hover) 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-section h3 {
    font-weight: 500;
}

.hero-section hr {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    width: 60%;
}

.last-updated {
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
}

/* ===================================
   Sidebar Navigation
   =================================== */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar .nav {
    background: var(--csc-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar h6 {
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 15px;
    padding: 0 15px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-muted);
    padding: 10px 15px;
    border-radius: 6px;
    transition: var(--transition-base);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-link i {
    width: 20px;
}

.nav-link:hover {
    background: var(--csc-blue);
    color: white;
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--csc-blue);
    color: white;
    font-weight: 500;
}

/* ===================================
   Content Sections
   =================================== */
.content-section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.content-section h2 {
    color: var(--csc-blue);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--csc-gold);
    font-size: 1.75rem;
}

.content-section h3 {
    color: var(--csc-blue);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.content-section h4 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.content-section h5 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.content-section h6 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* ===================================
   Alert & Info Boxes
   =================================== */
.alert-info-custom {
    background: #e3f2fd;
    border-left: 4px solid var(--csc-blue);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.alert {
    border-radius: 6px;
    padding: 15px 20px;
    margin: 15px 0;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert h5,
.alert h6 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ===================================
   Highlight Boxes
   =================================== */
.highlight-box {
    background: linear-gradient(to right, var(--csc-light), #e9ecef);
    border-left: 4px solid var(--csc-gold);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.highlight-box h5,
.highlight-box h6 {
    margin-top: 0;
    color: var(--csc-blue);
}

/* ===================================
   Cards
   =================================== */
.card {
    border-radius: 8px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 20px;
}

.card-title {
    color: var(--csc-blue);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 8px;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Cookie Cards (Collapsible)
   =================================== */
.cookie-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cookie-header {
    background: linear-gradient(to right, var(--csc-light), #e9ecef);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.cookie-header:hover {
    background: linear-gradient(to right, #e9ecef, #dee2e6);
}

.cookie-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-title {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--csc-blue);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--csc-blue);
    font-size: 1.2rem;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.cookie-body {
    padding: 20px;
    max-height: 500px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    overflow: hidden;
}

.cookie-body.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.cookie-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

/* ===================================
   Data Tables & Categories
   =================================== */
.data-table {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin: 20px 0;
}

.data-category {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--csc-light);
    border-left: 3px solid var(--csc-blue);
    border-radius: 4px;
}

.data-category strong {
    color: var(--csc-blue);
    font-weight: 600;
}

/* ===================================
   Prohibition Items
   =================================== */
.prohibition-item {
    background: #fff3cd;
    border-left: 3px solid #ff9800;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.prohibition-item h6 {
    color: #856404;
    margin-top: 0;
    font-weight: 600;
}

.prohibition-item ul {
    margin-bottom: 0;
}

/* ===================================
   Numbered Sections
   =================================== */
.numbered-section {
    counter-reset: section-counter;
}

.numbered-item {
    counter-increment: section-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.numbered-item::before {
    content: counter(section-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--csc-blue);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.numbered-item h5 {
    margin-top: 0;
    color: var(--csc-blue);
}

/* ===================================
   Contact Cards
   =================================== */
.contact-card-modern {
    background: linear-gradient(135deg, var(--csc-light) 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--csc-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.contact-content h4,
.contact-content h5 {
    color: var(--csc-blue);
    font-weight: 600;
}

.btn-contact {
    background: var(--csc-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background: var(--csc-blue-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 63, 135, 0.3);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 60px;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--csc-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--csc-blue-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 63, 135, 0.4);
}

/* ===================================
   Utility Classes
   =================================== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    .sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .contact-card-modern {
        padding: 25px;
    }

    .contact-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .numbered-item {
        padding-left: 45px;
    }

    .numbered-item::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .sidebar,
    .back-to-top,
    footer {
        display: none;
    }

    .hero-section {
        background: var(--csc-blue);
        color: white;
        padding: 20px 0;
    }

    .content-section {
        page-break-inside: avoid;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}