/**
 * iTech Notes Public Styles
 */

/* Container */
.itech-notes-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Selector Styles */
.itech-notes-selector {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
}

.itech-notes-selector h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 24px;
}

.selector-form {
	display: grid;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	margin-bottom: 8px;
	font-weight: 600;
	color: #555;
}

.itech-select {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s;
}

.itech-select:focus {
	border-color: #ed9716;
	outline: none;
}

.form-actions {
	margin-top: 10px;
}

.button-primary {
	background-color: #ed9716;
	color: #fff;
	padding: 15px 30px !important;
	border: none;
	border-radius: 100px !important;
	font-size: 16px !important;
	cursor: pointer;
	transition: background-color 0.3s;
}

.button-primary:hover:not(:disabled) {
	background-color: #d98314;
}

.button-primary:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

/* Main Wrapper */
.itech-notes-main-wrapper {
	display: flex;
	gap: 30px;
	margin-top: 30px;
	flex-wrap: wrap; /* Allow wrapping for top info */
}

/* Top Info Bar */
.itech-notes-top-info {
    background: #ed9716;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.itech-notes-top-info h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

.itech-change-selection {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.itech-change-selection:hover {
    background: rgba(255,255,255,0.3);
}

/* Sidebar Navigation */
.itech-notes-sidebar {
	flex: 0 0 250px;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	height: fit-content;
}

.itech-notes-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.itech-notes-nav li {
	margin-bottom: 10px;
}

.itech-notes-nav .nav-link {
	display: block;
	padding: 12px 15px;
	color: #555;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s;
}

.itech-notes-nav .nav-link:hover {
	background-color: #f5f5f5;
	color: #ed9716;
}

.itech-notes-nav .nav-link.active {
	background-color: #ed9716;
	color: #fff;
}

/* Content Area */
.itech-notes-content-area {
	flex: 1;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding-bottom: 50px; /* Extra bottom padding */
	min-height: 400px;
}

.itech-notes-loading {
	text-align: center;
	padding: 40px;
	color: #999;
}

.itech-notes-content h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
    font-size: 20px !important;
    font-weight: 600;
}

/* Unified Grid System */
.itech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.itech-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.itech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.itech-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itech-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itech-card-thumbnail .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ccc;
}

.itech-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.itech-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.itech-card-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
    line-height: 1.4;
}

.itech-card-meta {
    margin-bottom: 10px;
}

.itech-meta-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e0e0e0;
    color: #555;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.itech-card-description {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.itech-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.itech-button {
    padding: 8px 16px;
    background-color: #ed9716;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.itech-button:hover {
    background-color: #d98314;
	color: #fff !important;
}

.itech-button-video {
    background-color: #e62117;
	color: #fff !important;
}

.itech-button-video:hover {
    background-color: #cc1d15;
	color: #fff !important;
}

/* List View for Model Papers */
.itech-list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.itech-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-wrap: nowrap;
}

.itech-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.itech-list-content {
    flex: 1;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.itech-list-title {
    margin: 0 !important;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.itech-list-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.itech-list-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

/* Filters */
.notes-filters,
.papers-filters {
	margin-bottom: 20px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 4px;
}

.notes-filters label,
.papers-filters label {
	margin-right: 10px;
	font-weight: 600;
	color: #555;
}

.itech-filter {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.modules-list {
	margin-top: 30px;
}

.modules-list h3 {
	margin-bottom: 15px;
	color: #333;
}

/* Video Embeds */
.itech-video-embed-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itech-video-embed-container iframe,
.itech-video-embed-container object,
.itech-video-embed-container embed {
    width: 100%;
    height: 100%;
    border: none;
}

.itech-video-embed-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Gate Section Styles (New) */
.itech-gate-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.itech-gate-landing {
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.itech-gate-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.itech-gate-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body .itech-gate-btn {
    background: #ed9716 !important;
    color: #fff;
    border: none;
    padding: 15px 40px !important;
    font-size: 16px !important;
    border-radius: 100px !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
button.itech-submit-btn, button.button-primary { {
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

input, select {
	 padding: 10px !important;
	  border-radius: 8px !important;
}



/* Gate Form Card */
.itech-gate-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.4s ease-out;
}

.itech-form-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.itech-form-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.itech-form-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.itech-form-group {
    margin-bottom: 20px;
}

.itech-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.itech-form-label .required {
    color: #e74c3c;
}

.itech-form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.itech-form-input:focus {
    border-color: #ed9716;
    outline: none;
}

.itech-form-submit {
    margin-top: 25px;
}

.itech-submit-btn {
    width: 100%;
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.itech-submit-btn:hover {
    background: #219150;
}

.itech-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
	.itech-notes-main-wrapper {
		flex-direction: column;
	}

	.itech-notes-sidebar {
		flex: 1;
		width: 100%;
	}

	.itech-grid {
		grid-template-columns: 1fr;
	}

    .itech-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .itech-list-content {
        padding-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .itech-list-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .itech-gate-section {
        padding: 20px;
    }
    
    .itech-gate-title {
        font-size: 24px;
    }
    
    .itech-gate-btn {
        width: 100%;
        justify-content: center;
    }
}