/* Basic Styles (keep these) */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for dark mode */
}

.cv-container {
    max-width: 900px; /* Adjust as needed */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    color: #0056b3; /* Bootstrap primary blue */
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    border-color: #0056b3 !important; /* Ensure border is blue */
}

ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Contact Info Icons */
.contact-info i {
    color: #0056b3;
}

/* Work Entry Specifics */
.work-entry h3 {
    margin-bottom: 0.25rem;
    color: #212529; /* Darker color for specific entry titles */
}

.work-entry span.text-muted {
    font-size: 0.9rem;
}

.work-entry ul {
    margin-top: 0.5rem;
}

/* Skills List (using Bootstrap grid in HTML) */
section ul.row li {
    margin-bottom: 0.5rem;
}

/* Dark Mode Styles (keep these) */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .cv-container {
    background-color: #2b2b2b;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #4da6ff; /* Lighter blue for dark mode */
}

body.dark-mode h2 {
     border-color: #4da6ff !important;
}

body.dark-mode .contact-info i {
    color: #4da6ff;
}

body.dark-mode .work-entry h3 {
    color: #f8f9fa; /* White for dark mode entry titles */
}

body.dark-mode .text-muted {
    color: #a0a0a0 !important; /* Adjust muted text color */
}

/* Print Styles - ADJUSTED FOR PAGE REDUCTION */
@media print {
    body {
        font-size: 10.5pt; /* Reduced base font size for print */
        line-height: 1.3; /* Reduced space between lines */
        background-color: #fff !important; /* White background for printing */
        color: #000 !important; /* Black text */
        margin: 0; /* Remove body margin */
        padding: 0; /* Remove body padding */
    }

    .cv-container {
        max-width: none; /* Allow content to take full width */
        box-shadow: none !important; /* Remove shadows */
        border-radius: 0; /* Remove border radius */
        padding: 15px !important; /* Reduced padding for print */
        margin: 0 auto !important; /* Center content if needed */
        background-color: transparent !important; /* Ensure transparent background */
    }

    /* Hide elements not needed for print */
    .no-print {
        display: none !important;
    }

    /* Reduce margins/padding on headings and sections */
    h1, h2, h3, h4, h5, h6 {
        margin-top: 0.5rem !important; /* Reduce top margin */
        margin-bottom: 0.5rem !important; /* Reduce bottom margin */
        color: #000 !important; /* Ensure black text for headings in print */
    }

    h2 {
        border-bottom: 1px solid #000 !important; /* Black border for print */
        padding-bottom: 5px !important; /* Reduced padding below the border */
        margin-bottom: 10px !important; /* Reduced margin below section title */
    }

     header h1, header p {
         margin-bottom: 0.5rem !important; /* Reduce space in header */
     }


    section {
        margin-bottom: 1.2rem !important; /* Reduced space between sections */
    }

    p, ul, ol {
        margin-bottom: 0.6rem !important; /* Reduced space below paragraphs and lists */
    }

    ul li, ol li {
         margin-bottom: 0.2rem !important; /* Reduced space between list items */
    }

    /* Specific adjustments for work entries */
    .work-entry {
        margin-bottom: 1rem !important; /* Reduced space between work entries */
    }

    .work-entry h3 {
         margin-bottom: 0.1rem !important; /* Reduce space below work entry title */
         color: #000 !important; /* Ensure black */
    }

     .work-entry p.mb-2 { /* Location text */
        margin-bottom: 0.4rem !important;
     }


     /* Specific adjustments for education entries */
    .education-entry {
         margin-bottom: 0.8rem !important; /* Reduced space between education entries */
     }
      .education-entry h3 {
          margin-bottom: 0.1rem !important;
          color: #000 !important; /* Ensure black */
      }


    /* Adjust padding/margins within skills sections */
    section .row .col-md-6,
    section .row .col-md-12 {
         margin-bottom: 0.5rem !important; /* Reduce space between skill categories columns */
    }
     section .row .col-md-12 p {
         margin-bottom: 0.5rem !important; /* Reduce space below specific skill paragraphs */
         margin-top: 0.2rem !important;
     }

     section h4.h6 {
         margin-bottom: 0.3rem !important; /* Reduce space below skill sub-headings */
         color: #000 !important; /* Ensure black */
     }


    /* Declaration adjustments */
     .declaration .row {
         margin-top: 0.8rem !important; /* Reduce space above date/place */
     }
     .declaration p {
         margin-bottom: 0 !important; /* Remove space below date/place paragraphs */
     }

     /* Ensure link colors are readable (optional) */
    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Attempt to control page breaks slightly */
    section {
        page-break-inside: avoid; /* Avoid breaking sections across pages if possible */
    }
    .work-entry {
         page-break-inside: avoid; /* Avoid breaking work entries */
    }
}