/* Mobile-First Responsive CSS for Oracle DBA Training */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Improve touch responsiveness on mobile */
    -webkit-tap-highlight-color: transparent;
}

/* Enable smooth scrolling on all devices */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/top_bg.png');
    background-repeat: repeat-x;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #9FF781;
}

.contact-info {
    font-size: 12px;
    color: #FF6600;
}

.contact-info a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 30px 0;
    background-color: white;
}

.title-section h1 {
    font-family: 'Fjalla One', Arial, sans-serif;
    font-size: 28px;
    color: #FF6600;
    text-shadow: 1px 1px 0 #ffffff;
    margin-bottom: 10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/benar_img.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin: 20px 0;
}

.hero-section h2 {
    font-size: 23px;
    margin-bottom: 20px;
    color: #00FFFF;
}

.hero-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Content Sections */
.content-section {
    padding: 40px 20px;
    background-color: white;
}

.section-title {
    font-family: Calibri, Arial, sans-serif;
    font-size: 24px;
    color: #000000;
    margin-bottom: 30px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* Ticker/Scroll Section */
.ticker-container {
    width: 100%;
    height: 200px;
    overflow-y: auto;
    border: 1px solid #DDD;
    border-radius: 5px;
    box-shadow: 0px 0px 5px #DDD;
    background: #FFF;
    padding: 10px;
}

.ticker {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticker li {
    padding: 10px;
    border-bottom: 1px dotted #DDD;
    margin-bottom: 5px;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dfdfdf;
    border-radius: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6600;
}

.required {
    color: #CC0000;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(to bottom, #b7db67 0%, #abc960 100%);
    color: #495B18;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: steelblue;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #4682b4;
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/page_bg2.jpg') center/cover;
    padding: 20px;
}

.login-box {
    background: url('../images/link_bg2.png') center/cover;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
}

.login-title {
    font-family: Calibri, Arial, sans-serif;
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.error-message {
    color: red;
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffe6e6;
    border-radius: 5px;
}

.success-message {
    color: green;
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px;
    background: #e6ffe6;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: url('../images/footer_bg.png') repeat-x;
    background-color: #d3ed83;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: Calibri, Arial, sans-serif;
    font-size: 21px;
    color: blue;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
}

.footer-section ul li img {
    margin-right: 10px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Links */
a {
    color: #0099CC;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #D16307;
    text-decoration: underline;
}

.link-primary {
    color: #0099CC;
    font-size: 18px;
}

.link-primary:hover {
    color: #D16307;
    font-weight: bold;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Responsive Design */

/* Tablet */
@media (min-width: 768px) {
    .title-section h1 {
        font-size: 35px;
    }
    
    .two-column {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .title-section h1 {
        font-size: 40px;
    }
    
    .hero-section {
        padding: 80px 40px;
    }
    
    .content-section {
        padding: 60px 40px;
    }
    
    .form-container {
        max-width: 600px;
        padding: 40px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        margin-top: 10px;
    }
    
    .contact-info {
        margin-top: 10px;
        font-size: 11px;
    }
    
    .title-section h1 {
        font-size: 22px;
    }
    
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-section h2 {
        font-size: 20px;
    }
    
    .hero-section p {
        font-size: 14px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-container {
        padding: 20px;
    }
}

/* Touch-friendly mobile optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Ensure buttons and links are easily tappable on mobile */
    button, a, input[type="submit"], input[type="button"], .btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
    }
    
    /* Prevent double-tap zoom on buttons */
    button, .btn, a.button {
        touch-action: manipulation;
    }
    
    /* Improve scrolling on mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Course List */
.course-list {
    list-style: none;
    padding: 0;
}

.course-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #FF6600;
    border-radius: 5px;
}

.course-list li img {
    margin-right: 10px;
    vertical-align: middle;
}

/* Video Player */
.video-container {
    position: relative;
    width: 100%;
    max-width: 833px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Trial Content */
.trial-content {
    max-width: 72%;
    height: 500px;
    overflow-y: auto;
    margin: 0 auto;
    border: 1px solid green;
    padding: 20px;
    background: white;
}

.trial-content table {
    width: 100%;
    border-collapse: collapse;
}

.trial-content table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Button Styles */
.btn-submit {
    background-image: url('../images/login2.jpg');
    background-size: cover;
    height: 35px;
    width: 82px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
}

.btn-signup {
    background-image: url('../images/tt_button.png');
    background-size: cover;
    height: 67px;
    width: 255px;
    border: none;
    cursor: pointer;
    transition: background-image 0.3s;
}

.btn-signup:hover {
    background-image: url('../images/tt_button_up.png');
}

