/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}



/* Header */
.main-title {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Sponsor Section */
.sponsor-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.sponsor-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.sponsor-logo {
    flex: 0 0 auto;
}

.sponsor-logo img {
    height: 60px;
    object-fit: contain;
}

.sponsor-text {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: #666;
    font-size: 25px;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.card-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.card-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-link:hover {
    background: #1a73e8;
    color: white;
    text-decoration: none;
}
.card-link-small {
    color: #a8e6cf;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: 14px;
}

.card-link-small:hover {
    background: #a8e6cf;
    color: white;
    text-decoration: none;
}
/*child1 card*/
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #1a73e8;
    color: white;
    transform: translateY(-2px);
}

.info-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 3px solid #1a73e8;
    padding-bottom: 10px;
}

.info-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.info-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

.course-details {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: white;
}

.course-details h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.course-details ul {
    list-style: none;
    padding-left: 0;
}

.course-details ul li {
    padding: 10px 0;
    color: white;
    font-size: 1.1em;
}

.course-details ul li strong {
    display: inline-block;
    min-width: 200px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-top: 10px;
}

.button:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.button i {
    margin-right: 8px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 12px;
    color: white;
}

.page-header h1 {
    margin: 0;
    font-size: 2.5em;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading i {
    font-size: 48px;
    color: #1a73e8;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    margin: 40px 20px;
    border-left: 4px solid #c62828;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8em;
    }

    .course-details ul li strong {
        display: block;
        margin-bottom: 5px;
    }

    .button {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-link {
    color: #007bff;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

h1 {
    color: #333;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.info-section {
    margin: 20px 0;
}

.info-section h3 {
    color: #555;
    margin-bottom: 15px;
}

.course-details {
    background-color: #f1f3f4;
    padding: 20px;
    border-left: 4px solid #007bff;
    margin: 20px 0;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
}

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

ul li {
    margin-bottom: 8px;
}
/* Profile Card Specific Styles */
.profile-card .card-body {
    text-align: center;
}

.profile-title {
    color: #999;
    font-size: 16px;
    margin: 10px 0 5px 0;
}

.profile-company {
    color: #666;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    color: #666;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #1a73e8;
    transform: scale(1.2);
}

/* Calendar Section */
.calendar-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 40px 0;
}

.calendar-header {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.calendar-logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.calendar-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.calendar-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.control-button:hover,
.control-button.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.calendar-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.calendar-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.quick-actions {
    background: #f8f9fa;
    padding: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-button {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #3c4043;
    font-size: 14px;
}

.action-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    color: #1a73e8;
    text-decoration: none;
}

.action-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.calendar-footer {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: #e8f0fe;
    color: #1a73e8;
    text-decoration: none;
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5f6368;
}

.sync-dot {
    width: 10px;
    height: 10px;
    background: #34a853;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Course Page Specific Styles */
body.course-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.course-page .container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 300;
    letter-spacing: 1px;
}

.header p {
    margin: 15px 0 0 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.content {
    padding: 40px;
}

.module {
    margin-bottom: 35px;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.module-header {
    background: #3498db;
    color: white;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.2em;
}

.module-content {
    padding: 25px;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-list li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.task-list li:hover {
    border-left-color: #27ae60;
    transform: translateX(5px);
}

.task-list li.indent {
    margin-left: 30px;
    font-size: 0.95em;
}

.graded-task {
    border-left-color: #f39c12 !important;
    background: #fff8e1;
    position: relative;
    padding-right: 120px;
}

.graded-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #f39c12;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.youtube-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.youtube-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.drive-link {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
}

.drive-link:hover {
    color: #229954;
    text-decoration: underline;
}

.task-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.task-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.quick-links {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px;
    text-align: center;
}

.quick-links h3 {
    color: white;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-youtube {
    background: #ff0000;
    color: white;
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.btn-drive {
    background: #4285f4;
    color: white;
}

.btn-drive:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.btn-back {
    background: white;
    color: #333;
}

.btn-back:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading i {
    font-size: 48px;
    color: #3498db;
}

.loading p {
    margin-top: 20px;
    color: #666;
}

/* Error State */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    margin: 40px 20px;
    border-left: 4px solid #c62828;
}

.error-message a {
    color: #c62828;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .main-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .sponsor-content {
        flex-direction: column;
        text-align: center;
    }

    .sponsor-logo img {
        height: 40px;
    }

    .sponsor-text {
        font-size: 14px;
    }

    .card-body {
        padding: 20px;
    }

    .calendar-header {
        padding: 20px 15px;
    }

    .calendar-logo {
        font-size: 24px;
    }

    .calendar-subtitle {
        font-size: 14px;
    }

    .control-button {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 70px;
    }

    .calendar-footer {
        flex-direction: column;
        text-align: center;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Course page mobile styles */
    body.course-page {
        padding: 10px;
    }

    .course-page .container {
        border-radius: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .content {
        padding: 20px;
    }

    .back-link {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .graded-task {
        padding-right: 15px;
    }

    .graded-badge {
        position: static;
        transform: none;
        display: block;
        margin-top: 8px;
        width: fit-content;
    }
}