@charset "utf-8";

/* This file contains all the rules to make the site responsive. */

/* First, hide the mobile menu button on large screens. */
.menu-toggle {
    display: none; 
    background-color: transparent;
    border: none;
    color:#E2161F ;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    line-height: 1;
      /* Add these lines for positioning */
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100; /* Ensure it's on top */
}


/* ================================================= */
/* TABLET STYLES (for screens smaller than 1024px)   */
/* ================================================= */
@media (max-width: 1024px) {
    #wrapper {
        padding: 0 10px; /* Reduce side padding a little */
    }

    /* Adjust column widths for medium screens */
    #secLeft, #secRight {
        width: 25%;
    }
    #secMid {
        width: 50%;
    }
}


/* ================================================= */
/* MOBILE STYLES (for screens smaller than 768px)    */
/* ================================================= */
@media (max-width: 768px) {

    /* --- Header Adjustments --- */
    #header {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }
    #logo, #topMenu {
        float: none;
        text-align: center;
        width: 100%;
    }
    #topMenu {
        padding-top: 15px;
    }


    /* === IMAGE FIXES FOR MOBILE === */
    /* This rule targets the image in the middle section */
    #secMid .holdText img {
        margin-left: auto;  /* Used with margin-right: auto to center */
        margin-right: auto;
        float: none; /* Remove any floats */
    }

    /* This rule targets the Oracle Partner logo in the left section */
    #secLeft > img {
        margin: 15px auto !important; /* Center the image and override inline styles */
        float: none;
        display: block;
    }
    /* === END OF IMAGE FIXES === */


    /* --- Main Menu (Hamburger) --- */
    #mainMenu {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
    }
    .menu-toggle {
        display: block; /* SHOW the hamburger button */
    }
    #mainMenu > ul {
        display: none; /* HIDE the menu links by default */
        flex-direction: column;
        width: 100%;
    }
    /* This rule shows the menu when the button is clicked */
    #mainMenu.menu-open > ul {
        display: flex;
    }
    .mMenu {
        float: none;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .mMenu a {
        text-align: left; /* Align menu text to the left */
    }
   /* =============================================================== */
/* START: CORRECTED SEARCH BAR STYLES FOR MOBILE                   */
/* --- Corrected Search Bar for Mobile --- */
/* This rule now correctly targets the search bar only on mobile */
#mainMenu .form1 {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #c00;
    background-image: none;
    margin: 0;
    box-sizing: border-box;
    height: auto;
    position: relative;
}

#mainMenu .form1 input[type="text"] {
    width: calc(100% - 45px);
    margin: 0;
    height: auto;
    padding: 8px;
    border: 1px solid #eee;
    float: left;
    background-color: #fff;
    border-radius: 50px;
}

#mainMenu .form1 input[type="image"] {
    position: static;
    float: right;
    margin-top: 5px;
}
/* =============================================================== */
/* END: CORRECTED SEARCH BAR STYLES FOR MOBILE                     */
/* =============================================================== */

    /* --- Content Columns --- */
    /* This makes the three columns stack on top of each other */
    #secLeft,
    #secMid,
    #secRight {
        float: none;
        width: 100%;
        padding: 20px 10px;
        margin: 0;
    }

    /* --- Footer --- */
    .footer-content {
        flex-direction: column; /* Stack footer items vertically */
        text-align: center;
    }
    .footer-left, .footer-right {
        text-align: center;
        margin: 10px 0;
    }

    /* --- FIX FOR TEXT WRAPPING --- */
    .text1, .text2 {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
    }

    /* --- FIX FOR H1 & H2 OVERLAP (IMPORTANT) --- */
    h1, h2 {
        height: auto; /* Allows the height to grow with content */
        line-height: 1.3; /* Improves readability */
        padding-bottom: 10px; /* Adds space below the text */
        margin-bottom: 15px;
    }

    /* --- NEW FIX FOR H3 OVERLAP --- */
    h3 {
        height: auto; /* Allows height to adjust to content */
        padding-bottom: 10px; /* Space for the line */
        line-height: 1.4; /* Better spacing for wrapped lines */
        background-position: left bottom; /* Move the line to the bottom */
    }
}








/* ================================================= */
/* CONTACT PAGE SPECIFIC RESPONSIVE STYLES           */
/* ================================================= */

/* Contact sections */
.contact-section {
    margin-bottom: 30px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-image {
    width: 100%;
    margin-bottom: 15px;
}

.contact-image img {
    max-width: 100%;
    height: auto;
}

.contact-details {
    width: 100%;
}

.contact-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
}

.contact-label {
    width: 100px;
    font-weight: bold;
}

.contact-value {
    flex: 1;
}

/* Department table */
.department-table {
    width: 100%;
    border-collapse: collapse;
}

.dept-row {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.dept-row.header {
    font-weight: bold;
    background-color: #f5f5f5;
}

.dept-name {
    width: 50%;
    padding-right: 10px;
}

.dept-email {
    width: 50%;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .contact-image {
        width: 40%;
        margin-bottom: 0;
    }
    
    .contact-details {
        width: 60%;
        padding-left: 20px;
    }
    
    .contact-label {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .dept-name, .dept-email {
        width: 100%;
    }
    
    .dept-email {
        padding-top: 5px;
    }
    
    .contact-label, .contact-value {
        width: 100%;
    }
    
    .contact-value {
        padding-left: 20px;
    }
}


/* ================================================= */
/* PARTNERS PAGE SPECIFIC RESPONSIVE STYLES          */
/* ================================================= */

/* Partners grid layout */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.partner-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.partner-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .partner-item {
        padding: 10px;
    }
}

/* Ensure images maintain aspect ratio */
.partner-item img[width][height] {
    height: auto !important;
    width: auto !important;
    max-width: 100%;
    max-height: 80px;
}


/* ================================================= */
/* REFERRAL PROGRAM PAGE SPECIFIC RESPONSIVE STYLES  */
/* ================================================= */

.referral-content {
    margin-top: 20px;
}

.referral-section {
    margin-bottom: 25px;
}

.referral-heading {
    color: #e2161f;
    font-size: 16px;
    margin-bottom: 10px;
    background: none;
    height: auto;
    line-height: 1.3;
}

.referral-note {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 3px solid #e2161f;
    margin: 25px 0;
}

.referral-button {
    text-align: center;
    margin-top: 30px;
}

.referral-button .button {
    display: inline-block;
    background-color: #e2161f;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.referral-button .button:hover {
    background-color: #c00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .referral-section {
        margin-bottom: 20px;
    }
    
    .referral-heading {
        font-size: 15px;
    }
    
    .referral-note {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .referral-content {
        margin-top: 15px;
    }
    
    .referral-heading {
        font-size: 14px;
    }
    
    .referral-button .button {
        width: 100%;
        padding: 12px;
    }
}



/* --- FIX FOR COMMITMENT PAGE --- */
    .points3 .flt {
        float: none;
        width: auto;
        display: inline-block;
        line-height: 24px;
    }

    .points3 .clr {
        display: none;
    }
    
    .points3 p.flt:nth-of-type(2n) {
        display: block;
        padding-bottom: 8px;
    }
    
    /* --- FIX FOR OPPORTUNITIES PAGE LAYOUT --- */
    .note p.text2 {
        line-height: 1.4;
    }
    .note p.text2 span {
        display: block;
        margin-left: 15px;
        font-style: italic;
    }

    p.address-block {
        margin-left: 0;
        text-align: center;
        padding-top: 10px;
    }

    

    /* --- FIX FOR TEXT WRAPPING --- */
    .text1, .text2 {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
    }

    /* --- FIX FOR H1 OVERLAP --- */
    h1 {
        height: auto;
        line-height: 1.3;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
