/* --- REMOVE ALL CUSTOM NAVBAR STYLES FOR CLARITY --- */
/* The following block disables all custom navbar styles for mobile/tablet and lets Bootstrap handle it. */

@media (max-width: 991px) {
  .navbar, .navbar .container, .navbar .container-fluid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
    width: 100% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #fff;
  }
  .navbar-brand {
    margin-right: 0 !important;
    flex: 0 0 auto !important;
  }
  .navbar-toggler {
    margin-left: auto !important;
    order: 2;
    z-index: 2;
  }
  .navbar-collapse {
    width: 100%;
    background: #fff;
    margin-top: 0.5rem;
    box-shadow: none;
  }
  .navbar-nav {
    width: 100%;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0.5rem 0 !important;
  }
}

/* General Styles */
* {
    box-sizing: border-box;
}
* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-title, .section-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.line {
    flex: 1;
    height: 1px;
    background-color: #ccc;
    border: none;
    margin: 0 20px;
}

.text {
    white-space: nowrap;
    font-size: 20px;
    font-weight: 500;
    color: #222;
}

.internship-section, .projects-section, .career-section, .graduate-section, .why-digidara-section, .apply-section {
    display: flex;
    align-items: center;
    padding: 40px;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.internship-image, .projects-image, .career-image, .graduate-image, .why-digidara-image, .image {
    flex: 1;
}

.section-image {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.section-text {
    flex: 1;
    padding: 0 20px;
}

.internship-text h1, .text-section h1 {
    color: rgb(16, 16, 173);
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.internship-text h1 span {
    color: rgb(16, 16, 173);
}

.internship-text p, .projects-text p, .career-text p, .graduate-text p, .why-digidara-text p, .text-section p {
    color: #5e5e55;
    font-size: 20px;
    margin-bottom: 15px;
}

.internship-details p, .projects-details p {
    font-size: 20px;
    color: #5e5e55;
    margin: 10px 0;
}

.internship-details h3, .internship-details h4, .text-section h4 {
    font-size: 20px;
    color: #5e5e55;
    margin: 10px 0;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    gap: 20px;
}

.text-section {
    flex: 1;
    padding: 40px;
}

.text-section ul {
    list-style-type: none;
    padding-left: 20px;
}

.text-section ul li {
    font-size: 20px;
    color: #5e5e55;
    margin-bottom: 10px;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 18px;
    color: #5e5e55;
    text-align: center;
}

.projects-text h2, .career-text h2, .graduate-text h2, .why-digidara-text h2, .apply-text h2 {
    color: #1e3a8a;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.projects-text ul, .career-text ul, .graduate-text ul, .why-digidara-text ul, .apply-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.projects-text ul li, .career-text ul li, .graduate-text ul li, .why-digidara-text ul li, .apply-text ul li {
    font-size: 18px;
    color: #5e5e55;
}

.projects-details p::before, .highlight::before {
    content: "✨";
    margin-right: 10px;
}

.apply-form {
    flex: 1;
    max-width: 500px;
    padding: 20px;
}

.apply-form h3 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.apply-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #5e5e55;
}

.apply-form input[type="text"],
.apply-form input[type="tel"],
.apply-form input[type="email"],
.apply-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #f1f1f1;
    box-sizing: border-box;
    font-size: 14px;
    border-radius: 2px;
    margin-bottom: 15px;
}

.apply-form textarea {
    resize: vertical;
    height: 120px;
}

.apply-form button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.apply-form button:hover {
    background-color: #0056b3;
}

/* Text styling for sections */
#a>h1, #b>h1, #c>h2, #d>h2, #e>h2, #f>h2, #h>h2 {
    font-size: 1.8rem;
}
#a>p, #b>p, #c>p, #c>div>p, #d>p, #e>p, #f>p, #h>p {
    font-size: 1.3rem;
    line-height: 1.9;
}
#b>ul>li, #d>ul>li, #e>ul>li, #f>ul>li, #h>ul>li {
    font-size: 1.5rem;
    line-height: 1.9;
}

/* Footer and social */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    margin: 20px 0;
}

.social-icons img {
    width: 30px;
    height: 30px;
}

.footer {
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

.footer p {
    color: #333;
    font-size: 18px;
    margin: 10px 0;
}

.footer-links {
    margin-top: 50px;
}

.footer-links a {
    color: #1e3a8a;
    font-size: 18px;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* General Responsive Styles */
@media (max-width: 991px) {
    .internship-section, .projects-section, .career-section, .graduate-section, .why-digidara-section, .apply-section, .container {
        flex-direction: column;
        padding: 20px;
    }

    .internship-image, .projects-image, .career-image, .graduate-image, .why-digidara-image, .image {
        margin-bottom: 20px;
    }

    .section-text {
        padding: 0;
    }

    .internship-text h1, .text-section h1, .projects-text h2, .career-text h2, .graduate-text h2, .why-digidara-text h2, .apply-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .internship-text p, .projects-text p, .career-text p, .graduate-text p, .why-digidara-text p, .text-section p,
    .internship-details p, .projects-details p, .text-section ul li {
        font-size: 1rem;
    }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 991px) {
    .internship-section, .projects-section, .career-section, .graduate-section, .why-digidara-section, .apply-section {
        flex-direction: column;
    }
    .section-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Mobile View */
@media (max-width: 767px) {
    .internship-text h1, .text-section h1, .projects-text h2, .career-text h2, .graduate-text h2, .why-digidara-text h2, .apply-text h2 {
        font-size: 1.5rem;
    }

    .internship-text p, .projects-text p, .career-text p, .graduate-text p, .why-digidara-text p, .text-section p,
    .internship-details p, .projects-details p, .text-section ul li {
        font-size: 0.9rem;
    }

    .section-image {
        max-width: 100%;
    }
}

.footer-line {
    margin: 90px auto;
    max-width: 80%;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .section-title, .section-1 {
        flex-direction: column;
        margin: 20px 0;
        padding: 0 15px;
    }

    .line {
        width: 100%;
        margin: 10px 0;
    }

    .text {
        font-size: 16px;
        text-align: center;
    }

    .internship-section, .projects-section, .career-section, .graduate-section, .why-digidara-section, .apply-section, .container {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .section-image {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }

    .section-text, .apply-form {
        padding: 15px;
        max-width: 100%;
    }

    .internship-text h1, .text-section h1, .projects-text h2, .career-text h2, .graduate-text h2, .why-digidara-text h2, .apply-text h2, .apply-form h3 {
        font-size: 22px;
        text-align: center;
    }

    .internship-text p, .projects-text p, .career-text p, .graduate-text p, .why-digidara-text p, .text-section p, .internship-details p, .projects-details p {
        font-size: 16px;
        text-align: left;
    }

    .career-image img {
        object-fit: contain;
    }

    .apply-form button {
        font-size: 16px;
        padding: 10px;
    }

    .footer {
        padding: 15px;
    }

    .serve, .copy, .ser {
        font-size: 12px;
    }

    .line-1 {
        max-width: 80px;
    }
}

/* === IMAGE VISIBILITY FIX (FULLY VISIBLE, NO CROPPING) === */
.section-image,
.internship-image img,
.projects-image img,
.career-image img,
.graduate-image img,
.why-digidara-image img,
.image img {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    display: block;
    border-radius: 10px;
    background-color: #f8f8f8;
    padding: 5px;
}

.internship-image,
.projects-image,
.career-image,
.graduate-image,
.why-digidara-image,
.image {
    width: 100%;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .section-image,
    .internship-image img,
    .projects-image img,
    .career-image img,
    .graduate-image img,
    .why-digidara-image img,
    .image img {
        max-height: 400px;
        object-fit: contain !important;
    }
}
